From 8532c33f551d849c4113c96769d2e3959628a9c7 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 18 Apr 2023 09:03:23 +0000 Subject: [PATCH] chore(release): 10.7.1 [skip ci] ## [10.7.1](https://github.com/CESNET/perun-web-apps/compare/v10.7.0...v10.7.1) (2023-04-18) ### Bug Fixes * **admin:** fixed bug in expiration-select ([d705eb0](https://github.com/CESNET/perun-web-apps/commit/d705eb05745ecc5febaa2a43545be1721a34d9a0)) * temporarily disable html escaping ([d950c24](https://github.com/CESNET/perun-web-apps/commit/d950c249bd4baa97bc2d3da53f2ed5c258b60e36)) --- dist/apps/admin-gui/3rdpartylicenses.txt | 382 ------------------ .../apps/admin-gui/assets/config/version.json | 2 +- dist/apps/admin-gui/index.html | 2 +- dist/apps/admin-gui/main.44b8c87b92b6bab6.js | 1 + dist/apps/admin-gui/main.625bab42b9579a45.js | 1 - dist/apps/consolidator/3rdpartylicenses.txt | 382 ------------------ dist/apps/consolidator/index.html | 2 +- ...2e39140fa2.js => main.b4c561ea7c2d6bdc.js} | 2 +- dist/apps/linker/3rdpartylicenses.txt | 382 ------------------ dist/apps/linker/index.html | 2 +- ...a41fcfd672.js => main.8b0b8540831ecdd9.js} | 2 +- dist/apps/password-reset/3rdpartylicenses.txt | 382 ------------------ dist/apps/password-reset/index.html | 2 +- ...b07853a643.js => main.ffec9799713e84ca.js} | 2 +- dist/apps/publications/3rdpartylicenses.txt | 382 ------------------ dist/apps/publications/index.html | 2 +- .../publications/main.681b2e0f264bfcae.js | 1 - .../publications/main.7c87cc6c9fe623b6.js | 1 + dist/apps/user-profile/3rdpartylicenses.txt | 382 ------------------ dist/apps/user-profile/index.html | 2 +- ...aeb2709331.js => main.5c55aeb84820b8a4.js} | 2 +- 21 files changed, 13 insertions(+), 2305 deletions(-) create mode 100644 dist/apps/admin-gui/main.44b8c87b92b6bab6.js delete mode 100644 dist/apps/admin-gui/main.625bab42b9579a45.js rename dist/apps/consolidator/{main.d6456c2e39140fa2.js => main.b4c561ea7c2d6bdc.js} (55%) rename dist/apps/linker/{main.246184a41fcfd672.js => main.8b0b8540831ecdd9.js} (54%) rename dist/apps/password-reset/{main.fbeb88b07853a643.js => main.ffec9799713e84ca.js} (54%) delete mode 100644 dist/apps/publications/main.681b2e0f264bfcae.js create mode 100644 dist/apps/publications/main.7c87cc6c9fe623b6.js rename dist/apps/user-profile/{main.d932efaeb2709331.js => main.5c55aeb84820b8a4.js} (51%) diff --git a/dist/apps/admin-gui/3rdpartylicenses.txt b/dist/apps/admin-gui/3rdpartylicenses.txt index 67eedfe66..d62804695 100644 --- a/dist/apps/admin-gui/3rdpartylicenses.txt +++ b/dist/apps/admin-gui/3rdpartylicenses.txt @@ -1132,388 +1132,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -dompurify -(MPL-2.0 OR Apache-2.0) -DOMPurify -Copyright 2015 Mario Heiderich - -DOMPurify is free software; you can redistribute it and/or modify it under the -terms of either: - -a) the Apache License Version 2.0, or -b) the Mozilla Public License Version 2.0 - ------------------------------------------------------------------------------ - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ------------------------------------------------------------------------------ -Mozilla Public License, version 2.0 - -1. Definitions - -1.1. “Contributor” - - means each individual or legal entity that creates, contributes to the - creation of, or owns Covered Software. - -1.2. “Contributor Version” - - means the combination of the Contributions of others (if any) used by a - Contributor and that particular Contributor’s Contribution. - -1.3. “Contribution” - - means Covered Software of a particular Contributor. - -1.4. “Covered Software” - - means Source Code Form to which the initial Contributor has attached the - notice in Exhibit A, the Executable Form of such Source Code Form, and - Modifications of such Source Code Form, in each case including portions - thereof. - -1.5. “Incompatible With Secondary Licenses” - means - - a. that the initial Contributor has attached the notice described in - Exhibit B to the Covered Software; or - - b. that the Covered Software was made available under the terms of version - 1.1 or earlier of the License, but not also under the terms of a - Secondary License. - -1.6. “Executable Form” - - means any form of the work other than Source Code Form. - -1.7. “Larger Work” - - means a work that combines Covered Software with other material, in a separate - file or files, that is not Covered Software. - -1.8. “License” - - means this document. - -1.9. “Licensable” - - means having the right to grant, to the maximum extent possible, whether at the - time of the initial grant or subsequently, any and all of the rights conveyed by - this License. - -1.10. “Modifications” - - means any of the following: - - a. any file in Source Code Form that results from an addition to, deletion - from, or modification of the contents of Covered Software; or - - b. any new file in Source Code Form that contains any Covered Software. - -1.11. “Patent Claims” of a Contributor - - means any patent claim(s), including without limitation, method, process, - and apparatus claims, in any patent Licensable by such Contributor that - would be infringed, but for the grant of the License, by the making, - using, selling, offering for sale, having made, import, or transfer of - either its Contributions or its Contributor Version. - -1.12. “Secondary License” - - means either the GNU General Public License, Version 2.0, the GNU Lesser - General Public License, Version 2.1, the GNU Affero General Public - License, Version 3.0, or any later versions of those licenses. - -1.13. “Source Code Form” - - means the form of the work preferred for making modifications. - -1.14. “You” (or “Your”) - - means an individual or a legal entity exercising rights under this - License. For legal entities, “You” includes any entity that controls, is - controlled by, or is under common control with You. For purposes of this - definition, “control” means (a) the power, direct or indirect, to cause - the direction or management of such entity, whether by contract or - otherwise, or (b) ownership of more than fifty percent (50%) of the - outstanding shares or beneficial ownership of such entity. - - -2. License Grants and Conditions - -2.1. Grants - - Each Contributor hereby grants You a world-wide, royalty-free, - non-exclusive license: - - a. under intellectual property rights (other than patent or trademark) - Licensable by such Contributor to use, reproduce, make available, - modify, display, perform, distribute, and otherwise exploit its - Contributions, either on an unmodified basis, with Modifications, or as - part of a Larger Work; and - - b. under Patent Claims of such Contributor to make, use, sell, offer for - sale, have made, import, and otherwise transfer either its Contributions - or its Contributor Version. - -2.2. Effective Date - - The licenses granted in Section 2.1 with respect to any Contribution become - effective for each Contribution on the date the Contributor first distributes - such Contribution. - -2.3. Limitations on Grant Scope - - The licenses granted in this Section 2 are the only rights granted under this - License. No additional rights or licenses will be implied from the distribution - or licensing of Covered Software under this License. Notwithstanding Section - 2.1(b) above, no patent license is granted by a Contributor: - - a. for any code that a Contributor has removed from Covered Software; or - - b. for infringements caused by: (i) Your and any other third party’s - modifications of Covered Software, or (ii) the combination of its - Contributions with other software (except as part of its Contributor - Version); or - - c. under Patent Claims infringed by Covered Software in the absence of its - Contributions. - - This License does not grant any rights in the trademarks, service marks, or - logos of any Contributor (except as may be necessary to comply with the - notice requirements in Section 3.4). - -2.4. Subsequent Licenses - - No Contributor makes additional grants as a result of Your choice to - distribute the Covered Software under a subsequent version of this License - (see Section 10.2) or under the terms of a Secondary License (if permitted - under the terms of Section 3.3). - -2.5. Representation - - Each Contributor represents that the Contributor believes its Contributions - are its original creation(s) or it has sufficient rights to grant the - rights to its Contributions conveyed by this License. - -2.6. Fair Use - - This License is not intended to limit any rights You have under applicable - copyright doctrines of fair use, fair dealing, or other equivalents. - -2.7. Conditions - - Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in - Section 2.1. - - -3. Responsibilities - -3.1. Distribution of Source Form - - All distribution of Covered Software in Source Code Form, including any - Modifications that You create or to which You contribute, must be under the - terms of this License. You must inform recipients that the Source Code Form - of the Covered Software is governed by the terms of this License, and how - they can obtain a copy of this License. You may not attempt to alter or - restrict the recipients’ rights in the Source Code Form. - -3.2. Distribution of Executable Form - - If You distribute Covered Software in Executable Form then: - - a. such Covered Software must also be made available in Source Code Form, - as described in Section 3.1, and You must inform recipients of the - Executable Form how they can obtain a copy of such Source Code Form by - reasonable means in a timely manner, at a charge no more than the cost - of distribution to the recipient; and - - b. You may distribute such Executable Form under the terms of this License, - or sublicense it under different terms, provided that the license for - the Executable Form does not attempt to limit or alter the recipients’ - rights in the Source Code Form under this License. - -3.3. Distribution of a Larger Work - - You may create and distribute a Larger Work under terms of Your choice, - provided that You also comply with the requirements of this License for the - Covered Software. If the Larger Work is a combination of Covered Software - with a work governed by one or more Secondary Licenses, and the Covered - Software is not Incompatible With Secondary Licenses, this License permits - You to additionally distribute such Covered Software under the terms of - such Secondary License(s), so that the recipient of the Larger Work may, at - their option, further distribute the Covered Software under the terms of - either this License or such Secondary License(s). - -3.4. Notices - - You may not remove or alter the substance of any license notices (including - copyright notices, patent notices, disclaimers of warranty, or limitations - of liability) contained within the Source Code Form of the Covered - Software, except that You may alter any license notices to the extent - required to remedy known factual inaccuracies. - -3.5. Application of Additional Terms - - You may choose to offer, and to charge a fee for, warranty, support, - indemnity or liability obligations to one or more recipients of Covered - Software. However, You may do so only on Your own behalf, and not on behalf - of any Contributor. You must make it absolutely clear that any such - warranty, support, indemnity, or liability obligation is offered by You - alone, and You hereby agree to indemnify every Contributor for any - liability incurred by such Contributor as a result of warranty, support, - indemnity or liability terms You offer. You may include additional - disclaimers of warranty and limitations of liability specific to any - jurisdiction. - -4. Inability to Comply Due to Statute or Regulation - - If it is impossible for You to comply with any of the terms of this License - with respect to some or all of the Covered Software due to statute, judicial - order, or regulation then You must: (a) comply with the terms of this License - to the maximum extent possible; and (b) describe the limitations and the code - they affect. Such description must be placed in a text file included with all - distributions of the Covered Software under this License. Except to the - extent prohibited by statute or regulation, such description must be - sufficiently detailed for a recipient of ordinary skill to be able to - understand it. - -5. Termination - -5.1. The rights granted under this License will terminate automatically if You - fail to comply with any of its terms. However, if You become compliant, - then the rights granted under this License from a particular Contributor - are reinstated (a) provisionally, unless and until such Contributor - explicitly and finally terminates Your grants, and (b) on an ongoing basis, - if such Contributor fails to notify You of the non-compliance by some - reasonable means prior to 60 days after You have come back into compliance. - Moreover, Your grants from a particular Contributor are reinstated on an - ongoing basis if such Contributor notifies You of the non-compliance by - some reasonable means, this is the first time You have received notice of - non-compliance with this License from such Contributor, and You become - compliant prior to 30 days after Your receipt of the notice. - -5.2. If You initiate litigation against any entity by asserting a patent - infringement claim (excluding declaratory judgment actions, counter-claims, - and cross-claims) alleging that a Contributor Version directly or - indirectly infringes any patent, then the rights granted to You by any and - all Contributors for the Covered Software under Section 2.1 of this License - shall terminate. - -5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user - license agreements (excluding distributors and resellers) which have been - validly granted by You or Your distributors under this License prior to - termination shall survive termination. - -6. Disclaimer of Warranty - - Covered Software is provided under this License on an “as is” basis, without - warranty of any kind, either expressed, implied, or statutory, including, - without limitation, warranties that the Covered Software is free of defects, - merchantable, fit for a particular purpose or non-infringing. The entire - risk as to the quality and performance of the Covered Software is with You. - Should any Covered Software prove defective in any respect, You (not any - Contributor) assume the cost of any necessary servicing, repair, or - correction. This disclaimer of warranty constitutes an essential part of this - License. No use of any Covered Software is authorized under this License - except under this disclaimer. - -7. Limitation of Liability - - Under no circumstances and under no legal theory, whether tort (including - negligence), contract, or otherwise, shall any Contributor, or anyone who - distributes Covered Software as permitted above, be liable to You for any - direct, indirect, special, incidental, or consequential damages of any - character including, without limitation, damages for lost profits, loss of - goodwill, work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses, even if such party shall have been - informed of the possibility of such damages. This limitation of liability - shall not apply to liability for death or personal injury resulting from such - party’s negligence to the extent applicable law prohibits such limitation. - Some jurisdictions do not allow the exclusion or limitation of incidental or - consequential damages, so this exclusion and limitation may not apply to You. - -8. Litigation - - Any litigation relating to this License may be brought only in the courts of - a jurisdiction where the defendant maintains its principal place of business - and such litigation shall be governed by laws of that jurisdiction, without - reference to its conflict-of-law provisions. Nothing in this Section shall - prevent a party’s ability to bring cross-claims or counter-claims. - -9. Miscellaneous - - This License represents the complete agreement concerning the subject matter - hereof. If any provision of this License is held to be unenforceable, such - provision shall be reformed only to the extent necessary to make it - enforceable. Any law or regulation which provides that the language of a - contract shall be construed against the drafter shall not be used to construe - this License against a Contributor. - - -10. Versions of the License - -10.1. New Versions - - Mozilla Foundation is the license steward. Except as provided in Section - 10.3, no one other than the license steward has the right to modify or - publish new versions of this License. Each version will be given a - distinguishing version number. - -10.2. Effect of New Versions - - You may distribute the Covered Software under the terms of the version of - the License under which You originally received the Covered Software, or - under the terms of any subsequent version published by the license - steward. - -10.3. Modified Versions - - If you create software not governed by this License, and you want to - create a new license for such software, you may create and use a modified - version of this License if you rename the license and remove any - references to the name of the license steward (except to note that such - modified license differs from this License). - -10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses - If You choose to distribute Source Code Form that is Incompatible With - Secondary Licenses under the terms of this version of the License, the - notice described in Exhibit B of this License must be attached. - -Exhibit A - Source Code Form License Notice - - This Source Code Form is subject to the - terms of the Mozilla Public License, v. - 2.0. If a copy of the MPL was not - distributed with this file, You can - obtain one at - http://mozilla.org/MPL/2.0/. - -If it is not possible or desirable to put the notice in a particular file, then -You may include the notice in a location (such as a LICENSE file in a relevant -directory) where a recipient would be likely to look for such a notice. - -You may add additional accurate notices of copyright ownership. - -Exhibit B - “Incompatible With Secondary Licenses” Notice - - This Source Code Form is “Incompatible - With Secondary Licenses”, as defined by - the Mozilla Public License, v. 2.0. - - - fast-sha256 Unlicense This is free and unencumbered software released into the public domain. diff --git a/dist/apps/admin-gui/assets/config/version.json b/dist/apps/admin-gui/assets/config/version.json index 8c9678d28..62ddba66e 100644 --- a/dist/apps/admin-gui/assets/config/version.json +++ b/dist/apps/admin-gui/assets/config/version.json @@ -1 +1 @@ -{"version":"10.7.0"} +{"version":"10.7.1"} diff --git a/dist/apps/admin-gui/index.html b/dist/apps/admin-gui/index.html index b2a774804..0b712b109 100644 --- a/dist/apps/admin-gui/index.html +++ b/dist/apps/admin-gui/index.html @@ -14,5 +14,5 @@
- + diff --git a/dist/apps/admin-gui/main.44b8c87b92b6bab6.js b/dist/apps/admin-gui/main.44b8c87b92b6bab6.js new file mode 100644 index 000000000..77ad29cbf --- /dev/null +++ b/dist/apps/admin-gui/main.44b8c87b92b6bab6.js @@ -0,0 +1 @@ +(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[179],{57788:(Qe,ae,p)=>{"use strict";p.d(ae,{g:()=>at});var e=p(61744),f=p(10036),A=p(94650),S=p(36895),m=p(3848),M=p(51572),w=p(64877),x=p(62109),I=p(62707),F=p(38383),T=p(74010),H=p(9244),P=p(97392),J=p(4859),fe=p(10266),j=p(89593),$=p(64901),_e=p(89383);function ge(Ue,pt){if(1&Ue){const z=A.EpF();A.TgZ(0,"div",7)(1,"div",8)(2,"perun-web-apps-entity-search-select",9),A.NdJ("entitySelected",function(be){const he=A.CHM(z).$implicit;return A.KtG(he[0]=be.namespace+":"+be.friendlyName)}),A.ALo(3,"translate"),A.ALo(4,"translate"),A.ALo(5,"translate"),A.qZA()(),A.TgZ(6,"div",10)(7,"perun-web-apps-debounce-filter",11),A.NdJ("filter",function(be){const he=A.CHM(z).$implicit;return A.KtG(he[1]=be)}),A.qZA()(),A.TgZ(8,"div",12)(9,"button",13),A.NdJ("click",function(){const Ye=A.CHM(z).$implicit,he=A.oxw(2);return A.KtG(he.removeOption(Ye))}),A.ALo(10,"translate"),A.TgZ(11,"mat-icon"),A._uU(12,"clear"),A.qZA()()()()}if(2&Ue){const z=A.oxw(2);A.xp6(2),A.Q6J("entities",z.availableAttrDefs)("searchFunction",z.nameFunction)("mainTextFunction",z.nameFunction)("secondaryTextFunction",z.secondaryTextFunction)("selectPlaceholder",A.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SELECT_ATTR_DEF"))("findPlaceholder",A.lcZ(4,12,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.FIND_ATTR_DEF"))("noEntriesText",A.lcZ(5,14,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.NO_ATTR_DEF_FOUND")),A.xp6(5),A.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_PLACEHOLDER"),A.xp6(2),A.s9C("matTooltip",A.lcZ(10,16,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.REMOVE_PARAMETER")),A.Q6J("disabled",1===z.options.length)}}function pe(Ue,pt){if(1&Ue){const z=A.EpF();A.TgZ(0,"div",1),A.YNc(1,ge,13,18,"div",2),A.TgZ(2,"button",3),A.NdJ("click",function(){A.CHM(z);const be=A.oxw();return A.KtG(be.addOption())}),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.TgZ(5,"span",4),A.ALo(6,"translate"),A.TgZ(7,"button",5),A.NdJ("click",function(){A.CHM(z);const be=A.oxw();return A.KtG(be.searchEntities())}),A.TgZ(8,"mat-icon",6),A._uU(9,"search"),A.qZA(),A._uU(10),A.ALo(11,"translate"),A.qZA()()()}if(2&Ue){const z=A.oxw();A.xp6(1),A.Q6J("ngForOf",z.options),A.xp6(2),A.hij(" ",A.lcZ(4,6,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.ADD_PARAMETER")," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON_TOOLTIP")),A.Q6J("matTooltipDisabled",!z.emptySearchString()),A.xp6(2),A.Q6J("disabled",z.emptySearchString()),A.xp6(3),A.hij(" ",A.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON")," ")}}let re=(()=>{class Ue{constructor(){this.attributeSelected=new A.vpe,this.search=new A.vpe,this.availableAttrDefs=[],this.options=[],this.nameFunction=z=>z.displayName,this.secondaryTextFunction=z=>"#"+String(z.id)}ngOnInit(){this.availableAttrDefs=this.attributes.filter(z=>z.entity===this.attributesForEntity).sort(H.Xd)}ngOnChanges(){this.options=[],this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}removeOption(z){this.options=this.options.filter(st=>st!==z)}addOption(){this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}emptySearchString(){return this.options.some(z=>0===z[1].length)}searchEntities(){const z={};this.options.forEach(st=>{z[st[0]]=st[1]}),this.search.emit(z)}}return Ue.\u0275fac=function(z){return new(z||Ue)},Ue.\u0275cmp=A.Xpm({type:Ue,selectors:[["perun-web-apps-attribute-search-select"]],inputs:{attributes:"attributes",attributesForEntity:"attributesForEntity"},outputs:{attributeSelected:"attributeSelected",search:"search"},features:[A.TTD],decls:1,vars:1,consts:[["class","container ms-0 me-0 ps-0 pe-0 mt-3",4,"ngIf"],[1,"container","ms-0","me-0","ps-0","pe-0","mt-3"],["class","row",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"me-2",3,"click"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["data-cy","searcher-search-button","mat-stroked-button","",1,"me-2",3,"disabled","click"],["iconPositionEnd",""],[1,"row"],[1,"col-7"],[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"],[1,"col-4","pe-0"],[3,"placeholder","filter"],[1,"col-1"],["mat-icon-button","","color","warn",1,"mt-2",3,"matTooltip","disabled","click"]],template:function(z,st){1&z&&A.YNc(0,pe,12,12,"div",0),2&z&&A.Q6J("ngIf",void 0!==st.options)},dependencies:[S.sg,S.O5,P.Hw,J.lW,J.RK,fe.gM,j.i,$.P,_e.X$]}),Ue})();function v(Ue,pt){1&Ue&&(A._uU(0),A.ALo(1,"translate")),2&Ue&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_USERS")," ")}function V(Ue,pt){if(1&Ue){const z=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(be){A.CHM(z);const Ye=A.oxw(2);return A.KtG(Ye.searchEntities(be,"user"))}),A.qZA()}if(2&Ue){const z=A.oxw(2);A.Q6J("attributes",z.allAttrDefinitions)("attributesForEntity","user")}}const W=function(){return["user","id","name"]};function te(Ue,pt){if(1&Ue&&A._UZ(0,"app-users-list",9),2&Ue){const z=A.oxw(2);A.Q6J("tableId",z.tableId)("displayedColumns",A.DdM(3,W))("users",z.entities)}}function ne(Ue,pt){if(1&Ue&&(A.YNc(0,V,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,te,1,4,"app-users-list",7)),2&Ue){const z=A.oxw();A.Q6J("ngIf",!z.loading),A.xp6(1),A.Q6J("ngIf",!z.loadingEntityData)}}function ye(Ue,pt){1&Ue&&(A._uU(0),A.ALo(1,"translate")),2&Ue&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_MEMBERS")," ")}function ze(Ue,pt){if(1&Ue){const z=A.EpF();A.TgZ(0,"perun-web-apps-vo-search-select",13),A.NdJ("voSelected",function(be){A.CHM(z);const Ye=A.oxw(2);return A.KtG(Ye.voSelected(be))}),A.qZA()}if(2&Ue){const z=A.oxw(2);A.Q6J("vos",z.vos)}}function ke(Ue,pt){if(1&Ue){const z=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(be){A.CHM(z);const Ye=A.oxw(2);return A.KtG(Ye.searchEntities(be,"member"))}),A.qZA()}if(2&Ue){const z=A.oxw(2);A.Q6J("attributes",z.allAttrDefinitions)("attributesForEntity","user")}}const $e=function(){return["id","voId","userId","status"]};function Je(Ue,pt){if(1&Ue){const z=A.EpF();A.TgZ(0,"perun-web-apps-members-list",14),A.NdJ("updateTable",function(){A.CHM(z);const be=A.oxw(2);return A.KtG(be.searchEntities(be.searchInput,"member"))}),A.qZA()}if(2&Ue){const z=A.oxw(2);A.Q6J("tableId",z.tableId)("displayedColumns",A.DdM(5,$e))("disableStatusChange",!0)("disableExpirationChange",!0)("members",z.entities)}}function Fe(Ue,pt){if(1&Ue&&(A.TgZ(0,"div",10),A.YNc(1,ze,1,1,"perun-web-apps-vo-search-select",11),A.qZA(),A.YNc(2,ke,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(3,Je,1,6,"perun-web-apps-members-list",12)),2&Ue){const z=A.oxw();A.xp6(1),A.Q6J("ngIf",z.vos.length>0),A.xp6(1),A.Q6J("ngIf",!z.loading),A.xp6(1),A.Q6J("ngIf",!z.loadingEntityData)}}function Ve(Ue,pt){1&Ue&&(A._uU(0),A.ALo(1,"translate")),2&Ue&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_FACILITIES")," ")}function le(Ue,pt){if(1&Ue){const z=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(be){A.CHM(z);const Ye=A.oxw(2);return A.KtG(Ye.searchEntities(be,"facility"))}),A.qZA()}if(2&Ue){const z=A.oxw(2);A.Q6J("attributes",z.allAttrDefinitions)("attributesForEntity","facility")}}const N=function(){return["id","name","description"]};function U(Ue,pt){if(1&Ue&&A._UZ(0,"perun-web-apps-facilities-list",16),2&Ue){const z=A.oxw(2);A.Q6J("tableId",z.tableId)("displayedColumns",A.DdM(3,N))("facilities",z.entities)}}function X(Ue,pt){if(1&Ue&&(A.YNc(0,le,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,U,1,4,"perun-web-apps-facilities-list",15)),2&Ue){const z=A.oxw();A.Q6J("ngIf",!z.loading),A.xp6(1),A.Q6J("ngIf",!z.loadingEntityData)}}function ce(Ue,pt){1&Ue&&(A._uU(0),A.ALo(1,"translate")),2&Ue&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_RESOURCES")," ")}function Me(Ue,pt){if(1&Ue){const z=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(be){A.CHM(z);const Ye=A.oxw(2);return A.KtG(Ye.searchEntities(be,"resource"))}),A.qZA()}if(2&Ue){const z=A.oxw(2);A.Q6J("attributes",z.allAttrDefinitions)("attributesForEntity","resource")}}const ue=function(){return["id","name","description","voId","facilityId"]};function Pe(Ue,pt){if(1&Ue&&A._UZ(0,"perun-web-apps-resources-list",18),2&Ue){const z=A.oxw(2);A.Q6J("tableId",z.tableId)("displayedColumns",A.DdM(3,ue))("resources",z.entities)}}function tt(Ue,pt){if(1&Ue&&(A.YNc(0,Me,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,Pe,1,4,"perun-web-apps-resources-list",17)),2&Ue){const z=A.oxw();A.Q6J("ngIf",!z.loading),A.xp6(1),A.Q6J("ngIf",!z.loadingEntityData)}}function Ce(Ue,pt){1&Ue&&A._UZ(0,"mat-spinner",19)}let at=(()=>{class Ue{constructor(z,st,be){this.attributesManager=z,this.searcher=st,this.voService=be,this.loadingEntityData=!1,this.allAttrDefinitions=[],this.tableId=f.ee,this.entities=[],this.vos=[]}ngOnInit(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(z=>{this.allAttrDefinitions=z,this.loading=!1})}tabChanged(z){switch(this.entities=[],z){case 0:this.tableId=f.ee;break;case 1:this.loadingEntityData=!0,this.loadAllVos(),this.tableId=f.FF;break;case 2:this.tableId=f.$I;break;case 3:this.tableId=f.XH}}loadAllVos(){this.loadingEntityData=!0,this.voService.getAllVos().subscribe(z=>{this.vos=z,this.selectedVo=z[0],this.loadingEntityData=!1})}voSelected(z){void 0!==z&&(this.selectedVo=z)}searchEntities(z,st){switch(this.searchInput=z,this.loadingEntityData=!0,st){case"user":this.getUsers();break;case"member":this.getMembers();break;case"facility":this.getFacilities();break;case"resource":this.getResources()}}getUsers(){this.searcher.getUsersSearcher({attributesWithSearchingValues:this.searchInput}).subscribe(z=>{this.entities=z,this.loadingEntityData=!1})}getMembers(){this.searcher.getMembersByUserAttributes({vo:this.selectedVo.id,userAttributesWithSearchingValues:this.searchInput}).subscribe(z=>{this.entities=z,this.loadingEntityData=!1})}getFacilities(){this.searcher.getFacilities({attributesWithSearchingValues:this.searchInput}).subscribe(z=>{this.entities=z.map(st=>({facility:st})),this.loadingEntityData=!1})}getResources(){this.searcher.getAttributesResources({attributesWithSearchingValues:this.searchInput}).subscribe(z=>{this.entities=z,this.loadingEntityData=!1})}}return Ue.id="AdminSearcherComponent",Ue.\u0275fac=function(z){return new(z||Ue)(A.Y36(e.H8),A.Y36(e.t7),A.Y36(e.YF))},Ue.\u0275cmp=A.Xpm({type:Ue,selectors:[["app-admin-searcher"]],hostVars:2,hostBindings:function(z,st){2&z&&A.ekj("router-component",st.true)},decls:17,vars:4,consts:[[1,"page-subtitle"],["mat-stretch-tabs","false",3,"selectedIndexChange"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],["class","ms-auto me-auto",4,"ngIf"],[3,"attributes","attributesForEntity","search",4,"ngIf"],[3,"tableId","displayedColumns","users",4,"ngIf"],[3,"attributes","attributesForEntity","search"],[3,"tableId","displayedColumns","users"],[1,"mt-3"],[3,"vos","voSelected",4,"ngIf"],[3,"tableId","displayedColumns","disableStatusChange","disableExpirationChange","members","updateTable",4,"ngIf"],[3,"vos","voSelected"],[3,"tableId","displayedColumns","disableStatusChange","disableExpirationChange","members","updateTable"],[3,"tableId","displayedColumns","facilities",4,"ngIf"],[3,"tableId","displayedColumns","facilities"],[3,"tableId","displayedColumns","resources",4,"ngIf"],[3,"tableId","displayedColumns","resources"],[1,"ms-auto","me-auto"]],template:function(z,st){1&z&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"mat-tab-group",1),A.NdJ("selectedIndexChange",function(Ye){return st.tabChanged(Ye)}),A.TgZ(4,"mat-tab",2),A.YNc(5,v,2,3,"ng-template",3),A.YNc(6,ne,2,2,"ng-template",4),A.qZA(),A.TgZ(7,"mat-tab"),A.YNc(8,ye,2,3,"ng-template",3),A.YNc(9,Fe,4,3,"ng-template",4),A.qZA(),A.TgZ(10,"mat-tab"),A.YNc(11,Ve,2,3,"ng-template",3),A.YNc(12,X,2,2,"ng-template",4),A.qZA(),A.TgZ(13,"mat-tab"),A.YNc(14,ce,2,3,"ng-template",3),A.YNc(15,tt,2,2,"ng-template",4),A.qZA()(),A.YNc(16,Ce,1,0,"mat-spinner",5)),2&z&&(A.xp6(1),A.Oqu(A.lcZ(2,2,"ADMIN.SEARCHER.TITLE")),A.xp6(15),A.Q6J("ngIf",st.loading||st.loadingEntityData))},dependencies:[S.O5,m.Vc,m.uD,m.uX,m.SP,M.Ou,w.C,x.C,I.M,F.O,T.X,re,_e.X$]}),Ue})()},80774:(Qe,ae,p)=>{"use strict";p.d(ae,{F:()=>v});var e=p(95017),f=p(61744),A=p(10036),S=p(9244),m=p(40009),M=p(90719),w=p(80279),x=p(94650),I=p(7274),F=p(36895),T=p(4859),H=p(60205),P=p(68530),J=p(96214),fe=p(7434),j=p(73358),$=p(89383);function _e(V,W){if(1&V){const te=x.EpF();x.TgZ(0,"button",8),x.NdJ("click",function(){x.CHM(te);const ye=x.oxw();return x.KtG(ye.createService())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}2&V&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function ge(V,W){if(1&V){const te=x.EpF();x.TgZ(0,"button",9),x.NdJ("click",function(){x.CHM(te);const ye=x.oxw();return x.KtG(ye.deleteService())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}if(2&V){const te=x.oxw();x.Q6J("disabled",0===te.selection.selected.length),x.xp6(1),x.hij(" ",x.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function pe(V,W){1&V&&x._UZ(0,"perun-web-apps-loading-table")}function re(V,W){if(1&V&&x._UZ(0,"app-services-list",10),2&V){const te=x.oxw();x.Q6J("filterValue",te.filterValue)("selection",te.selection)("services",te.services)("tableId",te.tableId)}}let v=(()=>{class V{constructor(te,ne,ye){this.serviceManager=te,this.dialog=ne,this.authResolver=ye,this.selection=new e.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=A.NL}ngOnInit(){this.serviceManager.getServices().subscribe(te=>{this.services=te,this.refreshTable()})}createService(){const te=(0,S.kZ)();te.width="600px",te.data={theme:"admin-theme"},this.dialog.open(m.R,te).afterClosed().subscribe(ye=>{ye&&this.refreshTable()})}deleteService(){const te=(0,S.kZ)();te.width="600px",te.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(M.m,te).afterClosed().subscribe(ye=>{ye&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(te=>{this.services=te,this.selection.clear(),this.loading=!1})}applyFilter(te){this.filterValue=te}}return V.id="AdminServicesComponent",V.\u0275fac=function(te){return new(te||V)(x.Y36(f.KK),x.Y36(I.uw),x.Y36(w.x4))},V.\u0275cmp=x.Xpm({type:V,selectors:[["app-admin-services"]],decls:12,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button me-2","data-cy","service-create-button","mat-flat-button","",3,"click",4,"ngIf"],["class","me-2","color","warn","data-cy","service-delete-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"filterValue","selection","services","tableId",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["color","accent","data-cy","service-create-button","mat-flat-button","",1,"action-button","me-2",3,"click"],["color","warn","data-cy","service-delete-button","mat-flat-button","",1,"me-2",3,"disabled","click"],[3,"filterValue","selection","services","tableId"]],template:function(te,ne){if(1&te&&(x.TgZ(0,"div")(1,"h1",0),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"perun-web-apps-refresh-button",1),x.NdJ("refresh",function(){return ne.refreshTable()}),x.qZA(),x.YNc(5,_e,3,3,"button",2),x.YNc(6,ge,3,4,"button",3),x.TgZ(7,"perun-web-apps-immediate-filter",4),x.NdJ("filter",function(ze){return ne.applyFilter(ze)}),x.qZA(),x.YNc(8,pe,1,0,"ng-template",null,5,x.W1O),x.TgZ(10,"div",6),x.YNc(11,re,1,4,"app-services-list",7),x.qZA()()),2&te){const ye=x.MAs(9);x.xp6(2),x.Oqu(x.lcZ(3,6,"ADMIN.SERVICES.TITLE")),x.xp6(3),x.Q6J("ngIf",ne.authResolver.isPerunAdmin()),x.xp6(1),x.Q6J("ngIf",ne.authResolver.isPerunAdmin()),x.xp6(1),x.Q6J("placeholder","ADMIN.SERVICES.FILTER"),x.xp6(4),x.Q6J("perunWebAppsLoader",ne.loading)("perunWebAppsLoaderIndicator",ye)}},dependencies:[F.O5,T.lW,H.Q,P.K,J.t,fe.L,j.e,$.X$]}),V})()},25828:(Qe,ae,p)=>{"use strict";p.d(ae,{t:()=>$});var e=p(10036),f=p(64080),A=p(80279),S=p(39646),m=p(94650),M=p(56709),w=p(68530),x=p(96214),I=p(64901),F=p(88561),T=p(73358),H=p(36895),P=p(89383);function J(_e,ge){1&_e&&m._UZ(0,"perun-web-apps-loading-table")}const fe=function(){return["user","id","name","email","logins","organization"]};function j(_e,ge){if(1&_e){const pe=m.EpF();m.TgZ(0,"perun-web-apps-users-dynamic-list",7),m.NdJ("loading$",function(v){m.CHM(pe);const V=m.oxw();return m.KtG(V.loading$=v)}),m.qZA()}if(2&_e){const pe=m.oxw();m.Q6J("disableRouting",!1)("searchString",pe.searchString)("attrNames",pe.attributes)("displayedColumns",m.DdM(7,fe))("tableId",pe.tableId)("withoutVo",pe.usersWithoutVo)("updateTable",pe.update)}}let $=(()=>{class _e{constructor(pe,re){this.storeService=pe,this.cd=re,this.usersWithoutVo=!1,this.tableId=e.xx,this.attributes=[],this.update=!1}ngOnInit(){this.loading$=(0,S.of)(!0),this.attributes=[f.r.USER_DEF_ORGANIZATION,f.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(pe){this.searchString=pe,this.cd.detectChanges()}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo,this.cd.detectChanges()}refresh(){this.update=!this.update,this.cd.detectChanges()}}return _e.id="AdminUsersComponent",_e.\u0275fac=function(pe){return new(pe||_e)(m.Y36(A.d6),m.Y36(m.sBO))},_e.\u0275cmp=m.Xpm({type:_e,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(pe,re){2&pe&&m.ekj("router-component",re.true)},decls:13,vars:13,consts:[[1,"page-subtitle"],[3,"click"],[1,"mt-2","search-field",3,"autoFocus","placeholder","filter"],["color","primary",3,"checked","change"],["spinner",""],[1,"position-relative"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo","updateTable","loading$",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo","updateTable","loading$"]],template:function(pe,re){if(1&pe&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"perun-web-apps-refresh-button",1),m.NdJ("click",function(){return re.refresh()}),m.qZA(),m.TgZ(4,"perun-web-apps-debounce-filter",2),m.NdJ("filter",function(V){return re.onSearchByString(V)}),m.qZA(),m.TgZ(5,"mat-checkbox",3),m.NdJ("change",function(){return re.findUsersWithoutVO()}),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.YNc(8,J,1,0,"ng-template",null,4,m.W1O),m.TgZ(10,"div",5),m.YNc(11,j,1,8,"perun-web-apps-users-dynamic-list",6),m.ALo(12,"async"),m.qZA()),2&pe){const v=m.MAs(9);m.xp6(1),m.Oqu(m.lcZ(2,7,"ADMIN.USERS.TITLE")),m.xp6(3),m.Q6J("autoFocus",!0)("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),m.xp6(1),m.Q6J("checked",re.usersWithoutVo),m.xp6(1),m.hij(" ",m.lcZ(7,9,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),m.xp6(5),m.Q6J("perunWebAppsLoader",m.lcZ(12,11,re.loading$))("perunWebAppsLoaderIndicator",v)}},dependencies:[M.oG,w.K,x.t,I.P,F.M,T.e,H.Ov,P.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),_e})()},72077:(Qe,ae,p)=>{"use strict";p.d(ae,{y:()=>V});var e=p(80279),f=p(17445),A=p(80529),S=p(9244),m=p(94650),M=p(7274),w=p(4859),x=p(89383);let I=(()=>{class W{constructor(ne){this.dialogRef=ne}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return W.\u0275fac=function(ne){return new(ne||W)(m.Y36(M.so))},W.\u0275cmp=m.Xpm({type:W,selectors:[["app-new-version-dialog"]],decls:15,vars:12,consts:[["mat-dialog-title",""],[1,"user-theme"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"click"]],template:function(ne,ye){1&ne&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div",1)(4,"div",2)(5,"p"),m._uU(6),m.ALo(7,"translate"),m.qZA()(),m.TgZ(8,"div",3)(9,"button",4),m.NdJ("click",function(){return ye.onClose()}),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.TgZ(12,"button",5),m.NdJ("click",function(){return ye.onReload()}),m._uU(13),m.ALo(14,"translate"),m.qZA()()()),2&ne&&(m.xp6(1),m.Oqu(m.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),m.xp6(5),m.hij(" ",m.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),m.xp6(4),m.hij(" ",m.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),m.xp6(3),m.hij(" ",m.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},dependencies:[w.lW,M.uh,M.xY,M.H8,x.X$]}),W})();var F=p(82761),T=p(39300),H=p(40034);let P=(()=>{class W{constructor(ne,ye){this.router=ne,this.routeReuseStrategy=ye;const ze=ye;ne.events.subscribe(ke=>{ke instanceof F.OD&&ze.setLastNavigationType("popstate"===ke.navigationTrigger?"back":"direct")})}init(){}}return W.\u0275fac=function(ne){return new(ne||W)(m.LFG(F.F0),m.LFG(F.wN))},W.\u0275prov=m.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W})();const J=["footer"];function fe(W,te){if(1&W&&(m.TgZ(0,"div",3)(1,"mat-icon"),m._uU(2,"alert"),m.qZA(),m._uU(3),m.qZA()),2&W){const ne=m.oxw();m.xp6(3),m.hij(" ",ne.warningMessage,"\n")}}const j=function(W,te){return{top:W,background:te}},$=function(W,te){return{"margin-top":W,"min-height":te}},_e=function(W,te){return{"border-color":W,background:te}},ge=function(W){return{"background-color":W}},pe=function(W){return{"min-height":W}};function re(W,te){if(1&W){const ne=m.EpF();m.TgZ(0,"perun-web-apps-header",4),m.NdJ("sidenavToggle",function(){m.CHM(ne);const ze=m.MAs(3);return m.KtG(ze.toggle())}),m.qZA(),m.TgZ(1,"mat-sidenav-container",5)(2,"mat-sidenav",6,7)(4,"ng-scrollbar"),m._UZ(5,"app-side-menu",8),m.qZA()(),m.TgZ(6,"mat-sidenav-content",9)(7,"div",10),m._UZ(8,"router-outlet"),m.qZA(),m.TgZ(9,"div",null,11),m._UZ(11,"perun-web-apps-footer"),m.qZA()()()}if(2&W){const ne=m.MAs(3),ye=m.oxw();m.Q6J("ngStyle",m.WLB(12,j,ye.getNavMenuTop(),ye.navBackgroundColor))("otherApp",ye.otherApp)("showNotifications",!0),m.xp6(1),m.Q6J("ngStyle",m.WLB(15,$,ye.getSideNavMarginTop(),ye.getSideNavMinHeight())),m.xp6(1),m.Q6J("fixedInViewport",!0)("mode",ye.sidebarMode)("fixedTopGap",ye.getTopGap())("ngStyle",m.WLB(18,_e,ye.sideBarBorderColor,ye.sideMenubackgroundColor))("opened",!ye.isMobile()),m.xp6(3),m.Q6J("sideNav",ne),m.xp6(1),m.Q6J("ngStyle",m.VKq(21,ge,ye.contentBackgroundColor)),m.xp6(1),m.Q6J("ngStyle",m.VKq(23,pe,ye.contentInnerMinHeight))}}function v(W,te){1&W&&m._UZ(0,"perun-web-apps-login-screen-base",12),2&W&&m.Q6J("application","admin-gui")}let V=(()=>{class W{constructor(ne,ye,ze,ke,$e,Je,Fe,Ve){this.cache=ne,this.store=ye,this.http=ze,this.dialog=ke,this.router=$e,this.initAuth=Je,this.authService=Fe,this.cd=Ve,this.otherApp=H.p.Profile,this.sidebarMode="side",this.theme=this.store.getProperty("theme"),this.navBackgroundColor=this.theme.nav_bg_color,this.sideBarBorderColor=this.theme.sidemenu_border_color,this.contentBackgroundColor=this.theme.content_bg_color,this.sideMenubackgroundColor=this.theme.sidemenu_bg_color,this.displayWarning=this.store.getProperty("display_warning"),this.warningMessage=this.store.getProperty("warning_message"),this.version=p(4147).i8,this.contentInnerMinHeight=this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)",this.cache.init(),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}isLoggedIn(){return this.authService.isLoggedIn()||this.initAuth.isServiceAccess()}isMobile(){return window.innerWidth<=W.minWidth}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),null===sessionStorage.getItem("initPage")&&(sessionStorage.setItem("initPage",location.pathname),sessionStorage.setItem("onInitPage","true")),this.store.setInitialPageId(1),this.principal=this.store.getPerunPrincipal(),this.loadAppVersion(),(0,f.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,T.h)(ne=>ne instanceof F.OD)).subscribe(ne=>{this.updateInitAccessedPage(ne)})}getTopGap(){return this.displayWarning?112:64}getSideNavMarginTop(){return this.displayWarning?"112px":"64px"}getSideNavMinHeight(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}getNavMenuTop(){return this.displayWarning?"48px":"0"}ngAfterViewInit(){const ne=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+ne+"px - 112px)":"calc(100vh - "+ne+"px - 64px)",this.cd.detectChanges()}updateInitAccessedPage(ne){ne.url===sessionStorage.getItem("initPage")?("imperative"===ne.navigationTrigger&&ne.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===ne.navigationTrigger&&(ne.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(ne.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const ne=new A.WM({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"});this.http.get("/assets/config/version.json",{headers:ne}).subscribe(ye=>{const ze=ye.version;if(ze)if(this.version&&"SNAPSHOT"!==ze&&this.version!==ze){const ke=(0,S.kZ)();this.dialog.open(I,ke)}else this.version=ze})}}return W.minWidth=992,W.\u0275fac=function(ne){return new(ne||W)(m.Y36(P),m.Y36(e.d6),m.Y36(A.eN),m.Y36(M.uw),m.Y36(F.F0),m.Y36(e.v0),m.Y36(e.e8),m.Y36(m.sBO))},W.\u0275cmp=m.Xpm({type:W,selectors:[["app-root"]],viewQuery:function(ne,ye){if(1&ne&&m.Gf(J,5),2&ne){let ze;m.iGM(ze=m.CRH())&&(ye.footer=ze.first)}},hostBindings:function(ne,ye){1&ne&&m.NdJ("resize",function(ke){return ye.getScreenSize(ke)},!1,m.Jf7)},decls:4,vars:4,consts:[["class","beta-warning",4,"ngIf"],[3,"displayWarning"],[3,"ngIf"],[1,"beta-warning"],["id","nav-menu",1,"mat-elevation-z3",3,"ngStyle","otherApp","showNotifications","sidenavToggle"],["autosize","true",3,"ngStyle"],[3,"fixedInViewport","mode","fixedTopGap","ngStyle","opened"],["sidenav",""],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(ne,ye){1&ne&&(m.YNc(0,fe,4,1,"div",0),m._UZ(1,"perun-web-apps-notificator",1),m.YNc(2,re,12,25,"ng-template",2),m.YNc(3,v,1,1,"ng-template",2)),2&ne&&(m.Q6J("ngIf",ye.displayWarning),m.xp6(1),m.Q6J("displayWarning",ye.displayWarning),m.xp6(1),m.Q6J("ngIf",!ye.isLoginScreenShow&&!ye.isServiceAccess&&ye.isLoggedIn()),m.xp6(1),m.Q6J("ngIf",ye.isLoginScreenShow||ye.isServiceAccess||!ye.isLoggedIn()))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px}.beta-warning[_ngcontent-%COMP%]{overflow:hidden;height:48px;position:fixed;z-index:999;top:0;background-color:#ffbfc5;width:100%;color:#d32f2f;text-align:center;font-weight:500;padding:6px;line-height:36px;font-size:1rem}ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-thumb-color: #6a6a6a;--scrollbar-thumb-hover-color: lightgrey}"]}),W})()},77968:(Qe,ae,p)=>{"use strict";p.d(ae,{D:()=>f});var e=p(94650);let f=(()=>{class A{constructor(){this.accessItemsChange=new e.vpe,this.facilityItemsChange=new e.vpe,this.adminItemsChange=new e.vpe,this.userItemsChange=new e.vpe,this.resetChange=new e.vpe,this.homeItemsChange=new e.vpe}setHomeItems(m){this.homeItemsChange.emit(m)}setAccessMenuItems(m){this.accessItemsChange.emit(m)}setFacilityMenuItems(m){this.facilityItemsChange.emit(m)}setAdminItems(m){this.adminItemsChange.emit(m)}setUserItems(m){this.userItemsChange.emit(m)}reset(){this.resetChange.emit()}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})()},37380:(Qe,ae,p)=>{"use strict";p.d(ae,{o:()=>ge});var e=p(61744),f=p(10036),A=p(80279),S=p(94650),m=p(36895),M=p(3238),w=p(59549),x=p(84385),I=p(68530),F=p(25788),T=p(96214),H=p(7434),P=p(73358),J=p(89383);function fe(pe,re){if(1&pe&&(S.TgZ(0,"mat-option",10),S._uU(1),S.qZA()),2&pe){const v=re.$implicit;S.Q6J("value",v.id),S.xp6(1),S.hij(" ",v.name," ")}}function j(pe,re){1&pe&&S._UZ(0,"perun-web-apps-loading-table")}const $=function(){return["id","vo","name","description"]};function _e(pe,re){if(1&pe&&S._UZ(0,"perun-web-apps-groups-list",11),2&pe){const v=S.oxw();S.Q6J("displayedColumns",S.DdM(6,$))("groups",v.groupsToShow)("disableMembers",!1)("filter",v.filterValue)("groupsToDisableRouting",v.groupsWithoutRouteAuth)("tableId",v.tableId)}}let ge=(()=>{class pe{constructor(v,V,W){this.facilityManager=v,this.authResolver=V,this.entityStorageService=W,this.groups=[],this.filterValue="",this.selected="all",this.groupsToShow=this.groups,this.tableId=f.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.facilityManager.getAllowedVos(this.facility.id).subscribe(v=>{this.vos=v,this.refreshTable()})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(v=>v.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.facilityManager.getAllowedGroups(this.facility.id).subscribe(v=>{this.groups=this.groups.concat(v),this.groupsToShow=this.groups,this.setAuthRights(v),this.loading=!1}),0===this.vos.length&&(this.loading=!1)}setAuthRights(v){v.forEach(V=>{this.authResolver.isAuthorized("getGroupById_int_policy",[V])||this.groupsWithoutRouteAuth.add(V.id)})}applyFilter(v){this.filterValue=v}}return pe.id="FacilityAllowedGroupsComponent",pe.\u0275fac=function(v){return new(v||pe)(S.Y36(e.IQ),S.Y36(A.x4),S.Y36(A.fb))},pe.\u0275cmp=S.Xpm({type:pe,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(v,V){2&v&&S.ekj("router-component",V.true)},inputs:{groups:"groups"},decls:19,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],[1,"me-2"],[3,"value","selectionChange","valueChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"value"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId"]],template:function(v,V){if(1&v&&(S.TgZ(0,"div")(1,"h1",0),S._uU(2),S.ALo(3,"translate"),S.qZA(),S.TgZ(4,"perun-web-apps-refresh-button",1),S.NdJ("refresh",function(){return V.refreshTable()}),S.qZA(),S.TgZ(5,"mat-form-field",2)(6,"mat-label"),S._uU(7),S.ALo(8,"translate"),S.qZA(),S.TgZ(9,"mat-select",3),S.NdJ("selectionChange",function(){return V.showGroup()})("valueChange",function(te){return V.selected=te}),S.TgZ(10,"mat-option",4),S._uU(11),S.ALo(12,"translate"),S.qZA(),S.YNc(13,fe,2,2,"mat-option",5),S.qZA()(),S.TgZ(14,"perun-web-apps-immediate-filter",6),S.NdJ("filter",function(te){return V.applyFilter(te)}),S.qZA(),S.YNc(15,j,1,0,"ng-template",null,7,S.W1O),S.TgZ(17,"div",8),S.YNc(18,_e,1,7,"perun-web-apps-groups-list",9),S.qZA()()),2&v){const W=S.MAs(16);S.xp6(2),S.Oqu(S.lcZ(3,8,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),S.xp6(5),S.Oqu(S.lcZ(8,10,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),S.xp6(2),S.Q6J("value",V.selected),S.xp6(2),S.Oqu(S.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),S.xp6(2),S.Q6J("ngForOf",V.vos),S.xp6(1),S.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),S.xp6(4),S.Q6J("perunWebAppsLoader",V.loading)("perunWebAppsLoaderIndicator",W)}},dependencies:[m.sg,M.ey,w.KE,w.hX,x.gD,I.K,F.W,T.t,H.L,P.e,J.X$]}),pe})()},25610:(Qe,ae,p)=>{"use strict";p.d(ae,{_:()=>Fe});var e=p(10036),f=p(61744),A=p(80279),S=p(64080),m=p(24006),M=p(39646),w=p(94650),x=p(36895),I=p(3238),F=p(59549),T=p(84385),H=p(90455),P=p(68530),J=p(96214),fe=p(62707),j=p(45703),$=p(64901),_e=p(88561),ge=p(30540),pe=p(97392),re=p(4859),v=p(89383);let V=(()=>{class Ve{constructor(){this.changeAdvancedFilter=new w.vpe,this.clearFilters=new w.vpe}ngOnInit(){this.changeAdvancedFilter.emit(this.advancedFilter)}toggleAdvancedFilter(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}return Ve.\u0275fac=function(N){return new(N||Ve)},Ve.\u0275cmp=w.Xpm({type:Ve,selectors:[["perun-web-apps-advanced-filter"]],inputs:{filtersCount:"filtersCount",advancedFilter:"advancedFilter"},outputs:{changeAdvancedFilter:"changeAdvancedFilter",clearFilters:"clearFilters"},decls:12,vars:11,consts:[["mat-stroked-button","",3,"click"],["iconPositionEnd",""]],template:function(N,U){1&N&&(w.TgZ(0,"button",0),w.NdJ("click",function(){return U.toggleAdvancedFilter()}),w.TgZ(1,"mat-icon"),w._uU(2,"filter_list"),w.qZA(),w._uU(3),w.ALo(4,"translate"),w.TgZ(5,"mat-icon",1),w._uU(6),w.qZA()(),w.TgZ(7,"button",0),w.NdJ("click",function(){return U.clearFilters.emit()}),w.TgZ(8,"mat-icon"),w._uU(9,"filter_list_off"),w.qZA(),w._uU(10),w.ALo(11,"translate"),w.qZA()),2&N&&(w.Gre("me-2 ",U.filtersCount?"grey":"no-color",""),w.xp6(3),w.AsE(" ",w.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",U.filtersCount?"("+U.filtersCount+")":null," "),w.xp6(3),w.Oqu(U.advancedFilter?"arrow_drop_up":"arrow_drop_down"),w.xp6(4),w.hij(" ",w.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},dependencies:[pe.Hw,re.lW,v.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:gray}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),Ve})();var W=p(73358);function te(Ve,le){if(1&Ve&&(w.TgZ(0,"mat-option",20),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Ve){const N=le.$implicit;w.Q6J("value",N),w.xp6(1),w.Oqu(w.lcZ(2,2,"CONSENTS.STATUS_"+N))}}function ne(Ve,le){if(1&Ve){const N=w.EpF();w.TgZ(0,"mat-form-field",17)(1,"mat-label"),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-select",18),w.NdJ("closed",function(){w.CHM(N);const X=w.oxw(2);return w.KtG(X.consentStatusSelected())}),w.TgZ(5,"mat-select-trigger"),w._uU(6),w.qZA(),w.YNc(7,te,3,4,"mat-option",19),w.qZA()()}if(2&Ve){const N=w.oxw(2);w.xp6(2),w.Oqu(w.lcZ(3,4,"CONSENTS.STATUS")),w.xp6(2),w.Q6J("formControl",N.statuses),w.xp6(2),w.hij(" ",N.displaySelectedStatuses()," "),w.xp6(1),w.Q6J("ngForOf",N.consentStatusesList)}}function ye(Ve,le){if(1&Ve){const N=w.EpF();w.TgZ(0,"div",9)(1,"div",10)(2,"mat-slide-toggle",11),w.NdJ("ngModelChange",function(X){w.CHM(N);const ce=w.oxw();return w.KtG(ce.allowed=X)})("change",function(){w.CHM(N);const X=w.oxw();return w.KtG(X.changeFilter())}),w._uU(3),w.ALo(4,"translate"),w.qZA(),w.TgZ(5,"span",12),w._uU(6),w.ALo(7,"translate"),w.qZA()(),w.TgZ(8,"div",1)(9,"perun-web-apps-vo-search-select",13),w.NdJ("voSelected",function(X){w.CHM(N);const ce=w.oxw();return w.KtG(ce.voSelected(X))}),w.qZA(),w.TgZ(10,"perun-web-apps-resource-search-select",14),w.NdJ("resourceSelected",function(X){w.CHM(N);const ce=w.oxw();return w.KtG(ce.resourceSelected(X))}),w.qZA(),w.TgZ(11,"perun-web-apps-service-search-select",15),w.NdJ("serviceSelected",function(X){w.CHM(N);const ce=w.oxw();return w.KtG(ce.serviceSelected(X))}),w.qZA(),w.YNc(12,ne,8,6,"mat-form-field",16),w.qZA()()}if(2&Ve){const N=w.oxw();w.xp6(2),w.Q6J("ngModel",N.allowed),w.xp6(1),w.hij(" ",w.lcZ(4,14,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),w.xp6(3),w.Oqu(w.lcZ(7,16,N.toggle_messages[N.allowed?1:0])),w.xp6(3),w.Q6J("vos",N.vos)("vo",N.selectedVo)("disableAutoSelect",!0),w.xp6(1),w.Q6J("resources",N.filteredResources)("displayStatus",!1)("resource",N.selectedResource)("disableAutoSelect",!0),w.xp6(1),w.Q6J("services",N.filteredServices)("service",N.selectedService)("disableAutoSelect",!0),w.xp6(1),w.Q6J("ngIf",N.globalForceConsents&&N.facilityForceConsents)}}function ze(Ve,le){1&Ve&&w._UZ(0,"perun-web-apps-loading-table")}const ke=function(){return["id","name","email","logins","organization","consentStatus"]},$e=function(){return["id","name","email","logins","organization"]};function Je(Ve,le){if(1&Ve){const N=w.EpF();w.TgZ(0,"perun-web-apps-users-dynamic-list",21),w.NdJ("loading$",function(X){w.CHM(N);const ce=w.oxw();return w.KtG(ce.loading$=X)}),w.qZA()}if(2&Ve){const N=w.oxw();w.Q6J("attrNames",N.attributes)("disableRouting",!N.routeAuth)("displayedColumns",N.globalForceConsents&&N.facilityForceConsents?w.DdM(12,ke):w.DdM(13,$e))("onlyAllowed",N.allowed)("facilityId",N.facility.id)("searchString",N.filterValue)("resourceId",null==N.selectedResource?null:N.selectedResource.id)("serviceId",null==N.selectedService?null:N.selectedService.id)("tableId",N.tableId)("voId",null==N.selectedVo?null:N.selectedVo.id)("consentStatuses",N.selectedConsentStatuses)("updateTable",N.update)}}let Fe=(()=>{class Ve{constructor(N,U,X,ce,Me,ue,Pe,tt,Ce){this.facilityService=N,this.serviceService=U,this.resourceService=X,this.authResolver=ce,this.storeService=Me,this.entityStorageService=ue,this.consentService=Pe,this.translate=tt,this.cd=Ce,this.update=!1,this.filterValue="",this.attributes=[],this.allowed=!0,this.resources=[],this.filteredResources=[],this.vos=[],this.services=[],this.filteredServices=[],this.consentStatusesList=["UNSIGNED","GRANTED","REVOKED"],this.selectedConsentStatuses=[],this.resourceAssignedServices=new Map,this.tableId=e.z6,this.toggle_messages=["FACILITY_DETAIL.ALLOWED_USERS.FILTER_ASSIGNED_MSG","FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED_MSG"],this.advancedFilter=!1}ngOnInit(){this.loading$=(0,M.of)(!0),this.statuses=new m.NI(this.selectedConsentStatuses),this.attributes=[S.r.USER_DEF_ORGANIZATION,S.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames()),this.facility=this.entityStorageService.getEntity(),this.globalForceConsents=this.storeService.getProperty("enforce_consents"),this.consentService.getConsentHubByFacility(this.facility.id).subscribe(N=>{this.facilityForceConsents=N.enforceConsents}),this.routeAuth=this.authResolver.isPerunAdminOrObserver(),this.changeFilter(),this.refreshPage()}changeFilter(){this.filtersCount=this.allowed?1:0,this.selectedVo&&(this.filtersCount+=1),this.selectedResource&&(this.filtersCount+=1),this.selectedService&&(this.filtersCount+=1),this.selectedConsentStatuses.length>0&&(this.filtersCount+=1),this.cd.detectChanges()}clearFilters(){this.allowed=!1,this.selectedVo=void 0,this.selectedResource=void 0,this.selectedService=void 0,this.selectedConsentStatuses=[],this.statuses.setValue(this.selectedConsentStatuses),this.filtersCount=0,this.voSelected(this.selectedVo),this.resourceSelected(this.selectedResource),this.serviceSelected(this.selectedService),this.cd.detectChanges()}refreshPage(){this.facilityService.getAssignedResourcesForFacility(this.facility.id).subscribe(N=>{this.resources=N,this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(U=>{this.vos=U,this.serviceService.getAssignedServices(this.facility.id).subscribe(X=>{this.services=X,this.filteredServices=this.services,this.update=!this.update,this.cd.detectChanges()})})})}applyFilter(N){this.filterValue=N}voSelected(N){this.selectedVo=N,this.selectedResource=void 0,this.selectedService=void 0,N?(this.filteredResources=this.resources.filter(U=>U.voId===N.id),this.serviceService.getAssignedServicesVo(this.facility.id,N.id).subscribe(U=>{this.filteredServices=U})):(this.filteredResources=this.resources,this.filteredServices=this.services),this.changeFilter()}resourceSelected(N){this.selectedResource=N,this.selectedService=void 0,void 0===N?this.filteredServices=this.services:this.resourceService.getAssignedServicesToResource(N.id).subscribe(U=>{this.filteredServices=U}),this.changeFilter()}serviceSelected(N){this.selectedService=N,this.changeFilter()}consentStatusSelected(){this.selectedConsentStatuses=this.statuses.value,this.changeFilter()}displaySelectedStatuses(){if(this.selectedConsentStatuses.length===this.consentStatusesList.length)return"ALL";const N=this.statuses.value;return N?`${this.translate.instant("CONSENTS.STATUS_"+N[0])} ${N.length>1?"(+"+(N.length-1).toString()+" "+(2===N.length?"other)":"others)"):""}`:""}}return Ve.id="FacilityAllowedUsersComponent",Ve.\u0275fac=function(N){return new(N||Ve)(w.Y36(f.IQ),w.Y36(f.KK),w.Y36(f.xk),w.Y36(A.x4),w.Y36(A.d6),w.Y36(A.fb),w.Y36(f.WY),w.Y36(A.Te),w.Y36(w.sBO))},Ve.\u0275cmp=w.Xpm({type:Ve,selectors:[["app-facility-allowed-users"]],decls:14,vars:11,consts:[[1,"page-subtitle"],[1,"filters"],[1,"me-2",3,"refresh"],[1,"me-2","filter",3,"placeholder","filter"],[3,"advancedFilter","filtersCount","changeAdvancedFilter","clearFilters"],["class","advanced-filter",4,"ngIf"],["spinner",""],[1,"position-relative"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId","consentStatuses","updateTable","loading$",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[1,"advanced-filter"],[1,"toggle","filters"],["labelPosition","before",1,"me-2",3,"ngModel","ngModelChange","change"],[1,"text-muted"],[1,"search-select",3,"vos","vo","disableAutoSelect","voSelected"],[1,"search-select",3,"resources","displayStatus","resource","disableAutoSelect","resourceSelected"],[1,"search-select",3,"services","service","disableAutoSelect","serviceSelected"],["class","search-select",4,"ngIf"],[1,"search-select"],["multiple","",3,"formControl","closed"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId","consentStatuses","updateTable","loading$"]],template:function(N,U){if(1&N&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),w.NdJ("refresh",function(){return U.refreshPage()}),w.qZA(),w.TgZ(6,"perun-web-apps-debounce-filter",3),w.NdJ("filter",function(ce){return U.applyFilter(ce)}),w.qZA(),w.TgZ(7,"perun-web-apps-advanced-filter",4),w.NdJ("changeAdvancedFilter",function(ce){return U.advancedFilter=ce})("clearFilters",function(){return U.clearFilters()}),w.qZA()(),w.YNc(8,ye,13,18,"div",5),w.YNc(9,ze,1,0,"ng-template",null,6,w.W1O),w.TgZ(11,"div",7),w.YNc(12,Je,1,14,"perun-web-apps-users-dynamic-list",8),w.ALo(13,"async"),w.qZA()()),2&N){const X=w.MAs(10);w.xp6(2),w.Oqu(w.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),w.xp6(4),w.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),w.xp6(1),w.Q6J("advancedFilter",U.advancedFilter)("filtersCount",U.filtersCount),w.xp6(1),w.Q6J("ngIf",U.advancedFilter),w.xp6(4),w.Q6J("perunWebAppsLoader",w.lcZ(13,9,U.loading$))("perunWebAppsLoaderIndicator",X)}},dependencies:[x.sg,x.O5,I.ey,F.KE,F.hX,m.JJ,m.oH,m.On,T.gD,T.$L,H.Rr,P.K,J.t,fe.M,j.L,$.P,_e.M,ge.J,V,W.e,x.Ov,v.X$],styles:[".filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.filter[_ngcontent-%COMP%]{min-width:350px}.search-select[_ngcontent-%COMP%]{width:32%;margin-right:20px;margin-top:30px}.toggle[_ngcontent-%COMP%]{display:flex;flex-direction:column}.advanced-filter[_ngcontent-%COMP%]{border:1px solid lightgray;padding:15px}"]}),Ve})()},34904:(Qe,ae,p)=>{"use strict";p.d(ae,{f:()=>$e});var e=p(95017),f=p(533),A=p(61744),S=p(24006),m=p(7274),M=p(80279),w=p(94650),x=p(89383),I=p(284),F=p(59549),T=p(4859),H=p(97403),P=p(62707),J=p(73358);function fe(Je,Fe){1&Je&&w._UZ(0,"perun-web-apps-loading-dialog")}function j(Je,Fe){if(1&Je){const Ve=w.EpF();w.TgZ(0,"div")(1,"div",2)(2,"perun-web-apps-vo-search-select",3),w.NdJ("voSelected",function(N){w.CHM(Ve);const U=w.oxw();return w.KtG(U.selectedVo=N)}),w.qZA(),w.TgZ(3,"mat-form-field")(4,"mat-label"),w._uU(5),w.ALo(6,"translate"),w.qZA(),w._UZ(7,"input",4),w.TgZ(8,"mat-error"),w._uU(9),w.ALo(10,"translate"),w.qZA()(),w.TgZ(11,"mat-form-field")(12,"mat-label"),w._uU(13),w.ALo(14,"translate"),w.qZA(),w._UZ(15,"input",5),w.TgZ(16,"mat-error"),w._uU(17),w.ALo(18,"translate"),w.qZA()()(),w.TgZ(19,"div",6)(20,"button",7),w.NdJ("click",function(){w.CHM(Ve);const N=w.oxw();return w.KtG(N.onCancel())}),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"button",8),w.NdJ("click",function(){w.CHM(Ve);const N=w.oxw();return w.KtG(N.onSubmit())}),w._uU(24),w.ALo(25,"translate"),w.qZA()()()}if(2&Je){const Ve=w.oxw();w.xp6(2),w.Q6J("vos",Ve.vos),w.xp6(3),w.Oqu(w.lcZ(6,10,"DIALOGS.CREATE_RESOURCE.NAME")),w.xp6(2),w.Q6J("formControl",Ve.nameCtrl),w.xp6(2),w.hij(" ",w.lcZ(10,12,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),w.xp6(4),w.Oqu(w.lcZ(14,14,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),w.xp6(2),w.Q6J("formControl",Ve.descriptionCtrl),w.xp6(2),w.hij(" ",w.lcZ(18,16,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," "),w.xp6(4),w.hij(" ",w.lcZ(22,18,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),w.xp6(2),w.Q6J("disabled",Ve.nameCtrl.invalid||Ve.descriptionCtrl.invalid||null===Ve.selectedVo||Ve.loading),w.xp6(1),w.hij(" ",w.lcZ(25,20,"DIALOGS.CREATE_RESOURCE.CREATE")," ")}}let $=(()=>{class Je{constructor(Ve,le,N,U,X,ce){this.dialogRef=Ve,this.data=le,this.notificator=N,this.voService=U,this.translate=X,this.resourcesManager=ce,this.vos=[],this.selectedVo=null,X.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(Me=>this.successMessage=Me)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(Ve=>{this.vos=Ve,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new S.p4(null,[S.kI.required,S.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new S.p4("")}onSubmit(){this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return Je.\u0275fac=function(Ve){return new(Ve||Je)(w.Y36(m.so),w.Y36(m.WI),w.Y36(M.V6),w.Y36(A.YF),w.Y36(x.sK),w.Y36(A.xk))},Je.\u0275cmp=w.Xpm({type:Je,selectors:[["app-create-resource-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-content","",1,"dialog-container"],["data-cy","create-resource-select-vo",3,"vos","voSelected"],["matInput","","data-cy","create-resource-name-input","required","",3,"formControl"],["matInput","",3,"formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","create-resource-dialog-button","color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(Ve,le){if(1&Ve&&(w.YNc(0,fe,1,0,"ng-template",null,0,w.W1O),w.TgZ(2,"div"),w.YNc(3,j,26,22,"div",1),w.qZA()),2&Ve){const N=w.MAs(1);w.xp6(2),w.Gre("",le.theme," position-relative"),w.xp6(1),w.Q6J("perunWebAppsLoader",le.loading)("perunWebAppsLoaderIndicator",N)}},dependencies:[I.Nt,F.KE,F.hX,F.TO,S.Fj,S.JJ,S.Q7,S.oH,T.lW,m.xY,m.H8,H.b,P.M,J.e,x.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),Je})();var _e=p(10036),ge=p(9244),pe=p(36895),re=p(68530),v=p(96214),V=p(7434),W=p(62109),te=p(30540);function ne(Je,Fe){if(1&Je){const Ve=w.EpF();w.TgZ(0,"button",10),w.NdJ("click",function(){w.CHM(Ve);const N=w.oxw();return w.KtG(N.createResource())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Je&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function ye(Je,Fe){if(1&Je){const Ve=w.EpF();w.TgZ(0,"button",11),w.NdJ("click",function(){w.CHM(Ve);const N=w.oxw();return w.KtG(N.removeResource())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&Je){const Ve=w.oxw();w.Q6J("disabled",0===Ve.selected.selected.length),w.xp6(1),w.hij(" ",w.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function ze(Je,Fe){1&Je&&w._UZ(0,"perun-web-apps-loading-table")}function ke(Je,Fe){if(1&Je&&w._UZ(0,"perun-web-apps-resources-list",12),2&Je){const Ve=w.oxw();w.Q6J("tableId",Ve.tableId)("filterValue",Ve.filterValue)("resources",Ve.resources)("selection",Ve.selected)("disableRouting",!Ve.routeAuth)("displayedColumns",Ve.displayedColumns)}}let $e=(()=>{class Je{constructor(Ve,le,N,U,X,ce){this.dialog=Ve,this.facilitiesManager=le,this.servicesManager=N,this.authResolver=U,this.entityStorageService=X,this.cd=ce,this.resources=[],this.selected=new e.Ov(!0,[]),this.emptyService={id:-1,beanName:"Service",name:"All"},this.services=[this.emptyService],this.selectedService=this.emptyService,this.filterValue="",this.tableId=_e.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.servicesManager.getAssignedServices(this.facility.id).subscribe(Ve=>{this.services=[this.emptyService].concat(Ve),this.refreshTable()}),this.loadResourcesForFacility()}ngAfterViewInit(){this.cd.detectChanges()}removeResource(){const Ve=(0,ge.kZ)();Ve.width="450px",Ve.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(f.f,Ve).afterClosed().subscribe(N=>{N&&this.refreshTable()})}refreshTable(){this.loading=!0,-1===this.selectedService.id?this.loadResourcesForFacility():this.facilitiesManager.getAssignedRichResourcesForFacilityAndService(this.facility.id,this.selectedService.id).subscribe(Ve=>{this.resources=Ve,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("createResource_Resource_Vo_Facility_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","vo","description"]:["id","name","vo","description"],0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getRichResourceById_int_policy",[this.facility,this.resources[0]]))}applyFilter(Ve){this.filterValue=Ve}createResource(){const Ve=(0,ge.kZ)();Ve.width="1350px",Ve.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open($,Ve).afterClosed().subscribe(N=>{N&&this.refreshTable()})}serviceSelected(Ve){this.selectedService=Ve,this.refreshTable()}loadResourcesForFacility(){this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(Ve=>{this.resources=Ve,this.selected.clear(),this.setAuthRights(),this.loading=!1})}}return Je.id="FacilityResourcesComponent",Je.\u0275fac=function(Ve){return new(Ve||Je)(w.Y36(m.uw),w.Y36(A.IQ),w.Y36(A.KK),w.Y36(M.x4),w.Y36(M.fb),w.Y36(w.sBO))},Je.\u0275cmp=w.Xpm({type:Je,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(Ve,le){2&Ve&&w.ekj("router-component",le.true)},decls:14,vars:10,consts:[[1,"page-subtitle"],[1,"align-elements"],[3,"refresh"],["mat-flat-button","","color","accent","data-cy","create-resource-button","class","me-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","me-2","data-cy","delete-resource-button",3,"disabled","click",4,"ngIf"],[1,"search-select","me-2",3,"services","service","serviceSelected"],[1,"filter-field",3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-flat-button","","color","accent","data-cy","create-resource-button",1,"me-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","delete-resource-button",1,"me-2",3,"disabled","click"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns"]],template:function(Ve,le){if(1&Ve&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),w.NdJ("refresh",function(){return le.refreshTable()}),w.qZA(),w.YNc(6,ne,3,3,"button",3),w.YNc(7,ye,3,4,"button",4),w.TgZ(8,"perun-web-apps-service-search-select",5),w.NdJ("serviceSelected",function(U){return le.serviceSelected(U)}),w.qZA(),w.TgZ(9,"perun-web-apps-immediate-filter",6),w.NdJ("filter",function(U){return le.applyFilter(U)}),w.qZA()(),w.YNc(10,ze,1,0,"ng-template",null,7,w.W1O),w.TgZ(12,"div",8),w.YNc(13,ke,1,6,"perun-web-apps-resources-list",9),w.qZA()()),2&Ve){const N=w.MAs(11);w.xp6(2),w.Oqu(w.lcZ(3,8,"FACILITY_DETAIL.RESOURCES.TITLE")),w.xp6(4),w.Q6J("ngIf",le.addAuth),w.xp6(1),w.Q6J("ngIf",le.removeAuth),w.xp6(1),w.Q6J("services",le.services)("service",le.selectedService),w.xp6(1),w.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),w.xp6(4),w.Q6J("perunWebAppsLoader",le.loading)("perunWebAppsLoaderIndicator",N)}},dependencies:[pe.O5,T.lW,re.K,v.t,V.L,W.C,te.J,J.e,x.X$],styles:[".search-select[_ngcontent-%COMP%]{min-width:325px}.filter-field[_ngcontent-%COMP%]{min-width:250px}.align-elements[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}"]}),Je})()},86353:(Qe,ae,p)=>{"use strict";p.d(ae,{P:()=>N});var e=p(61744),f=p(9244),A=p(10036),S=p(95017),m=p(7274),M=p(80279),w=p(24006),x=p(94650),I=p(89383),F=p(82761),T=p(36895),H=p(3238),P=p(284),J=p(59549),fe=p(4859),j=p(84385),$=p(98380),_e=p(97403),ge=p(73358);function pe(U,X){1&U&&x._UZ(0,"perun-web-apps-loading-dialog")}function re(U,X){if(1&U){const ce=x.EpF();x.TgZ(0,"mat-option",15),x.NdJ("click",function(){const Pe=x.CHM(ce).$implicit,tt=x.oxw(2);return x.KtG(tt.srcFacility=Pe)}),x._uU(1),x.qZA()}if(2&U){const ce=X.$implicit;x.Q6J("value",ce),x.xp6(1),x.hij(" ",ce.name," ")}}function v(U,X){if(1&U){const ce=x.EpF();x.TgZ(0,"div")(1,"h1",2),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"div",3)(5,"mat-form-field")(6,"mat-label"),x._uU(7),x.ALo(8,"translate"),x.qZA(),x._UZ(9,"input",4),x.TgZ(10,"mat-error"),x._uU(11),x.ALo(12,"translate"),x.qZA()(),x.TgZ(13,"mat-form-field")(14,"mat-label"),x._uU(15),x.ALo(16,"translate"),x.qZA(),x._UZ(17,"input",5),x.qZA(),x.TgZ(18,"mat-form-field")(19,"mat-label"),x._uU(20),x.ALo(21,"translate"),x.qZA(),x.TgZ(22,"mat-select",6)(23,"mat-option",7),x.NdJ("click",function(){x.CHM(ce);const ue=x.oxw();return x.KtG(ue.srcFacility=null)}),x._uU(24),x.ALo(25,"translate"),x.qZA(),x.YNc(26,re,2,2,"mat-option",8),x.qZA()(),x.TgZ(27,"perun-web-apps-alert",9),x._UZ(28,"i",10),x.ALo(29,"translate"),x.qZA()(),x.TgZ(30,"div",11)(31,"button",12),x.NdJ("click",function(){x.CHM(ce);const ue=x.oxw();return x.KtG(ue.onCancel())}),x._uU(32),x.ALo(33,"translate"),x.qZA(),x.TgZ(34,"button",13),x.NdJ("click",function(){x.CHM(ce);const ue=x.oxw();return x.KtG(ue.onCreate(!1))}),x._uU(35),x.ALo(36,"translate"),x.qZA(),x.TgZ(37,"button",14),x.NdJ("click",function(){x.CHM(ce);const ue=x.oxw();return x.KtG(ue.onCreate(!0))}),x._uU(38),x.ALo(39,"translate"),x.qZA()()()}if(2&U){const ce=x.oxw();x.xp6(2),x.Oqu(x.lcZ(3,15,"DIALOGS.CREATE_FACILITY.TITLE")),x.xp6(5),x.Oqu(x.lcZ(8,17,"DIALOGS.CREATE_FACILITY.NAME")),x.xp6(2),x.Q6J("formControl",ce.nameControl),x.xp6(2),x.Oqu(x.lcZ(12,19,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),x.xp6(4),x.Oqu(x.lcZ(16,21,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),x.xp6(2),x.Q6J("formControl",ce.descControl),x.xp6(3),x.Oqu(x.lcZ(21,23,"DIALOGS.CREATE_FACILITY.AS_COPY")),x.xp6(4),x.hij(" ",x.lcZ(25,25,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),x.xp6(2),x.Q6J("ngForOf",ce.facilities),x.xp6(2),x.Q6J("innerHTML",x.lcZ(29,27,"DIALOGS.CREATE_FACILITY.HINT"),x.oJD),x.xp6(4),x.hij(" ",x.lcZ(33,29,"DIALOGS.CREATE_FACILITY.CANCEL")," "),x.xp6(2),x.Q6J("disabled",0===ce.nameControl.value.trim().length||ce.loading),x.xp6(1),x.hij(" ",x.lcZ(36,31,"DIALOGS.CREATE_FACILITY.CREATE")," "),x.xp6(2),x.Q6J("disabled",0===ce.nameControl.value.trim().length||!!ce.srcFacility||ce.loading),x.xp6(1),x.hij(" ",x.lcZ(39,33,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," ")}}let V=(()=>{class U{constructor(ce,Me,ue,Pe,tt,Ce,at){this.dialogRef=ce,this.data=Me,this.facilitiesManager=ue,this.notificator=Pe,this.translate=tt,this.router=Ce,this.entityStorageService=at,this.nameControl=new w.p4("",[w.kI.required]),this.descControl=new w.p4(""),this.srcFacility=null,this.loading=!1,this.configure=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(ce=>{this.facilities=ce,this.loading=!1},()=>this.loading=!1)}onCreate(ce){this.loading=!0,this.configure=ce,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe({next:Me=>{this.entityStorageService.setEntity({id:Me.id,beanName:Me.beanName}),sessionStorage.setItem("newFacilityId",String(Me.id)),null!==this.srcFacility?this.copyFacilitySettings(Me.id):this.handleSuccess(Me.id)},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}copyFacilitySettings(ce){this.facilitiesManager.copyAttributes(this.srcFacility.id,ce).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,ce).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,ce).subscribe(()=>{this.handleSuccess(ce)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}handleSuccess(ce){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.configure&&this.router.navigate(["facilities",ce.toString(),"configuration"],{queryParamsHandling:"preserve"}),this.dialogRef.close(!0)}}return U.\u0275fac=function(ce){return new(ce||U)(x.Y36(m.so),x.Y36(m.WI),x.Y36(e.IQ),x.Y36(M.V6),x.Y36(I.sK),x.Y36(F.F0),x.Y36(M.fb))},U.\u0275cmp=x.Xpm({type:U,selectors:[["app-create-facility-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","data-cy","facility-name-input",3,"formControl"],["matInput","","data-cy","facility-description-input",3,"formControl"],["disableOptionCentering","true"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","create-facility-button","color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],[3,"value","click"]],template:function(ce,Me){if(1&ce&&(x.YNc(0,pe,1,0,"ng-template",null,0,x.W1O),x.TgZ(2,"div"),x.YNc(3,v,40,35,"div",1),x.qZA()),2&ce){const ue=x.MAs(1);x.xp6(2),x.Gre("",Me.theme," position-relative"),x.xp6(1),x.Q6J("perunWebAppsLoader",Me.loading)("perunWebAppsLoaderIndicator",ue)}},dependencies:[T.sg,H.ey,P.Nt,J.KE,J.hX,J.TO,w.Fj,w.JJ,w.Q7,w.oH,fe.lW,m.uh,m.xY,m.H8,j.gD,$.w,_e.b,ge.e,I.X$]}),U})();var W=p(54037),te=p(77968),ne=p(97392),ye=p(68530),ze=p(96214),ke=p(4235),$e=p(7434),Je=p(74010);function Fe(U,X){1&U&&x._UZ(0,"perun-web-apps-loading-table")}function Ve(U,X){if(1&U&&x._UZ(0,"perun-web-apps-facilities-list",10),2&U){const ce=x.oxw();x.Q6J("tableId",ce.tableId)("selection",ce.selection)("filterValue",ce.filterValue)("facilities",ce.facilities)("recentIds",ce.recentIds)}}const le=function(){return{color:"black"}};let N=(()=>{class U{constructor(ce,Me,ue){this.facilityManager=ce,this.sideMenuService=Me,this.dialog=ue,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=A.xt,this.selection=new S.Ov(!1,[])}ngOnInit(){this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(ce=>{this.selection.clear(),this.facilities=ce,this.recentIds=(0,f.vL)("facilities"),this.loading=!1})}onCreate(){const ce=(0,f.kZ)();ce.width="800px",ce.data={theme:"facility-theme"},this.dialog.open(V,ce).afterClosed().subscribe(ue=>{ue&&(this.loading=!0,this.refreshTable())})}onDelete(){const ce=(0,f.kZ)();ce.width="500px",ce.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(W.Y,ce).afterClosed().subscribe(ue=>{ue&&this.refreshTable()})}applyFilter(ce){this.filterValue=ce}}return U.id="FacilitySelectPageComponent",U.\u0275fac=function(ce){return new(ce||U)(x.Y36(e.IQ),x.Y36(te.D),x.Y36(m.uw))},U.\u0275cmp=x.Xpm({type:U,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(ce,Me){2&ce&&x.ekj("router-component",Me.true)},decls:18,vars:16,consts:[[1,"container-fluid","ps-xl-5","pe-xl-5","facility-theme"],[1,"page-title","d-flex"],["svgIcon","perun-facility-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["mat-flat-button","","data-cy","new-facility-button","color","accent",1,"action-button","me-2",3,"click"],["mat-flat-button","","data-cy","delete-facility-button","color","warn",1,"me-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"tableId","selection","filterValue","facilities","recentIds",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"tableId","selection","filterValue","facilities","recentIds"]],template:function(ce,Me){if(1&ce&&(x.TgZ(0,"div",0),x._UZ(1,"perun-web-apps-back-button"),x.TgZ(2,"h1",1),x._UZ(3,"mat-icon",2),x._uU(4),x.ALo(5,"translate"),x.qZA(),x.TgZ(6,"perun-web-apps-refresh-button",3),x.NdJ("refresh",function(){return Me.refreshTable()}),x.qZA(),x.TgZ(7,"button",4),x.NdJ("click",function(){return Me.onCreate()}),x._uU(8),x.ALo(9,"translate"),x.qZA(),x.TgZ(10,"button",5),x.NdJ("click",function(){return Me.onDelete()}),x._uU(11),x.ALo(12,"translate"),x.qZA(),x.TgZ(13,"perun-web-apps-immediate-filter",6),x.NdJ("filter",function(Pe){return Me.applyFilter(Pe)}),x.qZA(),x.YNc(14,Fe,1,0,"ng-template",null,7,x.W1O),x.TgZ(16,"div",8),x.YNc(17,Ve,1,5,"perun-web-apps-facilities-list",9),x.qZA()()),2&ce){const ue=x.MAs(15);x.xp6(3),x.Q6J("ngStyle",x.DdM(15,le)),x.xp6(1),x.hij(" ",x.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),x.xp6(4),x.hij(" ",x.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),x.xp6(2),x.Q6J("disabled",0===Me.selection.selected.length),x.xp6(1),x.hij(" ",x.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),x.xp6(2),x.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),x.xp6(4),x.Q6J("perunWebAppsLoader",Me.loading)("perunWebAppsLoaderIndicator",ue)}},dependencies:[T.PC,ne.Hw,fe.lW,ye.K,ze.t,ke.W,$e.L,Je.X,ge.e,I.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),U})()},39158:(Qe,ae,p)=>{"use strict";p.d(ae,{l:()=>T});var e=p(94650),f=p(45323),A=p(80279),S=p(36895),m=p(24006),M=p(10266),w=p(71948),x=p(74250),I=p(89383);function F(H,P){if(1&H){const J=e.EpF();e.TgZ(0,"div")(1,"perun-web-apps-user-search-select",6),e.NdJ("userSelected",function(j){e.CHM(J);const $=e.oxw();return e.KtG($.selectSponsor(j))}),e.qZA()()}if(2&H){const J=e.oxw();e.xp6(1),e.Q6J("disableAutoSelect",!0)("users",J.voSponsors)}}let T=(()=>{class H{constructor(J){this.guiAuthResolver=J,this.voSponsors=[],this.sponsorTypeSelected=new e.vpe,this.sponsorSelected=new e.vpe,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.selectedSponsor=null}ngOnInit(){this.isSponsor=this.guiAuthResolver.principalHasRole(f.u.SPONSOR,"Vo",this.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.emitSponsorType()}emitSponsorType(){"self"===this.sponsorType&&this.selectSponsor(null),this.sponsorTypeSelected.emit(this.sponsorType)}selectSponsor(J){this.selectedSponsor=J,this.sponsorSelected.emit(J)}}return H.\u0275fac=function(J){return new(J||H)(e.Y36(A.x4))},H.\u0275cmp=e.Xpm({type:H,selectors:[["app-choose-sponsor"]],inputs:{voId:"voId",voSponsors:"voSponsors"},outputs:{sponsorTypeSelected:"sponsorTypeSelected",sponsorSelected:"sponsorSelected"},decls:16,vars:21,consts:[[1,"mt-4"],[1,"dialog-container",3,"ngModel","ngModelChange"],["matTooltipPosition","before",3,"matTooltip","matTooltipDisabled"],["value","self",3,"disabled","click"],["value","other",3,"disabled"],[4,"ngIf"],[3,"disableAutoSelect","users","userSelected"]],template:function(J,fe){1&J&&(e.TgZ(0,"div",0)(1,"h6"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-radio-group",1),e.NdJ("ngModelChange",function($){return fe.sponsorType=$})("ngModelChange",function(){return fe.emitSponsorType()}),e.TgZ(5,"span",2),e.ALo(6,"translate"),e.TgZ(7,"mat-radio-button",3),e.NdJ("click",function(){return fe.selectedSponsor=null}),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"span",2),e.ALo(11,"translate"),e.TgZ(12,"mat-radio-button",4),e._uU(13),e.ALo(14,"translate"),e.qZA()()(),e.YNc(15,F,2,2,"div",5),e.qZA()),2&J&&(e.xp6(2),e.Oqu(e.lcZ(3,11,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),e.xp6(2),e.Q6J("ngModel",fe.sponsorType),e.xp6(1),e.s9C("matTooltip",e.lcZ(6,13,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),e.Q6J("matTooltipDisabled",fe.isSponsor),e.xp6(2),e.Q6J("disabled",!fe.isSponsor),e.xp6(1),e.hij(" ",e.lcZ(9,15,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),e.xp6(2),e.s9C("matTooltip",e.lcZ(11,17,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),e.Q6J("matTooltipDisabled",fe.isPerunAdmin),e.xp6(2),e.Q6J("disabled",!fe.isPerunAdmin),e.xp6(1),e.hij(" ",e.lcZ(14,19,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),e.xp6(2),e.Q6J("ngIf","other"===fe.sponsorType))},dependencies:[S.O5,m.JJ,m.On,M.gM,w.VQ,w.U0,x.S,I.X$]}),H})()},93657:(Qe,ae,p)=>{"use strict";p.d(ae,{J:()=>$});var e=p(7274),f=p(80279),A=p(61744),S=p(9244),m=p(24006),M=p(94650),w=p(89383),x=p(36895),I=p(3238),F=p(284),T=p(59549),H=p(4859),P=p(84385),J=p(57706);function fe(_e,ge){if(1&_e&&(M.TgZ(0,"mat-option",9),M._uU(1),M.ALo(2,"applicationFormItemType"),M.qZA()),2&_e){const pe=ge.$implicit;M.Q6J("value",pe),M.xp6(1),M.hij(" ",M.lcZ(2,2,pe)," ")}}function j(_e,ge){if(1&_e&&(M.TgZ(0,"mat-option",9),M._uU(1),M.qZA()),2&_e){const pe=ge.$implicit;M.Q6J("value",pe),M.xp6(1),M.hij(" ",pe," ")}}let $=(()=>{class _e{constructor(pe,re,v,V){this.dialogRef=pe,this.data=re,this.translateService=v,this.store=V,this.languages=this.store.getProperty("supported_languages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","HTML_COMMENT","TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(pe=>{this.nameCtrl=new m.p4("",[m.kI.required,m.kI.pattern(".*[\\S]+.*"),m.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(pe);for(const re of this.data.applicationFormItems)this.items.push(re.shortname),re.type===A.Dy.EMBEDDED_GROUP_APPLICATION&&(this.widgets=this.widgets.filter(v=>v!==A.Dy.EMBEDDED_GROUP_APPLICATION));this.selectedItem=pe})}setInputWidgetHeight(pe){return Math.ceil(pe/80)+2.5}cancel(){this.dialogRef.close(void 0)}submit(){const pe=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,pe])}createApplicationItem(){const pe=(0,S.dv)(this.languages);pe.id=this.data.fakeId,pe.shortname=this.nameCtrl.value,pe.type=this.selectedWidget;for(let re=0;re{"use strict";p.d(ae,{W:()=>P});var e=p(7274),f=p(61744),A=p(80279),S=p(94650),m=p(89383),M=p(4859),w=p(97403),x=p(62707),I=p(82322),F=p(73358);function T(J,fe){1&J&&S._UZ(0,"perun-web-apps-loading-dialog")}function H(J,fe){if(1&J){const j=S.EpF();S.TgZ(0,"div")(1,"h1",2),S._uU(2),S.ALo(3,"translate"),S.qZA(),S.TgZ(4,"div",3)(5,"div",4),S._uU(6),S.ALo(7,"translate"),S.qZA(),S._uU(8),S.ALo(9,"translate"),S.TgZ(10,"perun-web-apps-vo-search-select",5),S.NdJ("voSelected",function(_e){S.CHM(j);const ge=S.oxw();return S.KtG(ge.voSelected(_e))}),S.qZA(),S._uU(11),S.ALo(12,"translate"),S.TgZ(13,"perun-web-apps-group-search-select",6),S.NdJ("groupSelected",function(_e){S.CHM(j);const ge=S.oxw();return S.KtG(ge.selectedGroup=_e)}),S.qZA()(),S.TgZ(14,"div",7)(15,"button",8),S.NdJ("click",function(){S.CHM(j);const _e=S.oxw();return S.KtG(_e.cancel())}),S._uU(16),S.ALo(17,"translate"),S.qZA(),S.TgZ(18,"button",9),S.NdJ("click",function(){S.CHM(j);const _e=S.oxw();return S.KtG(_e.submit())}),S._uU(19),S.ALo(20,"translate"),S.qZA()()()}if(2&J){const j=S.oxw();S.xp6(2),S.Oqu(S.lcZ(3,10,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),S.xp6(4),S.hij(" ",S.lcZ(7,12,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")," "),S.xp6(2),S.hij(" ",S.lcZ(9,14,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),S.xp6(2),S.Q6J("vos",j.vos),S.xp6(1),S.hij(" ",S.lcZ(12,16,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),S.xp6(2),S.Q6J("groups",j.groups)("disableAutoSelect",!0),S.xp6(3),S.hij(" ",S.lcZ(17,18,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),S.xp6(2),S.Q6J("disabled",!j.selectedVo&&!j.selectedGroup||j.loading),S.xp6(1),S.hij(" ",S.lcZ(20,20,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," ")}}let P=(()=>{class J{constructor(j,$,_e,ge,pe,re,v,V,W){this.dialogRef=j,this.voService=$,this.groupService=_e,this.translateService=ge,this.registrarManager=pe,this.notificatorService=re,this.apiRequest=v,this.cd=V,this.data=W,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=te=>te.name,ge.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(te=>this.successMessage=te),ge.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(te=>this.privilegeMessage=te),ge.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(te=>this.noFormMessage=te)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(()=>{this.voService.getMyVos().subscribe(j=>{this.vos=j,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.apiRequest.dontHandleErrorForNext(),this.loading=!0,this.data.groupId?null===this.selectedGroup?this.registrarManager.copyFormFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},j=>{"FormNotExistsException"===j.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===j.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},j=>{"FormNotExistsException"===j.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===j.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):null===this.selectedGroup?this.registrarManager.copyFormFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},j=>{"FormNotExistsException"===j.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===j.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},j=>{"FormNotExistsException"===j.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===j.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(j){this.selectedVo=j,this.cd.detectChanges(),this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(j=>{this.groups=j}):this.groups=[],this.selectedGroup=null}}return J.\u0275fac=function(j){return new(j||J)(S.Y36(e.so),S.Y36(f.YF),S.Y36(f.ff),S.Y36(m.sK),S.Y36(f.tk),S.Y36(A.V6),S.Y36(A.F5),S.Y36(S.sBO),S.Y36(e.WI))},J.\u0275cmp=S.Xpm({type:J,selectors:[["app-application-form-copy-items-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(j,$){if(1&j&&(S.YNc(0,T,1,0,"ng-template",null,0,S.W1O),S.TgZ(2,"div"),S.YNc(3,H,21,22,"div",1),S.qZA()),2&j){const _e=S.MAs(1);S.xp6(2),S.Gre("",$.theme," position-relative"),S.xp6(1),S.Q6J("perunWebAppsLoader",$.loading)("perunWebAppsLoaderIndicator",_e)}},dependencies:[M.lW,e.uh,e.xY,e.H8,w.b,x.M,I.h,F.e,m.X$]}),J})()},23325:(Qe,ae,p)=>{"use strict";p.d(ae,{a:()=>ge});var e=p(61744),f=p(7274),A=p(80279),S=p(24006),m=p(94650),M=p(36895),w=p(3238),x=p(59549),I=p(4859),F=p(84385),T=p(98380),H=p(97403),P=p(73358),J=p(89383),fe=p(77749);function j(pe,re){1&pe&&m._UZ(0,"perun-web-apps-loading-dialog")}function $(pe,re){if(1&pe&&(m.TgZ(0,"mat-option",13),m._uU(1),m.ALo(2,"applicationColumnSelectLabel"),m.qZA()),2&pe){const v=re.$implicit,V=m.oxw(2);m.Tol(V.theme),m.Q6J("value",v),m.xp6(1),m.hij(" ",m.lcZ(2,5,v)," ")}}function _e(pe,re){if(1&pe){const v=m.EpF();m.TgZ(0,"div")(1,"h1",2),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",3)(5,"perun-web-apps-alert",4),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"mat-form-field",5)(9,"mat-label"),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.TgZ(12,"mat-select",6),m.NdJ("closed",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.attribute.value=W.selectedColumns.value)}),m.YNc(13,$,3,7,"mat-option",7),m.qZA()(),m.TgZ(14,"perun-web-apps-alert",8),m._uU(15),m.ALo(16,"translate"),m.qZA()(),m.TgZ(17,"div",9)(18,"button",10),m.NdJ("click",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.cancel())}),m._uU(19),m.ALo(20,"translate"),m.qZA(),m.TgZ(21,"button",11),m.NdJ("click",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.default())}),m._uU(22),m.ALo(23,"translate"),m.qZA(),m.TgZ(24,"button",12),m.NdJ("click",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.confirm())}),m._uU(25),m.ALo(26,"translate"),m.qZA()()()}if(2&pe){const v=m.oxw();m.xp6(2),m.Oqu(m.lcZ(3,10,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.TITLE")),m.xp6(4),m.hij(" ",m.lcZ(7,12,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.WARN")," "),m.xp6(4),m.Oqu(m.lcZ(11,14,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.FILTER_COLUMNS")),m.xp6(2),m.Q6J("formControl",v.selectedColumns),m.xp6(1),m.Q6J("ngForOf",v.columnOptions),m.xp6(2),m.hij(" ",m.lcZ(16,16,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.DEFAULT_TEXT")," "),m.xp6(4),m.hij(" ",m.lcZ(20,18,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.CANCEL")," "),m.xp6(3),m.hij(" ",m.lcZ(23,20,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.DEFAULT")," "),m.xp6(2),m.Q6J("disabled",v.loading),m.xp6(1),m.hij(" ",m.lcZ(26,22,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.CONFIRM")," ")}}let ge=(()=>{class pe{constructor(v,V,W,te,ne){this.dialogRef=v,this.attributesManager=V,this.data=W,this.translate=te,this.notificator=ne,this.loading=!1,this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.columnOptions=["createdAt","type","state","createdBy","modifiedBy"],this.selectedColumns=new S.NI([])}ngOnInit(){this.theme=this.data.theme,this.data.groupId?this.attributesManager.getIdpAttributeDefinitions().subscribe(v=>{v.forEach(V=>{this.columnOptions.push(V.friendlyName)}),this.attributesManager.getGroupAttributeByName(this.data.groupId,"urn:perun:group:attribute-def:def:applicationViewPreferences").subscribe(V=>{this.attribute=V;const W=V.value;this.selectedColumns.setValue(null!==W&&W.length>0?W:this.simpleColumns)})}):this.attributesManager.getIdpAttributeDefinitions().subscribe(v=>{v.forEach(V=>{this.columnOptions.push(V.friendlyName)}),this.attributesManager.getVoAttributeByName(this.data.voId,"urn:perun:vo:attribute-def:def:applicationViewPreferences").subscribe(V=>{this.attribute=V;const W=V.value;this.selectedColumns.setValue(null!==W&&W.length>0?W:this.simpleColumns)})})}confirm(){this.data.groupId?this.changeGroupAttribute():this.changeVoAttribute()}cancel(){this.dialogRef.close(!1)}default(){this.attribute.value=[],this.confirm()}changeVoAttribute(){this.loading=!0,this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.attribute}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.SUCCESS"))},error:()=>{this.loading=!1}})}changeGroupAttribute(){this.loading=!0,this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.attribute}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.SUCCESS"))},error:()=>{this.loading=!1}})}}return pe.\u0275fac=function(v){return new(v||pe)(m.Y36(f.so),m.Y36(e.H8),m.Y36(f.WI),m.Y36(A.Te),m.Y36(A.V6))},pe.\u0275cmp=m.Xpm({type:pe,selectors:[["app-applications-list-columns-change-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","warn"],[1,"w-100"],["multiple","",3,"formControl","closed"],[3,"class","value",4,"ngFor","ngForOf"],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],[3,"value"]],template:function(v,V){if(1&v&&(m.YNc(0,j,1,0,"ng-template",null,0,m.W1O),m.TgZ(2,"div"),m.YNc(3,_e,27,24,"div",1),m.qZA()),2&v){const W=m.MAs(1);m.xp6(2),m.Gre("",V.theme," position-relative"),m.xp6(1),m.Q6J("perunWebAppsLoader",V.loading)("perunWebAppsLoaderIndicator",W)}},dependencies:[M.sg,w.ey,x.KE,x.hX,S.JJ,S.oH,I.lW,f.uh,f.xY,f.H8,F.gD,T.w,H.b,P.e,J.X$,fe.K]}),pe})()},94742:(Qe,ae,p)=>{"use strict";p.d(ae,{F:()=>Je});var e=p(24006),f=p(9244),A=p(7274),S=p(80279),m=p(61744),M=p(94650),w=p(36895),x=p(3238),I=p(284),F=p(59549),T=p(4859),H=p(84385),P=p(98380),J=p(97403),fe=p(73358),j=p(89383);function $(Fe,Ve){1&Fe&&M._UZ(0,"perun-web-apps-loading-dialog")}function _e(Fe,Ve){1&Fe&&(M.TgZ(0,"div",15),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&Fe&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.DESCRIPTION_VO")," "))}function ge(Fe,Ve){1&Fe&&(M.TgZ(0,"div",15),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&Fe&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.DESCRIPTION_GROUP")," "))}function pe(Fe,Ve){if(1&Fe&&(M.TgZ(0,"mat-option",16),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"uppercase"),M.qZA()),2&Fe){const le=Ve.$implicit;M.s9C("value",le),M.xp6(1),M.hij(" ",M.lcZ(2,2,M.lcZ(3,4,"SHARED_LIB.LANGUAGES."+le))," ")}}function re(Fe,Ve){1&Fe&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&Fe&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.NAMES_ERROR")," "))}function v(Fe,Ve){if(1&Fe&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&Fe){const le=M.oxw(3);M.xp6(1),M.AsE(" ",M.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.ERROR_FORMAT"),": ",le.invitedMembers.getError("invalidFormat").value," ")}}function V(Fe,Ve){if(1&Fe&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&Fe){const le=M.oxw(3);M.xp6(1),M.AsE(" ",M.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.ERROR_EMAIL"),": ",le.invitedMembers.getError("invalidEmail").value," ")}}function W(Fe,Ve){if(1&Fe){const le=M.EpF();M.TgZ(0,"div"),M.YNc(1,_e,3,3,"div",8),M.YNc(2,ge,3,3,"div",8),M.TgZ(3,"mat-form-field",9)(4,"mat-label"),M._uU(5),M.ALo(6,"translate"),M.qZA(),M.TgZ(7,"mat-select",10),M.NdJ("valueChange",function(U){M.CHM(le);const X=M.oxw(2);return M.KtG(X.currentLanguage=U)}),M.YNc(8,pe,4,6,"mat-option",11),M.qZA()(),M._UZ(9,"p",12),M.ALo(10,"translate"),M.TgZ(11,"mat-form-field",13)(12,"mat-label"),M._uU(13),M.ALo(14,"translate"),M.qZA(),M.TgZ(15,"textarea",14),M.ALo(16,"translate"),M._uU(17," "),M.qZA(),M.YNc(18,re,3,3,"mat-error",4),M.YNc(19,v,3,4,"mat-error",4),M.YNc(20,V,3,4,"mat-error",4),M.qZA()()}if(2&Fe){const le=M.oxw(2);M.xp6(1),M.Q6J("ngIf",!le.data.groupId),M.xp6(1),M.Q6J("ngIf",le.data.groupId),M.xp6(3),M.Oqu(M.lcZ(6,12,"DIALOGS.BULK_INVITE_MEMBERS.LANGUAGE")),M.xp6(2),M.Q6J("value",le.currentLanguage),M.xp6(1),M.Q6J("ngForOf",le.languages),M.xp6(1),M.Q6J("innerHTML",M.lcZ(10,14,"DIALOGS.BULK_INVITE_MEMBERS.HINT"),M.oJD),M.xp6(4),M.Oqu(M.lcZ(14,16,"DIALOGS.BULK_INVITE_MEMBERS.INSERT_HERE")),M.xp6(2),M.s9C("placeholder",M.lcZ(16,18,"DIALOGS.BULK_INVITE_MEMBERS.PLACEHOLDER")),M.Q6J("formControl",le.invitedMembers),M.xp6(3),M.Q6J("ngIf",le.invitedMembers.hasError("required")),M.xp6(1),M.Q6J("ngIf",le.invitedMembers.hasError("invalidFormat")),M.xp6(1),M.Q6J("ngIf",le.invitedMembers.hasError("invalidEmail"))}}function te(Fe,Ve){1&Fe&&(M.TgZ(0,"perun-web-apps-alert",18),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&Fe&&(M.Q6J("alert_type","success"),M.xp6(1),M.hij(" ",M.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.SUCCESS")," "))}function ne(Fe,Ve){1&Fe&&(M.TgZ(0,"perun-web-apps-alert",18),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&Fe&&(M.Q6J("alert_type","warn"),M.xp6(1),M.hij(" ",M.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.FINISHED_WITH_ERRORS")," "))}function ye(Fe,Ve){if(1&Fe&&(M.TgZ(0,"div"),M.YNc(1,te,3,4,"perun-web-apps-alert",17),M.YNc(2,ne,3,4,"perun-web-apps-alert",17),M.qZA()),2&Fe){const le=M.oxw(2);M.xp6(1),M.Q6J("ngIf",!le.finishedWithErrors),M.xp6(1),M.Q6J("ngIf",le.finishedWithErrors)}}function ze(Fe,Ve){if(1&Fe){const le=M.EpF();M.TgZ(0,"button",19),M.NdJ("click",function(){M.CHM(le);const U=M.oxw(2);return M.KtG(U.onSubmit())}),M._uU(1),M.ALo(2,"translate"),M.qZA()}if(2&Fe){const le=M.oxw(2);M.Q6J("disabled",le.loading||le.invitedMembers.invalid),M.xp6(1),M.hij(" ",M.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.INVITE")," ")}}function ke(Fe,Ve){if(1&Fe){const le=M.EpF();M.TgZ(0,"button",19),M.NdJ("click",function(){M.CHM(le);const U=M.oxw(2);return M.KtG(U.downloadCsv())}),M._uU(1),M.ALo(2,"translate"),M.qZA()}if(2&Fe){const le=M.oxw(2);M.Q6J("disabled",!le.resultData),M.xp6(1),M.hij(" ",M.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.DOWNLOAD_CSV")," ")}}function $e(Fe,Ve){if(1&Fe){const le=M.EpF();M.TgZ(0,"div")(1,"h1",2),M._uU(2),M.ALo(3,"translate"),M.qZA(),M.TgZ(4,"div",3),M.YNc(5,W,21,20,"div",4),M.qZA(),M.YNc(6,ye,3,2,"div",4),M.TgZ(7,"div",5)(8,"button",6),M.NdJ("click",function(){M.CHM(le);const U=M.oxw();return M.KtG(U.onCancel())}),M._uU(9),M.ALo(10,"translate"),M.qZA(),M.YNc(11,ze,3,4,"button",7),M.YNc(12,ke,3,4,"button",7),M.qZA()()}if(2&Fe){const le=M.oxw();M.xp6(2),M.Oqu(M.lcZ(3,6,"DIALOGS.BULK_INVITE_MEMBERS.TITLE")),M.xp6(3),M.Q6J("ngIf","input"===le.state),M.xp6(1),M.Q6J("ngIf","results"===le.state),M.xp6(3),M.hij(" ",M.lcZ(10,8,"DIALOGS.BULK_INVITE_MEMBERS.CANCEL")," "),M.xp6(2),M.Q6J("ngIf","input"===le.state),M.xp6(1),M.Q6J("ngIf","results"===le.state)}}let Je=(()=>{class Fe{constructor(le,N,U,X){this.dialogRef=le,this.data=N,this.store=U,this.registrarManager=X,this.invitedMembers=new e.NI("",[e.kI.required,this.userInputValidator()]),this.languages=this.store.getProperty("supported_languages"),this.currentLanguage="en",this.loading=!1,this.state="input"}static didSomeInviteFail(le){for(const N in le)if("OK"!==le[N])return!0;return!1}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const le=this.invitedMembers.value.split("\n"),N=[];for(const X of le)N.push(this.parseMemberLine(X));const U={invitationData:N,voId:this.data.voId,language:this.currentLanguage};void 0!==this.data.groupId&&(U.groupId=this.data.groupId),this.registrarManager.sendInvitationsFromCsv(U).subscribe({next:X=>{this.state="results",this.finishedWithErrors=Fe.didSomeInviteFail(X),this.resultData=X,this.loading=!1},error:()=>{this.loading=!1}})}downloadCsv(){(0,f.O6)(this.generateOutputData(this.resultData),"csv","member-invites")}generateOutputData(le){const N=[];for(const U in le)N.push({email:U,status:le[U]});return N}parseMemberLine(le){const N=le.trim();if(""===N)return"";const U=N.split(";");if(U.length>2||0===U.length)return"format";if(!U[0].trim().match(f.B2))return"email";let X="";for(const ce of U)X+=ce.trim()+";";return X.slice(0,-1)}userInputValidator(){return le=>{const N=le.value.split("\n");for(const U of N){const X=this.parseMemberLine(U);let ce=U;if(U.length>25&&(ce=U.substring(0,25)+"..."),"format"===X)return{invalidFormat:{value:ce}};if("email"===X)return{invalidEmail:{value:ce}}}return null}}}return Fe.\u0275fac=function(le){return new(le||Fe)(M.Y36(A.so),M.Y36(A.WI),M.Y36(S.d6),M.Y36(m.tk))},Fe.\u0275cmp=M.Xpm({type:Fe,selectors:[["app-bulk-invite-members-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["class","ms-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","font-italic",4,"ngIf"],[1,"w-100","pt-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML"],[1,"pt-2","flex-container"],["cols","50","required","","matInput","","rows","8",1,"md-textarea","form-control",3,"formControl","placeholder"],[1,"font-italic"],[3,"value"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(le,N){if(1&le&&(M.YNc(0,$,1,0,"ng-template",null,0,M.W1O),M.TgZ(2,"div"),M.YNc(3,$e,13,10,"div",1),M.qZA()),2&le){const U=M.MAs(1);M.xp6(2),M.Gre("",N.data.theme," position-relative"),M.xp6(1),M.Q6J("perunWebAppsLoader",N.loading)("perunWebAppsLoaderIndicator",U)}},dependencies:[w.sg,w.O5,x.ey,I.Nt,F.KE,F.hX,F.TO,e.Fj,e.JJ,e.Q7,e.oH,T.lW,A.uh,A.xY,A.H8,H.gD,P.w,J.b,fe.e,w.gd,j.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Fe})()},40009:(Qe,ae,p)=>{"use strict";p.d(ae,{R:()=>fe});var e=p(7274),f=p(80279),A=p(24006),S=p(61744),m=p(94650),M=p(89383),w=p(284),x=p(59549),I=p(4859),F=p(56709),T=p(97403),H=p(73358);function P(j,$){1&j&&m._UZ(0,"perun-web-apps-loading-dialog")}function J(j,$){if(1&j){const _e=m.EpF();m.TgZ(0,"div")(1,"h1",2),m._uU(2),m.qZA(),m.TgZ(3,"div",3)(4,"mat-form-field")(5,"mat-label"),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"input",4),m.NdJ("change",function(){m.CHM(_e);const pe=m.oxw();return m.KtG(pe.makePath())}),m.qZA(),m.TgZ(9,"mat-error"),m._uU(10),m.ALo(11,"translate"),m.qZA()(),m.TgZ(12,"mat-form-field")(13,"mat-label"),m._uU(14),m.ALo(15,"translate"),m.qZA(),m.TgZ(16,"input",5),m.NdJ("ngModelChange",function(pe){m.CHM(_e);const re=m.oxw();return m.KtG(re.description=pe)}),m.qZA()(),m.TgZ(17,"mat-form-field")(18,"mat-label"),m._uU(19),m.ALo(20,"translate"),m.qZA(),m._UZ(21,"input",6),m.TgZ(22,"mat-error"),m._uU(23),m.ALo(24,"translate"),m.qZA()(),m.TgZ(25,"mat-form-field")(26,"mat-label"),m._uU(27),m.ALo(28,"translate"),m.qZA(),m._UZ(29,"input",6),m.TgZ(30,"mat-error"),m._uU(31),m.ALo(32,"translate"),m.qZA()(),m.TgZ(33,"mat-form-field")(34,"mat-label"),m._uU(35),m.ALo(36,"translate"),m.qZA(),m._UZ(37,"input",6),m.TgZ(38,"mat-error"),m._uU(39),m.ALo(40,"translate"),m.qZA()(),m.TgZ(41,"div"),m._uU(42),m.ALo(43,"translate"),m.TgZ(44,"mat-checkbox",7),m.NdJ("ngModelChange",function(pe){m.CHM(_e);const re=m.oxw();return m.KtG(re.status=pe)}),m._uU(45),m.ALo(46,"translate"),m.qZA()(),m.TgZ(47,"span",8),m._uU(48),m.ALo(49,"translate"),m.TgZ(50,"mat-checkbox",7),m.NdJ("ngModelChange",function(pe){m.CHM(_e);const re=m.oxw();return m.KtG(re.propagateExpiredMembers=pe)}),m._uU(51),m.ALo(52,"translate"),m.qZA()()(),m.TgZ(53,"div",9)(54,"button",10),m.NdJ("click",function(){m.CHM(_e);const pe=m.oxw();return m.KtG(pe.onCancel())}),m._uU(55),m.ALo(56,"translate"),m.qZA(),m.TgZ(57,"button",11),m.NdJ("click",function(){m.CHM(_e);const pe=m.oxw();return m.KtG(pe.asEdit?pe.onEdit():pe.onCreate())}),m._uU(58),m.qZA()()()}if(2&j){const _e=m.oxw();m.xp6(2),m.Oqu(_e.title),m.xp6(4),m.Oqu(m.lcZ(7,24,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),m.xp6(2),m.Q6J("formControl",_e.nameControl),m.xp6(2),m.Oqu(m.lcZ(11,26,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),m.xp6(4),m.Oqu(m.lcZ(15,28,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),m.xp6(2),m.Q6J("ngModel",_e.description),m.xp6(3),m.Oqu(m.lcZ(20,30,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),m.xp6(2),m.Q6J("formControl",_e.delayControl),m.xp6(2),m.Oqu(m.lcZ(24,32,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),m.xp6(4),m.Oqu(m.lcZ(28,34,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),m.xp6(2),m.Q6J("formControl",_e.recurrenceControl),m.xp6(2),m.Oqu(m.lcZ(32,36,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),m.xp6(4),m.Oqu(m.lcZ(36,38,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),m.xp6(2),m.Q6J("formControl",_e.pathControl),m.xp6(2),m.Oqu(m.lcZ(40,40,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),m.xp6(3),m.hij(" ",m.lcZ(43,42,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),m.xp6(2),m.Q6J("ngModel",_e.status),m.xp6(1),m.Oqu(m.lcZ(46,44,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT")),m.xp6(3),m.hij("",m.lcZ(49,46,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS")," "),m.xp6(2),m.Q6J("ngModel",_e.propagateExpiredMembers),m.xp6(1),m.Oqu(m.lcZ(52,48,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS_HINT")),m.xp6(4),m.hij(" ",m.lcZ(56,50,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),m.xp6(2),m.Q6J("disabled",_e.nameControl.invalid||_e.delayControl.invalid||_e.recurrenceControl.invalid||_e.pathControl.invalid||_e.loading),m.xp6(1),m.hij(" ",_e.buttonText," ")}}let fe=(()=>{class j{constructor(_e,ge,pe,re,v){this.dialogRef=_e,this.data=ge,this.serviceManager=pe,this.notificator=re,this.translate=v,this.loading=!1,this.status=!0,this.propagateExpiredMembers=!0,this.nameControl=new A.p4("",[A.kI.required,A.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new A.p4(10,[A.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new A.p4(2,[A.kI.pattern("^[0-9]*$")]),this.pathControl=new A.p4("",[A.kI.required]),this.asEdit=!1}ngOnInit(){this.theme=this.data.theme,this.asEdit=void 0!==this.data.service,this.asEdit?(this.nameControl.setValue(this.data.service.name),this.description=this.data.service.description,this.delayControl.setValue(this.data.service.delay),this.recurrenceControl.setValue(this.data.service.recurrence),this.pathControl.setValue(this.data.service.script),this.status=this.data.service.enabled,this.propagateExpiredMembers=this.data.service.useExpiredMembers,this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT")):(this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE"))}onCreate(){this.loading=!0,this.serviceManager.createServiceWithService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onEdit(){this.loading=!0,this.serviceManager.updateService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:this.data.service.id,beanName:this.data.service.beanName}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}makePath(){const _e="./".concat(this.nameControl.value);this.pathControl.setValue(_e)}}return j.\u0275fac=function(_e){return new(_e||j)(m.Y36(e.so),m.Y36(e.WI),m.Y36(S.KK),m.Y36(f.V6),m.Y36(M.sK))},j.\u0275cmp=m.Xpm({type:j,selectors:[["app-create-service-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","service-name-input","required","",3,"formControl","change"],["matInput","","data-cy","service-description-input",3,"ngModel","ngModelChange"],["matInput","","required","",3,"formControl"],[1,"ms-3",3,"ngModel","ngModelChange"],[1,"d-flex","align-elements"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","data-cy","service-create-edit-dialog-button","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(_e,ge){if(1&_e&&(m.YNc(0,P,1,0,"ng-template",null,0,m.W1O),m.TgZ(2,"div"),m.YNc(3,J,59,52,"div",1),m.qZA()),2&_e){const pe=m.MAs(1);m.xp6(2),m.Gre("",ge.theme," position-relative"),m.xp6(1),m.Q6J("perunWebAppsLoader",ge.loading)("perunWebAppsLoaderIndicator",pe)}},dependencies:[w.Nt,x.KE,x.hX,x.TO,A.Fj,A.JJ,A.Q7,A.oH,A.On,I.lW,F.oG,e.uh,e.xY,e.H8,T.b,H.e,M.X$]}),j})()},81889:(Qe,ae,p)=>{"use strict";p.d(ae,{y:()=>ge});var e=p(7274),f=p(80279),A=p(61744),S=p(24006),m=p(94650),M=p(89383),w=p(36895),x=p(284),I=p(59549),F=p(4859),T=p(56709),H=p(97403),P=p(82322),J=p(73358);function fe(pe,re){1&pe&&m._UZ(0,"perun-web-apps-loading-dialog")}function j(pe,re){if(1&pe){const v=m.EpF();m.TgZ(0,"mat-checkbox",12),m.NdJ("ngModelChange",function(W){m.CHM(v);const te=m.oxw(2);return m.KtG(te.asSubgroup=W)})("click",function(){m.CHM(v);const W=m.oxw(2);return m.KtG(W.loadVoGroups())}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&pe){const v=m.oxw(2);m.Q6J("ngModel",v.asSubgroup)("labelPosition","before"),m.xp6(1),m.hij(" ",m.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function $(pe,re){if(1&pe){const v=m.EpF();m.TgZ(0,"perun-web-apps-group-search-select",13),m.NdJ("groupSelected",function(W){m.CHM(v);const te=m.oxw(2);return m.KtG(te.selectedParent=W)}),m.qZA()}if(2&pe){const v=m.oxw(2);m.Q6J("disableAutoSelect",!0)("groups",v.voGroups)}}function _e(pe,re){if(1&pe){const v=m.EpF();m.TgZ(0,"div")(1,"h1",2),m._uU(2),m.qZA(),m.TgZ(3,"div",3)(4,"mat-form-field")(5,"mat-label"),m._uU(6),m.ALo(7,"translate"),m.qZA(),m._UZ(8,"input",4),m.TgZ(9,"mat-error"),m._uU(10),m.ALo(11,"translate"),m.qZA()(),m.TgZ(12,"mat-form-field",5)(13,"mat-label"),m._uU(14),m.ALo(15,"translate"),m.qZA(),m.TgZ(16,"textarea",6),m._uU(17," "),m.qZA()(),m.YNc(18,j,3,5,"mat-checkbox",7),m.YNc(19,$,1,2,"perun-web-apps-group-search-select",8),m.qZA(),m.TgZ(20,"div",9)(21,"button",10),m.NdJ("click",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.onCancel())}),m._uU(22),m.ALo(23,"translate"),m.qZA(),m.TgZ(24,"button",11),m.NdJ("click",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.onSubmit())}),m._uU(25),m.ALo(26,"translate"),m.qZA()()()}if(2&pe){const v=m.oxw();m.xp6(2),m.Oqu(v.title),m.xp6(4),m.Oqu(m.lcZ(7,11,"DIALOGS.CREATE_GROUP.NAME")),m.xp6(2),m.Q6J("formControl",v.nameControl),m.xp6(2),m.hij(" ",v.invalidNameMessage.length?v.invalidNameMessage:m.lcZ(11,13,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),m.xp6(4),m.Oqu(m.lcZ(15,15,"DIALOGS.CREATE_GROUP.DESCRIPTION")),m.xp6(2),m.Q6J("formControl",v.descriptionControl),m.xp6(2),m.Q6J("ngIf",v.isNotSubGroup),m.xp6(1),m.Q6J("ngIf",v.asSubgroup),m.xp6(3),m.hij(" ",m.lcZ(23,17,"DIALOGS.CREATE_GROUP.CANCEL")," "),m.xp6(2),m.Q6J("disabled",v.nameControl.invalid||v.descriptionControl.invalid||v.asSubgroup&&null===v.selectedParent||v.loading),m.xp6(1),m.hij(" ",m.lcZ(26,19,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let ge=(()=>{class pe{constructor(v,V,W,te,ne,ye){this.dialogRef=v,this.data=V,this.groupService=W,this.translate=te,this.notificator=ne,this.store=ye,this.asSubgroup=!1,this.invalidNameMessage=this.store.getProperty("group_name_error_message"),this.voGroups=[],this.secondaryRegex=this.store.getProperty("group_name_secondary_regex"),this.nameFunction=ze=>ze.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?te.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(ze=>this.title=ze):te.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(ze=>{this.title=ze+this.data.parentGroup.name}),te.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(ze=>this.successMessage=ze),te.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(ze=>this.successSubGroupMessage=ze)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new S.p4("",[S.kI.required,S.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),S.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new S.p4(""),this.selectedParent=null}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successSubGroupMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}loadVoGroups(){this.groupService.getAllGroups(this.data.voId).subscribe(v=>{this.voGroups=v.filter(V=>"members"!==V.name)})}}return pe.\u0275fac=function(v){return new(v||pe)(m.Y36(e.so),m.Y36(e.WI),m.Y36(A.ff),m.Y36(M.sK),m.Y36(f.V6),m.Y36(f.d6))},pe.\u0275cmp=m.Xpm({type:pe,selectors:[["app-create-group-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","group-name","required","",3,"formControl"],[1,"mt-4"],["matInput","","data-cy","group-description",3,"formControl"],[3,"ngModel","labelPosition","ngModelChange","click",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","data-cy","create-group-button-dialog","mat-flat-button","",1,"ms-2",3,"disabled","click"],[3,"ngModel","labelPosition","ngModelChange","click"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(v,V){if(1&v&&(m.YNc(0,fe,1,0,"ng-template",null,0,m.W1O),m.TgZ(2,"div"),m.YNc(3,_e,27,21,"div",1),m.qZA()),2&v){const W=m.MAs(1);m.xp6(2),m.Gre("",V.theme," position-relative"),m.xp6(1),m.Q6J("perunWebAppsLoader",V.loading)("perunWebAppsLoaderIndicator",W)}},dependencies:[w.O5,x.Nt,I.KE,I.hX,I.TO,S.Fj,S.JJ,S.Q7,S.oH,S.On,F.lW,T.oG,e.uh,e.xY,e.H8,H.b,P.h,J.e,M.X$]}),pe})()},54037:(Qe,ae,p)=>{"use strict";p.d(ae,{Y:()=>x});var e=p(61744),f=p(7274),A=p(80279),S=p(30671),m=p(94650),M=p(89383),w=p(90995);let x=(()=>{class I{constructor(T,H,P,J,fe){this.dialogRef=T,this.data=H,this.facilitiesManager=P,this.notificator=J,this.translate=fe,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new S.by([this.facility]),this.relations.push(this.translate.instant("DIALOGS.DELETE_FACILITY.RESOURCE_RELATION"))}onConfirm(){this.loading=!0,this.facilitiesManager.deleteFacility(this.facility.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_FACILITY.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(T){this.force=T.force,T.deleted?this.onConfirm():this.onCancel()}}return I.\u0275fac=function(T){return new(T||I)(m.Y36(f.so),m.Y36(f.WI),m.Y36(e.IQ),m.Y36(A.V6),m.Y36(M.sK))},I.\u0275cmp=m.Xpm({type:I,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(T,H){1&T&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(J){return H.onSubmit(J)}),m.qZA()()),2&T&&(m.Tol(H.theme),m.xp6(1),m.Q6J("entityNames",H.dataSource)("entityType","facilities")("loading",H.loading)("relations",H.relations))},dependencies:[w.e]}),I})()},41656:(Qe,ae,p)=>{"use strict";p.d(ae,{P:()=>x});var e=p(7274),f=p(30671),A=p(80279),S=p(61744),m=p(94650),M=p(89383),w=p(90995);let x=(()=>{class I{constructor(T,H,P,J,fe){this.dialogRef=T,this.data=H,this.notificator=P,this.translate=J,this.groupService=fe,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new f.by(this.data.groups),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.SUBGROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.MEMBER_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0;const T=this.data.groups.map(H=>H.id);this.groupService.deleteGroups({groups:T,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(H=>{this.notificator.showSuccess(H),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(T){this.force=T.force,T.deleted?this.onDelete():this.onCancel()}}return I.\u0275fac=function(T){return new(T||I)(m.Y36(e.so),m.Y36(e.WI),m.Y36(A.V6),m.Y36(M.sK),m.Y36(S.ff))},I.\u0275cmp=m.Xpm({type:I,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(T,H){1&T&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(J){return H.onSubmit(J)}),m.qZA()()),2&T&&(m.Tol(H.theme),m.xp6(1),m.Q6J("entityNames",H.dataSource)("entityType","groups")("loading",H.loading)("relations",H.relations))},dependencies:[w.e]}),I})()},90719:(Qe,ae,p)=>{"use strict";p.d(ae,{m:()=>w});var e=p(61744),f=p(7274),A=p(80279),S=p(30671),m=p(94650),M=p(90995);let w=(()=>{class x{constructor(F,T,H,P,J){this.dialogRef=F,this.data=T,this.serviceManager=H,this.notificator=P,this.translate=J,this.dataSource=new S.by(this.data.services),this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.services=this.data.services,this.relations.push(this.translate.instant("DIALOGS.DELETE_SERVICE.DESTINATION_RELATION")),this.anotherMessage=this.translate.instant("DIALOGS.DELETE_SERVICE.MORE_INFORMATION")}onConfirm(){this.loading=!0;const F=this.services.map(T=>T.id);this.serviceManager.deleteServices(F,this.force).subscribe({next:()=>{this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_SERVICE.SUCCESS")),this.loading=!1},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(F){this.force=F.force,F.deleted?this.onConfirm():this.onCancel()}}return x.\u0275fac=function(F){return new(F||x)(m.Y36(f.so),m.Y36(f.WI),m.Y36(e.KK),m.Y36(A.V6),m.Y36(A.Te))},x.\u0275cmp=m.Xpm({type:x,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","anotherMessage","loading","relations","deleted"]],template:function(F,T){1&F&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(P){return T.onSubmit(P)}),m.qZA()()),2&F&&(m.Tol(T.theme),m.xp6(1),m.Q6J("entityNames",T.dataSource)("entityType","services")("anotherMessage",T.anotherMessage)("loading",T.loading)("relations",T.relations))},dependencies:[M.e]}),x})()},83491:(Qe,ae,p)=>{"use strict";p.d(ae,{_:()=>Oe});var e=p(7274),f=p(61744),A=p(9244),S=p(37433),m=p(80279),M=p(24006),w=p(94650),x=p(89383),I=p(36895),F=p(3238),T=p(284),H=p(59549),P=p(39349),J=p(97392),fe=p(4859),j=p(3848),$=p(56709),_e=p(84385),ge=p(10266),pe=p(97403),re=p(63312),v=p(52170),V=p(73358);const W=["*"];let te=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275cmp=w.Xpm({type:r,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:W,decls:9,vars:2,consts:[[1,"d-flex"],[1,"w-25","m-auto","fw-bold"],[1,"w-75"],[1,"d-flex","mb-3"],[1,"w-25"],[1,"w-75","font-italic","text-muted"]],template:function(_,C){1&_&&(w.F$t(),w.TgZ(0,"div",0)(1,"span",1),w._uU(2),w.qZA(),w.TgZ(3,"div",2),w.Hsn(4),w.qZA()(),w.TgZ(5,"div",3),w._UZ(6,"span",4),w.TgZ(7,"div",5),w._uU(8),w.qZA()()),2&_&&(w.xp6(2),w.hij("",C.label,":"),w.xp6(6),w.hij(" ",C.description," "))}}),r})();var ne=p(57706);let ye=(()=>{class r{constructor(_){this.translateService=_}transform(_){switch(_){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+_);default:return _}}}return r.\u0275fac=function(_){return new(_||r)(w.Y36(x.sK,16))},r.\u0275pipe=w.Yjl({name:"applicationFormItemDisabled",type:r,pure:!0}),r})(),ze=(()=>{class r{constructor(_){this.translateService=_}transform(_){switch(_){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+_);default:return _}}}return r.\u0275fac=function(_){return new(_||r)(w.Y36(x.sK,16))},r.\u0275pipe=w.Yjl({name:"applicationFormItemHidden",type:r,pure:!0}),r})();function ke(r,u){1&r&&w._UZ(0,"perun-web-apps-loading-dialog")}function $e(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"app-edit-application-form-item-line",7),w.ALo(2,"translate"),w.ALo(3,"translate"),w.TgZ(4,"section")(5,"mat-checkbox",22),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw(3);return w.KtG(o.applicationFormItem.updatable=h)}),w.qZA()()()()}if(2&r){const _=w.oxw(3);w.xp6(1),w.Q6J("description",w.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION"))("label",w.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE")),w.xp6(4),w.Q6J("ngModel",_.applicationFormItem.updatable)}}function Je(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"app-edit-application-form-item-line",7),w.ALo(1,"translate"),w.ALo(2,"translate"),w.TgZ(3,"div",8)(4,"perun-web-apps-selection-item-search-select",26),w.NdJ("itemSelected",function(h){w.CHM(_);const o=w.oxw(3);return w.KtG(o.applicationFormItem.perunSourceAttribute=h.value)}),w.qZA()()()}if(2&r){const _=w.oxw(3);w.Q6J("description",w.lcZ(1,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION"))("label",w.lcZ(2,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE")),w.xp6(4),w.Q6J("attributes",_.sourceAttributes)("selectedAttribute",_.applicationFormItem.perunSourceAttribute)("asGroup",!!_.data.group)("type",_.itemType.SOURCE)}}function Fe(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"app-edit-application-form-item-line",7),w.ALo(1,"translate"),w.ALo(2,"translate"),w.TgZ(3,"div",8)(4,"perun-web-apps-selection-item-search-select",26),w.NdJ("itemSelected",function(h){w.CHM(_);const o=w.oxw(3);return w.KtG(o.applicationFormItem.perunDestinationAttribute=h.value)}),w.qZA()()()}if(2&r){const _=w.oxw(3);w.Q6J("description",w.lcZ(1,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION"))("label",w.lcZ(2,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE")),w.xp6(4),w.Q6J("attributes",_.destinationAttributes)("selectedAttribute",_.applicationFormItem.perunDestinationAttribute)("asGroup",!!_.data.group)("type",_.itemType.DESTINATION)}}function Ve(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div",8)(1,"mat-form-field",8)(2,"input",9),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw(3);return w.KtG(o.applicationFormItem.federationAttribute=h)}),w.qZA()()()}if(2&r){const _=w.oxw(3);w.xp6(2),w.Q6J("ngModel",_.applicationFormItem.federationAttribute)}}function le(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"app-edit-application-form-item-line",7),w.ALo(2,"translate"),w.ALo(3,"translate"),w.TgZ(4,"section")(5,"mat-checkbox",22),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw(2);return w.KtG(o.applicationFormItem.required=h)}),w.qZA()()(),w.YNc(6,$e,6,7,"div",12),w.YNc(7,Je,5,10,"app-edit-application-form-item-line",23),w.YNc(8,Fe,5,10,"app-edit-application-form-item-line",23),w.TgZ(9,"app-edit-application-form-item-line",7),w.ALo(10,"translate"),w.ALo(11,"translate"),w.TgZ(12,"div",8)(13,"perun-web-apps-selection-item-search-select",24),w.NdJ("itemSelected",function(h){w.CHM(_);const o=w.oxw(2);return w.KtG(o.changeFederationAttribute(h))}),w.qZA()(),w.YNc(14,Ve,3,1,"div",25),w.qZA()()}if(2&r){const _=w.oxw(2);w.xp6(1),w.Q6J("description",w.lcZ(2,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION"))("label",w.lcZ(3,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED")),w.xp6(4),w.Q6J("ngModel",_.applicationFormItem.required),w.xp6(1),w.Q6J("ngIf",_.typesWithUpdatable.indexOf(_.applicationFormItem.type)>-1),w.xp6(1),w.Q6J("ngIf",void 0!==_.destinationAttributes),w.xp6(1),w.Q6J("ngIf",void 0!==_.destinationAttributes),w.xp6(1),w.Q6J("description",w.lcZ(10,16,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION"))("label",w.lcZ(11,18,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE")),w.xp6(4),w.Q6J("selectedAttribute",_.applicationFormItem.federationAttribute)("asGroup",!!_.data.group)("type",_.itemType.FEDERATION),w.xp6(1),w.Q6J("ngIf"," -- custom value -- "===_.federationAttributeDN)}}function N(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"app-edit-application-form-item-line",7),w.ALo(2,"translate"),w.ALo(3,"translate"),w.TgZ(4,"mat-form-field",8)(5,"input",9),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw(2);return w.KtG(o.applicationFormItem.regex=h)}),w.qZA()()()()}if(2&r){const _=w.oxw(2);w.xp6(1),w.Q6J("description",w.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION"))("label",w.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX")),w.xp6(4),w.Q6J("ngModel",_.applicationFormItem.regex)}}function U(r,u){if(1&r&&(w.TgZ(0,"mat-option",27),w._uU(1),w.ALo(2,"applicationFormItemDisabled"),w.qZA()),2&r){const _=u.$implicit;w.Q6J("value",_),w.xp6(1),w.hij(" ",w.lcZ(2,2,_)," ")}}function X(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"perun-web-apps-app-form-item-search-select",28),w.NdJ("itemSelected",function(h){w.CHM(_);const o=w.oxw(3);return w.KtG(o.disabledDependencyItem=h)}),w.qZA()}if(2&r){const _=w.oxw(3);w.Q6J("item",_.disabledDependencyItem)("items",_.possibleDependencyItems)}}function ce(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"app-edit-application-form-item-line",7),w.ALo(2,"translate"),w.ALo(3,"translate"),w.TgZ(4,"mat-form-field",8)(5,"mat-select",13),w.NdJ("valueChange",function(h){w.CHM(_);const o=w.oxw(2);return w.KtG(o.applicationFormItem.disabled=h)}),w.YNc(6,U,3,4,"mat-option",14),w.qZA()()(),w.TgZ(7,"app-edit-application-form-item-line",7),w.ALo(8,"translate"),w.ALo(9,"translate"),w.TgZ(10,"div",8),w.YNc(11,X,1,2,"perun-web-apps-app-form-item-search-select",15),w.qZA()()()}if(2&r){const _=w.oxw(2);w.xp6(1),w.Q6J("description",w.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION"))("label",w.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED")),w.xp6(4),w.Q6J("value",_.applicationFormItem.disabled),w.xp6(1),w.Q6J("ngForOf",_.disabledValues),w.xp6(1),w.Q6J("description",w.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION"))("label",w.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY")),w.xp6(4),w.Q6J("ngIf",null!==_.disabledDependencyItem)}}function Me(r,u){if(1&r&&(w.TgZ(0,"mat-option",27),w._uU(1),w.ALo(2,"applicationFormItemHidden"),w.qZA()),2&r){const _=u.$implicit;w.Q6J("value",_),w.xp6(1),w.hij(" ",w.lcZ(2,2,_)," ")}}function ue(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"perun-web-apps-app-form-item-search-select",28),w.NdJ("itemSelected",function(h){w.CHM(_);const o=w.oxw(2);return w.KtG(o.hiddenDependencyItem=h)}),w.qZA()}if(2&r){const _=w.oxw(2);w.Q6J("item",_.hiddenDependencyItem)("items",_.possibleDependencyItems)}}function Pe(r,u){if(1&r&&(w.TgZ(0,"mat-error"),w._uU(1),w.qZA()),2&r){const _=w.oxw(4);w.xp6(1),w.Oqu(_.htmlInput.errors.invalidHtmlContent)}}function tt(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"app-edit-application-form-item-line",7),w.ALo(2,"translate"),w.ALo(3,"translate"),w.TgZ(4,"mat-form-field",29)(5,"textarea",30),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw().$implicit,n=w.oxw(2);return w.KtG(n.applicationFormItem.i18n[o].label=h)}),w.qZA(),w.YNc(6,Pe,2,1,"mat-error",12),w.qZA()()()}if(2&r){const _=w.oxw().$implicit,C=w.oxw(2);w.xp6(1),w.Q6J("description",w.lcZ(2,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION"))("label",w.lcZ(3,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT")),w.xp6(4),w.Q6J("cdkTextareaAutosize",!0)("formControl",C.htmlInput)("ngModel",C.applicationFormItem.i18n[_].label),w.xp6(1),w.Q6J("ngIf",C.htmlInput.invalid&&(C.htmlInput.dirty||C.htmlInput.touched))}}function Ce(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"app-edit-application-form-item-line",7),w.ALo(2,"translate"),w.ALo(3,"translate"),w.TgZ(4,"mat-form-field",8)(5,"textarea",9),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw().$implicit,n=w.oxw(2);return w.KtG(n.applicationFormItem.i18n[o].label=h)}),w.qZA()()(),w.TgZ(6,"app-edit-application-form-item-line",7),w.ALo(7,"translate"),w.ALo(8,"translate"),w.TgZ(9,"mat-form-field",8)(10,"textarea",9),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw().$implicit,n=w.oxw(2);return w.KtG(n.applicationFormItem.i18n[o].help=h)}),w.qZA()()(),w.TgZ(11,"app-edit-application-form-item-line",7),w.ALo(12,"translate"),w.ALo(13,"translate"),w.TgZ(14,"mat-form-field",8)(15,"textarea",9),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw().$implicit,n=w.oxw(2);return w.KtG(n.applicationFormItem.i18n[o].errorMessage=h)}),w.qZA()()()()}if(2&r){const _=w.oxw().$implicit,C=w.oxw(2);w.xp6(1),w.Q6J("description",w.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION"))("label",w.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),w.xp6(4),w.Q6J("ngModel",C.applicationFormItem.i18n[_].label),w.xp6(1),w.Q6J("description",w.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION"))("label",w.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP")),w.xp6(4),w.Q6J("ngModel",C.applicationFormItem.i18n[_].help),w.xp6(1),w.Q6J("description",w.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION"))("label",w.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR")),w.xp6(4),w.Q6J("ngModel",C.applicationFormItem.i18n[_].errorMessage)}}function at(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"app-edit-application-form-item-line",7),w.ALo(2,"translate"),w.ALo(3,"translate"),w.TgZ(4,"mat-form-field",8)(5,"textarea",9),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw().$implicit,n=w.oxw(2);return w.KtG(n.applicationFormItem.i18n[o].label=h)}),w.qZA()()()()}if(2&r){const _=w.oxw().$implicit,C=w.oxw(2);w.xp6(1),w.Q6J("description",w.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION"))("label",w.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),w.xp6(4),w.Q6J("ngModel",C.applicationFormItem.i18n[_].label)}}function Ue(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div"),w._uU(1),w.ALo(2,"translate"),w.TgZ(3,"mat-form-field")(4,"input",9),w.NdJ("ngModelChange",function(h){const n=w.CHM(_).$implicit;return w.KtG(n[0]=h)}),w.qZA()(),w._uU(5),w.ALo(6,"translate"),w.TgZ(7,"mat-form-field")(8,"input",9),w.NdJ("ngModelChange",function(h){const n=w.CHM(_).$implicit;return w.KtG(n[1]=h)}),w.qZA()(),w.TgZ(9,"button",39),w.NdJ("click",function(){const o=w.CHM(_).$implicit,n=w.oxw(2).$implicit,t=w.oxw(2);return w.KtG(t.removeOption(o,n))}),w.ALo(10,"translate"),w.TgZ(11,"mat-icon"),w._uU(12,"clear"),w.qZA()()()}if(2&r){const _=u.$implicit;w.xp6(1),w.hij(" ",w.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),w.xp6(3),w.Q6J("ngModel",_[0]),w.xp6(1),w.hij(" ",w.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),w.xp6(3),w.Q6J("ngModel",_[1]),w.xp6(1),w.s9C("matTooltip",w.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function pt(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"div",31),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"div",32),w._uU(5),w.ALo(6,"translate"),w.qZA(),w.TgZ(7,"div",33)(8,"button",34),w.NdJ("click",function(){w.CHM(_);const h=w.oxw().$implicit,o=w.oxw(2);return w.KtG(o.sortOptionsAZ(h))}),w.TgZ(9,"i",35),w._uU(10,"arrow_downward"),w.qZA(),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.TgZ(13,"button",36),w.NdJ("click",function(){w.CHM(_);const h=w.oxw().$implicit,o=w.oxw(2);return w.KtG(o.sortOptionsZA(h))}),w.TgZ(14,"i",35),w._uU(15,"arrow_upward"),w.qZA(),w._uU(16),w.ALo(17,"translate"),w.qZA()(),w.YNc(18,Ue,13,11,"div",37),w.TgZ(19,"button",38),w.NdJ("click",function(){w.CHM(_);const h=w.oxw().$implicit,o=w.oxw(2);return w.KtG(o.addOption(h))}),w._uU(20),w.ALo(21,"translate"),w.qZA()()}if(2&r){const _=w.oxw().$implicit,C=w.oxw(2);w.xp6(2),w.hij("",w.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),":"),w.xp6(3),w.hij(" ",w.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),w.xp6(6),w.hij(" ",w.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),w.xp6(5),w.hij(" ",w.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),w.xp6(2),w.Q6J("ngForOf",C.options[_]),w.xp6(2),w.hij(" ",w.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const z=function(){return["HEADING","HTML_COMMENT"]},st=function(){return["TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]},be=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},Ye=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function he(r,u){if(1&r&&(w.TgZ(0,"mat-tab",6),w.ALo(1,"translate"),w.ALo(2,"uppercase"),w.YNc(3,tt,7,10,"div",12),w.YNc(4,Ce,16,21,"div",12),w.YNc(5,at,6,7,"div",12),w.YNc(6,pt,22,16,"div",12),w.qZA()),2&r){const _=u.$implicit,C=w.oxw(2);w.s9C("label",w.lcZ(1,5,w.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+_))),w.xp6(3),w.Q6J("ngIf",C.isApplicationFormItemOfType(w.DdM(9,z))),w.xp6(1),w.Q6J("ngIf",C.isApplicationFormItemOfType(w.DdM(10,st))),w.xp6(1),w.Q6J("ngIf",C.isApplicationFormItemOfType(w.DdM(11,be))),w.xp6(1),w.Q6J("ngIf",C.isApplicationFormItemOfType(w.DdM(12,Ye)))}}const Re=function(){return["TEXTFIELD","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]},He=function(){return["TEXTFIELD","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]};function ve(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div",2)(1,"h1",3),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"div",4)(5,"mat-tab-group",5)(6,"mat-tab",6),w.ALo(7,"translate"),w.TgZ(8,"app-edit-application-form-item-line",7),w.ALo(9,"translate"),w.ALo(10,"translate"),w.TgZ(11,"mat-form-field",8)(12,"input",9),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw();return w.KtG(o.applicationFormItem.shortname=h)}),w.qZA()()(),w.TgZ(13,"app-edit-application-form-item-line",7),w.ALo(14,"translate"),w.ALo(15,"translate"),w._uU(16),w.ALo(17,"applicationFormItemType"),w.qZA(),w.TgZ(18,"app-edit-application-form-item-line",7),w.ALo(19,"translate"),w.ALo(20,"translate"),w.TgZ(21,"section")(22,"mat-checkbox",10),w.NdJ("change",function(){w.CHM(_);const h=w.oxw();return w.KtG(h.onChangingType("INITIAL"))}),w._uU(23),w.ALo(24,"translate"),w.qZA(),w.TgZ(25,"mat-checkbox",11),w.NdJ("change",function(){w.CHM(_);const h=w.oxw();return w.KtG(h.onChangingType("EXTENSION"))}),w._uU(26),w.ALo(27,"translate"),w.qZA()()(),w.YNc(28,le,15,20,"div",12),w.YNc(29,N,6,7,"div",12),w.YNc(30,ce,12,15,"div",12),w.TgZ(31,"app-edit-application-form-item-line",7),w.ALo(32,"translate"),w.ALo(33,"translate"),w.TgZ(34,"mat-form-field",8)(35,"mat-select",13),w.NdJ("valueChange",function(h){w.CHM(_);const o=w.oxw();return w.KtG(o.applicationFormItem.hidden=h)}),w.YNc(36,Me,3,4,"mat-option",14),w.qZA()()(),w.TgZ(37,"app-edit-application-form-item-line",7),w.ALo(38,"translate"),w.ALo(39,"translate"),w.TgZ(40,"div",8),w.YNc(41,ue,1,2,"perun-web-apps-app-form-item-search-select",15),w.qZA()()(),w.YNc(42,he,7,13,"mat-tab",16),w.qZA()(),w.TgZ(43,"div",17)(44,"button",18),w.NdJ("click",function(){w.CHM(_);const h=w.oxw();return w.KtG(h.cancel())}),w._uU(45),w.ALo(46,"translate"),w.qZA(),w.TgZ(47,"div",19),w.ALo(48,"translate"),w.TgZ(49,"div",20),w.ALo(50,"translate"),w.TgZ(51,"button",21),w.NdJ("click",function(){w.CHM(_);const h=w.oxw();return w.KtG(h.submit())}),w._uU(52),w.ALo(53,"translate"),w.qZA()()()()()}if(2&r){const _=w.oxw();w.xp6(2),w.AsE(" ",w.lcZ(3,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",_.applicationFormItem.shortname," "),w.xp6(4),w.s9C("label",w.lcZ(7,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),w.xp6(2),w.Q6J("description",w.lcZ(9,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION"))("label",w.lcZ(10,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME")),w.xp6(4),w.Q6J("ngModel",_.applicationFormItem.shortname),w.xp6(1),w.Q6J("description",w.lcZ(14,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION"))("label",w.lcZ(15,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET")),w.xp6(3),w.hij(" ",w.lcZ(17,46,_.applicationFormItem.type)," "),w.xp6(2),w.Q6J("description",w.lcZ(19,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION"))("label",w.lcZ(20,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION")),w.xp6(4),w.Q6J("ngModel",_.applicationFormItem.applicationTypes.includes("INITIAL")),w.xp6(1),w.hij(" ",w.lcZ(24,52,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),w.xp6(2),w.Q6J("ngModel",_.applicationFormItem.applicationTypes.includes("EXTENSION")),w.xp6(1),w.hij(" ",w.lcZ(27,54,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),w.xp6(2),w.Q6J("ngIf",_.isApplicationFormItemOfType(w.DdM(72,Re))),w.xp6(1),w.Q6J("ngIf",_.isApplicationFormItemOfType(w.DdM(73,He))),w.xp6(1),w.Q6J("ngIf",_.typesWithDisabled.indexOf(_.applicationFormItem.type)>-1),w.xp6(1),w.Q6J("description",w.lcZ(32,56,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION"))("label",w.lcZ(33,58,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN")),w.xp6(4),w.Q6J("value",_.applicationFormItem.hidden),w.xp6(1),w.Q6J("ngForOf",_.hiddenValues),w.xp6(1),w.Q6J("description",w.lcZ(38,60,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION"))("label",w.lcZ(39,62,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY")),w.xp6(4),w.Q6J("ngIf",null!==_.hiddenDependencyItem),w.xp6(1),w.Q6J("ngForOf",_.languages),w.xp6(3),w.hij(" ",w.lcZ(46,64,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),w.xp6(2),w.s9C("matTooltip",w.lcZ(48,66,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON_DISABLED_TOOLTIP")),w.Q6J("matTooltipDisabled",!_.applicationFormItem.required||""!==_.applicationFormItem.perunSourceAttribute||""!==_.applicationFormItem.federationAttribute||"ALWAYS"!==_.applicationFormItem.disabled&&"ALWAYS"!==_.applicationFormItem.hidden),w.xp6(2),w.s9C("matTooltip",w.lcZ(50,68,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HTML_INVALID_TAGS")),w.Q6J("matTooltipDisabled",!_.htmlInput.invalid)("matTooltipPosition","above"),w.xp6(2),w.Q6J("disabled",_.htmlInput.invalid||_.loading||_.applicationFormItem.required&&""===_.applicationFormItem.perunSourceAttribute&&""===_.applicationFormItem.federationAttribute&&("ALWAYS"===_.applicationFormItem.disabled||"ALWAYS"===_.applicationFormItem.hidden)),w.xp6(1),w.hij(" ",w.lcZ(53,70,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," ")}}let Oe=(()=>{class r{constructor(_,C,h,o,n,t,i){this.dialogRef=_,this.data=C,this.attributesManager=h,this.translateService=o,this.store=n,this.cd=t,this.escapeService=i,this.federationAttributeDN="",this.itemType=S.qG,this.loading=!1,this.hiddenValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.disabledValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.possibleDependencyItems=[],this.htmlInput=new M.NI("",[this.escapeService.htmlContentValidator()]),this.typesWithUpdatable=["VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","TIMEZONE"],this.typesWithDisabled=["USERNAME","PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.languages=["en"],this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"]}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(_=>_.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=S.Sx),this.disabledDependencyItem=this.data.allItems.find(_=>_.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=S.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,A.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(_=>{const C=this.filterAttributesForWidget(_);this.sourceAttributes=C.concat(this.findAttribute(_,this.applicationFormItem.perunSourceAttribute)),this.destinationAttributes=C.concat(this.findAttribute(_,this.applicationFormItem.perunDestinationAttribute)),this.loading=!1},()=>this.loading=!1),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions(),this.htmlInput.markAsTouched(),this.htmlInput.setValue(this.applicationFormItem.i18n.en.label)}cancel(){this.dialogRef.close()}submit(){if(this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===S.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===S.Sx?null:this.disabledDependencyItem.id,"HTML_COMMENT"===this.applicationFormItem.type||"HEADING"===this.applicationFormItem.type)for(const _ in this.applicationFormItem.i18n)this.applicationFormItem.i18n[_].label=this.escapeService.escapeDangerousHtml(this.applicationFormItem.i18n[_].label).escapedHtml;this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(_){if(this.applicationFormItem.applicationTypes.includes(_)){const C=this.applicationFormItem.applicationTypes.indexOf(_);this.applicationFormItem.applicationTypes.splice(C,1)}else this.applicationFormItem.applicationTypes.push(_)}addOption(_){this.options[_].push(["",""])}removeOption(_,C){this.options[C]=this.options[C].filter(h=>!(h[0]===_[0]&&h[1]===_[1]))}sortOptionsAZ(_){this.options[_]=this.options[_].sort((C,h)=>C[1]>h[1]?1:C[1]C[1]>h[1]?-1:C[1]this.dependencyTypes.includes(_.type)).filter(_=>_.id!==this.data.applicationFormItem.id))}updateOption(_){let C="";if(this.options[_])for(const h of this.options[_])""!==h[0]&&""!==h[1]&&(C=""===C?h[0]+"#"+h[1]:C+"|"+h[0]+"#"+h[1]);this.applicationFormItem.i18n[_].options=C}updateOptions(){for(const _ of this.languages)this.updateOption(_)}findAttribute(_,C){return _.find(h=>C.includes(h.friendlyName))}filterAttributesForWidget(_){return _.filter("MAP_INPUT_BOX"===this.applicationFormItem.type?C=>C.type.includes("LinkedHashMap"):"LIST_INPUT_BOX"===this.applicationFormItem.type?C=>C.type.includes("ArrayList"):C=>!C.type.includes("ArrayList")&&!C.type.includes("LinkedHashMap"))}}return r.\u0275fac=function(_){return new(_||r)(w.Y36(e.so),w.Y36(e.WI),w.Y36(f.H8),w.Y36(x.sK),w.Y36(m.d6),w.Y36(w.sBO),w.Y36(m.L6))},r.\u0275cmp=w.Xpm({type:r,selectors:[["app-edit-application-form-item-dialog"]],decls:4,vars:5,consts:[["spinner",""],["class","h-100 d-flex flex-column",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["color","primary","mat-stretch-tabs","false"],[3,"label"],[3,"description","label"],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"],[1,"me-2",3,"ngModel","change"],[3,"ngModel","change"],[4,"ngIf"],["disableOptionCentering","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"item","items","itemSelected",4,"ngIf"],[3,"label",4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ms-auto","mt-auto",3,"click"],[3,"matTooltipDisabled","matTooltip"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-flat-button","","color","accent","data-cy","edit-form-item-button-dialog",1,"ms-2","mt-auto",3,"disabled","click"],[3,"ngModel","ngModelChange"],[3,"description","label",4,"ngIf"],[3,"selectedAttribute","asGroup","type","itemSelected"],["class","w-100",4,"ngIf"],[3,"attributes","selectedAttribute","asGroup","type","itemSelected"],[3,"value"],[3,"item","items","itemSelected"],["subscriptSizing","dynamic",1,"w-100"],["matInput","",3,"cdkTextareaAutosize","formControl","ngModel","ngModelChange"],[1,"fw-bold"],[1,"text-muted","font-italic"],[1,"d-flex","mt-2","mb-2"],["mat-flat-button","",1,"ms-auto","me-2",3,"click"],[1,"material-icons"],["mat-flat-button","",1,"me-auto",3,"click"],[4,"ngFor","ngForOf"],["color","accent","mat-flat-button","",1,"me-2",3,"click"],["color","warn","mat-icon-button","",3,"matTooltip","click"]],template:function(_,C){if(1&_&&(w.YNc(0,ke,1,0,"ng-template",null,0,w.W1O),w.TgZ(2,"div"),w.YNc(3,ve,54,74,"div",1),w.qZA()),2&_){const h=w.MAs(1);w.xp6(2),w.Gre("",C.theme," h-100 position-relative"),w.xp6(1),w.Q6J("perunWebAppsLoader",C.loading)("perunWebAppsLoaderIndicator",h)}},dependencies:[I.sg,I.O5,F.ey,T.Nt,H.KE,H.TO,P.IC,M.Fj,M.JJ,M.oH,M.On,J.Hw,fe.lW,fe.RK,j.uX,j.SP,$.oG,e.uh,e.xY,e.H8,_e.gD,ge.gM,pe.b,re.Y,v.$x,V.e,te,I.gd,x.X$,ne.c,ye,ze],styles:[".mat-mdc-form-field-error-wrapper{position:relative!important;word-break:break-word}"]}),r})()},19352:(Qe,ae,p)=>{"use strict";p.d(ae,{H:()=>Je});var e=p(61744),f=p(7274),A=p(80279),S=p(30671),m=p(9244),M=p(21029),w=p(36895),x=p(94650),I=p(97392),F=p(4859),T=p(10266),H=p(97403),P=p(73358),J=p(89383),fe=p(31359);function j(Fe,Ve){1&Fe&&x._UZ(0,"perun-web-apps-loading-dialog")}function $(Fe,Ve){1&Fe&&(x.TgZ(0,"th",17),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&Fe&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function _e(Fe,Ve){if(1&Fe&&(x.TgZ(0,"td",18),x._uU(1),x.qZA()),2&Fe){const le=Ve.$implicit;x.xp6(1),x.Oqu(le.user.id)}}function ge(Fe,Ve){1&Fe&&(x.TgZ(0,"th",17),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&Fe&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function pe(Fe,Ve){if(1&Fe&&(x.TgZ(0,"td",18),x._uU(1),x.ALo(2,"userFullName"),x.qZA()),2&Fe){const le=Ve.$implicit;x.xp6(1),x.Oqu(x.lcZ(2,1,le.user))}}function re(Fe,Ve){1&Fe&&(x.TgZ(0,"th",17),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&Fe&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function v(Fe,Ve){if(1&Fe){const le=x.EpF();x.TgZ(0,"button",21),x.NdJ("click",function(){x.CHM(le);const U=x.oxw().$implicit,X=x.oxw(2);return x.KtG(X.changeExpiration(U))}),x.TgZ(1,"mat-icon"),x._uU(2," today "),x.qZA()()}}function V(Fe,Ve){if(1&Fe&&(x.TgZ(0,"td",19)(1,"span"),x._uU(2),x.qZA(),x.YNc(3,v,3,0,"button",20),x.qZA()),2&Fe){const le=Ve.$implicit,N=x.oxw(2);x.xp6(2),x.Oqu(N.parseDate(le.validityTo)),x.xp6(1),x.Q6J("ngIf",N.isExpirationAuthorized(le))}}function W(Fe,Ve){1&Fe&&x._UZ(0,"th",17)}function te(Fe,Ve){1&Fe&&(x.TgZ(0,"mat-icon",26),x._uU(1,"clear"),x.qZA())}function ne(Fe,Ve){1&Fe&&(x.TgZ(0,"mat-icon"),x._uU(1,"settings_backup_restore"),x.qZA())}function ye(Fe,Ve){if(1&Fe){const le=x.EpF();x.TgZ(0,"td",18)(1,"div",22),x.ALo(2,"translate"),x.TgZ(3,"button",23),x.NdJ("click",function(){const X=x.CHM(le).$implicit,ce=x.oxw(2);return x.KtG(ce.markSponsor(X))}),x.YNc(4,te,2,0,"mat-icon",24),x.YNc(5,ne,2,0,"mat-icon",25),x.qZA()()()}if(2&Fe){const le=Ve.$implicit,N=x.oxw(2);x.xp6(1),x.s9C("matTooltip",x.lcZ(2,7,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),x.Q6J("matTooltipDisabled",N.isRemoveAuthorized(le))("matTooltipPosition","above"),x.xp6(2),x.Q2q("data-cy","",le.user.firstName,"-unsponsor-mark-button"),x.Q6J("disabled",!N.isRemoveAuthorized(le)),x.xp6(1),x.Q6J("ngIf",!N.sponsorsToRemove.has(le.user.id)),x.xp6(1),x.Q6J("ngIf",N.sponsorsToRemove.has(le.user.id))}}function ze(Fe,Ve){1&Fe&&x._UZ(0,"tr",27)}function ke(Fe,Ve){if(1&Fe&&x._UZ(0,"tr",28),2&Fe){const le=Ve.$implicit,N=x.oxw(2);x.ekj("make-red",N.sponsorsToRemove.has(le.user.id))}}function $e(Fe,Ve){if(1&Fe){const le=x.EpF();x.TgZ(0,"div")(1,"h1",2),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"div",3)(5,"table",4),x.ynx(6,5),x.YNc(7,$,3,3,"th",6),x.YNc(8,_e,2,1,"td",7),x.BQk(),x.ynx(9,8),x.YNc(10,ge,3,3,"th",6),x.YNc(11,pe,3,3,"td",7),x.BQk(),x.ynx(12,9),x.YNc(13,re,3,3,"th",6),x.YNc(14,V,4,2,"td",10),x.BQk(),x.ynx(15,11),x.YNc(16,W,1,0,"th",6),x.YNc(17,ye,6,9,"td",7),x.BQk(),x.YNc(18,ze,1,0,"tr",12),x.YNc(19,ke,1,2,"tr",13),x.qZA()(),x.TgZ(20,"div",14)(21,"button",15),x.NdJ("click",function(){x.CHM(le);const U=x.oxw();return x.KtG(U.onCancel())}),x._uU(22),x.ALo(23,"translate"),x.qZA(),x.TgZ(24,"button",16),x.NdJ("click",function(){x.CHM(le);const U=x.oxw();return x.KtG(U.onSubmit())}),x._uU(25),x.ALo(26,"translate"),x.qZA()()()}if(2&Fe){const le=x.oxw();x.xp6(2),x.Oqu(x.lcZ(3,7,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),x.xp6(3),x.Q6J("dataSource",le.dataSource),x.xp6(13),x.Q6J("matHeaderRowDef",le.displayedColumns),x.xp6(1),x.Q6J("matRowDefColumns",le.displayedColumns),x.xp6(3),x.hij(" ",x.lcZ(23,9,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),x.xp6(2),x.Q6J("disabled",le.loading||0===le.sponsorsToRemove.size),x.xp6(1),x.hij(" ",x.lcZ(26,11,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," ")}}let Je=(()=>{class Fe{constructor(le,N,U,X,ce,Me,ue,Pe){this.dialogRef=le,this.data=N,this.memberService=U,this.userService=X,this.notificator=ce,this.authResolver=Me,this.translate=ue,this.dialog=Pe,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.sponsorsToRemove=new Set,this.expirationChanged=!1}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new S.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(le){this.sponsorsToRemove.has(le.user.id)?this.sponsorsToRemove.delete(le.user.id):this.sponsorsToRemove.add(le.user.id)}onSubmit(){this.loading=!0;const le=Array.from(this.sponsorsToRemove);this.removeSponsors(le)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(le){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[le.user])}isExpirationAuthorized(le){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[le.user,this.vo])}parseDate(le){return null===le?"Never expire":(0,w.p6)(le,"d.M.y","en")}changeExpiration(le){const N=(0,m.kZ)();N.width="400px",N.data={memberId:this.data.member.id,sponsor:le},this.dialog.open(M.hd,N).afterClosed().subscribe(X=>{X&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(ce=>{this.sponsors=ce,this.dataSource=new S.by(this.sponsors),this.loading=!1}))})}removeSponsors(le){this.memberService.removeSponsors(this.data.member.id,le).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return Fe.\u0275fac=function(le){return new(le||Fe)(x.Y36(f.so),x.Y36(f.WI),x.Y36(e.uq),x.Y36(e.Fv),x.Y36(A.V6),x.Y36(A.x4),x.Y36(A.Te),x.Y36(f.uw))},Fe.\u0275cmp=x.Xpm({type:Fe,selectors:[["app-edit-member-sponsors-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expiration"],["class","align-elements","mat-cell","",4,"matCellDef"],["matColumnDef","remove"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"make-red",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","unsponsor-confirm-button","color","warn","mat-flat-button","",1,"ms-2",3,"disabled","click"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"align-elements"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-icon-button","",1,"btn-delete",3,"disabled","click"],["class","icn-delete","color","warn",4,"ngIf"],[4,"ngIf"],["color","warn",1,"icn-delete"],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(le,N){if(1&le&&(x.YNc(0,j,1,0,"ng-template",null,0,x.W1O),x.TgZ(2,"div"),x.YNc(3,$e,27,13,"div",1),x.qZA()),2&le){const U=x.MAs(1);x.xp6(2),x.Gre("",N.theme," position-relative"),x.xp6(1),x.Q6J("perunWebAppsLoader",N.loading)("perunWebAppsLoaderIndicator",U)}},dependencies:[w.O5,I.Hw,F.lW,F.RK,S.BZ,S.fO,S.as,S.w1,S.Dz,S.nj,S.ge,S.ev,S.XQ,S.Gk,f.uh,f.xY,f.H8,T.gM,H.b,P.e,J.X$,fe.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:gray}"]}),Fe})()},74414:(Qe,ae,p)=>{"use strict";p.d(ae,{R:()=>v});var e=p(7274),f=p(24006),A=p(61744),S=p(80279),m=p(94650),M=p(89383),w=p(36895),x=p(3238),I=p(284),F=p(59549),T=p(4859),H=p(84385),P=p(97403),J=p(73358);function fe(V,W){1&V&&m._UZ(0,"perun-web-apps-loading-dialog")}function j(V,W){1&V&&(m.TgZ(0,"div",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&V&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function $(V,W){1&V&&(m.TgZ(0,"div",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&V&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function _e(V,W){1&V&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&V&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")," "))}function ge(V,W){1&V&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&V&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")," "))}function pe(V,W){if(1&V&&(m.TgZ(0,"mat-option",15),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"uppercase"),m.qZA()),2&V){const te=W.$implicit;m.s9C("value",te),m.xp6(1),m.Oqu(m.lcZ(2,2,m.lcZ(3,4,"SHARED_LIB.LANGUAGES."+te)))}}function re(V,W){if(1&V){const te=m.EpF();m.TgZ(0,"div")(1,"h1",2),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",3),m.YNc(5,j,3,3,"div",4),m.YNc(6,$,3,3,"div",4),m.TgZ(7,"mat-form-field",5),m._UZ(8,"input",6),m.ALo(9,"translate"),m.YNc(10,_e,3,3,"mat-error",7),m.qZA(),m.TgZ(11,"mat-form-field",5)(12,"mat-label"),m._uU(13),m.ALo(14,"translate"),m.qZA(),m._UZ(15,"textarea",8),m.YNc(16,ge,3,3,"mat-error",7),m.qZA(),m.TgZ(17,"mat-form-field",5)(18,"mat-label"),m._uU(19),m.ALo(20,"translate"),m.qZA(),m.TgZ(21,"mat-select",9),m.NdJ("valueChange",function(ye){m.CHM(te);const ze=m.oxw();return m.KtG(ze.currentLanguage=ye)}),m.YNc(22,pe,4,6,"mat-option",10),m.qZA()()(),m.TgZ(23,"div",11)(24,"button",12),m.NdJ("click",function(){m.CHM(te);const ye=m.oxw();return m.KtG(ye.onCancel())}),m._uU(25),m.ALo(26,"translate"),m.qZA(),m.TgZ(27,"button",13),m.NdJ("click",function(){m.CHM(te);const ye=m.oxw();return m.KtG(ye.onSubmit())}),m._uU(28),m.ALo(29,"translate"),m.qZA()()()}if(2&V){const te=m.oxw();m.xp6(2),m.Oqu(m.lcZ(3,15,"DIALOGS.INVITE_MEMBER.TITLE")),m.xp6(3),m.Q6J("ngIf",!te.data.groupId),m.xp6(1),m.Q6J("ngIf",te.data.groupId),m.xp6(2),m.s9C("placeholder",m.lcZ(9,17,"DIALOGS.INVITE_MEMBER.NAME")),m.Q6J("formControl",te.name),m.xp6(2),m.Q6J("ngIf",te.name.invalid),m.xp6(3),m.Oqu(m.lcZ(14,19,"DIALOGS.INVITE_MEMBER.EMAIL")),m.xp6(2),m.Q6J("formControl",te.emailForm),m.xp6(1),m.Q6J("ngIf",te.emailForm.invalid),m.xp6(3),m.Oqu(m.lcZ(20,21,"DIALOGS.INVITE_MEMBER.LANGUAGE")),m.xp6(2),m.Q6J("value",te.currentLanguage),m.xp6(1),m.Q6J("ngForOf",te.languages),m.xp6(3),m.hij(" ",m.lcZ(26,23,"DIALOGS.INVITE_MEMBER.CANCEL")," "),m.xp6(2),m.Q6J("disabled",te.emailForm.invalid||te.name.invalid||te.loading),m.xp6(1),m.hij(" ",m.lcZ(29,25,"DIALOGS.INVITE_MEMBER.INVITE")," ")}}let v=(()=>{class V{constructor(te,ne,ye,ze,ke,$e){this.dialogRef=te,this.data=ne,this.registrarManager=ye,this.notificator=ze,this.translate=ke,this.store=$e,this.emailForm=new f.NI("",[f.kI.required,f.kI.email.bind(this)]),this.languages=["en"],this.currentLanguage="en",this.name=new f.NI("",f.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.emailForm.invalid||this.name.invalid||(this.data.voId&&!this.data.groupId?(this.loading=!0,this.registrarManager.sendInvitation(this.emailForm.value,this.currentLanguage,this.data.voId,this.name.value).subscribe({next:()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(te=>{this.notificator.showSuccess(te),this.dialogRef.close(!0)})},error:()=>this.loading=!1})):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.currentLanguage,this.data.voId,this.data.groupId,this.name.value).subscribe({next:()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(te=>{this.notificator.showSuccess(te),this.dialogRef.close(!0)})},error:()=>this.loading=!1})))}}return V.\u0275fac=function(te){return new(te||V)(m.Y36(e.so),m.Y36(e.WI),m.Y36(A.tk),m.Y36(S.V6),m.Y36(M.sK),m.Y36(S.d6))},V.\u0275cmp=m.Xpm({type:V,selectors:[["app-invite-member-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],["class","font-italic",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["matInput","","required","",3,"formControl"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],[1,"font-italic"],[3,"value"]],template:function(te,ne){if(1&te&&(m.YNc(0,fe,1,0,"ng-template",null,0,m.W1O),m.TgZ(2,"div"),m.YNc(3,re,30,27,"div",1),m.qZA()),2&te){const ye=m.MAs(1);m.xp6(2),m.Gre("",ne.theme," position-relative"),m.xp6(1),m.Q6J("perunWebAppsLoader",ne.loading)("perunWebAppsLoaderIndicator",ye)}},dependencies:[w.sg,w.O5,x.ey,I.Nt,F.KE,F.hX,F.TO,f.Fj,f.JJ,f.Q7,f.oH,T.lW,e.uh,e.xY,e.H8,H.gD,P.b,J.e,w.gd,M.X$]}),V})()},87842:(Qe,ae,p)=>{"use strict";p.d(ae,{c:()=>ze});var e=p(7274),f=p(24006),A=p(68675),S=p(54004),m=p(36769),M=p(80279),w=p(61744),x=p(94650),I=p(89383),F=p(36895),T=p(47957),H=p(3238),P=p(284),J=p(59549),fe=p(4859),j=p(10266),$=p(71948),_e=p(98380),ge=p(97403),pe=p(73358);function re(ke,$e){1&ke&&x._UZ(0,"perun-web-apps-loading-dialog")}function v(ke,$e){1&ke&&(x.TgZ(0,"mat-radio-button",13),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&ke&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function V(ke,$e){1&ke&&(x.TgZ(0,"mat-radio-button",14),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&ke&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function W(ke,$e){1&ke&&(x.TgZ(0,"perun-web-apps-alert",15),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&ke&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function te(ke,$e){if(1&ke){const Je=x.EpF();x.TgZ(0,"mat-option",21),x.NdJ("click",function(){const le=x.CHM(Je).$implicit,N=x.oxw(3);return x.KtG(N.selectedGroup=le)}),x.TgZ(1,"span"),x._uU(2),x.qZA()()}if(2&ke){const Je=$e.$implicit;x.Q6J("value",Je),x.xp6(2),x.Oqu(Je.name)}}function ne(ke,$e){if(1&ke){const Je=x.EpF();x.TgZ(0,"mat-form-field",16)(1,"mat-label"),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"input",17),x.NdJ("change",function(){x.CHM(Je);const Ve=x.oxw(2);return x.KtG(Ve.selectedGroup=null)}),x.qZA(),x.TgZ(5,"mat-autocomplete",18,19),x.YNc(7,te,3,2,"mat-option",20),x.ALo(8,"async"),x.qZA()()}if(2&ke){const Je=x.MAs(6),Fe=x.oxw(2);x.Q6J("@openClose","toGroup"===Fe.moveOption?"open":"closed"),x.xp6(2),x.Oqu(x.lcZ(3,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),x.xp6(2),x.Q6J("formControl",Fe.otherGroupsCtrl)("matAutocomplete",Je),x.xp6(1),x.Q6J("displayWith",Fe.displayFn),x.xp6(2),x.Q6J("ngForOf",x.lcZ(8,8,Fe.filteredGroups))}}function ye(ke,$e){if(1&ke){const Je=x.EpF();x.TgZ(0,"div")(1,"h1",2),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"div",3)(5,"p"),x._uU(6),x.ALo(7,"translate"),x.qZA(),x.TgZ(8,"mat-radio-group",4),x.NdJ("ngModelChange",function(Ve){x.CHM(Je);const le=x.oxw();return x.KtG(le.moveOption=Ve)}),x.YNc(9,v,3,3,"mat-radio-button",5),x.YNc(10,V,3,3,"mat-radio-button",6),x.qZA(),x.YNc(11,W,3,3,"perun-web-apps-alert",7),x.YNc(12,ne,9,10,"mat-form-field",8),x.qZA(),x.TgZ(13,"div",9)(14,"button",10),x.NdJ("click",function(){x.CHM(Je);const Ve=x.oxw();return x.KtG(Ve.close())}),x._uU(15),x.ALo(16,"translate"),x.qZA(),x.TgZ(17,"span",11),x.ALo(18,"translate"),x.TgZ(19,"button",12),x.NdJ("click",function(){x.CHM(Je);const Ve=x.oxw();return x.KtG(Ve.confirm())}),x._uU(20),x.ALo(21,"translate"),x.qZA()()()()}if(2&ke){const Je=x.oxw();x.xp6(2),x.AsE("",x.lcZ(3,14,"DIALOGS.MOVE_GROUP.TITLE"),"",Je.data.group.name,""),x.xp6(4),x.hij(" ",x.lcZ(7,16,"DIALOGS.MOVE_GROUP.INFO")," "),x.xp6(2),x.Q6J("ngModel",Je.moveOption),x.xp6(1),x.Q6J("ngIf",!Je.toRootOptionDisabled),x.xp6(1),x.Q6J("ngIf",!Je.toGroupOptionDisabled),x.xp6(1),x.Q6J("ngIf",Je.toRootOptionDisabled&&Je.toGroupOptionDisabled),x.xp6(1),x.Q6J("ngIf",!Je.toGroupOptionDisabled),x.xp6(3),x.hij(" ",x.lcZ(16,18,"DIALOGS.MOVE_GROUP.CANCEL")," "),x.xp6(2),x.s9C("matTooltip",x.lcZ(18,20,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),x.Q6J("matTooltipDisabled",null!==Je.selectedGroup||"toRoot"===Je.moveOption)("matTooltipPosition","above"),x.xp6(2),x.Q6J("disabled",(Je.otherGroupsCtrl.invalid||null===Je.selectedGroup)&&"toRoot"!==Je.moveOption||Je.loading),x.xp6(1),x.hij(" ",x.lcZ(21,22,"DIALOGS.MOVE_GROUP.CONFIRM")," ")}}let ze=(()=>{class ke{constructor(Je,Fe,Ve,le,N,U,X){this.dialogRef=Je,this.data=Fe,this.groupService=Ve,this.notificator=le,this.translate=N,this.apiRequest=U,this.authResolver=X,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new f.p4(null,[f.kI.required.bind(this)]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(ce=>this.successMessage=ce),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(ce=>this.errorMessage=ce)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(Je=>{this.otherGroups=Je.filter(Fe=>Fe.id!==this.data.group.id&&"members"!==Fe.name&&this.canMove(Fe)),0===this.otherGroups.length&&(this.toGroupOptionDisabled=!0),(null===this.data.group.parentGroupId||!this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.data.group]))&&(this.toRootOptionDisabled=!0,this.moveOption="toGroup"),this.filteredGroups=this.otherGroupsCtrl.valueChanges.pipe((0,A.O)(""),(0,S.U)(Fe=>Fe?this._filterGroups(Fe):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(Je){return Je&&Je.name}canMove(Je){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[Je,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,Je])}close(){this.dialogRef.close()}confirm(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},Je=>{this.notificator.showRPCError(Je,this.errorMessage),this.dialogRef.close(!1)})}_filterGroups(Je){if("object"==typeof Je)return[];const Fe=Je.toLowerCase();return Je?this.otherGroups.filter(Ve=>Ve.name.toLowerCase().includes(Fe)):this.otherGroups}}return ke.\u0275fac=function(Je){return new(Je||ke)(x.Y36(e.so),x.Y36(e.WI),x.Y36(w.ff),x.Y36(M.V6),x.Y36(I.sK),x.Y36(M.F5),x.Y36(M.x4))},ke.\u0275cmp=x.Xpm({type:ke,selectors:[["app-move-group-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","class","move-options","value","toRoot",4,"ngIf"],["color","primary","value","toGroup",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","w-100 mt-2",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["color","primary","value","toGroup"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"]],template:function(Je,Fe){if(1&Je&&(x.YNc(0,re,1,0,"ng-template",null,0,x.W1O),x.TgZ(2,"div"),x.YNc(3,ye,22,24,"div",1),x.qZA()),2&Je){const Ve=x.MAs(1);x.xp6(2),x.Gre("",Fe.data.theme," position-relative"),x.xp6(1),x.Q6J("perunWebAppsLoader",Fe.loading)("perunWebAppsLoaderIndicator",Ve)}},dependencies:[F.sg,F.O5,T.XC,H.ey,T.ZL,P.Nt,J.KE,J.hX,f.Fj,f.JJ,f.Q7,f.oH,f.On,fe.lW,e.uh,e.xY,e.H8,j.gM,$.VQ,$.U0,_e.w,ge.b,pe.e,F.Ov,I.X$],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[m.BQ]}}),ke})()},58964:(Qe,ae,p)=>{"use strict";p.d(ae,{m:()=>_e});var e=p(7274),f=p(61744),A=p(80279),S=p(94650),m=p(89383),M=p(36895),w=p(3238),x=p(59549),I=p(4859),F=p(84385),T=p(97403),H=p(73358);function P(ge,pe){1&ge&&S._UZ(0,"perun-web-apps-loading-dialog")}function J(ge,pe){if(1&ge&&(S.TgZ(0,"mat-option",12),S._uU(1),S.qZA()),2&ge){const re=pe.$implicit;S.Q6J("value",re),S.xp6(1),S.hij(" ",re.friendlyNameParameter," ")}}function fe(ge,pe){if(1&ge&&(S.TgZ(0,"mat-option",12),S._uU(1),S.ALo(2,"translate"),S.ALo(3,"uppercase"),S.qZA()),2&ge){const re=pe.$implicit;S.Q6J("value",re),S.xp6(1),S.hij(" ",S.lcZ(2,2,S.lcZ(3,4,"SHARED_LIB.LANGUAGES."+re))," ")}}function j(ge,pe){if(1&ge&&(S.TgZ(0,"mat-option",12),S._uU(1),S.qZA()),2&ge){const re=pe.$implicit;S.Q6J("value",re),S.xp6(1),S.hij(" ",re," ")}}function $(ge,pe){if(1&ge){const re=S.EpF();S.TgZ(0,"div")(1,"h1",3),S._uU(2),S.ALo(3,"translate"),S.qZA(),S.TgZ(4,"div",4)(5,"mat-form-field")(6,"mat-label"),S._uU(7),S.ALo(8,"translate"),S.qZA(),S.TgZ(9,"mat-select",5),S.NdJ("valueChange",function(V){S.CHM(re);const W=S.oxw();return S.KtG(W.selectedLogin=V)}),S.YNc(10,J,2,2,"mat-option",6),S.qZA()(),S.TgZ(11,"mat-form-field")(12,"mat-label"),S._uU(13),S.ALo(14,"translate"),S.qZA(),S.TgZ(15,"mat-select",5),S.NdJ("valueChange",function(V){S.CHM(re);const W=S.oxw();return S.KtG(W.selectedLang=V)}),S.YNc(16,fe,4,6,"mat-option",6),S.qZA()(),S.TgZ(17,"mat-form-field")(18,"mat-label"),S._uU(19),S.ALo(20,"translate"),S.qZA(),S.TgZ(21,"mat-select",5),S.NdJ("valueChange",function(V){S.CHM(re);const W=S.oxw();return S.KtG(W.selectedMail=V)}),S.YNc(22,j,2,2,"mat-option",6),S.qZA()(),S.TgZ(23,"div",7)(24,"p",8),S._uU(25),S.ALo(26,"translate"),S.qZA(),S.TgZ(27,"p"),S._uU(28),S.qZA()()(),S.TgZ(29,"div",9)(30,"button",10),S.NdJ("click",function(){S.CHM(re);const V=S.oxw();return S.KtG(V.onCancel())}),S._uU(31),S.ALo(32,"translate"),S.qZA(),S.TgZ(33,"button",11),S.NdJ("click",function(){S.CHM(re);const V=S.oxw();return S.KtG(V.onSubmit())}),S._uU(34),S.ALo(35,"translate"),S.qZA()()()}if(2&ge){const re=S.oxw();S.xp6(2),S.Oqu(S.lcZ(3,15,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),S.xp6(5),S.Oqu(S.lcZ(8,17,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),S.xp6(2),S.Q6J("value",re.selectedLogin),S.xp6(1),S.Q6J("ngForOf",re.logins),S.xp6(3),S.Oqu(S.lcZ(14,19,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),S.xp6(2),S.Q6J("value",re.selectedLang),S.xp6(1),S.Q6J("ngForOf",re.languages),S.xp6(3),S.Oqu(S.lcZ(20,21,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),S.xp6(2),S.Q6J("value",re.selectedMail),S.xp6(1),S.Q6J("ngForOf",re.mails),S.xp6(3),S.Oqu(S.lcZ(26,23,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),S.xp6(3),S.Oqu(re.selectedLogin.value),S.xp6(3),S.hij(" ",S.lcZ(32,25,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),S.xp6(2),S.Q6J("disabled",re.loading),S.xp6(1),S.hij(" ",S.lcZ(35,27,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," ")}}let _e=(()=>{class ge{constructor(re,v,V,W,te,ne,ye){this.dialogRef=re,this.data=v,this.membersManagerService=V,this.attributesManagerService=W,this.store=te,this.translate=ne,this.notificator=ye,this.languages=this.store.getProperty("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],ne.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(ze=>this.successMessage=ze)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const re=this.selectedLogin.friendlyNameParameter,V=window.location.href.split("/"),W=V[0]+"//"+V[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,re,this.pwdMails.get(this.selectedMail),this.selectedLang,W).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}getMailAttributes(){this.pwdMails.set("user:preferredMail","urn:perun:user:attribute-def:def:preferredMail"),this.pwdMails.set("member:mail","urn:perun:member:attribute-def:def:mail"),this.mails=Array.from(this.pwdMails.keys()),this.selectedMail="user:preferredMail"}}return ge.\u0275fac=function(re){return new(re||ge)(S.Y36(e.so),S.Y36(e.WI),S.Y36(f.uq),S.Y36(f.H8),S.Y36(A.d6),S.Y36(m.sK),S.Y36(A.V6))},ge.\u0275cmp=S.Xpm({type:ge,selectors:[["app-password-reset-request-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"member-theme","position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"column-size","ms-3"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","reset-passwd-confirm-button","color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],[3,"value"]],template:function(re,v){if(1&re&&(S.YNc(0,P,1,0,"ng-template",null,0,S.W1O),S.TgZ(2,"div",1),S.YNc(3,$,36,29,"div",2),S.qZA()),2&re){const V=S.MAs(1);S.xp6(3),S.Q6J("perunWebAppsLoader",v.loading)("perunWebAppsLoaderIndicator",V)}},dependencies:[M.sg,w.ey,x.KE,x.hX,I.lW,e.uh,e.xY,e.H8,F.gD,T.b,H.e,M.gd,m.X$],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),ge})()},53455:(Qe,ae,p)=>{"use strict";p.d(ae,{X:()=>ge});var e=p(7274),f=p(30671),A=p(80279),S=p(61744),m=p(94650),M=p(89383),w=p(4859),x=p(97403),I=p(73358),F=p(31359);function T(pe,re){1&pe&&m._UZ(0,"perun-web-apps-loading-dialog")}function H(pe,re){1&pe&&m._UZ(0,"th",15)}function P(pe,re){if(1&pe&&(m.TgZ(0,"td",16),m._uU(1),m.qZA()),2&pe){const v=re.$implicit;m.xp6(1),m.Oqu(v.id)}}function J(pe,re){1&pe&&m._UZ(0,"th",15)}function fe(pe,re){if(1&pe&&(m.TgZ(0,"td",16),m._uU(1),m.ALo(2,"userFullName"),m.qZA()),2&pe){const v=re.$implicit;m.xp6(1),m.Oqu(m.lcZ(2,1,v.user))}}function j(pe,re){1&pe&&m._UZ(0,"tr",17)}function $(pe,re){1&pe&&m._UZ(0,"tr",18)}function _e(pe,re){if(1&pe){const v=m.EpF();m.TgZ(0,"div")(1,"h1",2),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",3)(5,"p"),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"div",4),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.TgZ(11,"table",5),m.ynx(12,6),m.YNc(13,H,1,0,"th",7),m.YNc(14,P,2,1,"td",8),m.BQk(),m.ynx(15,9),m.YNc(16,J,1,0,"th",7),m.YNc(17,fe,3,3,"td",8),m.BQk(),m.YNc(18,j,1,0,"tr",10),m.YNc(19,$,1,0,"tr",11),m.qZA()(),m.TgZ(20,"div",12)(21,"button",13),m.NdJ("click",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.onCancel())}),m._uU(22),m.ALo(23,"translate"),m.qZA(),m.TgZ(24,"button",14),m.NdJ("click",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.onSubmit())}),m._uU(25),m.ALo(26,"translate"),m.qZA()()()}if(2&pe){const v=m.oxw();m.xp6(2),m.Oqu(m.lcZ(3,8,"DIALOGS.REMOVE_MEMBERS.TITLE")),m.xp6(4),m.hij(" ",m.lcZ(7,10,v.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),m.xp6(3),m.hij(" ",m.lcZ(10,12,"DIALOGS.REMOVE_MEMBERS.ASK")," "),m.xp6(2),m.Q6J("dataSource",v.dataSource),m.xp6(7),m.Q6J("matHeaderRowDef",v.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",v.displayedColumns),m.xp6(3),m.hij(" ",m.lcZ(23,14,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),m.xp6(3),m.hij(" ",m.lcZ(26,16,v.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let ge=(()=>{class pe{constructor(v,V,W,te,ne,ye){this.dialogRef=v,this.data=V,this.membersService=W,this.groupService=te,this.notificator=ne,this.translate=ye,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new f.by(this.data.members)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map(v=>v.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(v=>v.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const v=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(v),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return pe.\u0275fac=function(v){return new(v||pe)(m.Y36(e.so),m.Y36(e.WI),m.Y36(S.uq),m.Y36(S.ff),m.Y36(A.V6),m.Y36(M.sK))},pe.\u0275cmp=m.Xpm({type:pe,selectors:[["app-remove-members-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"fw-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","warn","data-cy","remove-members-dialog","mat-flat-button","",1,"ms-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(v,V){if(1&v&&(m.YNc(0,T,1,0,"ng-template",null,0,m.W1O),m.TgZ(2,"div"),m.YNc(3,_e,27,18,"div",1),m.qZA()),2&v){const W=m.MAs(1);m.xp6(2),m.Gre("",V.theme," position-relative"),m.xp6(1),m.Q6J("perunWebAppsLoader",V.loading)("perunWebAppsLoaderIndicator",W)}},dependencies:[w.lW,f.BZ,f.fO,f.as,f.w1,f.Dz,f.nj,f.ge,f.ev,f.XQ,f.Gk,e.uh,e.xY,e.H8,x.b,I.e,M.X$,F.d]}),pe})()},533:(Qe,ae,p)=>{"use strict";p.d(ae,{f:()=>x});var e=p(7274),f=p(30671),A=p(80279),S=p(61744),m=p(94650),M=p(89383),w=p(90995);let x=(()=>{class I{constructor(T,H,P,J,fe){this.dialogRef=T,this.data=H,this.notificator=P,this.translate=J,this.resourcesManager=fe,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new f.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(T=>{this.loading=!1,this.notificator.showSuccess(T),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(T){T.deleted?this.onDelete():this.onCancel()}}return I.\u0275fac=function(T){return new(T||I)(m.Y36(e.so),m.Y36(e.WI),m.Y36(A.V6),m.Y36(M.sK),m.Y36(S.xk))},I.\u0275cmp=m.Xpm({type:I,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(T,H){1&T&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(J){return H.onSubmit(J)}),m.qZA()()),2&T&&(m.Tol(H.theme),m.xp6(1),m.Q6J("entityNames",H.dataSource)("entityType","resources")("disableForce",!0)("loading",H.loading))},dependencies:[w.e]}),I})()},11717:(Qe,ae,p)=>{"use strict";p.d(ae,{o:()=>x});var e=p(7274),f=p(30671),A=p(80279),S=p(61744),m=p(94650),M=p(89383),w=p(90995);let x=(()=>{class I{constructor(T,H,P,J,fe){this.dialogRef=T,this.data=H,this.notificator=P,this.voService=J,this.translate=fe,this.force=!1,this.displayedColumns=["name"],this.relations=[],fe.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(j=>this.successMessage=j)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new f.by(this.data.vos),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.MEMBER_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.RESOURCE_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.voService.deleteVo(this.data.vos[0].id,this.force).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(T){this.force=T.force,T.deleted?this.onDelete():this.onCancel()}}return I.\u0275fac=function(T){return new(T||I)(m.Y36(e.so),m.Y36(e.WI),m.Y36(A.V6),m.Y36(S.YF),m.Y36(M.sK))},I.\u0275cmp=m.Xpm({type:I,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(T,H){1&T&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(J){return H.onSubmit(J)}),m.qZA()()),2&T&&(m.Tol(H.theme),m.xp6(1),m.Q6J("entityNames",H.dataSource)("entityType","organizations")("loading",H.loading)("relations",H.relations))},dependencies:[w.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),I})()},91828:(Qe,ae,p)=>{"use strict";p.d(ae,{b:()=>ne});var e=p(7274),f=p(80279),A=p(61744),S=p(36895),m=p(24006),M=p(95017),w=p(64080),x=p(10036),I=p(94650),F=p(284),T=p(59549),H=p(4859),P=p(98380),J=p(68530),fe=p(38383),j=p(73358),$=p(75162),_e=p(39158),ge=p(89383);function pe(ye,ze){if(1&ye){const ke=I.EpF();I.TgZ(0,"mat-form-field",12)(1,"mat-label"),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"input",13),I.NdJ("keyup.enter",function(){I.CHM(ke);const Je=I.oxw();return I.KtG(Je.onSearchByString())}),I.qZA(),I.TgZ(5,"mat-error"),I._uU(6),I.ALo(7,"translate"),I.qZA()()}if(2&ye){const ke=I.oxw();I.xp6(2),I.Oqu(I.lcZ(3,3,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),I.xp6(2),I.Q6J("formControl",ke.searchCtrl),I.xp6(2),I.hij(" ",I.lcZ(7,5,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," ")}}function re(ye,ze){if(1&ye){const ke=I.EpF();I.TgZ(0,"button",14),I.NdJ("click",function(){I.CHM(ke);const Je=I.oxw();return I.KtG(Je.onSearchByString())}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&ye){const ke=I.oxw();I.Q6J("disabled",ke.loading),I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," ")}}function v(ye,ze){1&ye&&I._UZ(0,"perun-web-apps-loading-table")}function V(ye,ze){if(1&ye&&I._UZ(0,"perun-web-apps-members-list",17),2&ye){const ke=I.oxw(2);I.Q6J("disableRouting",!0)("hidden",ke.loading)("disableStatusChange",!0)("members",ke.members)("selection",ke.selection)("displayedColumns",ke.displayedColumns)("tableId",ke.tableId)}}function W(ye,ze){if(1&ye&&(I.TgZ(0,"div",15),I.YNc(1,V,1,7,"perun-web-apps-members-list",16),I.qZA()),2&ye){const ke=I.oxw(),$e=I.MAs(8);I.xp6(1),I.Q6J("perunWebAppsLoader",ke.loading)("perunWebAppsLoaderIndicator",$e)}}function te(ye,ze){1&ye&&(I.TgZ(0,"perun-web-apps-alert",18),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&ye&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let ne=(()=>{class ye{constructor(ke,$e,Je,Fe,Ve,le){this.dialogRef=ke,this.data=$e,this.store=Je,this.membersService=Fe,this.notificator=Ve,this.translate=le,this.loading=!1,this.tableId=x.US,this.expiration="never",this.searchCtrl=new m.p4("",[m.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new M.Ov(!0,[]),this.selectedSponsor=null,this.sponsorType="self",this.minDate=new Date}ngOnInit(){this.theme=this.data.theme,this.serviceMemberId=this.data.serviceMemberId,this.displayedColumns=this.serviceMemberId?["checkbox","id","fullName","sponsored","email"]:["checkbox","id","fullName","status","sponsored","email"],this.serviceMemberId&&(this.searchCtrl.setValue(this.serviceMemberId),this.onSearchByString())}onCancel(){this.dialogRef.close(!1)}sponsor(ke){this.loading=!0;const $e="self"===this.sponsorType?this.store.getPerunPrincipal().user:this.selectedSponsor,Je=ke.map(Fe=>Fe.id);this.membersService.sponsorMembers(Je,$e.id,this.expiration).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}onSubmit(){this.loading=!0;const ke=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(ke)}setExpiration(ke){this.expiration="never"===ke?"never":(0,S.p6)(ke,"yyyy-MM-dd","en-GB")}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.firstSearchDone=!0,this.loading=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.data.voId,[w.r.MEMBER_DEF_EXPIRATION,w.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe({next:$e=>{this.members=$e,this.serviceMemberId&&this.selection.toggle($e[0]),this.loading=!1},error:()=>this.loading=!1}))}}return ye.\u0275fac=function(ke){return new(ke||ye)(I.Y36(e.so),I.Y36(e.WI),I.Y36(f.d6),I.Y36(A.uq),I.Y36(f.V6),I.Y36(f.Te))},ye.\u0275cmp=I.Xpm({type:ye,selectors:[["app-sponsor-existing-member-dialog"]],decls:25,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","me-2 search-field adjust-width",4,"ngIf"],["data-cy","sponsor-search-button","class","ms-auto","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["spinner",""],["class","position-relative",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"voId","voSponsors","sponsorTypeSelected","sponsorSelected"],[3,"minDate","datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","sponsor-member-button","color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],[1,"me-2","search-field","adjust-width"],["data-cy","sponsor-search-input","autocomplete","false","matInput","",3,"formControl","keyup.enter"],["data-cy","sponsor-search-button","color","accent","mat-flat-button","",1,"ms-auto",3,"disabled","click"],[1,"position-relative"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId"],["alert_type","info"]],template:function(ke,$e){1&ke&&(I.TgZ(0,"div")(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"div",1),I.YNc(5,pe,8,7,"mat-form-field",2),I.YNc(6,re,3,4,"button",3),I.YNc(7,v,1,0,"ng-template",null,4,I.W1O),I.YNc(9,W,2,2,"div",5),I.YNc(10,te,3,3,"perun-web-apps-alert",6),I.TgZ(11,"app-choose-sponsor",7),I.NdJ("sponsorTypeSelected",function(Fe){return $e.sponsorType=Fe})("sponsorSelected",function(Fe){return $e.selectedSponsor=Fe}),I.qZA(),I.TgZ(12,"div"),I._UZ(13,"br"),I.TgZ(14,"h6"),I._uU(15),I.ALo(16,"translate"),I.qZA(),I.TgZ(17,"perun-web-apps-expiration-select",8),I.NdJ("datePicker",function(Fe){return $e.setExpiration(Fe)}),I.qZA()()(),I.TgZ(18,"div",9)(19,"button",10),I.NdJ("click",function(){return $e.onCancel()}),I._uU(20),I.ALo(21,"translate"),I.qZA(),I.TgZ(22,"button",11),I.NdJ("click",function(){return $e.onSubmit()}),I._uU(23),I.ALo(24,"translate"),I.qZA()()()),2&ke&&(I.Tol($e.theme),I.xp6(2),I.Oqu(I.lcZ(3,15,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),I.xp6(3),I.Q6J("ngIf",!$e.serviceMemberId),I.xp6(1),I.Q6J("ngIf",!$e.serviceMemberId),I.xp6(3),I.Q6J("ngIf",$e.firstSearchDone),I.xp6(1),I.Q6J("ngIf",!$e.firstSearchDone),I.xp6(1),I.Q6J("voId",$e.data.voId)("voSponsors",$e.data.voSponsors),I.xp6(4),I.Oqu(I.lcZ(16,17,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),I.xp6(2),I.Q6J("minDate",$e.minDate),I.xp6(3),I.hij(" ",I.lcZ(21,19,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),I.xp6(2),I.Q6J("disabled",$e.loading||0===$e.selection.selected.length||"other"===$e.sponsorType&&!$e.selectedSponsor),I.xp6(1),I.hij(" ",I.lcZ(24,21,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},dependencies:[S.O5,F.Nt,T.KE,T.hX,T.TO,m.Fj,m.JJ,m.oH,H.lW,e.uh,e.xY,e.H8,P.w,J.K,fe.O,j.e,$.c,_e.l,ge.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),ye})()},1186:(Qe,ae,p)=>{"use strict";p.d(ae,{E:()=>$});var e=p(7274),f=p(61744),A=p(94650),S=p(36895),m=p(3238),M=p(284),w=p(59549),x=p(24006),I=p(4859),F=p(84385),T=p(97403),H=p(73358),P=p(89383);function J(_e,ge){1&_e&&A._UZ(0,"perun-web-apps-loading-dialog")}function fe(_e,ge){if(1&_e){const pe=A.EpF();A.TgZ(0,"div")(1,"mat-form-field",5)(2,"mat-label"),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.TgZ(5,"mat-select",6),A.NdJ("valueChange",function(v){A.CHM(pe);const V=A.oxw(2);return A.KtG(V.embeddedState=v)}),A.TgZ(6,"mat-option",7),A._uU(7),A.ALo(8,"translate"),A.qZA(),A.TgZ(9,"mat-option",8),A._uU(10),A.ALo(11,"translate"),A.qZA()()()()}if(2&_e){const pe=A.oxw(2);A.xp6(3),A.hij("",A.lcZ(4,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),A.xp6(2),A.Q6J("value",pe.embeddedState),A.xp6(2),A.Oqu(A.lcZ(8,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(11,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function j(_e,ge){if(1&_e){const pe=A.EpF();A.TgZ(0,"div")(1,"h1",2),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div",3)(5,"mat-form-field")(6,"mat-label"),A._uU(7),A.ALo(8,"translate"),A.qZA(),A.TgZ(9,"input",4),A.NdJ("ngModelChange",function(v){A.CHM(pe);const V=A.oxw();return A.KtG(V.moduleName=v)}),A.qZA()(),A.TgZ(10,"mat-form-field",5)(11,"mat-label"),A._uU(12),A.ALo(13,"translate"),A.qZA(),A.TgZ(14,"mat-select",6),A.NdJ("valueChange",function(v){A.CHM(pe);const V=A.oxw();return A.KtG(V.initialState=v)}),A.TgZ(15,"mat-option",7),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.TgZ(18,"mat-option",8),A._uU(19),A.ALo(20,"translate"),A.qZA()()(),A.TgZ(21,"mat-form-field",5)(22,"mat-label"),A._uU(23),A.ALo(24,"translate"),A.qZA(),A.TgZ(25,"mat-select",6),A.NdJ("valueChange",function(v){A.CHM(pe);const V=A.oxw();return A.KtG(V.extensionState=v)}),A.TgZ(26,"mat-option",7),A._uU(27),A.ALo(28,"translate"),A.qZA(),A.TgZ(29,"mat-option",8),A._uU(30),A.ALo(31,"translate"),A.qZA()()(),A.YNc(32,fe,12,10,"div",9),A.qZA(),A.TgZ(33,"div",10)(34,"button",11),A.NdJ("click",function(){A.CHM(pe);const v=A.oxw();return A.KtG(v.onCancel())}),A._uU(35),A.ALo(36,"translate"),A.qZA(),A.TgZ(37,"button",12),A.NdJ("click",function(){A.CHM(pe);const v=A.oxw();return A.KtG(v.submit())}),A._uU(38),A.ALo(39,"translate"),A.qZA()()()}if(2&_e){const pe=A.oxw();A.xp6(2),A.Oqu(A.lcZ(3,15,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),A.xp6(5),A.Oqu(A.lcZ(8,17,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),A.xp6(2),A.Q6J("ngModel",pe.moduleName),A.xp6(3),A.hij("",A.lcZ(13,19,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),A.xp6(2),A.Q6J("value",pe.initialState),A.xp6(2),A.Oqu(A.lcZ(17,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(20,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),A.xp6(4),A.hij("",A.lcZ(24,25,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),A.xp6(2),A.Q6J("value",pe.extensionState),A.xp6(2),A.Oqu(A.lcZ(28,27,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(31,29,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),A.xp6(2),A.Q6J("ngIf","group"===pe.entity&&pe.autoRegistrationEnabled),A.xp6(3),A.hij(" ",A.lcZ(36,31,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),A.xp6(2),A.Q6J("disabled",pe.loading),A.xp6(1),A.hij(" ",A.lcZ(39,33,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," ")}}let $=(()=>{class _e{constructor(pe,re,v){this.dialogRef=pe,this.data=re,this.registrarManager=v,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.applicationForm=this.data.applicationForm,this.moduleName=this.applicationForm.moduleClassName,this.initialState=this.applicationForm.automaticApproval?"auto":"manual",this.extensionState=this.applicationForm.automaticApprovalExtension?"auto":"manual",this.embeddedState=this.applicationForm.automaticApprovalEmbedded?"auto":"manual",this.entity=this.data.entity,this.autoRegistrationEnabled=this.data.autoRegistrationEnabled}onCancel(){this.dialogRef.close()}submit(){this.loading=!0,this.applicationForm.moduleClassName=this.moduleName,this.applicationForm.automaticApproval="auto"===this.initialState,this.applicationForm.automaticApprovalExtension="auto"===this.extensionState,this.applicationForm.automaticApprovalEmbedded="auto"===this.embeddedState,this.registrarManager.updateForm({form:this.applicationForm}).subscribe(pe=>{this.dialogRef.close(pe)},()=>this.loading=!1)}}return _e.\u0275fac=function(pe){return new(pe||_e)(A.Y36(e.so),A.Y36(e.WI),A.Y36(f.tk))},_e.\u0275cmp=A.Xpm({type:_e,selectors:[["app-update-application-form-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(pe,re){if(1&pe&&(A.YNc(0,J,1,0,"ng-template",null,0,A.W1O),A.TgZ(2,"div"),A.YNc(3,j,40,35,"div",1),A.qZA()),2&pe){const v=A.MAs(1);A.xp6(2),A.Gre("",re.theme," position-relative"),A.xp6(1),A.Q6J("perunWebAppsLoader",re.loading)("perunWebAppsLoaderIndicator",v)}},dependencies:[S.O5,m.ey,M.Nt,w.KE,w.hX,x.Fj,x.JJ,x.On,I.lW,e.uh,e.xY,e.H8,F.gD,T.b,H.e,P.X$]}),_e})()},72263:(Qe,ae,p)=>{"use strict";p.d(ae,{_:()=>et});var e=p(94650),f=p(61744),A=p(9244),S=p(7274),m=p(80279),M=p(95017),w=p(19516),x=p(37433),I=p(36895),F=p(4859),T=p(97403),H=p(87831),P=p(25788),J=p(7434),fe=p(62109),j=p(74010),$=p(89593),_e=p(89383);let ge=(()=>{class rt{constructor(){this.role=null,this.disableAutoSelect=!1,this.roleSelected=new e.vpe,this.nameFunction=yt=>yt.displayName,this.secondaryTextFunction=()=>null}}return rt.\u0275fac=function(yt){return new(yt||rt)},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["perun-web-apps-role-search-select"]],inputs:{role:"role",roles:"roles",disableAutoSelect:"disableAutoSelect"},outputs:{roleSelected:"roleSelected"},decls:4,vars:15,consts:[[3,"entity","entities","disableAutoSelect","mainTextFunction","searchFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(yt,Zt){1&yt&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(Di){return Zt.roleSelected.emit(Di)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&yt&&e.Q6J("entity",Zt.role)("entities",Zt.roles)("disableAutoSelect",Zt.disableAutoSelect)("mainTextFunction",Zt.nameFunction)("searchFunction",Zt.nameFunction)("secondaryTextFunction",Zt.secondaryTextFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.SELECT_ROLE"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.FIND_ROLE"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.NO_ROLE_FOUND"))},dependencies:[$.i,_e.X$]}),rt})();var pe=p(73358),re=p(56575);let v=(()=>{class rt{transform(yt,Zt,li){return yt.filter(Di=>!Zt.get(li.roleName)?.get(li.primaryObject)?.includes(Di.id))}}return rt.\u0275fac=function(yt){return new(yt||rt)},rt.\u0275pipe=e.Yjl({name:"unassignedRole",type:rt,pure:!0}),rt})(),V=(()=>{class rt{transform(yt){return yt.map(Zt=>Zt.facility)}}return rt.\u0275fac=function(yt){return new(yt||rt)},rt.\u0275pipe=e.Yjl({name:"extractFacility",type:rt,pure:!0}),rt})();var W=p(48524);function te(rt,Ft){1&rt&&e._UZ(0,"perun-web-apps-loading-dialog")}function ne(rt,Ft){if(1&rt){const yt=e.EpF();e.TgZ(0,"perun-web-apps-immediate-filter",13),e.NdJ("filter",function(li){e.CHM(yt);const Di=e.oxw(2);return e.KtG(Di.filterValue=li)}),e.qZA()}2&rt&&e.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_OBJECTS_LIST.FILTER")}const ye=function(){return["checkbox","id","shortName","name"]};function ze(rt,Ft){if(1&rt&&(e._UZ(0,"perun-web-apps-vos-list",14),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&rt){const yt=e.oxw(2);e.Q6J("filterValue",yt.filterValue)("vos",e.Dn7(1,5,e.xi3(2,9,yt.vos,yt.selectedRule),yt.roles,yt.selectedRule))("displayedColumns",e.DdM(12,ye))("selection",yt.selected)("disableRouting",!0)}}const ke=function(){return["select","id","vo","name","description"]};function $e(rt,Ft){if(1&rt&&(e._UZ(0,"perun-web-apps-groups-list",15),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&rt){const yt=e.oxw(2);e.Q6J("groups",e.Dn7(1,5,e.xi3(2,9,yt.groups,yt.selectedRule),yt.roles,yt.selectedRule))("displayedColumns",e.DdM(12,ke))("selection",yt.selected)("filter",yt.filterValue)("disableRouting",!0)}}const Je=function(){return["select","id","name","description"]};function Fe(rt,Ft){if(1&rt&&(e._UZ(0,"perun-web-apps-facilities-list",16),e.ALo(1,"toEnrichedFacility"),e.ALo(2,"unassignedRole"),e.ALo(3,"manageableEntities"),e.ALo(4,"extractFacility")),2&rt){const yt=e.oxw(2);e.Q6J("filterValue",yt.filterValue)("facilities",e.lcZ(1,5,e.Dn7(2,7,e.xi3(3,11,e.lcZ(4,14,yt.facilities),yt.selectedRule),yt.roles,yt.selectedRule)))("displayedColumns",e.DdM(16,Je))("selection",yt.selectedFacilities)("disableRouting",!0)}}const Ve=function(){return["select","id","name"]};function le(rt,Ft){if(1&rt&&(e._UZ(0,"perun-web-apps-resources-list",17),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&rt){const yt=e.oxw(2);e.Q6J("filterValue",yt.filterValue)("resources",e.Dn7(1,5,e.xi3(2,9,yt.resources,yt.selectedRule),yt.roles,yt.selectedRule))("displayedColumns",e.DdM(12,Ve))("selection",yt.selected)("disableRouting",!0)}}function N(rt,Ft){if(1&rt){const yt=e.EpF();e.TgZ(0,"div")(1,"div",2)(2,"h1",2),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.TgZ(5,"div",3)(6,"perun-web-apps-role-search-select",4),e.NdJ("roleSelected",function(li){e.CHM(yt);const Di=e.oxw();return e.KtG(Di.resetSelection(li))}),e.qZA(),e.YNc(7,ne,1,1,"perun-web-apps-immediate-filter",5),e.YNc(8,ze,3,13,"perun-web-apps-vos-list",6),e.YNc(9,$e,3,13,"perun-web-apps-groups-list",7),e.YNc(10,Fe,5,17,"perun-web-apps-facilities-list",8),e.YNc(11,le,3,13,"perun-web-apps-resources-list",9),e.qZA(),e.TgZ(12,"div",10)(13,"button",11),e.NdJ("click",function(){e.CHM(yt);const li=e.oxw();return e.KtG(li.cancel())}),e._uU(14),e.ALo(15,"translate"),e.qZA(),e.TgZ(16,"button",12),e.NdJ("click",function(){e.CHM(yt);const li=e.oxw();return e.KtG(li.addRole())}),e._uU(17),e.ALo(18,"translate"),e.qZA()()()}if(2&rt){const yt=e.oxw();e.xp6(3),e.Oqu(e.lcZ(4,10,"DIALOGS.ADD_ROLE.TITLE")),e.xp6(3),e.Q6J("roles",yt.rules),e.xp6(1),e.Q6J("ngIf",null==yt.selectedRule?null:yt.selectedRule.primaryObject),e.xp6(1),e.Q6J("ngIf","Vo"===(null==yt.selectedRule?null:yt.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf","Group"===(null==yt.selectedRule?null:yt.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf","Facility"===(null==yt.selectedRule?null:yt.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf","Resource"===(null==yt.selectedRule?null:yt.selectedRule.primaryObject)),e.xp6(3),e.hij(" ",e.lcZ(15,12,"DIALOGS.ADD_ROLE.CANCEL")," "),e.xp6(2),e.Q6J("disabled",null===yt.selectedRule||"Facility"===yt.selectedRule.primaryObject&&yt.selectedFacilities.isEmpty()||yt.selectedRule.primaryObject&&"Facility"!==yt.selectedRule.primaryObject&&yt.selected.isEmpty()),e.xp6(1),e.hij(" ",e.lcZ(18,14,"DIALOGS.ADD_ROLE.ADD")," ")}}let U=(()=>{class rt{constructor(yt,Zt,li,Di,At){this.dialogRef=yt,this.voService=Zt,this.groupService=li,this.facilityService=Di,this.resourceService=At,this.loading=!1,this.submitForm=new e.vpe,this.selected=new M.Ov(!0,[]),this.selectedFacilities=new M.Ov(!0,[]),this.filterValue="",this.vos=[],this.groups=[],this.facilities=[],this.resources=[]}ngOnInit(){this.selectedRule=this.rules[0],this.loadObjects()}loadObjects(){this.rules.some(yt=>"Facility"===yt.primaryObject)&&this.facilityService.getAllFacilities().subscribe({next:yt=>this.facilities=(new w.E7).transform(yt)}),this.rules.some(yt=>"Vo"===yt.primaryObject)&&this.voService.getMyVos().subscribe({next:yt=>this.vos=yt}),this.groupService.getAllGroupsFromAllVos().subscribe({next:yt=>this.groups=yt}),this.resourceService.getAllResources().subscribe({next:yt=>this.resources=yt})}cancel(){this.dialogRef.close(!1)}addRole(){this.submitForm.emit("Facility"===this.selectedRule.primaryObject?{role:this.selectedRule,entities:this.selectedFacilities.selected.map(yt=>yt.facility)}:{role:this.selectedRule,entities:this.selected.selected})}resetSelection(yt){this.selectedRule=yt,this.selected.clear(),this.selectedFacilities.clear(),this.filterValue="",this.loadObjects(),this.filterComponent&&this.filterComponent.formControl.setValue("")}}return rt.\u0275fac=function(yt){return new(yt||rt)(e.Y36(S.so),e.Y36(f.YF),e.Y36(f.ff),e.Y36(f.IQ),e.Y36(f.xk))},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["app-add-role-dialog"]],viewQuery:function(yt,Zt){if(1&yt&&e.Gf(x.Ld,5),2&yt){let li;e.iGM(li=e.CRH())&&(Zt.filterComponent=li.first)}},inputs:{loading:"loading",rules:"rules",roles:"roles",theme:"theme"},outputs:{submitForm:"submitForm"},decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"roles","roleSelected"],["class","font-size-1rem",3,"placeholder","filter",4,"ngIf"],[3,"filterValue","vos","displayedColumns","selection","disableRouting",4,"ngIf"],[3,"groups","displayedColumns","selection","filter","disableRouting",4,"ngIf"],[3,"filterValue","facilities","displayedColumns","selection","disableRouting",4,"ngIf"],[3,"filterValue","resources","displayedColumns","selection","disableRouting",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],[1,"font-size-1rem",3,"placeholder","filter"],[3,"filterValue","vos","displayedColumns","selection","disableRouting"],[3,"groups","displayedColumns","selection","filter","disableRouting"],[3,"filterValue","facilities","displayedColumns","selection","disableRouting"],[3,"filterValue","resources","displayedColumns","selection","disableRouting"]],template:function(yt,Zt){if(1&yt&&(e.YNc(0,te,1,0,"ng-template",null,0,e.W1O),e.TgZ(2,"div"),e.YNc(3,N,19,16,"div",1),e.qZA()),2&yt){const li=e.MAs(1);e.xp6(2),e.Gre("",Zt.theme," position-relative"),e.xp6(1),e.Q6J("perunWebAppsLoader",Zt.loading)("perunWebAppsLoaderIndicator",li)}},dependencies:[I.O5,F.lW,S.uh,S.xY,S.H8,T.b,H.Z,P.W,J.L,fe.C,j.X,ge,pe.e,_e.X$,re.G,v,V,W.E]}),rt})(),X=(()=>{class rt{constructor(yt,Zt,li,Di,At,Nt){this.dialogRef=yt,this.data=Zt,this.authResolver=li,this.authzService=Di,this.notificator=At,this.translate=Nt,this.loading=!1,this.rules=this.authResolver.getAssignableRoleRules("GROUP")}addRole(yt){this.loading=!0,yt.entities&&0!==yt.entities.length?this.authzService.setRoleWithGroupComplementaryObjects({role:yt.role.roleName,authorizedGroup:this.data.entityId,complementaryObjects:yt.entities}).subscribe({next:()=>{this.showSuccess(yt.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}}):this.authzService.setRoleForGroup({role:yt.role.roleName,authorizedGroup:this.data.entityId}).subscribe({next:()=>{this.showSuccess(yt.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}showSuccess(yt){this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_ROLE.SUCCESS",{role:yt}))}}return rt.\u0275fac=function(yt){return new(yt||rt)(e.Y36(S.so),e.Y36(S.WI),e.Y36(m.x4),e.Y36(f.Ct),e.Y36(m.V6),e.Y36(m.Te))},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["app-add-group-role-dialog"]],decls:1,vars:4,consts:[[3,"loading","rules","roles","theme","submitForm"]],template:function(yt,Zt){1&yt&&(e.TgZ(0,"app-add-role-dialog",0),e.NdJ("submitForm",function(Di){return Zt.addRole(Di)}),e.qZA()),2&yt&&e.Q6J("loading",Zt.loading)("rules",Zt.rules)("roles",Zt.data.roles)("theme","group-theme")},dependencies:[U]}),rt})(),ce=(()=>{class rt{constructor(yt,Zt,li,Di,At,Nt,ft){this.dialogRef=yt,this.data=Zt,this.authResolver=li,this.authzService=Di,this.notificator=At,this.translate=Nt,this.displayedRole=ft,this.loading=!1,this.rules=this.authResolver.getAssignableRoleRules("USER")}addRole(yt){this.loading=!0,yt.entities&&0!==yt.entities.length?this.authzService.setRoleWithUserComplementaryObjects({role:yt.role.roleName,user:this.data.entityId,complementaryObjects:yt.entities}).subscribe({next:()=>{this.showSuccess(yt.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}}):this.authzService.setRoleForUser({role:yt.role.roleName,user:this.data.entityId}).subscribe({next:()=>{this.showSuccess(yt.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}showSuccess(yt){this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_ROLE.SUCCESS",{role:yt}))}}return rt.\u0275fac=function(yt){return new(yt||rt)(e.Y36(S.so),e.Y36(S.WI),e.Y36(m.x4),e.Y36(f.Ct),e.Y36(m.V6),e.Y36(m.Te),e.Y36(w.i2))},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["app-add-user-role-dialog"]],features:[e._Bn([w.i2])],decls:1,vars:4,consts:[[3,"loading","rules","theme","roles","submitForm"]],template:function(yt,Zt){1&yt&&(e.TgZ(0,"app-add-role-dialog",0),e.NdJ("submitForm",function(Di){return Zt.addRole(Di)}),e.qZA()),2&yt&&e.Q6J("loading",Zt.loading)("rules",Zt.rules)("theme","user-theme")("roles",Zt.data.roles)},dependencies:[U]}),rt})();var Me=p(21029),ue=p(61135),Pe=p(39646),tt=p(86099),Ce=p(49770);function at(rt,Ft,yt){return(0,Ce.P)(()=>rt()?Ft:yt)}var Ue=p(63900),pt=p(18505),z=p(68675),st=p(54004),be=p(97392),Ye=p(37084),he=p(51572),Re=p(10266),He=p(73546),ve=p(98380),Oe=p(38383),r=p(64877),u=p(23123);function _(rt,Ft){if(1&rt){const yt=e.EpF();e.TgZ(0,"button",5),e.NdJ("click",function(){e.CHM(yt);const li=e.oxw();return e.KtG(li.addRole())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&rt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.ADD"),"\n"))}function C(rt,Ft){1&rt&&e._UZ(0,"mat-spinner",6)}const h=function(){return["Vo","Group","Resource"]};function o(rt,Ft){if(1&rt){const yt=e.EpF();e.TgZ(0,"span",15),e.ALo(1,"translate"),e.TgZ(2,"button",16),e.NdJ("click",function(){e.CHM(yt);const li=e.oxw(2).$implicit,Di=e.oxw(2);return e.KtG(Di.openConfirmDialog(li))}),e._uU(3),e.ALo(4,"translate"),e.qZA()()}if(2&rt){const yt=e.oxw(2).$implicit,Zt=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,4,"ROLES.REMOVE_DISABLED_TOOLTIP")),e.Q6J("matTooltipDisabled",0===Zt.selection.selected.length&&0===Zt.selectedFacilities.selected.length||!Zt.disableRemove),e.xp6(2),e.Q6J("disabled","Facility"===yt.primaryObject&&(0===Zt.selectedFacilities.selected.length||Zt.disableRemove)||e.DdM(8,h).includes(yt.primaryObject)&&(0===Zt.selection.selected.length||Zt.disableRemove)),e.xp6(1),e.hij(" ",e.lcZ(4,6,"ROLES.REMOVE")," ")}}function n(rt,Ft){if(1&rt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&rt){const yt=e.oxw(5).$implicit,Zt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+yt.roleName+"_VOS_"+Zt.entityType)," ")}}const t=function(){return["id","name","shortName"]},i=function(){return["checkbox","id","name","shortName"]},a=function(){return["id","name","shortName","authzGroup"]};function c(rt,Ft){if(1&rt&&(e.TgZ(0,"div",20),e.YNc(1,n,3,3,"div",2),e._UZ(2,"perun-web-apps-vos-list",21),e.ALo(3,"async"),e.qZA()),2&rt){const yt=e.oxw(4).$implicit,Zt=e.oxw(2);let li;e.xp6(1),e.Q6J("ngIf",Zt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===yt.roleName?e.DdM(8,t):Zt.editable?e.DdM(9,i):e.DdM(10,a))("vos",e.lcZ(3,6,Zt.vos))("selection",Zt.selection)("authzVoNames",Zt.voNames)("voWithAuthzGroupPairs",null==Zt._complementaryObjectsWithAuthzGroups||null==(li=Zt._complementaryObjectsWithAuthzGroups.get(yt.roleName))?null:li.get("vo"))}}function l(rt,Ft){if(1&rt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&rt){const yt=e.oxw(5).$implicit,Zt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+yt.roleName+"_GROUPS_"+Zt.entityType)," ")}}const d=function(){return["id","vo","name","description"]},s=function(){return["select","id","vo","name","description"]},E=function(){return["id","vo","name","description","authzGroup"]};function B(rt,Ft){if(1&rt&&(e.TgZ(0,"div",20),e.YNc(1,l,3,3,"div",2),e._UZ(2,"perun-web-apps-groups-list",22),e.ALo(3,"async"),e.qZA()),2&rt){const yt=e.oxw(4).$implicit,Zt=e.oxw(2);let li;e.xp6(1),e.Q6J("ngIf",Zt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===yt.roleName?e.DdM(8,d):Zt.editable?e.DdM(9,s):e.DdM(10,E))("groups",e.lcZ(3,6,Zt.groups))("selection",Zt.selection)("authzVoNames",Zt.voNames)("groupWithAuthzGroupPairs",null==Zt._complementaryObjectsWithAuthzGroups||null==(li=Zt._complementaryObjectsWithAuthzGroups.get(yt.roleName))?null:li.get("group"))}}function q(rt,Ft){if(1&rt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&rt){const yt=e.oxw(5).$implicit,Zt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+yt.roleName+"_RESOURCES_"+Zt.entityType)," ")}}const qe=function(){return["id","name","vo","facility","description"]},it=function(){return["select","id","name","vo","facility","description"]},xt=function(){return["id","name","vo","facility","description","authzGroup"]};function ht(rt,Ft){if(1&rt&&(e.TgZ(0,"div",20),e.YNc(1,q,3,3,"div",2),e._UZ(2,"perun-web-apps-resources-list",23),e.ALo(3,"async"),e.qZA()),2&rt){const yt=e.oxw(4).$implicit,Zt=e.oxw(2);let li;e.xp6(1),e.Q6J("ngIf",Zt.showDescription),e.xp6(1),e.Q6J("resources",e.lcZ(3,7,Zt.resources))("displayedColumns","MEMBERSHIP"===yt.roleName?e.DdM(9,qe):Zt.editable?e.DdM(10,it):e.DdM(11,xt))("routingVo",!0)("selection",Zt.selection)("authzVoNames",Zt.voNames)("resourceWithAuthzGroupPairs",null==Zt._complementaryObjectsWithAuthzGroups||null==(li=Zt._complementaryObjectsWithAuthzGroups.get(yt.roleName))?null:li.get("resource"))}}function _t(rt,Ft){if(1&rt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&rt){const yt=e.oxw(5).$implicit,Zt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+yt.roleName+"_FACILITIES_"+Zt.entityType)," ")}}const Ee=function(){return["id","name","description"]},we=function(){return["select","id","name","description"]},de=function(){return["id","name","description","authzGroup"]};function Ae(rt,Ft){if(1&rt&&(e.TgZ(0,"div",20),e.YNc(1,_t,3,3,"div",2),e._UZ(2,"perun-web-apps-facilities-list",24),e.ALo(3,"async"),e.qZA()),2&rt){const yt=e.oxw(4).$implicit,Zt=e.oxw(2);let li;e.xp6(1),e.Q6J("ngIf",Zt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===yt.roleName?e.DdM(8,Ee):Zt.editable?e.DdM(9,we):e.DdM(10,de))("facilities",e.lcZ(3,6,Zt.facilities))("selection",Zt.selectedFacilities)("authzVoNames",Zt.voNames)("facilityWithAuthzGroupPairs",null==Zt._complementaryObjectsWithAuthzGroups||null==(li=Zt._complementaryObjectsWithAuthzGroups.get(yt.roleName))?null:li.get("facility"))}}function Te(rt,Ft){if(1&rt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&rt){const yt=e.oxw(5).$implicit,Zt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+yt.roleName+"_MEMBERS_"+Zt.entityType)," ")}}const ut=function(){return["id","fullName","sponsored"]};function bt(rt,Ft){if(1&rt&&(e.TgZ(0,"div",20),e.YNc(1,Te,3,3,"div",2),e._UZ(2,"perun-web-apps-members-list",25),e.ALo(3,"async"),e.qZA()),2&rt){const yt=e.oxw(6);e.xp6(1),e.Q6J("ngIf",yt.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(5,ut))("members",e.lcZ(3,3,yt.members))}}function Ht(rt,Ft){if(1&rt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&rt){const yt=e.oxw(5).$implicit,Zt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+yt.roleName+"_USERS_"+Zt.entityType)," ")}}const Mt=function(){return["user","id","name"]};function It(rt,Ft){if(1&rt&&(e.TgZ(0,"div",20),e.YNc(1,Ht,3,3,"div",2),e._UZ(2,"app-users-list",26),e.ALo(3,"async"),e.qZA()),2&rt){const yt=e.oxw(6);e.xp6(1),e.Q6J("ngIf",yt.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(6,Mt))("disableRouting",!0)("users",e.lcZ(3,4,yt.users))}}function ai(rt,Ft){if(1&rt&&(e.TgZ(0,"div"),e.YNc(1,c,4,11,"div",19),e.YNc(2,B,4,11,"div",19),e.YNc(3,ht,4,12,"div",19),e.YNc(4,Ae,4,11,"div",19),e.YNc(5,bt,4,6,"div",19),e.YNc(6,It,4,7,"div",19),e.qZA()),2&rt){const yt=e.oxw(3).$implicit;e.xp6(1),e.Q6J("ngIf","Vo"===yt.primaryObject||"MEMBERSHIP"===yt.roleName),e.xp6(1),e.Q6J("ngIf","Group"===yt.primaryObject||"MEMBERSHIP"===yt.roleName),e.xp6(1),e.Q6J("ngIf","Resource"===yt.primaryObject||"MEMBERSHIP"===yt.roleName),e.xp6(1),e.Q6J("ngIf","Facility"===yt.primaryObject||"MEMBERSHIP"===yt.roleName),e.xp6(1),e.Q6J("ngIf","SPONSORSHIP"===yt.roleName),e.xp6(1),e.Q6J("ngIf","SELF"===yt.roleName)}}function pi(rt,Ft){if(1&rt&&(e.TgZ(0,"div",17),e.YNc(1,ai,7,6,"div",18),e.qZA()),2&rt){const yt=e.oxw(4),Zt=e.MAs(5);e.xp6(1),e.Q6J("perunWebAppsLoader",yt.loading)("perunWebAppsLoaderIndicator",Zt)}}function Ut(rt,Ft){if(1&rt&&(e.YNc(0,o,5,9,"span",13),e.YNc(1,pi,2,2,"div",14)),2&rt){const yt=e.oxw().$implicit,Zt=e.MAs(1),li=e.oxw(2);e.Q6J("ngIf",li.editable&&"SELF"!==yt.roleName&&"MEMBERSHIP"!==yt.roleName&&"SPONSORSHIP"!==yt.roleName),e.xp6(1),e.Q6J("ngIf",Zt.expanded)}}function Tt(rt,Ft){if(1&rt){const yt=e.EpF();e.TgZ(0,"mat-expansion-panel",8,9),e.NdJ("opened",function(){const Di=e.CHM(yt).$implicit,At=e.oxw(2);return e.KtG(At.selectedRole.next(Di))})("closed",function(){e.CHM(yt);const li=e.oxw(2);return e.KtG(li.selection.clear())}),e.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),e._UZ(4,"mat-icon",10),e.TgZ(5,"p",11),e._uU(6),e.ALo(7,"displayedRole"),e.qZA()()(),e.YNc(8,Ut,2,2,"ng-template",12),e.qZA()}if(2&rt){const yt=Ft.$implicit;e.xp6(6),e.Oqu(e.lcZ(7,1,yt))}}function Se(rt,Ft){if(1&rt&&(e.TgZ(0,"mat-accordion"),e.YNc(1,Tt,9,3,"mat-expansion-panel",7),e.qZA()),2&rt){const yt=e.oxw();e.xp6(1),e.Q6J("ngForOf",yt.allRules)}}function We(rt,Ft){1&rt&&(e.TgZ(0,"perun-web-apps-alert",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&rt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.NO_ROLES"),"\n"))}function oe(rt,Ft){1&rt&&(e.TgZ(0,"div",28),e._UZ(1,"mat-spinner"),e.qZA())}let et=(()=>{class rt{constructor(yt,Zt,li,Di,At,Nt,ft,Bt,Kt,ii,di,Ai,Ri){this.authzResolverService=yt,this.usersService=Zt,this.vosService=li,this.facilitiesService=Di,this.resourcesService=At,this.groupsService=Nt,this.membersService=ft,this.dialog=Bt,this.notification=Kt,this.translate=ii,this.rolePipe=di,this.guiAuthResolver=Ai,this.manageableEntities=Ri,this.editable=!0,this.reload=new e.vpe,this.startLoading=new e.vpe,this.selection=new M.Ov(!0,[]),this.selectedFacilities=new M.Ov(!0,[]),this.assignableRules=[],this.allRules=[],this.disableRemove=!1,this.voNames=new Map,this.selectedRole=new ue.X(null),this.groups=this.selectedRole.pipe((0,Ue.w)(Dt=>{this.loading=!0;const Gt=this.roles.get(Dt.roleName).get("Group");return Gt?.length?this.groupsService.getGroupsByIds(Gt):(0,Pe.of)([])}),(0,pt.b)(()=>this.loading=!1),(0,z.O)([])),this.vos=this.selectedRole.pipe((0,Ue.w)(Dt=>{this.loading=!0;const Gt=this.roles.get(Dt.roleName).get("Vo");return Gt?.length?this.vosService.getVosByIds(Gt):(0,Pe.of)([])}),(0,pt.b)(()=>this.loading=!1),(0,z.O)([])),this.facilities=this.selectedRole.pipe((0,Ue.w)(Dt=>{this.loading=!0;const Gt=this.roles.get(Dt.roleName).get("Facility");return Gt?.length?this.facilitiesService.getFacilitiesByIds(Gt):(0,Pe.of)([])}),(0,st.U)(Dt=>Dt.map(Gt=>({facility:Gt}))),(0,pt.b)(()=>this.loading=!1),(0,z.O)([])),this.resources=this.selectedRole.pipe((0,Ue.w)(Dt=>{this.loading=!0;const Gt=this.roles.get(Dt.roleName).get("Resource");return Gt?.length?this.resourcesService.getRichResourcesByIds(Gt):(0,Pe.of)([])}),(0,pt.b)(()=>this.loading=!1),(0,z.O)([])),this.members=this.selectedRole.pipe((0,Ue.w)(Dt=>this.membersService.getRichMembersByIds(this.roles.get(Dt.roleName).get("Member"))),(0,pt.b)(()=>this.loading=!1),(0,z.O)([])),this.users=this.selectedRole.pipe((0,Ue.w)(Dt=>this.usersService.getRichUsersByIds([this.entityId].concat(this.roles.get(Dt.roleName).get("User")))),(0,pt.b)(()=>this.loading=!1),(0,z.O)([])),this._complementaryObjectsWithAuthzGroups=new Map,this._roles=new Map}get roles(){return this._roles}set roles(yt){this._roles=yt,this.allRules=this.guiAuthResolver.getAllRules().filter(Zt=>this._roles.has(Zt.roleName))}set complementaryObjectsWithAuthzGroups(yt){this._complementaryObjectsWithAuthzGroups=yt,this.updateVoNames()}ngOnInit(){this.assignableRules=this.guiAuthResolver.getAssignableRoleRules("GROUP"===this.entityType?"GROUP":"USER"),this.selection.changed.subscribe(yt=>{const Zt=yt.source.selected.map(Di=>{if("beanName"in Di)return Di}),li=this.manageableEntities.transform(Zt,this.selectedRole.getValue()).length;this.disableRemove=yt.source.selected.length!==li}),this.selectedFacilities.changed.subscribe(yt=>{const Zt=yt.source.selected.map(Di=>{if("facility"in Di)return Di.facility}),li=this.manageableEntities.transform(Zt,this.selectedRole.getValue()).length;this.disableRemove=yt.source.selected.length!==li})}addRole(){const yt=(0,A.kZ)();let Zt;yt.width="650px",yt.data={entityId:this.entityId,roles:this.roles},Zt=this.dialog.open("GROUP"===this.entityType?X:ce,yt),Zt.afterClosed().subscribe({next:li=>{li&&(this.startLoading.emit(),this.refresh())}})}openConfirmDialog(yt){const Zt=(0,A.kZ)(),li=this.getItems();Zt.width="550px",Zt.data={theme:"GROUP"===this.entityType?"group-theme":"user-theme",title:"ROLES.REMOVE",description:this.selectedRole.getValue().primaryObject?this.translate.instant("ROLES.REMOVE_DESC_WITH_OBJECTS",{role:this.rolePipe.transform(yt),count:li.length}):this.translate.instant("ROLES.REMOVE_DESC",{role:this.rolePipe.transform(yt)}),items:li,alert:!1,type:"remove",showAsk:!0},this.dialog.open(Me.Ts,Zt).afterClosed().subscribe({next:At=>{At&&(this.startLoading.emit(),yt.primaryObject?this.removeRoleWithComplementaryObject(yt):this.removeRole(yt))}})}getItems(){return this.selectedRole.getValue().primaryObject?"Facility"===this.selectedRole.getValue().primaryObject?this.selectedFacilities.selected.map(yt=>yt.facility.name):this.selection.selected.map(yt=>yt.name):[]}removeRole(yt){(0,Pe.of)(this.entityType).pipe((0,tt.z)(Zt=>at(()=>"GROUP"===Zt,this.authzResolverService.unsetRoleForGroup({role:yt.roleName,authorizedGroup:this.entityId}),this.authzResolverService.unsetRoleForUser({role:yt.roleName,user:this.entityId})))).subscribe({next:()=>{this.showSuccess(yt),this.refresh()},error:()=>{this.selection.clear(),this.outerLoading=!1}})}removeRoleWithComplementaryObject(yt){let Zt;0!==this.selection.selected.length&&"beanName"in this.selection.selected[0]?(Zt=this.selection.selected,"RichResource"===Zt[0].beanName&&(Zt=Zt.map(li=>this.parseResource(li)))):0!==this.selectedFacilities.selected.length&&"facility"in this.selectedFacilities.selected[0]&&(Zt=this.selectedFacilities.selected.map(li=>this.parseFacility(li))),(0,Pe.of)(this.entityType).pipe((0,tt.z)(li=>at(()=>"GROUP"===li,this.authzResolverService.unsetRoleWithGroupComplementaryObjects({role:yt.roleName,complementaryObjects:Zt,authorizedGroup:this.entityId}),this.authzResolverService.unsetRoleWithUserComplementaryObjects({role:yt.roleName,complementaryObjects:Zt,user:this.entityId})))).subscribe({next:()=>{this.showSuccess(yt),this.refresh()},error:()=>{this.selection.clear(),this.outerLoading=!1}})}showSuccess(yt){this.notification.showSuccess(this.translate.instant("ROLES.REMOVE_SUCCESS",{role:this.rolePipe.transform(yt)}))}refresh(){this.selection.clear(),setTimeout(()=>{this.reload.emit(),this.outerLoading=!1},500)}parseFacility(yt){return yt.facility}parseResource(yt){return{beanName:"Resource",id:yt.id,description:yt.description,createdByUid:yt.createdByUid,createdAt:yt.createdAt,facilityId:yt.facilityId,createdBy:yt.createdBy,modifiedAt:yt.modifiedAt,modifiedBy:yt.modifiedBy,name:yt.name,uuid:yt.uuid,voId:yt.voId,modifiedByUid:yt.modifiedByUid}}updateVoNames(){const yt=new Set;this._complementaryObjectsWithAuthzGroups.forEach(Zt=>{Zt.forEach(li=>{li.forEach(Di=>{Di.forEach(At=>{!yt.has(At.voId)&&!this.voNames.has(At.voId)&&yt.add(At.voId)})})})}),yt.size>0&&this.vosService.getVosByIds([...yt]).subscribe(Zt=>{Zt.forEach(li=>{this.voNames.set(li.id,li.name)})})}}return rt.\u0275fac=function(yt){return new(yt||rt)(e.Y36(f.Ct),e.Y36(f.Fv),e.Y36(f.YF),e.Y36(f.IQ),e.Y36(f.xk),e.Y36(f.ff),e.Y36(f.uq),e.Y36(S.uw),e.Y36(m.V6),e.Y36(m.Te),e.Y36(w.i2),e.Y36(m.x4),e.Y36(w.GY))},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["app-perun-web-apps-roles-page"]],inputs:{outerLoading:"outerLoading",showDescription:"showDescription",entityId:"entityId",entityType:"entityType",editable:"editable",roles:"roles",complementaryObjectsWithAuthzGroups:"complementaryObjectsWithAuthzGroups"},outputs:{reload:"reload",startLoading:"startLoading"},features:[e._Bn([w.i2,w.GY])],decls:6,vars:4,consts:[["mat-flat-button","","color","accent","class","mb-3 me-2 mt-2",3,"click",4,"ngIf"],["class","ms-auto me-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],["spinner",""],["mat-flat-button","","color","accent",1,"mb-3","me-2","mt-2",3,"click"],[1,"ms-auto","me-auto"],[3,"opened","closed",4,"ngFor","ngForOf"],[3,"opened","closed"],["panel",""],["mat-card-avatar","","svgIcon","perun-user-dark",1,"me-2"],[1,"mt-auto","mb-auto"],["matExpansionPanelContent",""],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled",4,"ngIf"],["class","position-relative",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[1,"position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["class","mb-3",4,"ngIf"],[1,"mb-3"],[3,"displayedColumns","vos","selection","authzVoNames","voWithAuthzGroupPairs"],[3,"displayedColumns","groups","selection","authzVoNames","groupWithAuthzGroupPairs"],[3,"resources","displayedColumns","routingVo","selection","authzVoNames","resourceWithAuthzGroupPairs"],[3,"displayedColumns","facilities","selection","authzVoNames","facilityWithAuthzGroupPairs"],[3,"displayedColumns","members"],[3,"displayedColumns","disableRouting","users"],["alert_type","warn"],[1,"spinner-container"]],template:function(yt,Zt){1&yt&&(e.YNc(0,_,3,3,"button",0),e.YNc(1,C,1,0,"mat-spinner",1),e.YNc(2,Se,2,1,"mat-accordion",2),e.YNc(3,We,3,3,"perun-web-apps-alert",3),e.YNc(4,oe,2,0,"ng-template",null,4,e.W1O)),2&yt&&(e.Q6J("ngIf",0!==Zt.assignableRules.length&&Zt.editable),e.xp6(1),e.Q6J("ngIf",Zt.outerLoading),e.xp6(1),e.Q6J("ngIf",!Zt.outerLoading&&Zt.roles.size>0),e.xp6(1),e.Q6J("ngIf",!Zt.outerLoading&&0===Zt.roles.size))},dependencies:[I.sg,I.O5,be.Hw,Ye.pp,Ye.ib,Ye.yz,Ye.yK,Ye.HS,F.lW,he.Ou,Re.gM,He.kc,ve.w,H.Z,P.W,fe.C,Oe.O,j.X,pe.e,r.C,I.Ov,_e.X$,u.i],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"],changeDetection:0}),rt})()},60205:(Qe,ae,p)=>{"use strict";p.d(ae,{Q:()=>tt});var e=p(94650),f=p(96308),A=p(30671),S=p(95017),m=p(9244),M=p(80279),w=p(36895),x=p(82761),I=p(97392),F=p(56709),T=p(10266),H=p(98380),P=p(34198),J=p(55660),fe=p(18750),j=p(89383),$=p(9185),_e=p(8231),ge=p(14849);function pe(Ce,at){if(1&Ce){const Ue=e.EpF();e.TgZ(0,"th",19)(1,"mat-checkbox",20),e.NdJ("change",function(z){e.CHM(Ue);const st=e.oxw(2);return e.KtG(z?st.masterToggle():null)}),e.ALo(2,"translate"),e.ALo(3,"masterCheckboxLabel"),e.qZA()()}if(2&Ce){const Ue=e.oxw().ngIf,pt=e.oxw();e.xp6(1),e.Q6J("aria-label",e.lcZ(2,3,e.lcZ(3,5,Ue.all)))("checked",pt.selection.hasValue()&&Ue.all)("indeterminate",pt.selection.hasValue()&&!Ue.all)}}const re=function(Ce){return{name:Ce}};function v(Ce,at){if(1&Ce){const Ue=e.EpF();e.TgZ(0,"td",21)(1,"mat-checkbox",22),e.NdJ("change",function(z){const be=e.CHM(Ue).$implicit,Ye=e.oxw(2);return e.KtG(z?Ye.selection.toggle(be):null)})("click",function(z){return z.stopPropagation()}),e.ALo(2,"lowercase"),e.ALo(3,"translate"),e.ALo(4,"checkboxLabel"),e.qZA()()}if(2&Ce){const Ue=at.$implicit,pt=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",e.lcZ(2,3,Ue.name),"-checkbox"),e.Q6J("aria-label",e.xi3(3,5,e.lcZ(4,8,pt.selection.isSelected(Ue)),e.VKq(10,re,Ue.name)))("checked",pt.selection.isSelected(Ue))}}function V(Ce,at){1&Ce&&(e.ynx(0,16),e.YNc(1,pe,4,7,"th",17),e.YNc(2,v,5,12,"td",18),e.BQk())}function W(Ce,at){1&Ce&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ce&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")," "))}function te(Ce,at){if(1&Ce&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&Ce){const Ue=at.$implicit;e.xp6(1),e.Oqu(Ue.id)}}function ne(Ce,at){1&Ce&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ce&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")," "))}function ye(Ce,at){if(1&Ce&&(e.TgZ(0,"td",25),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&Ce){const Ue=at.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,Ue.name),"-name-td"),e.xp6(2),e.hij(" ",Ue.name," ")}}function ze(Ce,at){1&Ce&&e._UZ(0,"th",26)}function ke(Ce,at){1&Ce&&(e.TgZ(0,"mat-icon",29),e.ALo(1,"translate"),e._uU(2," check_circle_outline "),e.qZA()),2&Ce&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function $e(Ce,at){1&Ce&&(e.TgZ(0,"mat-icon",30),e.ALo(1,"translate"),e._uU(2," block "),e.qZA()),2&Ce&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function Je(Ce,at){if(1&Ce&&(e.TgZ(0,"td",25),e.YNc(1,ke,3,3,"mat-icon",27),e.YNc(2,$e,3,3,"mat-icon",28),e.qZA()),2&Ce){const Ue=at.$implicit;e.xp6(1),e.Q6J("ngIf",Ue.enabled),e.xp6(1),e.Q6J("ngIf",!Ue.enabled)}}function Fe(Ce,at){1&Ce&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ce&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")," "))}function Ve(Ce,at){if(1&Ce&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&Ce){const Ue=at.$implicit;e.xp6(1),e.Oqu(Ue.script)}}function le(Ce,at){1&Ce&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ce&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")," "))}function N(Ce,at){if(1&Ce&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&Ce){const Ue=at.$implicit;e.xp6(1),e.Oqu(Ue.description)}}function U(Ce,at){1&Ce&&e._UZ(0,"tr",31)}const X=function(Ce){return["/admin/services",Ce]};function ce(Ce,at){if(1&Ce&&e._UZ(0,"tr",32),2&Ce){const Ue=at.$implicit,pt=e.oxw();e.ekj("cursor-pointer",!pt.disableRouting)("disable-outline",pt.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",pt.disableRouting?null:e.VKq(6,X,Ue.id))("routerLink",pt.disableRouting?null:e.VKq(8,X,Ue.id))}}function Me(Ce,at){1&Ce&&(e.TgZ(0,"perun-web-apps-alert",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ce&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ue(Ce,at){1&Ce&&(e.TgZ(0,"perun-web-apps-alert",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ce&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}const Pe=function(Ce){return{all:Ce}};let tt=(()=>{class Ce{constructor(Ue,pt){this.authResolver=Ue,this.tableCheckbox=pt,this.services=[],this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new S.Ov(!0,[]),this.disableRouting=!1,this.selectionChanged=new e.vpe,this.pageSizeOptions=m.f7}set matSort(Ue){this.sort=Ue,this.setDataSource()}static getDataForColumn(Ue,pt){switch(pt){case"id":return Ue.id.toString();case"name":return Ue.name;case"enabled":return Ue.enabled?"true":"false";case"script":return Ue.script;case"description":return Ue.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ue=>"id"!==Ue)),this.dataSource=new A.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}exportAllData(Ue){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,Ce.getDataForColumn),Ue)}exportDisplayedData(Ue){const pt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,z=pt+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(pt,z),this.displayedColumns,Ce.getDataForColumn),Ue)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(Ue,pt)=>(0,m.Sd)(Ue,pt,this.displayedColumns,Ce.getDataForColumn),this.dataSource.sortData=(Ue,pt)=>(0,m.pR)(Ue,pt,Ce.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Ce.\u0275fac=function(Ue){return new(Ue||Ce)(e.Y36(M.x4),e.Y36(M.UA))},Ce.\u0275cmp=e.Xpm({type:Ce,selectors:[["app-services-list"]],viewQuery:function(Ue,pt){if(1&Ue&&(e.Gf(m.l9,7),e.Gf(f.YE,7)),2&Ue){let z;e.iGM(z=e.CRH())&&(pt.child=z.first),e.iGM(z=e.CRH())&&(pt.matSort=z.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[e.TTD],decls:24,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enabled"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","script"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","align-bottom green",3,"matTooltip",4,"ngIf"],["class","align-bottom red",3,"matTooltip",4,"ngIf"],[1,"align-bottom","green",3,"matTooltip"],[1,"align-bottom","red",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Ue,pt){1&Ue&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(st){return pt.exportDisplayedData(st)})("exportAllData",function(st){return pt.exportAllData(st)}),e.TgZ(2,"table",2),e.YNc(3,V,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,W,3,3,"th",5),e.YNc(7,te,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,ne,3,3,"th",5),e.YNc(10,ye,3,4,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,ze,1,0,"th",10),e.YNc(13,Je,3,2,"td",8),e.BQk(),e.ynx(14,11),e.YNc(15,Fe,3,3,"th",10),e.YNc(16,Ve,2,1,"td",8),e.BQk(),e.ynx(17,12),e.YNc(18,le,3,3,"th",5),e.YNc(19,N,2,1,"td",8),e.BQk(),e.YNc(20,U,1,0,"tr",13),e.YNc(21,ce,1,10,"tr",14),e.qZA()()(),e.YNc(22,Me,3,3,"perun-web-apps-alert",15),e.YNc(23,ue,3,3,"perun-web-apps-alert",15)),2&Ue&&(e.Q6J("hidden",void 0===pt.services||0===pt.services.length||0===pt.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",pt.pageSizeOptions)("dataLength",pt.dataSource.filteredData.length)("tableId",pt.tableId),e.xp6(1),e.Q6J("dataSource",pt.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,Pe,e.xi3(4,10,pt.dataSource,pt.selection.selected.length))),e.xp6(17),e.Q6J("matHeaderRowDef",pt.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",pt.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===pt.dataSource.filteredData.length&&void 0!==pt.services&&0!==pt.services.length),e.xp6(1),e.Q6J("ngIf",void 0===pt.services||0===pt.services.length))},dependencies:[w.O5,x.rH,I.Hw,f.YE,f.nU,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,F.oG,T.gM,H.w,P.Y,J.Q,fe.l,w.i8,j.X$,$.I,_e.G,ge.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.green[_ngcontent-%COMP%]{color:green}.red[_ngcontent-%COMP%]{color:red}"]}),Ce})()},64877:(Qe,ae,p)=>{"use strict";p.d(ae,{C:()=>Ye});var e=p(96308),f=p(30671),A=p(95017),S=p(9244),m=p(80279),M=p(94650),w=p(36895),x=p(82761),I=p(97392),F=p(56709),T=p(10266),H=p(98380),P=p(34198),J=p(55660),fe=p(18750),j=p(89383),$=p(31359),_e=p(16119),ge=p(7598),pe=p(9954),re=p(9185),v=p(8231),V=p(14849);function W(he,Re){if(1&he){const He=M.EpF();M.TgZ(0,"mat-checkbox",22),M.NdJ("change",function(Oe){M.CHM(He);const r=M.oxw(3);return M.KtG(Oe?r.masterToggle():null)}),M.ALo(1,"translate"),M.ALo(2,"masterCheckboxLabel"),M.qZA()}if(2&he){const He=M.oxw(2).ngIf,ve=M.oxw();M.Q6J("aria-label",M.lcZ(1,3,M.lcZ(2,5,He.all)))("checked",ve.selection.hasValue()&&He.all)("indeterminate",ve.selection.hasValue()&&!He.all)}}function te(he,Re){if(1&he&&(M.TgZ(0,"th",20),M.YNc(1,W,3,7,"mat-checkbox",21),M.qZA()),2&he){const He=M.oxw(2);M.xp6(1),M.Q6J("ngIf",He.selection.isMultipleSelection())}}const ne=function(he){return{name:he}};function ye(he,Re){if(1&he){const He=M.EpF();M.TgZ(0,"td",23)(1,"mat-checkbox",24),M.NdJ("change",function(Oe){const u=M.CHM(He).$implicit,_=M.oxw(2);return M.KtG(Oe?_.selection.toggle(u):null)})("click",function(Oe){return Oe.stopPropagation()}),M.ALo(2,"translate"),M.ALo(3,"checkboxLabel"),M.ALo(4,"userFullName"),M.ALo(5,"lowercase"),M.qZA()()}if(2&he){const He=Re.$implicit,ve=M.oxw(2);M.xp6(1),M.Q2q("data-cy","",M.lcZ(5,11,He.firstName),"-checkbox"),M.Q6J("aria-label",M.xi3(2,4,M.lcZ(3,7,ve.selection.isSelected(He)),M.VKq(13,ne,M.lcZ(4,9,He))))("checked",ve.selection.isSelected(He))("disabled",ve.disableSelf&&He.id===ve.principalId&&!ve.authResolver.isPerunAdmin())}}function ze(he,Re){1&he&&(M.ynx(0,17),M.YNc(1,te,2,1,"th",18),M.YNc(2,ye,6,15,"td",19),M.BQk())}function ke(he,Re){1&he&&M._UZ(0,"th",25)}function $e(he,Re){1&he&&(M.TgZ(0,"mat-icon",29),M.ALo(1,"translate"),M._uU(2," account_circle "),M.qZA()),2&he&&M.s9C("matTooltip",M.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function Je(he,Re){if(1&he&&(M._UZ(0,"mat-icon",30),M.ALo(1,"translate")),2&he){const He=M.oxw(2);M.s9C("matTooltip",M.lcZ(1,2,"MANAGERS_LIST.SERVICE")),M.Q6J("svgIcon",He.svgIcon)}}function Fe(he,Re){if(1&he&&(M.TgZ(0,"td",26),M.YNc(1,$e,3,3,"mat-icon",27),M.YNc(2,Je,2,4,"mat-icon",28),M.qZA()),2&he){const He=Re.$implicit;M.xp6(1),M.Q6J("ngIf",!He.serviceUser),M.xp6(1),M.Q6J("ngIf",He.serviceUser)}}function Ve(he,Re){1&he&&(M.TgZ(0,"th",31),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&he&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function le(he,Re){if(1&he&&(M.TgZ(0,"td",26),M._uU(1),M.qZA()),2&he){const He=Re.$implicit;M.xp6(1),M.hij(" ",He.id," ")}}function N(he,Re){1&he&&(M.TgZ(0,"th",31),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&he&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function U(he,Re){if(1&he&&(M.TgZ(0,"td",32),M.ALo(1,"lowercase"),M._uU(2),M.ALo(3,"userFullName"),M.qZA()),2&he){const He=Re.$implicit;M.Q2q("data-cy","",M.lcZ(1,2,He.firstName),"-firstName-td"),M.xp6(2),M.hij(" ",M.lcZ(3,4,He)," ")}}function X(he,Re){1&he&&(M.TgZ(0,"th",31),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&he&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function ce(he,Re){if(1&he&&(M.TgZ(0,"td",32),M._uU(1),M.ALo(2,"userVo"),M.qZA()),2&he){const He=Re.$implicit;M.xp6(1),M.Oqu(M.lcZ(2,1,He))}}function Me(he,Re){1&he&&(M.TgZ(0,"th",31),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&he&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function ue(he,Re){if(1&he&&(M.TgZ(0,"td",32),M._uU(1),M.ALo(2,"userEmail"),M.qZA()),2&he){const He=Re.$implicit;M.xp6(1),M.Oqu(M.lcZ(2,1,He))}}function Pe(he,Re){1&he&&(M.TgZ(0,"th",31),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&he&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function tt(he,Re){if(1&he&&(M.TgZ(0,"td",32),M._uU(1),M.ALo(2,"userLogins"),M.qZA()),2&he){const He=Re.$implicit;M.xp6(1),M.Oqu(M.lcZ(2,1,He))}}function Ce(he,Re){1&he&&M._UZ(0,"tr",33)}const at=function(he){return["/admin/users",he]},Ue=function(he){return["/myProfile/service-identities",he]};function pt(he,Re){if(1&he&&M._UZ(0,"tr",34),2&he){const He=Re.$implicit,ve=M.oxw();M.ekj("cursor-pointer",!ve.disableRouting),M.Q6J("routerLink",ve.disableRouting?null:ve.routeToAdmin?M.VKq(4,at,He.id):M.VKq(6,Ue,He.id))("perunWebAppsMiddleClickRouterLink",ve.disableRouting?null:ve.routeToAdmin?M.VKq(8,at,He.id):M.VKq(10,Ue,He.id))}}function z(he,Re){if(1&he&&(M.TgZ(0,"perun-web-apps-alert",35),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&he){const He=M.oxw();M.xp6(1),M.hij(" ",He.noUsersFoundLabel?He.noUsersFoundLabel:M.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function st(he,Re){1&he&&(M.TgZ(0,"perun-web-apps-alert",35),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&he&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const be=function(he){return{all:he}};let Ye=(()=>{class he{constructor(He,ve,Oe){this.authResolver=He,this.tableCheckbox=ve,this.storeService=Oe,this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.routeToAdmin=!0,this.disableRouting=!1,this.filter="",this.disableSelf=!1,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=S.f7}set matSort(He){this.sort=He}static getDataForColumn(He,ve){switch(ve){case"id":return He.id.toString();case"user":return He.serviceUser?"true":"false";case"name":return He?He.lastName?He.lastName:He.firstName??"":"";case"organization":return(0,S.OV)(He);case"email":return(0,S.kN)(He);case"logins":return(0,S.lt)(He);default:return""}}static getExportDataForColumn(He,ve){switch(ve){case"id":return He.id.toString();case"user":return He.serviceUser?"service-user":"user";case"name":return He?(0,S.bD)(He):"";case"organization":return(0,S.OV)(He);case"email":return(0,S.kN)(He);case"logins":return(0,S.lt)(He);default:return""}}exportAllData(He){(0,S.O6)((0,S.Xn)(this.dataSource.filteredData,this.displayedColumns,he.getExportDataForColumn),He)}exportDisplayedData(He){const ve=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Oe=ve+this.dataSource.paginator.pageSize;(0,S.O6)((0,S.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ve,Oe),this.displayedColumns,he.getExportDataForColumn),He)}setDataSource(){this.dataSource||(this.dataSource=new f.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(He,ve)=>(0,S.Sd)(He,ve,this.displayedColumns,he.getDataForColumn),this.dataSource.sortData=(He,ve)=>(0,S.pR)(He,ve,he.getDataForColumn)),this.dataSource.filter=this.filter,this.dataSource.data=this.users}ngOnChanges(){this.principalId=this.storeService.getPerunPrincipal().userId,this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(He=>"id"!==He)),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return he.\u0275fac=function(He){return new(He||he)(M.Y36(m.x4),M.Y36(m.UA),M.Y36(m.d6))},he.\u0275cmp=M.Xpm({type:he,selectors:[["app-users-list"]],viewQuery:function(He,ve){if(1&He&&(M.Gf(S.l9,7),M.Gf(e.YE,7)),2&He){let Oe;M.iGM(Oe=M.CRH())&&(ve.child=Oe.first),M.iGM(Oe=M.CRH())&&(ve.matSort=Oe.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[M.TTD],decls:27,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"svgIcon","matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"svgIcon","matTooltip"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(He,ve){1&He&&(M.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),M.NdJ("exportDisplayedData",function(r){return ve.exportDisplayedData(r)})("exportAllData",function(r){return ve.exportAllData(r)}),M.TgZ(2,"table",2),M.YNc(3,ze,3,0,"ng-container",3),M.ALo(4,"isAllSelected"),M.ynx(5,4),M.YNc(6,ke,1,0,"th",5),M.YNc(7,Fe,3,2,"td",6),M.BQk(),M.ynx(8,7),M.YNc(9,Ve,3,3,"th",8),M.YNc(10,le,2,1,"td",6),M.BQk(),M.ynx(11,9),M.YNc(12,N,3,3,"th",8),M.YNc(13,U,4,6,"td",10),M.BQk(),M.ynx(14,11),M.YNc(15,X,3,3,"th",8),M.YNc(16,ce,3,3,"td",10),M.BQk(),M.ynx(17,12),M.YNc(18,Me,3,3,"th",8),M.YNc(19,ue,3,3,"td",10),M.BQk(),M.ynx(20,13),M.YNc(21,Pe,3,3,"th",8),M.YNc(22,tt,3,3,"td",10),M.BQk(),M.YNc(23,Ce,1,0,"tr",14),M.YNc(24,pt,1,12,"tr",15),M.qZA()()(),M.YNc(25,z,3,3,"perun-web-apps-alert",16),M.YNc(26,st,3,3,"perun-web-apps-alert",16)),2&He&&(M.Q6J("hidden",0===ve.users.length||!ve.dataSource||0===ve.dataSource.filteredData.length),M.xp6(1),M.Q6J("dataLength",ve.dataSource.filteredData.length)("pageSizeOptions",ve.pageSizeOptions)("tableId",ve.tableId),M.xp6(1),M.Q6J("dataSource",ve.dataSource),M.xp6(1),M.Q6J("ngIf",M.VKq(13,be,M.xi3(4,10,ve.dataSource,ve.selection.selected.length))),M.xp6(20),M.Q6J("matHeaderRowDef",ve.displayedColumns),M.xp6(1),M.Q6J("matRowDefColumns",ve.displayedColumns),M.xp6(1),M.Q6J("ngIf",0===ve.users.length),M.xp6(1),M.Q6J("ngIf",0===ve.dataSource.filteredData.length&&0!==ve.users.length))},dependencies:[w.O5,x.rH,I.Hw,e.YE,e.nU,f.BZ,f.fO,f.as,f.w1,f.Dz,f.nj,f.ge,f.ev,f.XQ,f.Gk,F.oG,T.gM,H.w,P.Y,J.Q,fe.l,w.i8,j.X$,$.d,_e.S,ge.g,pe.Z,re.I,v.G,V.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),he})()},57706:(Qe,ae,p)=>{"use strict";p.d(ae,{c:()=>A});var e=p(94650),f=p(89383);let A=(()=>{class S{constructor(M){this.translateService=M,this.returnData=""}transform(M){return this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES."+M).subscribe(w=>{this.returnData=w}),this.returnData}}return S.\u0275fac=function(M){return new(M||S)(e.Y36(f.sK,16))},S.\u0275pipe=e.Yjl({name:"applicationFormItemType",type:S,pure:!0}),S})()},43157:(Qe,ae,p)=>{"use strict";p.d(ae,{h:()=>A});var e=p(94650),f=p(89383);let A=(()=>{class S{constructor(M){this.translate=M,this.returnData=""}transform(M){switch(M){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(w=>{this.returnData=`done${w}`});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(w=>{this.returnData=`clear${w}`});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(w=>{this.returnData=`contact_mail ${w}`});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(w=>{this.returnData=`gavel${w}`});break;default:this.returnData=M}return this.returnData}}return S.\u0275fac=function(M){return new(M||S)(e.Y36(f.sK,16))},S.\u0275pipe=e.Yjl({name:"applicationState",type:S,pure:!1}),S})()},70844:(Qe,ae,p)=>{"use strict";p.d(ae,{u:()=>A});var e=p(80279),f=p(94650);let A=(()=>{class S{constructor(M){this.storeService=M,this.USER_CONSENT_RELATED_ATT_NAMESPACE=["urn:perun:user_facility:attribute-def","urn:perun:user:attribute-def","urn:perun:member:attribute-def","urn:perun:member_group:attribute-def","urn:perun:member_resource:attribute-def","urn:perun:ues:attribute-def"]}transform(M,w,x){return!!(this.storeService.getProperty("enforce_consents")&&x&&w)&&this.USER_CONSENT_RELATED_ATT_NAMESPACE.reduce((F,T)=>F||M.startsWith(T),!1)}}return S.\u0275fac=function(M){return new(M||S)(f.Y36(e.d6,16))},S.\u0275pipe=f.Yjl({name:"consentRelatedAttribute",type:S,pure:!0}),S})()},37677:(Qe,ae,p)=>{"use strict";p.d(ae,{A:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){return m.substring(40)}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"extSourceType",type:A,pure:!0}),A})()},32597:(Qe,ae,p)=>{"use strict";p.d(ae,{g:()=>S});var e=p(95698),f=p(94650),A=p(82761);let S=(()=>{class m{constructor(w,x){this.router=w,this.route=x}navigate(w,x=null){this.route.queryParams.pipe((0,e.q)(1)).subscribe(I=>{let F="merge";const T=Object.assign({},I);location.pathname.endsWith("applicationForm/preview")&&(F="",delete T.applicationFormItems),this.router.navigate(w,{relativeTo:x,queryParams:T,queryParamsHandling:F})})}}return m.\u0275fac=function(w){return new(w||m)(f.LFG(A.F0),f.LFG(A.gz))},m.\u0275prov=f.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},14264:(Qe,ae,p)=>{"use strict";p.d(ae,{m:()=>ut});var e=p(36895),f=p(82761),A=p(47957),S=p(4859),m=p(56709),M=p(3238),w=p(99602),x=p(7274),I=p(44850),F=p(37084),T=p(59549),H=p(97392),P=p(284),J=p(98739),fe=p(73162),j=p(51572),$=p(71948),_e=p(84385),ge=p(23267),pe=p(90455),re=p(17009),v=p(96308),V=p(30671),W=p(3848),te=p(10266),ne=p(35423),ye=p(73546),ze=p(42673),ke=p(77331),$e=p(28255),Je=p(86257),Fe=p(24006),Ve=p(73228),le=p(36769),N=p(80279),U=p(94650),X=p(32597),ce=p(34198),Me=p(89383);const ue=["collapse"],Pe=function(){return{color:"linkTextColor"}};function tt(bt,Ht){1&bt&&(U.TgZ(0,"mat-icon",14),U._uU(1,"keyboard_arrow_right"),U.qZA()),2&bt&&U.Q6J("ngStyle",U.DdM(1,Pe))}function Ce(bt,Ht){1&bt&&(U.TgZ(0,"mat-icon",14),U._uU(1,"keyboard_arrow_down"),U.qZA()),2&bt&&U.Q6J("ngStyle",U.DdM(1,Pe))}function at(bt,Ht){if(1&bt&&(U.TgZ(0,"span",12),U.YNc(1,tt,2,2,"mat-icon",13),U.YNc(2,Ce,2,2,"mat-icon",13),U.qZA()),2&bt){const Mt=U.oxw().$implicit,It=U.oxw(2);U.xp6(1),U.Q6J("ngIf",!It.isActive(It.currentUrl,Mt.showChildrenRegex)),U.xp6(1),U.Q6J("ngIf",It.isActive(It.currentUrl,Mt.showChildrenRegex))}}const Ue=function(bt,Ht){return{color:bt,"border-color":Ht}};function pt(bt,Ht){if(1&bt){const Mt=U.EpF();U.TgZ(0,"a",17),U.NdJ("click",function(){const pi=U.CHM(Mt).$implicit,Ut=U.oxw(4);return U.KtG(Ut.navigate(pi.url))}),U._uU(1),U.ALo(2,"translate"),U.qZA()}if(2&bt){const Mt=Ht.$implicit,It=U.oxw(4);U.ekj("activated",It.isActive(It.currentUrl,Mt.activatedRegex)&&void 0===It.item.activatedClass),U.Q6J("perunWebAppsMiddleClickRouterLink",Mt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",It.isActive(It.currentUrl,Mt.activatedRegex)&&void 0!==It.item.activatedClass?It.item.activatedClass:"")("ngStyle",U.WLB(9,Ue,It.linkTextColor,It.linkTextColor)),U.xp6(1),U.hij(" ",U.lcZ(2,7,Mt.label)," ")}}function z(bt,Ht){if(1&bt&&(U.TgZ(0,"div",15),U.YNc(1,pt,3,12,"a",16),U.qZA()),2&bt){const Mt=U.oxw().$implicit;U.Q6J("@rollInOut",void 0),U.xp6(1),U.Q6J("ngForOf",null==Mt?null:Mt.children)}}function st(bt,Ht){if(1&bt){const Mt=U.EpF();U.TgZ(0,"div")(1,"a",9),U.NdJ("click",function(){const pi=U.CHM(Mt).$implicit,Ut=U.oxw(2);return U.KtG(Ut.navigate(pi.url))}),U._uU(2),U.ALo(3,"translate"),U.YNc(4,at,3,2,"span",10),U.qZA(),U.YNc(5,z,2,2,"div",11),U.qZA()}if(2&bt){const Mt=Ht.$implicit,It=U.oxw(2);U.xp6(1),U.ekj("activated",It.isActive(It.currentUrl,Mt.activatedRegex)&&void 0===It.item.activatedClass),U.Q6J("perunWebAppsMiddleClickRouterLink",Mt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",It.isActive(It.currentUrl,Mt.activatedRegex)&&void 0!==It.item.activatedClass?It.item.activatedClass:"")("ngStyle",U.WLB(11,Ue,It.linkTextColor,It.linkTextColor)),U.xp6(1),U.hij(" ",U.lcZ(3,9,Mt.label)," "),U.xp6(2),U.Q6J("ngIf",Mt.children),U.xp6(1),U.Q6J("ngIf",It.isActive(It.currentUrl,Mt.showChildrenRegex))}}function be(bt,Ht){if(1&bt&&(U.TgZ(0,"div"),U.YNc(1,st,6,14,"div",8),U.qZA()),2&bt){const Mt=U.oxw();U.Q6J("@rollInOut",void 0),U.xp6(1),U.Q6J("ngForOf",Mt.item.links)}}const Ye=function(bt,Ht){return{background:bt,"border-top":Ht}},he=function(bt){return{color:bt}},Re=function(){return{color:"currentColor"}},He=function(bt){return{background:bt}};let ve=(()=>{class bt{constructor(Mt,It,ai){this.router=Mt,this.store=It,this.queryParamsRouter=ai,this.expanded=!0,this.linkBgColor=this.store.getProperty("theme").sidemenu_submenu_bg_color,this.linkTextColor=this.store.getProperty("theme").sidemenu_submenu_text_color,this.dividerStyle="1px solid "+this.store.getProperty("theme").sidemenu_divider_color,this.currentUrl=Mt.url,Mt.events.subscribe(pi=>{pi instanceof f.m2&&(this.currentUrl=pi.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(Mt,It){return new RegExp(It).test(Mt.split("?")[0])}navigate(Mt){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.queryParamsRouter.navigate(Mt)):this.queryParamsRouter.navigate(Mt)}}return bt.\u0275fac=function(Mt){return new(Mt||bt)(U.Y36(f.F0),U.Y36(N.d6),U.Y36(X.g))},bt.\u0275cmp=U.Xpm({type:bt,selectors:[["app-side-menu-item"]],viewQuery:function(Mt,It){if(1&Mt&&U.Gf(ue,5),2&Mt){let ai;U.iGM(ai=U.CRH())&&(It.collapseDiv=ai.first)}},inputs:{item:"item",index:"index",showLinks:"showLinks",sideNav:"sideNav"},decls:12,vars:26,consts:[[1,"entity-menu-item"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","click"],["matRipple","",3,"perunWebAppsMiddleClickRouterLink"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ms-3"],[3,"ngStyle"],[4,"ngIf"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ms-auto",4,"ngIf"],["class","entity-menu-item-sub-menu",4,"ngIf"],[1,"ms-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],[1,"entity-menu-item-sub-menu"],["class","entity-menu-item-sub-menu-item clickable","matRipple","",3,"perunWebAppsMiddleClickRouterLink","activated","matRippleColor","ngClass","ngStyle","click",4,"ngFor","ngForOf"],["matRipple","",1,"entity-menu-item-sub-menu-item","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"]],template:function(Mt,It){1&Mt&&(U.TgZ(0,"div",0)(1,"div",1),U.NdJ("click",function(){return It.toggle()}),U.TgZ(2,"div",2)(3,"a",3)(4,"div"),U._UZ(5,"mat-icon",4),U.qZA(),U.TgZ(6,"div",5),U._uU(7),U.ALo(8,"translate"),U.qZA()()()(),U.TgZ(9,"div")(10,"div",6),U.YNc(11,be,2,2,"div",7),U.qZA()()()),2&Mt&&(U.xp6(1),U.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",U.WLB(18,Ye,It.item.backgroundColorCss,It.index?It.dividerStyle:"none")),U.xp6(1),U.Gre("entity-menu-item-link ",It.item.labelClass,""),U.Q6J("perunWebAppsMiddleClickRouterLink",It.item.baseLink),U.xp6(1),U.Q6J("ngStyle",U.VKq(21,he,It.item.textColorCss)),U.xp6(2),U.Q6J("ngStyle",U.DdM(23,Re))("svgIcon",It.item.icon),U.xp6(2),U.Oqu(U.lcZ(8,16,It.item.label)),U.xp6(2),U.Q6J("@openClose",It.expanded?"open":"closed"),U.xp6(1),U.Gre("side-entity-menu ",It.item.linksClass,""),U.Q6J("ngStyle",U.VKq(24,He,It.linkBgColor)),U.xp6(1),U.Q6J("ngIf",It.showLinks))},dependencies:[e.mk,e.sg,e.O5,e.PC,H.Hw,M.wG,ce.Y,Me.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important;color:var(--side-link-text-hover)!important}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 40px;text-decoration:none;color:#fff;font-size:1rem;display:block}.activated[_ngcontent-%COMP%]{color:#313131!important;border-right:5px solid #313131}.entity-menu-item-header[_ngcontent-%COMP%]{padding:8px 5px 8px 25px;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;word-break:break-word;text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff;text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-item-sub-menu[_ngcontent-%COMP%]{overflow:hidden}.entity-menu-item-sub-menu-item[_ngcontent-%COMP%]{padding-left:4rem!important}"],data:{animation:[le.BQ,le.Ly]}}),bt})(),Oe=(()=>{class bt{transform(Mt){if(void 0===Mt.value)return"";switch(Mt.type){case"java.lang.String":return Mt.value;case"java.lang.Integer":case"java.lang.Boolean":default:return String(Mt.value);case"java.util.ArrayList":return this.whenValueIsArray(Mt.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(Mt.value)}}whenValueIsArray(Mt){let It="";return Mt.forEach(function(ai){It=It.concat(ai+", ")}),It}whenValueIsMap(Mt){let It="";return Mt.forEach((ai,pi)=>{It=It.concat(pi+": "+ai+", ")}),It}}return bt.\u0275fac=function(Mt){return new(Mt||bt)},bt.\u0275pipe=U.Yjl({name:"anyToString",type:bt,pure:!0}),bt})();const r=["collapse"],u=function(){return{color:"linkTextColor"}};function _(bt,Ht){1&bt&&(U.TgZ(0,"mat-icon",12),U._uU(1,"keyboard_arrow_right"),U.qZA()),2&bt&&U.Q6J("ngStyle",U.DdM(1,u))}function C(bt,Ht){1&bt&&(U.TgZ(0,"mat-icon",12),U._uU(1,"keyboard_arrow_down"),U.qZA()),2&bt&&U.Q6J("ngStyle",U.DdM(1,u))}function h(bt,Ht){if(1&bt&&(U.TgZ(0,"span",10),U.YNc(1,_,2,2,"mat-icon",11),U.YNc(2,C,2,2,"mat-icon",11),U.qZA()),2&bt){const Mt=U.oxw().$implicit,It=U.oxw();U.xp6(1),U.Q6J("ngIf",!It.isActive(It.currentUrl,Mt.showChildrenRegex)),U.xp6(1),U.Q6J("ngIf",It.isActive(It.currentUrl,Mt.showChildrenRegex))}}const o=function(bt,Ht){return{color:bt,"border-color":Ht}};function n(bt,Ht){if(1&bt){const Mt=U.EpF();U.TgZ(0,"a",14),U.NdJ("click",function(){const pi=U.CHM(Mt).$implicit,Ut=U.oxw(3);return U.KtG(Ut.navigate(pi.url))}),U._uU(1),U.ALo(2,"translate"),U.qZA()}if(2&bt){const Mt=Ht.$implicit,It=U.oxw(3);U.ekj("activated",It.isActive(It.currentUrl,Mt.activatedRegex)&&void 0===It.item.activatedClass),U.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",U.WLB(9,o,It.linkTextColor,It.linkTextColor))("ngClass",It.isActive(It.currentUrl,Mt.activatedRegex)&&void 0!==It.item.activatedClass?It.item.activatedClass:"")("perunWebAppsMiddleClickRouterLink",Mt.url),U.xp6(1),U.hij(" ",U.lcZ(2,7,Mt.label)," ")}}function t(bt,Ht){if(1&bt&&(U.TgZ(0,"div"),U.YNc(1,n,3,12,"a",13),U.qZA()),2&bt){const Mt=U.oxw().$implicit;U.Q6J("@rollInOut",void 0),U.xp6(1),U.Q6J("ngForOf",null==Mt?null:Mt.children)}}function i(bt,Ht){if(1&bt){const Mt=U.EpF();U.TgZ(0,"div")(1,"a",7),U.NdJ("click",function(){const pi=U.CHM(Mt).$implicit,Ut=U.oxw();return U.KtG(Ut.navigate(pi.url))}),U._uU(2),U.ALo(3,"translate"),U.YNc(4,h,3,2,"span",8),U.qZA(),U.YNc(5,t,2,2,"div",9),U.qZA()}if(2&bt){const Mt=Ht.$implicit,It=U.oxw();U.xp6(1),U.ekj("activated",It.isActive(It.currentUrl,Mt.activatedRegex)&&void 0===It.item.activatedClass),U.Q6J("perunWebAppsMiddleClickRouterLink",Mt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",It.isActive(It.currentUrl,Mt.activatedRegex)&&void 0!==It.item.activatedClass?It.item.activatedClass:"")("ngStyle",U.WLB(11,o,It.linkTextColor,It.linkTextColor)),U.xp6(1),U.hij(" ",U.lcZ(3,9,Mt.label)," "),U.xp6(2),U.Q6J("ngIf",Mt.children),U.xp6(1),U.Q6J("ngIf",It.isActive(It.currentUrl,Mt.showChildrenRegex))}}const a=function(bt){return{background:bt}},c=function(bt){return{color:bt}},l=function(){return{color:"currentColor"}};let d=(()=>{class bt{constructor(Mt,It,ai){this.router=Mt,this.store=It,this.queryParamsRouter=ai,this.id="",this.expanded=!1,this.linkBgColor=this.store.getProperty("theme").sidemenu_submenu_bg_color,this.linkTextColor=this.store.getProperty("theme").sidemenu_submenu_text_color,this.currentUrl=Mt.url,Mt.events.subscribe(pi=>{pi instanceof f.m2&&(this.currentUrl=pi.url)})}ngOnInit(){this.expanded=this.showOpen}ngOnChanges(){this.expanded=this.showOpen}toggle(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}isActive(Mt,It){return new RegExp(It).test(Mt)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(Mt){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.queryParamsRouter.navigate(Mt)):this.queryParamsRouter.navigate(Mt)}}return bt.\u0275fac=function(Mt){return new(Mt||bt)(U.Y36(f.F0),U.Y36(N.d6),U.Y36(X.g))},bt.\u0275cmp=U.Xpm({type:bt,selectors:[["app-side-menu-root-item"]],viewQuery:function(Mt,It){if(1&Mt&&U.Gf(r,5),2&Mt){let ai;U.iGM(ai=U.CRH())&&(It.collapseDiv=ai.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[U.TTD],decls:12,vars:28,consts:[[1,"entity-menu-item",3,"id"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","perunWebAppsMiddleClickRouterLink","click"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ms-3"],[3,"ngStyle"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ms-auto",4,"ngIf"],[4,"ngIf"],[1,"ms-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],["class","ps-5 clickable","matRipple","",3,"activated","matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click",4,"ngFor","ngForOf"],["matRipple","",1,"ps-5","clickable",3,"matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click"]],template:function(Mt,It){1&Mt&&(U.TgZ(0,"div",0)(1,"div",1),U.NdJ("click",function(){return It.toggle()}),U.TgZ(2,"div")(3,"a",2)(4,"div"),U._UZ(5,"mat-icon",3),U.qZA(),U.TgZ(6,"div",4),U._uU(7),U.ALo(8,"translate"),U.qZA()()()(),U.TgZ(9,"div")(10,"div",5),U.YNc(11,i,6,14,"div",6),U.qZA()()()),2&Mt&&(U.s9C("id",It.id),U.xp6(1),U.ekj("root-header-activated",It.isActive(It.currentUrl,It.item.baseColorClassRegex)),U.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",U.VKq(21,a,It.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",It.item.baseLink),U.xp6(1),U.Gre("entity-menu-item-link ",It.item.labelClass,""),U.xp6(1),U.Q6J("ngStyle",U.VKq(23,c,It.item.textColorCss)),U.xp6(2),U.Q6J("ngStyle",U.DdM(25,l))("svgIcon",It.item.icon),U.xp6(2),U.Oqu(U.lcZ(8,19,It.item.label)),U.xp6(2),U.Q6J("@openClose",It.expanded?"open":"closed"),U.xp6(1),U.Gre("side-entity-menu ",It.item.linksClass,""),U.Q6J("ngStyle",U.VKq(26,a,It.linkBgColor)),U.xp6(1),U.Q6J("ngForOf",It.item.links))},dependencies:[e.mk,e.sg,e.O5,e.PC,H.Hw,M.wG,ce.Y,Me.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 32px;text-decoration:none;font-size:1rem;color:#fff;display:block}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important;color:var(--side-link-text-hover)!important}.root-header-activated[_ngcontent-%COMP%]{background:var(--side-root-item-active)!important;color:var(--side-root-item-text-active)!important}.entity-menu-item-header[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-header[_ngcontent-%COMP%]:hover{background:var(--side-root-item-hover)!important;color:var(--side-root-item-text-hover)!important}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;color:#fff;text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff;text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}"],data:{animation:[le.BQ,le.Ly]}}),bt})();var s=p(73555),E=p(67376),B=p(63189),q=p(46860),qe=p(37677),it=p(37433),xt=p(11243),ht=p(19516),_t=p(33231),Ee=p(96338),we=p(9244),de=p(28499),Ae=p(70844),Te=p(21029);let ut=(()=>{class bt{constructor(Mt){this.translate=Mt,Mt.addLangs(["en","cs"])}}return bt.\u0275fac=function(Mt){return new(Mt||bt)(U.LFG(Me.sK))},bt.\u0275mod=U.oAB({type:bt}),bt.\u0275inj=U.cJS({providers:[Oe,qe.A,Ae.u],imports:[e.ez,f.Bz,A.Bb,P.c,T.lN,Fe.UX,Fe.u5,H.Ps,ge.SJ,F.To,Me.aw.forChild({}),S.ot,v.JX,V.p0,W.Nh,ne.dp,S.ot,m.p9,x.Is,_e.LD,re.ZX,j.Cq,fe.Cv,te.AV,pe.rP,w.FA,M.XK,$.Fk,I.t,M.si,J.TU,ye.QW,Je.T5,s._t,ye.QW,ke.Hi,$e.Tx,E.Cl,B.r,q.A,ze.g,it.ez,xt.r,ht.d4,_t.Co,Ee.ie,we.Je,de.E3,Te.jD,_t.Co,A.Bb,P.c,f.Bz,Fe.UX,Fe.u5,H.Ps,ge.SJ,Me.aw,v.JX,V.p0,W.Nh,ne.dp,S.ot,m.p9,x.Is,_e.LD,re.ZX,j.Cq,fe.Cv,te.AV,pe.rP,w.FA,M.XK,$.Fk,I.t,ye.QW,Je.T5,M.si,J.TU,s._t,ke.Hi,ke.Hi,F.To,$e.Tx,E.Cl,E.Cl,E.Cl,xt.r]}),bt})();U.B6R(Ve.V,function(){return[e.sg,e.O5,ve,d]},[])},69024:(Qe,ae,p)=>{"use strict";p.d(ae,{V:()=>x});var e=p(80279),f=p(61744),A=p(9244),S=p(19516),m=p(64080),M=p(94650),w=p(89383);let x=(()=>{class I{constructor(T,H,P,J,fe,j,$,_e){this.translate=T,this.authResolver=H,this.store=P,this.apiRequest=J,this.attributesManager=fe,this.notificator=j,this.guiAuthResolver=$,this.routePolicyService=_e,this.theme=this.store.getProperty("theme")}getFacilitiesManagementItem(){return{label:"MAIN_MENU.FACILITIES",colorClass:"base-item-color-activated",icon:"perun-facility-white",baseLink:["/facilities"],links:[],baseColorClass:"base-item-color",baseColorClassRegex:"^/facilities$",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color}}getAccessManagementItem(){return{label:"MAIN_MENU.ACCESS",colorClass:"base-item-color-activated",icon:"perun-vo",links:[],baseLink:["/organizations"],baseColorClass:"base-item-color",baseColorClassRegex:"^/organizations$",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color}}getHomeItem(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^/home$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[]}}getUserItem(){return{baseLink:["/myProfile"],expandable:!1,label:"MAIN_MENU.MY_PROFILE",colorClass:"base-item-color-activated",icon:"perun-user",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:["/myProfile"],activatedRegex:"^/myProfile$"},{label:"MENU_ITEMS.USER.ORGANIZATIONS",url:["/myProfile/organizations"],activatedRegex:"^/myProfile/organizations$"},{label:"MENU_ITEMS.USER.GROUPS",url:["/myProfile/groups"],activatedRegex:"^/myProfile/groups$"},{label:"MENU_ITEMS.USER.ATTRIBUTES",url:["/myProfile/attributes"],activatedRegex:"^/myProfile/attributes$"},{label:"MENU_ITEMS.USER.ROLES",url:["/myProfile/roles"],activatedRegex:"/myProfile/roles"},{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["/myProfile/service-identities"],activatedRegex:"^/myProfile/service-identities"},{label:"MENU_ITEMS.USER.BANS",url:["/myProfile/bans"],activatedRegex:"^/myProfile/bans"},{label:"MENU_ITEMS.USER.SETTINGS",url:["/myProfile/settings"],activatedRegex:"^/myProfile/settings$",children:[{label:"MENU_ITEMS.USER.PASSWORD_RESET",url:["/myProfile/settings/passwordReset"],activatedRegex:"^/myProfile/settings/passwordReset"},{label:"MENU_ITEMS.USER.GUI_CONFIG",url:["/myProfile/settings/guiConfig"],activatedRegex:"/myProfile/settings/guiConfig"}],showChildrenRegex:"/myProfile/settings"}]}}getAdminItem(){return{baseLink:["/admin"],expandable:!1,label:"MAIN_MENU.ADMIN",colorClass:"base-item-color-activated",icon:"perun-perun-admin",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[{label:"MENU_ITEMS.ADMIN.OVERVIEW",url:["/admin"],activatedRegex:"^/admin$"},{label:"MENU_ITEMS.ADMIN.ATTRIBUTES",url:["/admin/attributes"],activatedRegex:"^/admin/attributes$"},{label:"MENU_ITEMS.ADMIN.USERS",url:["/admin/users"],activatedRegex:"^/admin/users$"},{label:"MENU_ITEMS.ADMIN.OWNERS",url:["/admin/owners"],activatedRegex:"^/admin/owners$"},{label:"MENU_ITEMS.ADMIN.SERVICES",url:["/admin/services"],activatedRegex:"^/admin/services$"},{label:"MENU_ITEMS.ADMIN.VISUALIZER",url:["/admin/visualizer"],activatedRegex:"^/admin/visualizer$",children:[{label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",url:["/admin/visualizer/attrDependencies"],activatedRegex:"^/admin/visualizer/attrDependencies"},{label:this.translate.instant("MENU_ITEMS.VISUALIZER.USER_DESTINATION"),url:["/admin/visualizer/userDestinationRelationship"],activatedRegex:"^/admin/visualizer/userDestinationRelationship"}],showChildrenRegex:"/admin/visualizer"},{label:"MENU_ITEMS.ADMIN.EXT_SOURCES",url:["/admin/ext_sources"],activatedRegex:"^/admin/ext_sources$"},{label:"MENU_ITEMS.ADMIN.AUDIT_LOG",url:["/admin/audit_log"],activatedRegex:"^/admin/audit_log$"},{label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",url:["/admin/consent_hubs"],activatedRegex:"^/admin/consent_hubs$"},{label:"MENU_ITEMS.ADMIN.SEARCHER",url:["/admin/searcher"],activatedRegex:"^/admin/searcher"}]}}parseFacility(T){return{label:T.name,baseLink:[`/facilities/${T.id}`],backgroundColorCss:this.theme.sidemenu_facility_bg_color,textColorCss:this.theme.sidemenu_facility_text_color,links:this.getFacilityLinks(T),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(T,H){const P=(new S.r5).transform(T,H);return{label:T.name,baseLink:[P],backgroundColorCss:this.theme.sidemenu_resource_bg_color,textColorCss:this.theme.sidemenu_resource_text_color,links:this.getResourceLinks(P,H?"/organizations":"/facilities",T),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseGroup(T){return{label:T.name,baseLink:[`/organizations/${T.voId}/groups/${T.id}`],backgroundColorCss:this.theme.sidemenu_group_bg_color,textColorCss:this.theme.sidemenu_group_text_color,links:this.getGroupLinks(T),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(T,H=!1,P=!1){return{label:T.name,baseLink:[`/organizations/${T.id}`],links:this.getVoLinks(T,P),colorClass:"vo-item",icon:H?"perun-hierarchical-vo":"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_vo_bg_color,textColorCss:this.theme.sidemenu_vo_text_color}}parseMember(T){return{label:(0,A.bD)(T.user),baseLink:[`/organizations/${T.voId}/members/${T.id}`],backgroundColorCss:this.theme.sidemenu_member_bg_color,textColorCss:this.theme.sidemenu_member_text_color,links:this.getMemberLinks(T),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(T,H,P){return{label:(0,A.bD)(T),baseLink:[H],backgroundColorCss:this.theme.sidemenu_user_bg_color,textColorCss:this.theme.sidemenu_user_text_color,links:this.getUserLinks(T,H,P),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(T){return{label:(0,A.bD)(T),baseLink:[`/myProfile/service-identities/${T.id}`],backgroundColorCss:this.theme.sidemenu_user_bg_color,textColorCss:this.theme.sidemenu_user_text_color,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${T.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${T.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"},{label:"MENU_ITEMS.USER.MAILING_LISTS",url:[`/myProfile/service-identities/${T.id}/mailing-lists`],activatedRegex:"/myProfile/service-identities/\\d+/mailing-lists"},{label:"MENU_ITEMS.USER.DATA_QUOTAS",url:[`/myProfile/service-identities/${T.id}/data-quotas`],activatedRegex:"/myProfile/service-identities/\\d+/data-quotas"},{label:"MENU_ITEMS.USER.AUTHENTICATION",url:[`/myProfile/service-identities/${T.id}/authentication`],activatedRegex:"/myProfile/service-identities/\\d+/authentication$",children:[{label:"MENU_ITEMS.USER.LOGINS",url:[`/myProfile/service-identities/${T.id}/authentication/logins`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/logins"},{label:"MENU_ITEMS.USER.CERTIFICATES",url:[`/myProfile/service-identities/${T.id}/authentication/certificates`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/certificates"},{label:"MENU_ITEMS.USER.SSH_KEYS",url:[`/myProfile/service-identities/${T.id}/authentication/ssh-keys`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/ssh-keys"}],showChildrenRegex:"/myProfile/service-identities/\\d+/authentication"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(T){return{label:T.name,baseLink:[`/admin/services/${T.id}`],backgroundColorCss:this.theme.sidemenu_service_bg_color,textColorCss:this.theme.sidemenu_service_text_color,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${T.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${T.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${T.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(T,H){const P=[];if(P.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${T.id}`],activatedRegex:"/organizations/\\d+$"}),this.routePolicyService.canNavigate("organizations-members",T)&&P.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${T.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.routePolicyService.canNavigate("organizations-groups",T)&&P.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${T.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.routePolicyService.canNavigate("organizations-resources",T)){const J=[];this.routePolicyService.canNavigate("organizations-resources-preview",T)&&J.push({label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${T.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}),this.routePolicyService.canNavigate("organizations-resources-tags",T)&&J.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${T.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.routePolicyService.canNavigate("organizations-resources-states",T)&&J.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${T.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),P.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${T.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:J,showChildrenRegex:"/organizations/\\d+/resources"})}if(this.routePolicyService.canNavigate("organizations-applications",T)&&P.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${T.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",T)&&P.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${T.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",T)&&P.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${T.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),this.routePolicyService.canNavigate("organizations-attributes",T)&&P.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${T.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.routePolicyService.canNavigate("organizations-statistics",T)&&P.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${T.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"}),this.routePolicyService.canNavigate("organizations-settings",T)){const J=[];this.routePolicyService.canNavigate("organizations-settings-expiration",T)&&J.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${T.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),this.routePolicyService.canNavigate("organizations-settings-managers",T)&&J.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${T.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",T)&&J.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${T.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("organizations-settings-notifications",T)&&J.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${T.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("organizations-settings-extsources",T)&&J.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${T.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",T)&&J.push({label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",url:[`/organizations/${T.id}/settings/memberOrganizations`],activatedRegex:"/organizations/\\d+/settings/memberOrganizations"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",T)&&H&&J.push({label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",url:[`/organizations/${T.id}/settings/hierarchicalInclusion`],activatedRegex:"/organizations/\\d+/settings/hierarchicalInclusion"}),this.routePolicyService.canNavigate("organizations-settings-bans",T)&&J.push({label:"MENU_ITEMS.VO.BANS",url:[`/organizations/${T.id}/settings/bans`],activatedRegex:"/organizations/\\d+/settings/bans"}),P.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${T.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:J,showChildrenRegex:"/organizations/\\d+/settings"})}return P}getUserLinks(T,H,P){const J=[];return J.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[H],activatedRegex:`${P}$`}),J.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${H}/organizations`],activatedRegex:`${P}/organizations`}),J.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${H}/groups`],activatedRegex:`${P}/groups`}),J.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${H}/accounts`],activatedRegex:`${P}/accounts`}),J.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${H}/identities`],activatedRegex:`${P}/identities`}),J.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${H}/facilities`],activatedRegex:`${P}/facilities`}),J.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${H}/resources`],activatedRegex:`${P}/resources`}),J.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${H}/attributes`],activatedRegex:`${P}/attributes`}),J.push({label:"MENU_ITEMS.USER.ROLES",url:[`${H}/roles`],activatedRegex:`^${H}/roles`}),J.push(T.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${H}/associated-users`],activatedRegex:`^${H}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${H}/service-identities`],activatedRegex:`^${H}/service-identities`}),J.push({label:"MENU_ITEMS.USER.BANS",url:[`${H}/bans`],activatedRegex:`^${H}/bans`}),J}getMemberLinks(T){const H=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${T.voId}/members/${T.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.routePolicyService.canNavigate("members-groups",T)&&H.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`/organizations/${T.voId}/members/${T.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.routePolicyService.canNavigate("members-applications",T)&&H.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`/organizations/${T.voId}/members/${T.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.routePolicyService.canNavigate("members-resources",T)&&H.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${T.voId}/members/${T.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),this.routePolicyService.canNavigate("members-attributes",T)&&H.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${T.voId}/members/${T.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),this.routePolicyService.canNavigate("members-bans",T)&&H.push({label:"MENU_ITEMS.MEMBER.BANS",url:[`/organizations/${T.voId}/members/${T.id}/bans`],activatedRegex:"/organizations/\\d+/members/\\d+/bans"}),H}getFacilityLinks(T){const H=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${T.id}`],activatedRegex:"/facilities/\\d+$"}];if(this.routePolicyService.canNavigate("facilities-resources",T)&&H.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${T.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.routePolicyService.canNavigate("facilities-allowed-users",T)&&H.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${T.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.routePolicyService.canNavigate("facilities-allowed-groups",T)&&H.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${T.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.routePolicyService.canNavigate("facilities-services-status",T)&&H.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${T.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.routePolicyService.canNavigate("facilities-services-destinations",T)&&H.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${T.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.routePolicyService.canNavigate("facilities-hosts",T)&&H.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${T.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),this.routePolicyService.canNavigate("facilities-attributes",T)&&H.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",T.id.toString(),"attributes"],activatedRegex:"/facilities/\\d+/attributes$"}),this.routePolicyService.canNavigate("facilities-settings",T)){const P=[];this.routePolicyService.canNavigate("facilities-settings-owners",T)&&P.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",T.id.toString(),"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),this.routePolicyService.canNavigate("facilities-settings-managers",T)&&P.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",T.id.toString(),"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",T)&&P.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${T.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",T)&&P.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",T.id.toString(),"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),this.routePolicyService.canNavigate("facilities-settings-bans",T)&&P.push({label:"MENU_ITEMS.FACILITY.BANS",url:[`/facilities/${T.id}/settings/bans`],activatedRegex:"/facilities/\\d+/settings/bans"}),H.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",T.id.toString(),"settings"],activatedRegex:"/facilities/\\d+/settings$",children:P,showChildrenRegex:"/facilities/\\d+/settings"})}return H}getGroupLinks(T){const H=[],P=[];return H.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${T.voId}/groups/${T.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.routePolicyService.canNavigate("groups-members",T)&&H.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${T.voId}/groups/${T.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.routePolicyService.canNavigate("groups-subgroups",T)&&"members"!==T.name&&H.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${T.voId}/groups/${T.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.routePolicyService.canNavigate("groups-resources",T)&&H.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${T.voId}/groups/${T.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),"members"!==T.name&&this.routePolicyService.canNavigate("groups-applications",T)&&H.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${T.voId}/groups/${T.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),this.routePolicyService.canNavigate("groups-attributes",T)&&H.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${T.voId}/groups/${T.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"}),this.routePolicyService.canNavigate("groups-statistics",T)&&H.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${T.voId}/groups/${T.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.routePolicyService.canNavigate("groups-roles",T)&&H.push({label:"MENU_ITEMS.GROUP.ROLES",url:[`/organizations/${T.voId}/groups/${T.id}/roles`],activatedRegex:"/organizations/\\d+/groups/\\d+/roles"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(T.id,m.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{P.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${T.voId}/groups/${T.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},J=>{"PrivilegeException"!==J.name&&this.notificator.showRPCError(J)}),this.routePolicyService.canNavigate("groups-settings-managers",T)&&P.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${T.voId}/groups/${T.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),"members"!==T.name&&this.routePolicyService.canNavigate("groups-settings-applicationForm",T)&&P.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${T.voId}/groups/${T.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("groups-settings-notifications",T)&&P.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${T.voId}/groups/${T.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("groups-settings-relations",T)&&P.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${T.voId}/groups/${T.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.routePolicyService.canNavigate("groups-settings-extsources",T)&&P.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${T.voId}/groups/${T.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==P.length&&H.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${T.voId}/groups/${T.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:P,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),H}getResourceLinks(T,H,P){const J=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[T],activatedRegex:`${H}/\\d+/resources/\\d+$`}];if(this.routePolicyService.canNavigate("resources-groups",P)&&J.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[T,"groups"],activatedRegex:`${H}/\\d+/resources/\\d+/groups$`}),this.routePolicyService.canNavigate("resources-services",P)&&J.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[T,"services"],activatedRegex:`${H}/\\d+/resources/\\d+/services$`}),this.routePolicyService.canNavigate("resources-members",P)&&J.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[T,"members"],activatedRegex:`${H}/\\d+/resources/\\d+/members$`}),this.routePolicyService.canNavigate("resources-tags",P)&&J.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[T,"tags"],activatedRegex:`${H}/\\d+/resources/\\d+/tags$`}),this.routePolicyService.canNavigate("resources-attributes",P)&&J.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[T,"attributes"],activatedRegex:`${H}/\\d+/resources/\\d+/attributes$`}),this.routePolicyService.canNavigate("resources-settings",P)){const fe=[];this.routePolicyService.canNavigate("resources-settings-managers",P)&&fe.push({label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[T,"settings","managers"],activatedRegex:`${H}/\\d+/resources/\\d+/settings/managers$`}),this.routePolicyService.canNavigate("resources-settings-bans",P)&&fe.push({label:"MENU_ITEMS.RESOURCE.BANS",url:[T,"settings","bans"],activatedRegex:`${H}/\\d+/resources/\\d+/settings/bans`}),J.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[T,"settings"],activatedRegex:`${H}/\\d+/resources/\\d+/settings$`,children:fe,showChildrenRegex:`${H}/\\d+/resources/\\d+/settings`})}return J}}return I.\u0275fac=function(T){return new(T||I)(M.LFG(w.sK),M.LFG(e.x4),M.LFG(e.d6),M.LFG(e.F5),M.LFG(f.H8),M.LFG(e.V6),M.LFG(e.x4),M.LFG(e.Ip))},I.\u0275prov=M.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},73228:(Qe,ae,p)=>{"use strict";p.d(ae,{V:()=>j});var e=p(72077),f=p(69024),A=p(80279),S=p(36769),m=p(94650),M=p(77968);function w($,_e){if(1&$&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",10),m.qZA()),2&$){const ge=_e.$implicit,pe=_e.index,re=m.oxw();m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",pe)("item",ge)("sideNav",re.sideNav)}}function x($,_e){if(1&$&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&$){const ge=_e.$implicit,pe=_e.index,re=m.oxw();m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",pe)("item",ge)("showLinks",pe===re.accessItems.length-1)("sideNav",re.sideNav)}}function I($,_e){if(1&$&&m._UZ(0,"app-side-menu-root-item",12),2&$){const ge=m.oxw();m.Q6J("id","facilities-item-btn")("item",ge.facilityItem)("sideNav",ge.sideNav)}}function F($,_e){if(1&$&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&$){const ge=_e.$implicit,pe=_e.index,re=m.oxw(2);m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",pe)("item",ge)("showLinks",pe===re.facilityItems.length-1)("sideNav",re.sideNav)}}function T($,_e){if(1&$&&(m.TgZ(0,"div"),m.YNc(1,F,2,5,"div",3),m.qZA()),2&$){const ge=m.oxw();m.xp6(1),m.Q6J("ngForOf",ge.facilityItems)}}function H($,_e){if(1&$&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&$){const ge=_e.$implicit,pe=_e.index,re=m.oxw();m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",pe)("item",ge)("showLinks",pe===re.userItems.length-1)("sideNav",re.sideNav)}}function P($,_e){if(1&$&&m._UZ(0,"app-side-menu-root-item",13),2&$){const ge=m.oxw();m.Q6J("id","admin-item-btn")("item",ge.adminItem)("showOpen",ge.adminItemOpened)("sideNav",ge.sideNav)}}function J($,_e){if(1&$&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&$){const ge=_e.$implicit,pe=_e.index,re=m.oxw(2);m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",pe)("item",ge)("showLinks",!0)("sideNav",re.sideNav)}}function fe($,_e){if(1&$&&(m.TgZ(0,"div"),m.YNc(1,J,2,5,"div",3),m.qZA()),2&$){const ge=m.oxw();m.xp6(1),m.Q6J("ngForOf",ge.adminItems)}}let j=(()=>{class ${constructor(ge,pe,re){this.sideMenuService=ge,this.sideMenuItemService=pe,this.authResolver=re,this.accessItems=[],this.facilityItems=[],this.adminItems=[],this.homeItems=[],this.userItems=[],this.accessItem=this.sideMenuItemService.getAccessManagementItem(),this.adminItem=this.sideMenuItemService.getAdminItem(),this.facilityItem=this.sideMenuItemService.getFacilitiesManagementItem(),this.homeItem=this.sideMenuItemService.getHomeItem(),this.userItem=this.sideMenuItemService.getUserItem(),this.mobileView=!0,this.adminItemOpened=!1,this.userItemOpened=!1}static areSameItems(ge,pe){return ge.label===pe.label&&ge.labelClass===pe.labelClass}static areSameLinks(ge,pe){if(ge.links.length!==pe.links.length)return!1;for(let re=0;repe.length?ge.length:pe.length;for(let v=0;vge.length-1)ge.push(pe[v]);else{if(v>pe.length-1){const V=ge.length;for(let W=0;W{this.setFacilityItems(ge)}),this.sideMenuService.accessItemsChange.subscribe(ge=>{this.setAccessItems(ge)}),this.sideMenuService.adminItemsChange.subscribe(ge=>{this.setAdminItems(ge)}),this.sideMenuService.userItemsChange.subscribe(ge=>{this.setUserItems(ge)}),this.sideMenuService.homeItemsChange.subscribe(ge=>{this.setHomeItems(ge)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,$.setNewItems(this.homeItems,[]),$.setNewItems(this.adminItems,[]),$.setNewItems(this.accessItems,[]),$.setNewItems(this.facilityItems,[]),$.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,$.setNewItems(this.adminItems,[]),$.setNewItems(this.accessItems,[]),$.setNewItems(this.facilityItems,[]),$.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,$.setNewItems(this.homeItems,[]),$.setNewItems(this.adminItems,[]),$.setNewItems(this.accessItems,[]),$.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,$.setNewItems(this.homeItems,[]),$.setNewItems(this.adminItems,[]),$.setNewItems(this.facilityItems,[]),$.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,$.setNewItems(this.homeItems,[]),$.setNewItems(this.accessItems,[]),$.setNewItems(this.facilityItems,[]),$.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,$.setNewItems(this.accessItems,[]),$.setNewItems(this.facilityItems,[]),$.setNewItems(this.adminItems,[])}setHomeItems(ge){this.resetExceptHome(),$.setNewItems(this.homeItems,ge)}setFacilityItems(ge){this.resetExceptFacility(),$.setNewItems(this.facilityItems,ge)}setAccessItems(ge){this.resetExceptAccess(),$.setNewItems(this.accessItems,ge)}setUserItems(ge){this.userItemOpened=0===ge.length,this.resetExceptUser(),$.setNewItems(this.userItems,ge)}setAdminItems(ge){this.adminItemOpened=0===ge.length,this.resetExceptAdmin(),$.setNewItems(this.adminItems,ge)}}return $.\u0275fac=function(ge){return new(ge||$)(m.Y36(M.D),m.Y36(f.V),m.Y36(A.x4))},$.\u0275cmp=m.Xpm({type:$,selectors:[["app-side-menu"]],inputs:{sideNav:"sideNav"},decls:13,vars:17,consts:[["id","sideMenuSpacer"],["id","sideMenuAccordion",1,"accordion","entity-menu-accordion"],[3,"id","item","sideNav"],["class","overflow-hidden",4,"ngFor","ngForOf"],["data-cy","access-item-button",3,"item","id","sideNav"],["data-cy","facilities-button",3,"id","item","sideNav",4,"ngIf"],[4,"ngIf"],[3,"id","item","showOpen","sideNav"],["data-cy","admin-button",3,"id","item","showOpen","sideNav",4,"ngIf"],[1,"overflow-hidden"],[3,"index","item","sideNav"],[3,"index","item","showLinks","sideNav"],["data-cy","facilities-button",3,"id","item","sideNav"],["data-cy","admin-button",3,"id","item","showOpen","sideNav"]],template:function(ge,pe){1&ge&&(m.TgZ(0,"div",0)(1,"div",1),m._UZ(2,"app-side-menu-root-item",2),m.YNc(3,w,2,4,"div",3),m._UZ(4,"app-side-menu-root-item",4),m.TgZ(5,"div"),m.YNc(6,x,2,5,"div",3),m.qZA(),m.YNc(7,I,1,3,"app-side-menu-root-item",5),m.YNc(8,T,2,1,"div",6),m._UZ(9,"app-side-menu-root-item",7),m.YNc(10,H,2,5,"div",3),m.YNc(11,P,1,4,"app-side-menu-root-item",8),m.YNc(12,fe,2,1,"div",6),m.qZA()()),2&ge&&(m.xp6(2),m.Q6J("id","home-item-btn")("item",pe.homeItem)("sideNav",pe.sideNav),m.xp6(1),m.Q6J("ngForOf",pe.homeItems),m.xp6(1),m.Q6J("item",pe.accessItem)("id","access-item-btn")("sideNav",pe.sideNav),m.xp6(2),m.Q6J("ngForOf",pe.accessItems),m.xp6(1),m.Q6J("ngIf",pe.authResolver.canManageFacilities()),m.xp6(1),m.Q6J("ngIf",pe.authResolver.canManageFacilities()),m.xp6(1),m.Q6J("id","profile-item-btn")("item",pe.userItem)("showOpen",pe.userItemOpened)("sideNav",pe.sideNav),m.xp6(1),m.Q6J("ngForOf",pe.userItems),m.xp6(1),m.Q6J("ngIf",pe.authResolver.isPerunAdminOrObserver()),m.xp6(1),m.Q6J("ngIf",pe.authResolver.isPerunAdminOrObserver()))},styles:[".entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-accordion[_ngcontent-%COMP%]{background-color:#f4f4f4}#sideMenuAccordion[_ngcontent-%COMP%]{width:300px}#sideMenuSpacer[_ngcontent-%COMP%]{height:100%}"],data:{animation:[S.Ly]}}),$})()},86511:(Qe,ae,p)=>{"use strict";p.d(ae,{A:()=>S});var e=p(80279),f=p(94650),A=p(89383);let S=(()=>{class m{constructor(w,x){this.notificator=w,this.translate=x}setDialogRef(w){this.dialogRef=w}setType(w){this.entityType=w}getType(){return this.entityType}createCandidate(w){return{userExtSource:w.userExtSource,additionalUserExtSources:w.additionalUserExtSources,attributes:w.attributes,firstName:w.firstName,lastName:w.lastName,middleName:w.middleName,titleBefore:w.titleBefore,titleAfter:w.titleAfter,id:w.id}}getFormattedGroup(w){return{id:w.id,beanName:w.beanName,name:w.name,voId:w.voId}}success(w){this.notificator.showSuccess(this.translate.instant(w)),this.dialogRef.close(!0)}getCandidateWithError(w,x){if("MfaPrivilegeException"===String(x.type))return null;{const I=x.message.split(":").splice(1).join();return{candidate:w,errorName:x.name,errorMsg:I}}}convertToMemberCandidates(w){return w.map(x=>({member:x.member,candidate:x.candidate,richUser:x.richUser}))}}return m.\u0275fac=function(w){return new(w||m)(f.LFG(e.V6),f.LFG(A.sK))},m.\u0275prov=f.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},157:(Qe,ae,p)=>{"use strict";p.d(ae,{b:()=>xt});var e=p(94650),f=p(73555),A=p(7274),S=p(4859),m=p(89383);let M=(()=>{class ht{constructor(Ee){this.dialogRef=Ee}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return ht.\u0275fac=function(Ee){return new(Ee||ht)(e.Y36(A.so))},ht.\u0275cmp=e.Xpm({type:ht,selectors:[["app-delete-application-form-item-dialog"]],decls:20,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"pb-2","fw-bold"],[1,"pb-4","pt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","warn","data-cy","delete-application-form-item-dialog","mat-flat-button","",1,"ms-2",3,"click"]],template:function(Ee,we){1&Ee&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"div",2),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"div",3),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div",4)(14,"button",5),e.NdJ("click",function(){return we.onCancel()}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"button",6),e.NdJ("click",function(){return we.submit()}),e._uU(18),e.ALo(19,"translate"),e.qZA()()),2&Ee&&(e.xp6(1),e.Oqu(e.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")," "),e.xp6(3),e.Oqu(e.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),e.xp6(3),e.Oqu(e.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),e.xp6(4),e.hij(" ",e.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),e.xp6(3),e.hij(" ",e.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},dependencies:[S.lW,A.uh,A.xY,A.H8,m.X$]}),ht})();var w=p(80279),x=p(83491),I=p(9244),F=p(82761),T=p(36895),H=p(24006),P=p(97392),J=p(30671),fe=p(10266),j=p(98380),$=p(21963),_e=p(28820),ge=p(57706),pe=p(30076),re=p(64597);const v=["table"];function V(ht,_t){1&ht&&e._UZ(0,"th",22)}function W(ht,_t){if(1&ht){const Ee=e.EpF();e.TgZ(0,"td",23)(1,"button",24),e.NdJ("mousedown",function(){e.CHM(Ee);const de=e.oxw(2);return e.KtG(de.dragDisabled=!1)}),e.TgZ(2,"mat-icon"),e._uU(3,"drag_indicator"),e.qZA()()()}}function te(ht,_t){1&ht&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ht&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function ne(ht,_t){if(1&ht&&(e.TgZ(0,"td",23),e.ALo(1,"multiWordDataCy"),e._uU(2),e.qZA()),2&ht){const Ee=_t.$implicit;e.Q2q("data-cy","",e.lcZ(1,3,Ee.shortname),"-shortname-td"),e.xp6(2),e.AsE(" ",Ee.shortname,"",Ee.required?"*":""," ")}}function ye(ht,_t){1&ht&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ht&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function ze(ht,_t){if(1&ht&&(e.TgZ(0,"td",23),e._uU(1),e.ALo(2,"applicationFormItemType"),e.qZA()),2&ht){const Ee=_t.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,Ee.type)," ")}}function ke(ht,_t){1&ht&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ht&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function $e(ht,_t){if(1&ht&&(e.TgZ(0,"div")(1,"mat-icon",28),e._uU(2,"lock "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&ht){const Ee=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",we.disabledTooltip(Ee)),e.xp6(3),e.hij(" ",we.disabledHiddenDependency(Ee,Ee.disabled,Ee.disabledDependencyItemId)," ")}}function Je(ht,_t){if(1&ht&&(e.TgZ(0,"td",26),e.YNc(1,$e,5,2,"div",27),e.qZA()),2&ht){const Ee=_t.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==Ee.disabled)}}function Fe(ht,_t){1&ht&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ht&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function Ve(ht,_t){if(1&ht&&(e.TgZ(0,"div")(1,"mat-icon",28),e._uU(2,"visibility_off "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&ht){const Ee=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",we.hiddenTooltip(Ee)),e.xp6(3),e.hij(" ",we.disabledHiddenDependency(Ee,Ee.hidden,Ee.hiddenDependencyItemId)," ")}}function le(ht,_t){if(1&ht&&(e.TgZ(0,"td",26),e.YNc(1,Ve,5,2,"div",27),e.qZA()),2&ht){const Ee=_t.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==Ee.hidden)}}function N(ht,_t){1&ht&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ht&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function U(ht,_t){1&ht&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",29),e.qZA()())}function X(ht,_t){1&ht&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",30)(3,"br")(4,"input",29),e.qZA()())}function ce(ht,_t){if(1&ht&&(e.TgZ(0,"div"),e._UZ(1,"input",33),e._uU(2),e._UZ(3,"br"),e.qZA()),2&ht){const Ee=_t.$implicit;e.xp6(2),e.hij(" ",Ee,"")}}function Me(ht,_t){if(1&ht&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,ce,4,1,"div",31),e._UZ(3,"input",32),e.ALo(4,"translate"),e.qZA()()),2&ht){const Ee=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",we.getLocalizedOptions(Ee)),e.xp6(1),e.s9C("value",e.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function ue(ht,_t){if(1&ht&&(e.TgZ(0,"div"),e._UZ(1,"span",34),e.qZA()),2&ht){const Ee=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",we.getLocalizedLabel(Ee),e.oJD)}}function Pe(ht,_t){if(1&ht&&(e.TgZ(0,"div"),e._UZ(1,"span",34),e.ALo(2,"sanitizeHtml"),e.qZA()),2&ht){const Ee=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",e.lcZ(2,1,we.getLocalizedLabel(Ee)),e.oJD)}}function tt(ht,_t){if(1&ht&&(e.TgZ(0,"option"),e._uU(1),e.qZA()),2&ht){const Ee=_t.$implicit;e.xp6(1),e.hij(" ",Ee," ")}}function Ce(ht,_t){if(1&ht&&(e.TgZ(0,"div")(1,"select"),e.YNc(2,tt,2,1,"option",31),e.qZA()()),2&ht){const Ee=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",we.getLocalizedOptions(Ee))}}function at(ht,_t){1&ht&&(e.TgZ(0,"div"),e._UZ(1,"textarea"),e.qZA())}function Ue(ht,_t){if(1&ht&&(e.TgZ(0,"option",38),e._uU(1),e.qZA()),2&ht){const Ee=_t.$implicit;e.xp6(1),e.hij(" ",Ee," ")}}function pt(ht,_t){1&ht&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",29),e.qZA()())}function z(ht,_t){if(1&ht){const Ee=e.EpF();e.TgZ(0,"div")(1,"select",35),e.NdJ("ngModelChange",function(de){e.CHM(Ee);const Ae=e.oxw().$implicit,Te=e.oxw(2);return e.KtG(Te.mapForCombobox[Ae.id]=de)}),e.YNc(2,Ue,2,1,"option",36),e.TgZ(3,"option",37),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.YNc(6,pt,3,0,"div",27),e.qZA()}if(2&ht){const Ee=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("ngModel",we.mapForCombobox[Ee.id]),e.xp6(1),e.Q6J("ngForOf",we.getLocalizedOptions(Ee)),e.xp6(2),e.hij(" ",e.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),e.xp6(2),e.Q6J("ngIf","true"===we.mapForCombobox[Ee.id])}}function st(ht,_t){if(1&ht&&(e.TgZ(0,"div"),e._UZ(1,"input",39),e._uU(2),e.qZA()),2&ht){const Ee=_t.$implicit;e.xp6(2),e.hij(" ",Ee," ")}}function be(ht,_t){if(1&ht&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,st,3,1,"div",31),e.qZA()()),2&ht){const Ee=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",we.getLocalizedOptions(Ee))}}function Ye(ht,_t){if(1&ht&&(e.TgZ(0,"div")(1,"button",40),e._uU(2),e.qZA()()),2&ht){const Ee=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.hij(" ",we.getLocalizedLabel(Ee)," ")}}function he(ht,_t){1&ht&&(e.TgZ(0,"div")(1,"select",41)(2,"option",42),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"option",43),e._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),e.qZA(),e.TgZ(7,"option",44),e._uU(8,"(GMT -11:00) Midway Island, Samoa"),e.qZA(),e.TgZ(9,"option",45),e._uU(10,"(GMT -10:00) Hawaii"),e.qZA(),e.TgZ(11,"option",46),e._uU(12,"(GMT -9:30) Taiohae"),e.qZA(),e.TgZ(13,"option",47),e._uU(14,"(GMT -9:00) Alaska"),e.qZA(),e.TgZ(15,"option",48),e._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),e.qZA(),e.TgZ(17,"option",49),e._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),e.qZA(),e.TgZ(19,"option",50),e._uU(20," (GMT -6:00) Central Time (US & Canada), Mexico City "),e.qZA(),e.TgZ(21,"option",51),e._uU(22," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),e.qZA(),e.TgZ(23,"option",52),e._uU(24,"(GMT -4:30) Caracas"),e.qZA(),e.TgZ(25,"option",53),e._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),e.qZA(),e.TgZ(27,"option",54),e._uU(28,"(GMT -3:30) Newfoundland"),e.qZA(),e.TgZ(29,"option",55),e._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),e.qZA(),e.TgZ(31,"option",56),e._uU(32,"(GMT -2:00) Mid-Atlantic"),e.qZA(),e.TgZ(33,"option",57),e._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),e.qZA(),e.TgZ(35,"option",58),e._uU(36," (GMT) Western Europe Time, London, Lisbon, Casablanca "),e.qZA(),e.TgZ(37,"option",59),e._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),e.qZA(),e.TgZ(39,"option",60),e._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),e.qZA(),e.TgZ(41,"option",61),e._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),e.qZA(),e.TgZ(43,"option",62),e._uU(44,"(GMT +3:30) Tehran"),e.qZA(),e.TgZ(45,"option",63),e._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),e.qZA(),e.TgZ(47,"option",64),e._uU(48,"(GMT +4:30) Kabul"),e.qZA(),e.TgZ(49,"option",65),e._uU(50," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),e.qZA(),e.TgZ(51,"option",66),e._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),e.qZA(),e.TgZ(53,"option",67),e._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),e.qZA(),e.TgZ(55,"option",68),e._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),e.qZA(),e.TgZ(57,"option",69),e._uU(58,"(GMT +6:30) Yangon, Mandalay"),e.qZA(),e.TgZ(59,"option",70),e._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),e.qZA(),e.TgZ(61,"option",71),e._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),e.qZA(),e.TgZ(63,"option",72),e._uU(64,"(GMT +8:45) Eucla"),e.qZA(),e.TgZ(65,"option",73),e._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),e.qZA(),e.TgZ(67,"option",74),e._uU(68,"(GMT +9:30) Adelaide, Darwin"),e.qZA(),e.TgZ(69,"option",75),e._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),e.qZA(),e.TgZ(71,"option",76),e._uU(72,"(GMT +10:30) Lord Howe Island"),e.qZA(),e.TgZ(73,"option",77),e._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),e.qZA(),e.TgZ(75,"option",78),e._uU(76,"(GMT +11:30) Norfolk Island"),e.qZA(),e.TgZ(77,"option",79),e._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),e.qZA(),e.TgZ(79,"option",80),e._uU(80,"(GMT +12:45) Chatham Islands"),e.qZA(),e.TgZ(81,"option",81),e._uU(82,"(GMT +13:00) Apia, Nukualofa"),e.qZA(),e.TgZ(83,"option",82),e._uU(84,"(GMT +14:00) Line Islands, Tokelau"),e.qZA()()()),2&ht&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function Re(ht,_t){if(1&ht&&(e.TgZ(0,"div")(1,"button",40),e._uU(2),e.qZA()()),2&ht){const Ee=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.hij(" ",we.getLocalizedLabel(Ee)," ")}}function He(ht,_t){1&ht&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",39),e._uU(3," example group1 "),e._UZ(4,"br")(5,"input",39),e._uU(6," example group2 "),e._UZ(7,"br")(8,"input",39),e._uU(9," example group3 "),e.qZA()())}const ve=function(){return["Example 1","Example 2"]},Oe=function(ht){return{id:0,beanName:"Attribute",namespace:"",value:ht}};function r(ht,_t){1&ht&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-list",83),e.qZA()),2&ht&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,Oe,e.DdM(1,ve))))}const u=function(){return{key1:"value 1",key2:"value 2"}};function _(ht,_t){1&ht&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-map",83),e.qZA()),2&ht&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,Oe,e.DdM(1,u))))}function C(ht,_t){if(1&ht&&(e.TgZ(0,"td",23),e.YNc(1,U,3,0,"div",27),e.YNc(2,X,5,0,"div",27),e.YNc(3,Me,5,4,"div",27),e.YNc(4,ue,2,1,"div",27),e.YNc(5,Pe,3,3,"div",27),e.YNc(6,Ce,3,1,"div",27),e.YNc(7,at,2,0,"div",27),e.YNc(8,z,7,6,"div",27),e.YNc(9,be,3,1,"div",27),e.YNc(10,Ye,3,1,"div",27),e.YNc(11,he,85,3,"div",27),e.YNc(12,Re,3,1,"div",27),e.YNc(13,He,10,0,"div",27),e.YNc(14,r,2,4,"div",27),e.YNc(15,_,2,4,"div",27),e.qZA()),2&ht){const Ee=_t.$implicit;e.xp6(1),e.Q6J("ngIf","TEXTFIELD"===Ee.type||"VALIDATED_EMAIL"===Ee.type||"USERNAME"===Ee.type),e.xp6(1),e.Q6J("ngIf","PASSWORD"===Ee.type),e.xp6(1),e.Q6J("ngIf","RADIO"===Ee.type),e.xp6(1),e.Q6J("ngIf","HEADING"===Ee.type),e.xp6(1),e.Q6J("ngIf","HTML_COMMENT"===Ee.type),e.xp6(1),e.Q6J("ngIf","SELECTIONBOX"===Ee.type),e.xp6(1),e.Q6J("ngIf","TEXTAREA"===Ee.type),e.xp6(1),e.Q6J("ngIf","COMBOBOX"===Ee.type),e.xp6(1),e.Q6J("ngIf","CHECKBOX"===Ee.type),e.xp6(1),e.Q6J("ngIf","SUBMIT_BUTTON"===Ee.type),e.xp6(1),e.Q6J("ngIf","TIMEZONE"===Ee.type),e.xp6(1),e.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===Ee.type),e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===Ee.type),e.xp6(1),e.Q6J("ngIf","LIST_INPUT_BOX"===Ee.type),e.xp6(1),e.Q6J("ngIf","MAP_INPUT_BOX"===Ee.type)}}function h(ht,_t){1&ht&&e._UZ(0,"th",22)}function o(ht,_t){if(1&ht){const Ee=e.EpF();e.TgZ(0,"button",85),e.NdJ("click",function(){e.CHM(Ee);const de=e.oxw(3);return e.KtG(de.openManagingGroups())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"supervised_user_circle"),e.qZA()()}2&ht&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function n(ht,_t){if(1&ht&&(e.TgZ(0,"td",23),e.YNc(1,o,4,3,"button",84),e.qZA()),2&ht){const Ee=_t.$implicit;e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===Ee.type&&!Ee.forDelete)}}function t(ht,_t){1&ht&&e._UZ(0,"th",22)}function i(ht,_t){if(1&ht){const Ee=e.EpF();e.TgZ(0,"button",88),e.NdJ("click",function(){e.CHM(Ee);const de=e.oxw().$implicit,Ae=e.oxw(2);return e.KtG(Ae.edit(de))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"edit"),e.qZA()()}2&ht&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function a(ht,_t){1&ht&&(e.TgZ(0,"div",89),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ht&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function c(ht,_t){if(1&ht&&(e.TgZ(0,"td",23),e.YNc(1,i,4,3,"button",86),e.YNc(2,a,3,3,"div",87),e.qZA()),2&ht){const Ee=_t.$implicit;e.xp6(1),e.Q6J("ngIf",!Ee.forDelete),e.xp6(1),e.Q6J("ngIf",Ee.forDelete)}}function l(ht,_t){1&ht&&e._UZ(0,"th",22)}function d(ht,_t){if(1&ht){const Ee=e.EpF();e.TgZ(0,"button",91),e.NdJ("click",function(){e.CHM(Ee);const de=e.oxw().$implicit,Ae=e.oxw(2);return e.KtG(Ae.delete(de))}),e.ALo(1,"multiWordDataCy"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4,"delete"),e.qZA()()}if(2&ht){const Ee=e.oxw().$implicit;e.Q2q("data-cy","",e.lcZ(1,2,Ee.shortname),"-delete"),e.s9C("matTooltip",e.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function s(ht,_t){if(1&ht){const Ee=e.EpF();e.TgZ(0,"button",85),e.NdJ("click",function(){e.CHM(Ee);const de=e.oxw().$implicit,Ae=e.oxw(2);return e.KtG(Ae.restore(de))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"settings_backup_restore"),e.qZA()()}2&ht&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function E(ht,_t){if(1&ht&&(e.TgZ(0,"td",23),e.YNc(1,d,5,6,"button",90),e.YNc(2,s,4,3,"button",84),e.qZA()),2&ht){const Ee=_t.$implicit;e.xp6(1),e.Q6J("ngIf",!Ee.forDelete),e.xp6(1),e.Q6J("ngIf",Ee.forDelete)}}function B(ht,_t){1&ht&&e._UZ(0,"tr",92)}function q(ht,_t){if(1&ht&&e._UZ(0,"tr",93),2&ht){const Ee=_t.$implicit,we=e.oxw(2);e.ekj("make-green",Ee.id<=0)("make-red",Ee.forDelete)("make-yellow",-1!==we.itemsChanged.indexOf(Ee.id)&&!Ee.forDelete&&Ee.id>0),e.Q6J("cdkDragData",Ee)}}function qe(ht,_t){if(1&ht){const Ee=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"table",5,6),e.NdJ("cdkDropListDropped",function(de){e.CHM(Ee);const Ae=e.oxw();return e.KtG(Ae.drop(de))}),e.ynx(5,7),e.YNc(6,V,1,0,"th",8),e.YNc(7,W,4,0,"td",9),e.BQk(),e.ynx(8,10),e.YNc(9,te,3,3,"th",8),e.YNc(10,ne,3,5,"td",9),e.BQk(),e.ynx(11,11),e.YNc(12,ye,3,3,"th",8),e.YNc(13,ze,3,3,"td",9),e.BQk(),e.ynx(14,12),e.YNc(15,ke,3,3,"th",13),e.YNc(16,Je,2,1,"td",14),e.BQk(),e.ynx(17,15),e.YNc(18,Fe,3,3,"th",13),e.YNc(19,le,2,1,"td",14),e.BQk(),e.ynx(20,16),e.YNc(21,N,3,3,"th",8),e.YNc(22,C,16,15,"td",9),e.BQk(),e.ynx(23,17),e.YNc(24,h,1,0,"th",8),e.YNc(25,n,2,1,"td",9),e.BQk(),e.ynx(26,18),e.YNc(27,t,1,0,"th",8),e.YNc(28,c,3,2,"td",9),e.BQk(),e.ynx(29,19),e.YNc(30,l,1,0,"th",8),e.YNc(31,E,3,2,"td",9),e.BQk(),e.YNc(32,B,1,0,"tr",20),e.YNc(33,q,1,7,"tr",21),e.qZA()()()()}if(2&ht){const Ee=e.oxw();e.xp6(3),e.Q6J("cdkDropListDisabled",Ee.dragDisabled)("dataSource",Ee.dataSource),e.xp6(29),e.Q6J("matHeaderRowDef",Ee.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Ee.displayedColumns)}}function it(ht,_t){1&ht&&(e.TgZ(0,"perun-web-apps-alert",94),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ht&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let xt=(()=>{class ht{constructor(Ee,we,de,Ae){this.dialog=Ee,this.notificator=we,this.router=de,this.translate=Ae,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new e.vpe,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}ngOnInit(){this.ifEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_EMPTY"),this.ifPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_PREFILLED"),this.alwaysDisabled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED_HINT"),this.alwaysHidden=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN_HINT"),this.isDisabledIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.DISABLED_IF_HINT"),this.isHiddenIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.HIDDEN_IF_HINT"),this.isEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_EMPTY_HINT"),this.isPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_PREFILLED_HINT")}ngOnChanges(){this.dataSource=this.applicationFormItems,this.refreshApplicationForm&&(this.itemsChanged=[])}disabledHiddenDependency(Ee,we,de){let Ae="";if("IF_EMPTY"===we||"IF_PREFILLED"===we){const Te=null===de?"":this.applicationFormItems.find(ut=>ut.id===de).shortname;Ae="IF_EMPTY"===we?`(${this.ifEmpty} ${Te})`:`(${this.ifPrefilled} ${Te})`}return Ae}disabledTooltip(Ee){let we;switch(Ee.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return we=null===Ee.disabledDependencyItemId?"":this.applicationFormItems.find(de=>de.id===Ee.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${we} ${this.isEmpty}`;case"IF_PREFILLED":return we=null===Ee.disabledDependencyItemId?"":this.applicationFormItems.find(de=>de.id===Ee.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${we} ${this.isPrefilled}`}}hiddenTooltip(Ee){let we;switch(Ee.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return we=null===Ee.hiddenDependencyItemId?"":this.applicationFormItems.find(de=>de.id===Ee.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${we} ${this.isEmpty}`;case"IF_PREFILLED":return we=null===Ee.hiddenDependencyItemId?"":this.applicationFormItems.find(de=>de.id===Ee.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${we} ${this.isPrefilled}`}}edit(Ee){const we=(0,I.kZ)();we.width="600px",we.height="600px",we.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:Ee,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(x._,we).afterClosed().subscribe(Ae=>{Ae&&(this.itemsChanged.push(Ee.id),this.applicationFormItemsChange.emit())})}delete(Ee){const we=(0,I.kZ)();we.width="500px",this.dialog.open(M,we).afterClosed().subscribe(Ae=>{Ae&&(Ee.forDelete=!0,0===Ee.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(Ee),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(Ee){this.dragDisabled=!0;const we=this.applicationFormItems.indexOf(Ee.item.data);(0,f.bA)(this.applicationFormItems,we,Ee.currentIndex),this.itemsChanged.push(this.applicationFormItems[Ee.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(Ee){if(Ee.i18n[this.translate.getDefaultLang()]){const we=Ee.i18n[this.translate.getDefaultLang()].options;if(null!==we&&""!==we){const de=[];for(const Ae of we.split("|"))de.push(Ae.split("#")[1]);return de}}return[]}getLocalizedLabel(Ee){return Ee.i18n[this.translate.getDefaultLang()]?Ee.i18n[this.translate.getDefaultLang()].label:Ee.shortname}restore(Ee){Ee.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"],{queryParamsHandling:"preserve"})}}return ht.\u0275fac=function(Ee){return new(Ee||ht)(e.Y36(A.uw),e.Y36(w.V6),e.Y36(F.F0),e.Y36(m.sK))},ht.\u0275cmp=e.Xpm({type:ht,selectors:[["app-application-form-list"]],viewQuery:function(Ee,we){if(1&Ee&&e.Gf(v,5),2&Ee){let de;e.iGM(de=e.CRH())&&(we.table=de.first)}},inputs:{applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns",refreshApplicationForm:"refreshApplicationForm"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[e.TTD],decls:2,vars:2,consts:[["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"card","mt-2"],[1,"card-body","table-theme"],[1,"overflow-auto"],["cdkDropList","","cdkDropListData","dataSource","mat-table","",1,"w-100",3,"cdkDropListDisabled","dataSource","cdkDropListDropped"],["table",""],["matColumnDef","drag"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortname"],["matColumnDef","type"],["matColumnDef","disabled"],["class","center","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","hidden"],["matColumnDef","preview"],["matColumnDef","managegroups"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["cdkDrag","","mat-row","",3,"cdkDragData","make-green","make-red","make-yellow",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"mousedown"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center"],[4,"ngIf"],[1,"pointer",3,"matTooltip"],["type","text"],["type","text",1,"mb-1"],[4,"ngFor","ngForOf"],["type","reset",3,"value"],["name","temp","type","radio"],[3,"innerHTML"],[3,"ngModel","ngModelChange"],["selected","","value","false",4,"ngFor","ngForOf"],["value","true"],["selected","","value","false"],["type","checkbox"],["color","accent","mat-flat-button",""],["id","timezone-offset","name","timezone_offset",1,"span5"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["class","ms-auto","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["class","fw-bold",4,"ngIf"],["mat-icon-button","",1,"ms-auto",3,"matTooltip","click"],[1,"fw-bold"],["color","warn","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["color","warn","mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["cdkDrag","","mat-row","",3,"cdkDragData"],["alert_type","warn"]],template:function(Ee,we){1&Ee&&(e.YNc(0,qe,34,4,"div",0),e.YNc(1,it,3,3,"perun-web-apps-alert",1)),2&Ee&&(e.Q6J("ngIf",0!==we.applicationFormItems.length),e.xp6(1),e.Q6J("ngIf",0===we.applicationFormItems.length))},dependencies:[T.sg,T.O5,H._Y,H.YN,H.Kr,H.EJ,H.JJ,H.JL,H.On,H.F,P.Hw,J.BZ,J.fO,J.as,J.w1,J.Dz,J.nj,J.ge,J.ev,J.XQ,J.Gk,S.lW,S.RK,fe.gM,f.Wj,f.Zt,j.w,$.H,_e.$,m.X$,ge.c,pe.A,re.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.movable-row[_ngcontent-%COMP%]{cursor:move}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.make-green[_ngcontent-%COMP%]{background-color:#c8e6c9}.make-yellow[_ngcontent-%COMP%]{background-color:#fff9c4}.center[_ngcontent-%COMP%]{text-align:center}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),ht})()},99168:(Qe,ae,p)=>{"use strict";p.d(ae,{S:()=>E});var e=p(94650),f=p(61744),A=p(9244),S=p(96308),m=p(80279),M=p(56451),w=p(18505),x=p(36895),I=p(21029),F=p(10036),T=p(7274),H=p(82761),P=p(30671),J=p(98380),fe=p(34198),j=p(55660),$=p(18750),_e=p(97392),ge=p(10266);function pe(B,q){1&B&&(e.TgZ(0,"div")(1,"mat-icon",1),e._uU(2,"arrow_right_alt"),e.qZA()())}function re(B,q){1&B&&(e.TgZ(0,"div")(1,"mat-icon",2),e._uU(2,"restore"),e.qZA()())}function v(B,q){1&B&&(e.TgZ(0,"div")(1,"mat-icon",3),e._uU(2,"nat"),e.qZA()())}let V=(()=>{class B{}return B.\u0275fac=function(qe){return new(qe||B)},B.\u0275cmp=e.Xpm({type:B,selectors:[["app-application-type-icon"]],inputs:{applicationType:"applicationType"},decls:4,vars:3,consts:[[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"]],template:function(qe,it){1&qe&&(e.TgZ(0,"div"),e.YNc(1,pe,3,0,"div",0),e.YNc(2,re,3,0,"div",0),e.YNc(3,v,3,0,"div",0),e.qZA()),2&qe&&(e.xp6(1),e.Q6J("ngIf","INITIAL"===it.applicationType),e.xp6(1),e.Q6J("ngIf","EXTENSION"===it.applicationType),e.xp6(1),e.Q6J("ngIf","EMBEDDED"===it.applicationType))},dependencies:[x.O5,_e.Hw,ge.gM]}),B})();var W=p(89383),te=p(43157),ne=p(31359),ye=p(64597);let ze=(()=>{class B{transform(qe,it,xt,ht){return it?null:xt?["/organizations",String(qe.vo.id),"groups",String(xt.id),"applications",String(qe.id)]:ht?["/organizations",String(qe.vo.id),"members",String(ht.id),"applications",String(qe.id)]:["/organizations",String(qe.vo.id),"applications",String(qe.id)]}}return B.\u0275fac=function(qe){return new(qe||B)},B.\u0275pipe=e.Yjl({name:"selectApplicationLink",type:B,pure:!0}),B})();function ke(B,q){1&B&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"APPLICATIONS_LIST.ID")," "))}function $e(B,q){if(1&B&&(e.TgZ(0,"td",26),e.ALo(1,"multiWordDataCy"),e._uU(2),e.qZA()),2&B){const qe=q.$implicit;e.Q2q("data-cy","",qe.group?qe.group.name:e.lcZ(1,2,"no-group"),"-id-td"),e.xp6(2),e.hij(" ",qe.id," ")}}function Je(B,q){1&B&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"APPLICATIONS_LIST.CREATED_DATE")," "))}function Fe(B,q){if(1&B&&(e.TgZ(0,"td",26),e._uU(1),e.ALo(2,"date"),e.qZA()),2&B){const qe=q.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,qe.createdAt,"d.M.y"))}}function Ve(B,q){1&B&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.VO_ID")))}function le(B,q){if(1&B&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&B){const qe=q.$implicit;e.xp6(1),e.Oqu(qe.vo.id)}}function N(B,q){1&B&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.VO_NAME")))}function U(B,q){if(1&B&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&B){const qe=q.$implicit;e.xp6(1),e.Oqu(qe.vo.name)}}function X(B,q){1&B&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.GROUP_ID")))}function ce(B,q){if(1&B&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&B){const qe=q.$implicit;e.xp6(1),e.hij(" ",qe.group?qe.group.id:""," ")}}function Me(B,q){1&B&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.GROUP_NAME")))}function ue(B,q){if(1&B&&(e.TgZ(0,"td",26),e.ALo(1,"multiWordDataCy"),e._uU(2),e.qZA()),2&B){const qe=q.$implicit;e.Q2q("data-cy","",qe.group?qe.group.name:e.lcZ(1,2,"no-group"),"-groupname-td"),e.xp6(2),e.hij(" ",qe.group?qe.group.name:""," ")}}function Pe(B,q){1&B&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"APPLICATIONS_LIST.TYPE")," "))}function tt(B,q){if(1&B&&(e.TgZ(0,"td",26),e._UZ(1,"app-application-type-icon",28),e.qZA()),2&B){const qe=q.$implicit;e.xp6(1),e.Q6J("applicationType",qe.type)}}function Ce(B,q){1&B&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"APPLICATIONS_LIST.STATE")," "))}function at(B,q){if(1&B&&(e.TgZ(0,"td",26),e._UZ(1,"span",29),e.ALo(2,"applicationState"),e.qZA()),2&B){const qe=q.$implicit;e.xp6(1),e.Q6J("outerHTML",e.lcZ(2,1,qe.state),e.oJD)}}function Ue(B,q){1&B&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCENAME")))}function pt(B,q){if(1&B&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&B){const qe=q.$implicit;e.xp6(1),e.Oqu(qe.extSourceName)}}function z(B,q){1&B&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCETYPE")))}function st(B,q){if(1&B&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&B){const qe=q.$implicit;e.xp6(1),e.Oqu(qe.extSourceType)}}function be(B,q){1&B&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"APPLICATIONS_LIST.USER")," "))}function Ye(B,q){if(1&B&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&B){const qe=e.oxw().$implicit;e.xp6(1),e.hij(" ",qe.createdBy.slice(qe.createdBy.lastIndexOf("=")+1,qe.createdBy.length)," ")}}function he(B,q){if(1&B&&(e._uU(0),e.ALo(1,"userFullName")),2&B){const qe=e.oxw().$implicit;e.hij(" ",e.lcZ(1,1,qe.user)," ")}}function Re(B,q){if(1&B&&(e.TgZ(0,"td",26),e.YNc(1,Ye,2,1,"div",30),e.YNc(2,he,2,3,"ng-template",null,31,e.W1O),e.qZA()),2&B){const qe=q.$implicit,it=e.MAs(3);e.xp6(1),e.Q6J("ngIf",null===qe.user)("ngIfElse",it)}}function He(B,q){1&B&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.CREATED_BY")))}function ve(B,q){if(1&B&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&B){const qe=q.$implicit;e.Q2q("data-cy","",qe.createdBy,"-createdBy"),e.xp6(1),e.hij(" ",qe.createdBy.slice(qe.createdBy.lastIndexOf("=")+1,qe.createdBy.length)," ")}}function Oe(B,q){1&B&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_BY")," "))}function r(B,q){if(1&B&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&B){const qe=q.$implicit,it=e.oxw();e.xp6(1),e.Oqu(it.getFriendlyName(qe.modifiedBy))}}function u(B,q){1&B&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_AT")))}function _(B,q){if(1&B&&(e.TgZ(0,"td",26),e._uU(1),e.ALo(2,"date"),e.qZA()),2&B){const qe=q.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,qe.modifiedAt,"d.M.y"))}}function C(B,q){1&B&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.FEDINFO")))}function h(B,q){if(1&B&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&B){const qe=q.$implicit;e.xp6(1),e.Oqu(qe.fedInfo)}}function o(B,q){if(1&B&&(e.TgZ(0,"th",27),e._uU(1),e.qZA()),2&B){const qe=e.oxw().$implicit;e.xp6(1),e.Oqu(qe)}}function n(B,q){if(1&B&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&B){const qe=q.$implicit,it=e.oxw().$implicit,xt=e.oxw();e.xp6(1),e.hij(" ",xt.getFedValue(qe.fedInfo,it)," ")}}function t(B,q){1&B&&(e.ynx(0,32),e.YNc(1,o,2,1,"th",8),e.YNc(2,n,2,1,"td",5),e.BQk()),2&B&&e.s9C("matColumnDef",q.$implicit)}function i(B,q){if(1&B&&(e.TgZ(0,"th",27),e._uU(1),e.qZA()),2&B){const qe=e.oxw().$implicit;e.xp6(1),e.Oqu(qe)}}function a(B,q){if(1&B&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&B){const qe=q.$implicit,it=e.oxw().$implicit,xt=e.oxw();e.xp6(1),e.hij(" ",xt.getValue(qe.formData,it)," ")}}function c(B,q){1&B&&(e.ynx(0,32),e.YNc(1,i,2,1,"th",8),e.YNc(2,a,2,1,"td",5),e.BQk()),2&B&&e.s9C("matColumnDef",q.$implicit)}function l(B,q){1&B&&e._UZ(0,"tr",33)}function d(B,q){if(1&B&&(e._UZ(0,"tr",34),e.ALo(1,"selectApplicationLink"),e.ALo(2,"selectApplicationLink")),2&B){const qe=q.$implicit,it=e.oxw();e.ekj("cursor-pointer",!it.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",e.gM2(1,4,qe,it.disableRouting,it.group,it.member))("routerLink",e.gM2(2,9,qe,it.disableRouting,it.group,it.member))}}function s(B,q){1&B&&(e.TgZ(0,"perun-web-apps-alert",35),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&B&&(e.Q6J("alert_type","warn"),e.xp6(1),e.hij(" ",e.lcZ(2,2,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}let E=(()=>{class B{constructor(qe,it,xt,ht,_t){this.authResolver=qe,this.tableConfigService=it,this.dynamicPaginatingService=xt,this.attributesManagerService=ht,this.dialog=_t,this.displayedColumns=[],this.fedColumns=[],this.disableRouting=!1,this.searchString="",this.dateTo=new Date,this.dateFrom=this.yearAgo(),this.fedAttrNames=[],this.refreshTable=!1,this.loading$=new e.vpe,this.parsedColumns=[],this.pageSizeOptions=A.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,M.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,w.b)(()=>this.loadApplicationsPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(it=>"id"!==it)),this.dataSource=new m.Hy(this.dynamicPaginatingService,this.authResolver);const qe=this.dateTo??new Date;this.dataSource.loadApplications(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(qe),this.member?.userId??null,this.group?.id??null,this.getVoId()),this.loading$.emit(this.dataSource.loading$),this.dataSource.loading$.subscribe(it=>{if(it||!this.displayedColumns.includes("fedInfo"))return;this.displayedColumns=this.displayedColumns.filter(ht=>!this.parsedColumns.includes(ht)),this.parsedColumns=[];const xt=this.dataSource.getData()[0];xt&&this.parseColumns(xt.formData)})}ngOnChanges(){this.refreshTable=!1,this.dataSource&&(this.child.paginator.pageIndex=0,this.loadApplicationsPage())}loadApplicationsPage(){const qe="asc"===this.sort.direction?"ASCENDING":"DESCENDING",it=this.dateTo??new Date;this.dataSource.loadApplications(this.child.paginator.pageSize,this.child.paginator.pageIndex,qe,this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(it),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0)}exportDisplayedData(qe){(0,A.O6)((0,A.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn.bind(this)),qe)}exportAllData(qe){const it="asc"===this.sort.direction?"ASCENDING":"DESCENDING",xt=(0,A.kZ)();xt.width="300px";const ht=this.dialog.open(I.QQ,xt),_t=this.dateTo??new Date;this.dataSource.getAllApplications(this.child.paginator.length,it,this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(_t),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0).subscribe(Ee=>{ht.close(),(0,A.O6)((0,A.Xn)(Ee,this.displayedColumns,this.getExportDataForColumn.bind(this)),qe)})}getExportDataForColumn(qe,it){switch(it){case"id":return qe.id.toString();case"voId":return qe.vo.id.toString();case"voName":return qe.vo.name;case"groupId":return qe.group?.id.toString()??"";case"groupName":return qe.group?.name??"";case"type":return qe.type;case"fedInfo":return qe.fedInfo;case"formData":return this.stringify(qe.formData);case"state":return qe.state;case"extSourceName":return qe.extSourceName;case"extSourceType":return qe.extSourceType;case"user":return qe.user?(0,A.bD)(qe.user):"";case"createdBy":return qe.createdBy;case"createdAt":return qe.createdAt;case"modifiedBy":return qe.modifiedBy;case"modifiedAt":return qe.modifiedAt;default:return qe[it]}}getSortDataColumn(){if(!this.sort)return f.sY.DATE_CREATED;switch(this.sort.active){case"id":return f.sY.ID;case"createdAt":default:return f.sY.DATE_CREATED;case"type":return f.sY.TYPE;case"state":return f.sY.STATE;case"user":return f.sY.SUBMITTER;case"groupName":return f.sY.GROUP_NAME;case"modifiedBy":return f.sY.MODIFIED_BY}}getFriendlyName(qe){const it=qe.lastIndexOf("/CN=");if(-1!==it){const xt=qe.slice(it+4,qe.length).replace("/unstructuredName="," ");return-1!==xt.lastIndexOf("\\")?qe.slice(qe.lastIndexOf("=")+1,qe.length):xt}return qe}yearAgo(){const qe=new Date;return qe.setDate(qe.getDate()-365),qe}dateToString(qe){return(0,x.p6)(qe,"yyyy-MM-dd","en-GB")}getVoId(){return this.vo?this.vo.id:this.group?this.group.voId:this.member?this.member.voId:void 0}stringify(qe){const it=ht=>Object.entries(ht).reduce((_t,[Ee,we])=>_t[Ee]instanceof Object?_t[Ee]=it(_t[Ee]):(null==we||"null"===we||0===we.length||(_t[Ee]=we),_t),{});let xt=JSON.stringify(it(qe));return xt=xt.replace("{","["),xt=xt.replace("}","]"),xt}getFormDataString(qe){return this.stringify(qe.formItem)}parseColumns(qe){qe.forEach(it=>{this.displayedColumns.includes(it.shortname)||this.displayedColumns.push(it.shortname),this.parsedColumns.includes(it.shortname)||this.parsedColumns.push(it.shortname)})}getValue(qe,it){const xt=qe.filter(ht=>ht.shortname===it);return 0===xt.length?"":xt[0].value??xt[0].prefilledValue}getFedValue(qe,it){const xt=new RegExp(this.fedAttrNames.map(_t=>","+_t+":").join("|"));if(null===qe||0===qe.length)return"";let ht=[];return ht=qe.startsWith(it+":")?qe.split(it+":"):qe.split(","+it+":"),ht.length<2?"":(ht=ht[1].split(xt),ht[0].endsWith(",")?ht[0].slice(0,-1):ht[0])}}return B.\u0275fac=function(qe){return new(qe||B)(e.Y36(m.x4),e.Y36(F.dB),e.Y36(m.ly),e.Y36(f.H8),e.Y36(T.uw))},B.\u0275cmp=e.Xpm({type:B,selectors:[["app-applications-dynamic-list"]],viewQuery:function(qe,it){if(1&qe&&(e.Gf(A.l9,7),e.Gf(S.YE,5)),2&qe){let xt;e.iGM(xt=e.CRH())&&(it.child=xt.first),e.iGM(xt=e.CRH())&&(it.sort=xt.first)}},inputs:{displayedColumns:"displayedColumns",fedColumns:"fedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",group:"group",member:"member",vo:"vo",includeGroupApps:"includeGroupApps",states:"states",dateTo:"dateTo",dateFrom:"dateFrom",fedAttrNames:"fedAttrNames",refreshTable:"refreshTable"},outputs:{loading$:"loading$"},features:[e.TTD],decls:53,vars:10,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","createdAt","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["matColumnDef","voId"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],["matColumnDef","fedInfo"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"applicationType"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(qe,it){1&qe&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(ht){return it.exportDisplayedData(ht)})("exportAllData",function(ht){return it.exportAllData(ht)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,ke,3,3,"th",4),e.YNc(5,$e,3,4,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,Je,3,3,"th",4),e.YNc(8,Fe,3,4,"td",5),e.BQk(),e.ynx(9,7),e.YNc(10,Ve,3,3,"th",8),e.YNc(11,le,2,1,"td",5),e.BQk(),e.ynx(12,9),e.YNc(13,N,3,3,"th",8),e.YNc(14,U,2,1,"td",5),e.BQk(),e.ynx(15,10),e.YNc(16,X,3,3,"th",8),e.YNc(17,ce,2,1,"td",5),e.BQk(),e.ynx(18,11),e.YNc(19,Me,3,3,"th",8),e.YNc(20,ue,3,4,"td",5),e.BQk(),e.ynx(21,12),e.YNc(22,Pe,3,3,"th",4),e.YNc(23,tt,2,1,"td",5),e.BQk(),e.ynx(24,13),e.YNc(25,Ce,3,3,"th",4),e.YNc(26,at,3,3,"td",5),e.BQk(),e.ynx(27,14),e.YNc(28,Ue,3,3,"th",8),e.YNc(29,pt,2,1,"td",5),e.BQk(),e.ynx(30,15),e.YNc(31,z,3,3,"th",8),e.YNc(32,st,2,1,"td",5),e.BQk(),e.ynx(33,16),e.YNc(34,be,3,3,"th",4),e.YNc(35,Re,4,2,"td",5),e.BQk(),e.ynx(36,17),e.YNc(37,He,3,3,"th",8),e.YNc(38,ve,2,2,"td",5),e.BQk(),e.ynx(39,18),e.YNc(40,Oe,3,3,"th",4),e.YNc(41,r,2,1,"td",5),e.BQk(),e.ynx(42,19),e.YNc(43,u,3,3,"th",8),e.YNc(44,_,3,4,"td",5),e.BQk(),e.ynx(45,20),e.YNc(46,C,3,3,"th",8),e.YNc(47,h,2,1,"td",5),e.BQk(),e.YNc(48,t,3,1,"ng-container",21),e.YNc(49,c,3,1,"ng-container",21),e.YNc(50,l,1,0,"tr",22),e.YNc(51,d,3,14,"tr",23),e.qZA()()(),e.YNc(52,s,3,4,"perun-web-apps-alert",24)),2&qe&&(e.Q6J("hidden",0===it.dataSource.allObjectCount),e.xp6(1),e.Q6J("dataLength",it.dataSource.allObjectCount)("pageSizeOptions",it.pageSizeOptions)("tableId",it.tableId),e.xp6(1),e.Q6J("dataSource",it.dataSource),e.xp6(46),e.Q6J("ngForOf",it.fedColumns),e.xp6(1),e.Q6J("ngForOf",it.parsedColumns),e.xp6(1),e.Q6J("matHeaderRowDef",it.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",it.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===it.dataSource.allObjectCount))},dependencies:[x.sg,x.O5,H.rH,S.YE,S.nU,P.BZ,P.fO,P.as,P.w1,P.Dz,P.nj,P.ge,P.ev,P.XQ,P.Gk,J.w,fe.Y,j.Q,$.l,V,x.uU,W.X$,te.h,ne.d,ye.R,ze],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),B})()},45256:(Qe,ae,p)=>{"use strict";p.d(ae,{k:()=>P});var e=p(95017),f=p(61744),A=p(64080),S=p(7274),m=p(80279),M=p(86511),w=p(77579),x=p(56451),I=p(39646),F=p(63900),T=p(68675),H=p(94650);let P=(()=>{class J{constructor(j,$,_e,ge,pe,re,v,V,W,te,ne){this.data=j,this.dialogRef=$,this.membersManagerService=_e,this.voService=ge,this.registrarManager=pe,this.groupService=re,this.store=v,this.guiAuthResolver=V,this.requestService=W,this.addMemberService=te,this.notificator=ne,this.loading=!1,this.searcher=new w.x,this.members=this.searcher.pipe((0,F.w)(ye=>(0,x.T)((0,I.of)(null),this.voService.getCompleteCandidatesForGroup(this.data.group.id,this.attrNames,ye))),(0,T.O)(void 0)),this.failed=[],this.selection=new e.Ov(!0,[]),this.attrNames=[A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.getProperty("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("group")}ngOnInit(){this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group]),this.selection.changed.subscribe(j=>{this.addAuth=!!j.source.selected.every($=>$.member)||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.data.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.data.group])}),this.registrarManager.invitationFormExists(this.data.group.voId,this.data.group.id).subscribe(j=>{this.showInvite=j})}add(){this.loading=!0,this.membersManagerService.addMemberCandidates({candidates:this.addMemberService.convertToMemberCandidates(this.selection.selected),vo:this.data.group.voId,group:this.data.group.id}).subscribe({next:()=>{this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD")},error:j=>{this.loading=!1,this.notificator.showRPCError(j)}})}invite(j){this.loading=!0,this.registrarManager.inviteMemberCandidates({candidates:this.addMemberService.convertToMemberCandidates(this.selection.selected),vo:this.data.group.voId,lang:j,group:this.data.group.id}).subscribe({next:()=>{this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE")},error:$=>{this.loading=!1,this.notificator.showRPCError($)}})}cancel(j){this.dialogRef.close(j)}}return J.\u0275fac=function(j){return new(j||J)(H.Y36(S.WI),H.Y36(S.so),H.Y36(f.uq),H.Y36(f.YF),H.Y36(f.tk),H.Y36(f.ff),H.Y36(m.d6),H.Y36(m.x4),H.Y36(m.F5),H.Y36(M.A),H.Y36(m.V6))},J.\u0275cmp=H.Xpm({type:J,selectors:[["app-group-add-member-dialog"]],decls:2,vars:12,consts:[[3,"showInvite","loading","languages","manualAddingBlocked","addAuth","inviteAuth","failed","members","selection","theme","add","cancel","invite","search"]],template:function(j,$){1&j&&(H.TgZ(0,"app-add-member-dialog",0),H.NdJ("add",function(){return $.add()})("cancel",function(ge){return $.cancel(ge)})("invite",function(ge){return $.invite(ge)})("search",function(ge){return $.searcher.next(ge)}),H.ALo(1,"async"),H.qZA()),2&j&&H.Q6J("showInvite",$.showInvite)("loading",$.loading)("languages",$.languages)("manualAddingBlocked",$.data.manualAddingBlocked)("addAuth",$.addAuth)("inviteAuth",$.inviteAuth)("failed",$.failed)("members",H.lcZ(1,10,$.members))("selection",$.selection)("theme","group-theme")}}),J})()},51525:(Qe,ae,p)=>{"use strict";p.d(ae,{H:()=>P});var e=p(7274),f=p(61744),A=p(80279),S=p(95017),m=p(64080),M=p(86511),w=p(77579),x=p(56451),I=p(39646),F=p(63900),T=p(68675),H=p(94650);let P=(()=>{class J{constructor(j,$,_e,ge,pe,re,v,V,W){this.data=j,this.dialogRef=$,this.membersManagerService=_e,this.voService=ge,this.registrarManager=pe,this.store=re,this.requestService=v,this.addMemberService=V,this.notificator=W,this.loading=!1,this.showInvite=!1,this.searcher=new w.x,this.members=this.searcher.pipe((0,F.w)(te=>(0,x.T)((0,I.of)(null),this.voService.getCompleteCandidatesForVo(this.data.voId,this.attrNames,te))),(0,T.O)(void 0)),this.failed=[],this.selection=new S.Ov(!0,[]),this.attrNames=[m.r.USER_DEF_ORGANIZATION,m.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.getProperty("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("vo")}ngOnInit(){this.registrarManager.invitationFormExists(this.data.voId).subscribe(j=>{this.showInvite=j})}add(){this.loading=!0,this.membersManagerService.addMemberCandidates({candidates:this.addMemberService.convertToMemberCandidates(this.selection.selected),vo:this.data.voId}).subscribe({next:()=>{this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD")},error:j=>{this.loading=!1,this.notificator.showRPCError(j)}})}invite(j){this.loading=!0,this.registrarManager.inviteMemberCandidates({candidates:this.addMemberService.convertToMemberCandidates(this.selection.selected),vo:this.data.voId,lang:j}).subscribe({next:()=>{this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE")},error:$=>{this.loading=!1,this.notificator.showRPCError($)}})}cancel(j){this.dialogRef.close(j)}}return J.\u0275fac=function(j){return new(j||J)(H.Y36(e.WI),H.Y36(e.so),H.Y36(f.uq),H.Y36(f.YF),H.Y36(f.tk),H.Y36(A.d6),H.Y36(A.F5),H.Y36(M.A),H.Y36(A.V6))},J.\u0275cmp=H.Xpm({type:J,selectors:[["app-vo-add-member-dialog"]],decls:2,vars:9,consts:[[3,"loading","showInvite","languages","failed","members","selection","theme","add","cancel","invite","search"]],template:function(j,$){1&j&&(H.TgZ(0,"app-add-member-dialog",0),H.NdJ("add",function(){return $.add()})("cancel",function(ge){return $.cancel(ge)})("invite",function(ge){return $.invite(ge)})("search",function(ge){return $.searcher.next(ge)}),H.ALo(1,"async"),H.qZA()),2&j&&H.Q6J("loading",$.loading)("showInvite",$.showInvite)("languages",$.languages)("failed",$.failed)("members",H.lcZ(1,7,$.members))("selection",$.selection)("theme","vo-theme")}}),J})()},55857:(Qe,ae,p)=>{"use strict";p.d(ae,{W:()=>ne});var e=p(61744),f=p(10036),A=p(80279),S=p(24006),m=p(36895),M=p(9244),w=p(23325),x=p(39646),I=p(94650),F=p(7274),T=p(4859),H=p(10266),P=p(68530),J=p(96214),fe=p(39798),j=p(64901),$=p(68788),_e=p(73358),ge=p(99168),pe=p(89383);function re(ye,ze){if(1&ye){const ke=I.EpF();I.TgZ(0,"button",11),I.NdJ("click",function(){I.CHM(ke);const Je=I.oxw();return I.KtG(Je.showDetails(!0))}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&ye&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function v(ye,ze){if(1&ye){const ke=I.EpF();I.TgZ(0,"button",11),I.NdJ("click",function(){I.CHM(ke);const Je=I.oxw();return I.KtG(Je.showDetails(!1))}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&ye&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function V(ye,ze){if(1&ye){const ke=I.EpF();I.TgZ(0,"button",12),I.NdJ("click",function(){I.CHM(ke);const Je=I.oxw();return I.KtG(Je.setColumns())}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&ye){const ke=I.oxw();I.Q6J("disabled",ke.showAllDetails),I.xp6(1),I.hij(" ",I.lcZ(2,2,"VO_DETAIL.APPLICATION.SET_COLUMN_SETTINGS")," ")}}function W(ye,ze){1&ye&&I._UZ(0,"perun-web-apps-loading-table")}function te(ye,ze){if(1&ye){const ke=I.EpF();I.TgZ(0,"app-applications-dynamic-list",13),I.NdJ("loading$",function(Je){I.CHM(ke);const Fe=I.oxw();return I.KtG(Fe.loading$=Je)}),I.qZA()}if(2&ye){const ke=I.oxw();I.Q6J("tableId",ke.showAllDetails?ke.detailTableId:ke.tableId)("searchString",ke.filterValue)("displayedColumns",ke.currentColumns)("fedColumns",ke.configuredFedColumns)("fedAttrNames",ke.fedAttrNames)("states",ke.currentStates)("dateFrom",ke.startDate.value)("dateTo",ke.endDate.value)("refreshTable",ke.refresh)("group",ke.group)}}let ne=(()=>{class ye{constructor(ke,$e,Je,Fe,Ve,le){this.registrarManager=ke,this.guiAuthResolver=$e,this.entityStorageService=Je,this.attributeManager=Fe,this.dialog=Ve,this.cd=le,this.currentStates=["NEW","VERIFIED"],this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.detailedColumns=["createdAt","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=f.Af,this.tableId=f.gB,this.refresh=!1,this.fedAttrNames=[],this.currentColumns=[],this.configuredColumns=[],this.configuredFedColumns=[],this.columnsAuth=!1}ngOnInit(){this.loading$=(0,x.of)(!0),this.group=this.entityStorageService.getEntity(),this.startDate=new S.p4((0,m.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new S.p4((0,m.p6)(new Date,"yyyy-MM-dd","en-GB")),this.attributeManager.getIdpAttributeDefinitions().subscribe(ke=>{ke.forEach($e=>{this.fedAttrNames.includes($e.friendlyName)||this.fedAttrNames.push($e.friendlyName)})}),this.loadViewConfiguration()}yearAgo(){const ke=new Date;return ke.setDate(ke.getDate()-365),ke}applyFilter(ke){this.filterValue=ke}showDetails(ke){this.showAllDetails=ke,this.loadViewConfiguration()}refreshColumns(){return this.cd.detectChanges(),["id"].concat(this.showAllDetails?this.detailedColumns:this.configuredColumns.length>0?this.configuredColumns:this.simpleColumns)}loadViewConfiguration(){this.cd.detectChanges(),this.attributeManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:def:applicationViewPreferences").subscribe(ke=>{null!=ke?.value&&ke?.value.length>0?(this.configuredColumns=ke.value,this.configuredFedColumns=this.configuredColumns.filter($e=>this.fedAttrNames.includes($e))):(this.configuredColumns=[],this.configuredFedColumns=[]),this.columnsAuth=ke.writable,this.currentColumns=this.refreshColumns()})}setColumns(){const ke=(0,M.kZ)();ke.width="650px",ke.data={columns:[],groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.a,ke).afterClosed().subscribe(Je=>{Je&&this.loadViewConfiguration()})}refreshTable(){this.refresh=!this.refresh,this.cd.detectChanges()}}return ye.id="GroupApplicationsComponent",ye.\u0275fac=function(ke){return new(ke||ye)(I.Y36(e.tk),I.Y36(A.x4),I.Y36(A.fb),I.Y36(e.H8),I.Y36(F.uw),I.Y36(I.sBO))},ye.\u0275cmp=I.Xpm({type:ye,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(ke,$e){2&ke&&I.ekj("router-component",$e.true)},decls:18,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["class","me-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"stateChanged"],[3,"placeholder","filter"],[3,"endDate","startDate"],["matTooltipPosition","above",3,"matTooltipDisabled","matTooltip"],["mat-stroked-button","",3,"disabled","click",4,"ngIf"],["spinner",""],[1,"position-relative"],[3,"tableId","searchString","displayedColumns","fedColumns","fedAttrNames","states","dateFrom","dateTo","refreshTable","group","loading$",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-stroked-button","",1,"me-2",3,"click"],["mat-stroked-button","",3,"disabled","click"],[3,"tableId","searchString","displayedColumns","fedColumns","fedAttrNames","states","dateFrom","dateTo","refreshTable","group","loading$"]],template:function(ke,$e){if(1&ke&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),I.NdJ("refresh",function(){return $e.refreshTable()}),I.qZA(),I.YNc(5,re,3,3,"button",2),I.YNc(6,v,3,3,"button",2),I.TgZ(7,"perun-web-apps-application-state-selector",3),I.NdJ("stateChanged",function(Fe){return $e.currentStates=Fe}),I.qZA(),I.TgZ(8,"perun-web-apps-debounce-filter",4),I.NdJ("filter",function(Fe){return $e.applyFilter(Fe)}),I.qZA(),I._UZ(9,"perun-web-apps-date-range",5),I.TgZ(10,"span",6),I.ALo(11,"translate"),I.YNc(12,V,3,4,"button",7),I.qZA()(),I.YNc(13,W,1,0,"ng-template",null,8,I.W1O),I.TgZ(15,"div",9),I.YNc(16,te,1,10,"app-applications-dynamic-list",10),I.ALo(17,"async"),I.qZA()),2&ke){const Je=I.MAs(14);I.xp6(1),I.Oqu(I.lcZ(2,11,"VO_DETAIL.APPLICATION.TITLE")),I.xp6(4),I.Q6J("ngIf",!$e.showAllDetails),I.xp6(1),I.Q6J("ngIf",$e.showAllDetails),I.xp6(2),I.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),I.xp6(1),I.Q6J("endDate",$e.endDate)("startDate",$e.startDate),I.xp6(1),I.s9C("matTooltip",I.lcZ(11,13,"VO_DETAIL.APPLICATION.COLUMNS_TOOLTIP")),I.Q6J("matTooltipDisabled",!$e.showAllDetails),I.xp6(2),I.Q6J("ngIf",$e.columnsAuth),I.xp6(4),I.Q6J("perunWebAppsLoader",I.lcZ(17,15,$e.loading$))("perunWebAppsLoaderIndicator",Je)}},dependencies:[m.O5,T.lW,H.gM,P.K,J.t,fe.S,j.P,$.x,_e.e,ge.S,m.Ov,pe.X$]}),ye})()},13600:(Qe,ae,p)=>{"use strict";p.d(ae,{y:()=>he});var e=p(95017),f=p(80279),A=p(64080),S=p(53455),m=p(61744),M=p(10036),w=p(9244),x=p(74414),I=p(24006),F=p(45256),T=p(94742),H=p(7274),P=p(94650),J=p(4859),fe=p(10266),j=p(71948),$=p(98380),_e=p(97403),ge=p(25788),pe=p(7434),re=p(73358),v=p(89383);function V(Re,He){1&Re&&P._UZ(0,"perun-web-apps-loading-dialog")}const W=function(){return["select","id","name","description"]};function te(Re,He){if(1&Re){const ve=P.EpF();P.TgZ(0,"div")(1,"h1",2),P._uU(2),P.ALo(3,"translate"),P.qZA(),P.TgZ(4,"div",3)(5,"mat-radio-group",4),P.NdJ("ngModelChange",function(r){P.CHM(ve);const u=P.oxw();return P.KtG(u.copyType=r)}),P.TgZ(6,"span",5),P.ALo(7,"translate"),P.TgZ(8,"mat-radio-button",6),P._uU(9),P.ALo(10,"translate"),P.qZA()(),P.TgZ(11,"mat-radio-button",7),P._uU(12),P.ALo(13,"translate"),P.qZA()(),P.TgZ(14,"perun-web-apps-alert",8),P._uU(15),P.ALo(16,"translate"),P.qZA(),P.TgZ(17,"h5",9),P._uU(18),P.ALo(19,"translate"),P.qZA(),P.TgZ(20,"perun-web-apps-immediate-filter",10),P.NdJ("filter",function(r){P.CHM(ve);const u=P.oxw();return P.KtG(u.applyFilter(r))}),P.qZA(),P._UZ(21,"perun-web-apps-groups-list",11),P.qZA(),P.TgZ(22,"div",12)(23,"button",13),P.NdJ("click",function(){P.CHM(ve);const r=P.oxw();return P.KtG(r.onCancel())}),P._uU(24),P.ALo(25,"translate"),P.qZA(),P.TgZ(26,"button",14),P.NdJ("click",function(){P.CHM(ve);const r=P.oxw();return P.KtG(r.onSubmit())}),P._uU(27),P.ALo(28,"translate"),P.qZA()()()}if(2&Re){const ve=P.oxw();P.xp6(2),P.Oqu(P.lcZ(3,19,"DIALOGS.COPY_MEMBERS.TITLE")),P.xp6(3),P.Q6J("ngModel",ve.copyType),P.xp6(1),P.s9C("matTooltip",P.lcZ(7,21,"DIALOGS.COPY_MEMBERS.DISABLED_COPY_SELECTION")),P.Q6J("matTooltipDisabled",ve.data.members.length>0),P.xp6(2),P.Q6J("disabled",0===ve.data.members.length),P.xp6(1),P.hij(" ",P.lcZ(10,23,"DIALOGS.COPY_MEMBERS.COPY_SELECTION")," "),P.xp6(3),P.hij(" ",P.lcZ(13,25,"DIALOGS.COPY_MEMBERS.COPY_ALL")," "),P.xp6(3),P.hij(" ",P.lcZ(16,27,"DIALOGS.COPY_MEMBERS.ATTRIBUTES_WARN")," "),P.xp6(3),P.Oqu(P.lcZ(19,29,"DIALOGS.COPY_MEMBERS.SELECT_GROUPS")),P.xp6(2),P.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),P.xp6(1),P.Q6J("groups",ve.assignableGroups)("selection",ve.selection)("disableRouting",!0)("displayedColumns",P.DdM(35,W))("filter",ve.filterValue)("tableId",ve.tableId),P.xp6(3),P.hij(" ",P.lcZ(25,31,"DIALOGS.COPY_MEMBERS.CANCEL")," "),P.xp6(2),P.Q6J("disabled",ve.loading||ve.selection.isEmpty()),P.xp6(1),P.hij(" ",P.lcZ(28,33,"DIALOGS.COPY_MEMBERS.COPY")," ")}}let ne=(()=>{class Re{constructor(ve,Oe,r,u,_,C){this.dialogRef=ve,this.data=Oe,this.groupsService=r,this.guiAuthResolver=u,this.translate=_,this.notificator=C,this.loading=!1,this.copyType="all",this.filterValue="",this.tableId=M.rc,this.assignableGroups=[],this.selection=new e.Ov(!0,[]),this.groupAttrNames=[A.r.GROUP_SYNC_ENABLED,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading=!0,this.data.members.length>0&&(this.copyType="selection"),this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(ve=>{this.assignableGroups=this.filterAssignableGroups(ve),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const ve="selection"===this.copyType?this.data.members.map(Oe=>Oe.id):[];this.groupsService.copyMembers(this.data.groupId,this.selection.selected.map(Oe=>Oe.id),ve).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.COPY_MEMBERS.SUCCESS")),this.dialogRef.close(!0)},error:()=>{this.notificator.showError(this.translate.instant("DIALOGS.COPY_MEMBERS.ERROR")),this.loading=!1}})}applyFilter(ve){this.filterValue=ve}filterAssignableGroups(ve){const Oe=[];for(const r of ve)"members"!==r.name&&r.id!==this.data.groupId&&!(0,w.bx)(r)&&!(0,w.jh)(r.attributes,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("dest-copyMembers_Group_List_List_boolean_policy",[r])&&Oe.push(r);return Oe}}return Re.\u0275fac=function(ve){return new(ve||Re)(P.Y36(H.so),P.Y36(H.WI),P.Y36(m.ff),P.Y36(f.x4),P.Y36(f.Te),P.Y36(f.V6))},Re.\u0275cmp=P.Xpm({type:Re,selectors:[["app-copy-members-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"flex-container",3,"ngModel","ngModelChange"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","selection",3,"disabled"],["value","all"],["alert_type","warn",1,"mt-4"],[1,"mt-4"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(ve,Oe){if(1&ve&&(P.YNc(0,V,1,0,"ng-template",null,0,P.W1O),P.TgZ(2,"div"),P.YNc(3,te,29,36,"div",1),P.qZA()),2&ve){const r=P.MAs(1);P.xp6(2),P.Gre("",Oe.data.theme," position-relative"),P.xp6(1),P.Q6J("perunWebAppsLoader",Oe.loading)("perunWebAppsLoaderIndicator",r)}},dependencies:[I.JJ,I.On,J.lW,H.uh,H.xY,H.H8,fe.gM,j.VQ,j.U0,$.w,_e.b,ge.W,pe.L,re.e,v.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Re})();var ye=p(39646),ze=p(36895),ke=p(3238),$e=p(59549),Je=p(84385),Fe=p(28255),Ve=p(68530),le=p(96214),N=p(64901),U=p(4811),X=p(20551);let ce=(()=>{class Re{transform(ve,Oe){return!!("members"===ve.name||(0,w.bx)(ve)||"add"===Oe&&(0,w.jh)(ve.attributes,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING))}}return Re.\u0275fac=function(ve){return new(ve||Re)},Re.\u0275pipe=P.Yjl({name:"groupMembersActionButtonDisabled",type:Re,pure:!0}),Re})(),Me=(()=>{class Re{transform(ve,Oe){return"members"===ve.name?"GROUP_DETAIL.MEMBERS.BUTTON_DISABLED_MEMBERS_GROUP":(0,w.bx)(ve)?"GROUP_DETAIL.MEMBERS.SYNCHRONIZED":"add"===Oe&&(0,w.jh)(ve.attributes,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)?"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED":""}}return Re.\u0275fac=function(ve){return new(ve||Re)},Re.\u0275pipe=P.Yjl({name:"groupMembersActionButtonDisabledTooltip",type:Re,pure:!0}),Re})();function ue(Re,He){1&Re&&(P.TgZ(0,"perun-web-apps-alert",18),P._uU(1),P.ALo(2,"translate"),P.qZA()),2&Re&&(P.xp6(1),P.hij(" ",P.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function Pe(Re,He){if(1&Re){const ve=P.EpF();P.TgZ(0,"button",19),P.NdJ("click",function(){P.CHM(ve);const r=P.oxw();return P.KtG(r.onAddMember())}),P.ALo(1,"groupMembersActionButtonDisabled"),P._uU(2),P.ALo(3,"translate"),P.qZA()}if(2&Re){const ve=P.oxw();P.Q6J("disabled",P.xi3(1,2,ve.group,"add")),P.xp6(2),P.hij(" ",P.lcZ(3,5,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function tt(Re,He){if(1&Re&&(P.TgZ(0,"button",20),P.ALo(1,"groupMembersActionButtonDisabled"),P._uU(2),P.ALo(3,"translate"),P.qZA()),2&Re){const ve=P.oxw(),Oe=P.MAs(17);P.Q6J("disabled",P.lcZ(1,3,ve.group))("matMenuTriggerFor",Oe),P.xp6(2),P.hij(" ",P.lcZ(3,5,"GROUP_DETAIL.MEMBERS.INVITE")," ")}}function Ce(Re,He){if(1&Re){const ve=P.EpF();P.TgZ(0,"button",21),P.NdJ("click",function(){P.CHM(ve);const r=P.oxw();return P.KtG(r.onInviteMember())}),P.ALo(1,"groupMembersActionButtonDisabled"),P._uU(2),P.ALo(3,"translate"),P.qZA()}if(2&Re){const ve=P.oxw();P.Q6J("disabled",P.lcZ(1,2,ve.group)),P.xp6(2),P.hij(" ",P.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_ONE")," ")}}function at(Re,He){if(1&Re){const ve=P.EpF();P.TgZ(0,"button",21),P.NdJ("click",function(){P.CHM(ve);const r=P.oxw();return P.KtG(r.onBulkInvite())}),P.ALo(1,"groupMembersActionButtonDisabled"),P._uU(2),P.ALo(3,"translate"),P.qZA()}if(2&Re){const ve=P.oxw();P.Q6J("disabled",P.lcZ(1,2,ve.group)),P.xp6(2),P.hij(" ",P.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_BULK")," ")}}function Ue(Re,He){if(1&Re){const ve=P.EpF();P.TgZ(0,"button",22),P.NdJ("click",function(){P.CHM(ve);const r=P.oxw();return P.KtG(r.onCopyMembers())}),P._uU(1),P.ALo(2,"translate"),P.qZA()}if(2&Re){const ve=P.oxw();P.Q6J("disabled",ve.copyDisabled),P.xp6(1),P.hij(" ",P.lcZ(2,2,"GROUP_DETAIL.MEMBERS.COPY_MEMBERS")," ")}}function pt(Re,He){if(1&Re){const ve=P.EpF();P.TgZ(0,"button",23),P.NdJ("click",function(){P.CHM(ve);const r=P.oxw();return P.KtG(r.onRemoveMembers())}),P.ALo(1,"groupMembersActionButtonDisabled"),P._uU(2),P.ALo(3,"translate"),P.qZA()}if(2&Re){const ve=P.oxw();P.Q6J("disabled",ve.selection.isEmpty()||P.lcZ(1,2,ve.group)),P.xp6(2),P.hij(" ",P.lcZ(3,4,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function z(Re,He){if(1&Re&&(P.TgZ(0,"mat-option",24),P._uU(1),P.ALo(2,"memberStatus"),P.qZA()),2&Re){const ve=He.$implicit;P.Q6J("value",ve),P.xp6(1),P.Oqu(P.lcZ(2,2,ve))}}function st(Re,He){if(1&Re&&(P.TgZ(0,"mat-option",24),P._uU(1),P.ALo(2,"memberStatus"),P.qZA()),2&Re){const ve=He.$implicit;P.Q6J("value",ve),P.xp6(1),P.Oqu(P.lcZ(2,2,ve))}}function be(Re,He){1&Re&&P._UZ(0,"perun-web-apps-loading-table")}function Ye(Re,He){if(1&Re){const ve=P.EpF();P.TgZ(0,"perun-web-apps-members-dynamic-list",25),P.NdJ("loading$",function(r){P.CHM(ve);const u=P.oxw();return P.KtG(u.loading$=r)}),P.qZA()}if(2&Re){const ve=P.oxw();P.Q6J("attrNames",ve.memberAttrNames)("groupId",ve.group.id)("tableId",ve.tableId)("displayedColumns",ve.displayedColumns)("searchString",ve.searchString)("updateTable",ve.updateTable)("selectedGroupStatuses",ve.selectedGroupStatuses)("selectedStatuses",ve.selectedStatuses)("selection",ve.selection)("voId",ve.group.voId)("isMembersGroup","members"===ve.group.name)}}let he=(()=>{class Re{constructor(ve,Oe,r,u,_,C,h,o,n){this.groupService=ve,this.dialog=Oe,this.guiAuthResolver=r,this.storeService=u,this.attributesManager=_,this.apiRequest=C,this.notificator=h,this.entityStorageService=o,this.cd=n,this.synchEnabled=!1,this.updateTable=!1,this.tableId=M.dI,this.memberAttrNames=[A.r.MEMBER_DEF_ORGANIZATION,A.r.MEMBER_DEF_MAIL,A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL,A.r.MEMBER_DEF_EXPIRATION,A.r.MEMBER_DEF_GROUP_EXPIRATION,A.r.MEMBER_LIFECYCLE_ALTERABLE],this.copyDisabled=!1,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new I.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new I.p4,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"],this.groupAttrNames=[A.r.GROUP_SYNC_ENABLED,A.r.GROUP_LAST_SYNC_STATE,A.r.GROUP_LAST_SYNC_TIMESTAMP,A.r.GROUP_STRUCTURE_SYNC_ENABLED,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading$=(0,ye.of)(!0),this.selection=new e.Ov(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.group.voId).then(()=>this.loadPage(this.group.id)),this.isCopyMembersDisabled()}loadPage(ve){this.groupService.getRichGroupByIdWithAttributesByNames(ve,this.groupAttrNames).subscribe(Oe=>{this.group=Oe,this.synchEnabled=(0,w.bx)(this.group)})}setAuthRights(){this.addAuth=this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("removeMembers_Group_List_policy",[this.group]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","type","fullName","status","groupStatus","organization","email","logins"],this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_String_String_String_policy",[this.group]),this.copyAuth=this.guiAuthResolver.isAuthorized("source-copyMembers_Group_List_List_boolean_policy",[this.group])}onSearchByString(ve){this.searchString=ve,this.selection.clear()}onAddMember(){const ve=(0,w.kZ)();ve.width="1000px",ve.data={group:this.group,manualAddingBlocked:this.blockManualMemberAdding},this.dialog.open(F.k,ve).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.updateTable=!this.updateTable,this.isCopyMembersDisabled())})}onRemoveMembers(){const ve=(0,w.kZ)();ve.width="450px",ve.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(S.X,ve).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.updateTable=!this.updateTable,this.isCopyMembersDisabled())})}onInviteMember(){const ve=(0,w.kZ)();ve.width="650px",ve.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(x.R,ve)}onBulkInvite(){const ve=(0,w.kZ)();ve.width="650px",ve.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(T.F,ve)}onCopyMembers(){const ve=(0,w.kZ)();ve.width="650px",ve.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme",members:this.selection.selected},this.dialog.open(ne,ve).afterClosed().subscribe(r=>{r&&this.selection.clear()})}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const ve=this.statuses.value;return ve?`${ve[0]} ${ve.length>1?"(+"+(ve.length-1).toString()+" "+(2===ve.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(ve){return new Promise(Oe=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(ve,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe({next:r=>{this.blockManualMemberAdding=null!==r.value,Oe()},error:r=>{"PrivilegeException"!==r.name&&this.notificator.showError(r.name),Oe()}})})}isCopyMembersDisabled(){this.copyDisabled=!0,this.groupService.getGroupDirectMembersCount(this.group.id).subscribe({next:ve=>{this.copyDisabled=0===ve},error:()=>{this.copyDisabled=!0}})}changeVoStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value,this.cd.detectChanges()}changeGroupStatuses(){this.selection.clear(),this.selectedGroupStatuses=this.groupStatuses.value,this.cd.detectChanges()}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable,this.cd.detectChanges(),this.isCopyMembersDisabled()}}return Re.id="GroupMembersComponent",Re.\u0275fac=function(ve){return new(ve||Re)(P.Y36(m.ff),P.Y36(H.uw),P.Y36(f.x4),P.Y36(f.d6),P.Y36(m.H8),P.Y36(f.F5),P.Y36(f.V6),P.Y36(f.fb),P.Y36(P.sBO))},Re.\u0275cmp=P.Xpm({type:Re,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(ve,Oe){2&ve&&P.ekj("router-component",Oe.true)},decls:52,vars:65,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["class","me-2 action-button","color","accent","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","me-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"disabled","click",4,"ngIf"],["class","me-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","me-2","color","warn","data-cy","remove-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"me-2","fix-select"],["multiple","",3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup","loading$",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["alert_type","warn"],["color","accent","data-cy","add-members","mat-flat-button","",1,"me-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"me-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"me-2",3,"disabled","click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"me-2",3,"disabled","click"],[1,"group-theme",3,"value"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup","loading$"]],template:function(ve,Oe){if(1&ve&&(P.TgZ(0,"h1",0),P._uU(1),P.ALo(2,"translate"),P.qZA(),P.YNc(3,ue,3,3,"perun-web-apps-alert",1),P.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),P.NdJ("click",function(){return Oe.refreshTable()}),P.qZA(),P.TgZ(6,"span",4),P.ALo(7,"groupMembersActionButtonDisabled"),P.ALo(8,"translate"),P.ALo(9,"groupMembersActionButtonDisabledTooltip"),P.YNc(10,Pe,4,7,"button",5),P.qZA(),P.TgZ(11,"span",4),P.ALo(12,"groupMembersActionButtonDisabled"),P.ALo(13,"translate"),P.ALo(14,"groupMembersActionButtonDisabledTooltip"),P.YNc(15,tt,4,7,"button",6),P.TgZ(16,"mat-menu",null,7),P.YNc(18,Ce,4,6,"button",8),P.YNc(19,at,4,6,"button",8),P.qZA()(),P.TgZ(20,"span",4),P.ALo(21,"translate"),P.YNc(22,Ue,3,4,"button",9),P.qZA(),P.TgZ(23,"span",4),P.ALo(24,"groupMembersActionButtonDisabled"),P.ALo(25,"translate"),P.ALo(26,"groupMembersActionButtonDisabledTooltip"),P.YNc(27,pt,4,6,"button",10),P.qZA(),P.TgZ(28,"mat-form-field",11)(29,"mat-label"),P._uU(30),P.ALo(31,"translate"),P.qZA(),P.TgZ(32,"mat-select",12),P.NdJ("closed",function(){return Oe.changeVoStatuses()}),P.TgZ(33,"mat-select-trigger"),P._uU(34),P.ALo(35,"memberStatus"),P.qZA(),P.YNc(36,z,3,4,"mat-option",13),P.qZA()(),P.TgZ(37,"mat-form-field",11)(38,"mat-label"),P._uU(39),P.ALo(40,"translate"),P.qZA(),P.TgZ(41,"mat-select",12),P.NdJ("closed",function(){return Oe.changeGroupStatuses()}),P.TgZ(42,"mat-select-trigger"),P._uU(43),P.ALo(44,"memberStatus"),P.qZA(),P.YNc(45,st,3,4,"mat-option",13),P.qZA()(),P.TgZ(46,"perun-web-apps-debounce-filter",14),P.NdJ("filter",function(u){return Oe.onSearchByString(u)}),P.qZA()(),P.YNc(47,be,1,0,"ng-template",null,15,P.W1O),P.TgZ(49,"div",16),P.YNc(50,Ye,1,11,"perun-web-apps-members-dynamic-list",17),P.ALo(51,"async"),P.qZA()),2&ve){const r=P.MAs(48);P.xp6(1),P.Oqu(P.lcZ(2,31,"GROUP_DETAIL.MEMBERS.TITLE")),P.xp6(2),P.Q6J("ngIf",Oe.synchEnabled),P.xp6(3),P.s9C("matTooltip",P.lcZ(8,36,P.xi3(9,38,Oe.group,"add"))),P.Q6J("matTooltipDisabled",!P.xi3(7,33,Oe.group,"add"))("matTooltipPosition","above"),P.xp6(4),P.Q6J("ngIf",Oe.addAuth),P.xp6(1),P.s9C("matTooltip",P.lcZ(13,43,P.lcZ(14,45,Oe.group))),P.Q6J("matTooltipDisabled",!P.lcZ(12,41,Oe.group))("matTooltipPosition","above"),P.xp6(4),P.Q6J("ngIf",Oe.inviteAuth),P.xp6(3),P.Q6J("ngIf",Oe.inviteAuth),P.xp6(1),P.Q6J("ngIf",Oe.inviteAuth),P.xp6(1),P.s9C("matTooltip",P.lcZ(21,47,"GROUP_DETAIL.MEMBERS.COPY_MEMBERS_DISABLED")),P.Q6J("matTooltipDisabled",!Oe.copyDisabled)("matTooltipPosition","above"),P.xp6(2),P.Q6J("ngIf",Oe.copyAuth),P.xp6(1),P.s9C("matTooltip",P.lcZ(25,51,P.lcZ(26,53,Oe.group))),P.Q6J("matTooltipDisabled",!P.lcZ(24,49,Oe.group))("matTooltipPosition","above"),P.xp6(4),P.Q6J("ngIf",Oe.removeAuth),P.xp6(3),P.Oqu(P.lcZ(31,55,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),P.xp6(2),P.Q6J("formControl",Oe.statuses),P.xp6(2),P.hij(" ",P.lcZ(35,57,Oe.displaySelectedStatuses())," "),P.xp6(2),P.Q6J("ngForOf",Oe.statusList),P.xp6(3),P.Oqu(P.lcZ(40,59,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),P.xp6(2),P.Q6J("formControl",Oe.groupStatuses),P.xp6(2),P.hij(" ",P.lcZ(44,61,Oe.displaySelectedGroupStatuses())," "),P.xp6(2),P.Q6J("ngForOf",Oe.groupStatusList),P.xp6(1),P.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),P.xp6(4),P.Q6J("perunWebAppsLoader",P.lcZ(51,63,Oe.loading$))("perunWebAppsLoaderIndicator",r)}},dependencies:[ze.sg,ze.O5,ke.ey,$e.KE,$e.hX,I.JJ,I.oH,J.lW,Je.gD,Je.$L,fe.gM,Fe.VK,Fe.OP,Fe.p6,$.w,Ve.K,le.t,N.P,U.m,re.e,ze.Ov,v.X$,X.l,ce,Me],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),Re})()},37240:(Qe,ae,p)=>{"use strict";p.d(ae,{q:()=>Ye});var e=p(95017),f=p(61744),A=p(10036),S=p(7274),m=p(80279),w=(p(37433),p(94650)),x=p(89383),I=p(36895),F=p(24006),T=p(4859),H=p(10266),P=p(90455),J=p(86257),fe=p(97403),j=p(62109),$=p(64901),_e=p(73358);const ge=["list"],pe=["stepper"];function re(he,Re){1&he&&w._UZ(0,"perun-web-apps-loading-dialog")}function v(he,Re){1&he&&(w._uU(0),w.ALo(1,"translate")),2&he&&w.Oqu(w.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function V(he,Re){1&he&&(w._uU(0),w.ALo(1,"translate")),2&he&&w.Oqu(w.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const W=function(){return["select","id","name","facility","tags","description"]};function te(he,Re){if(1&he){const He=w.EpF();w.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),w.YNc(4,v,2,3,"ng-template",9),w.TgZ(5,"perun-web-apps-debounce-filter",10),w.NdJ("filter",function(Oe){w.CHM(He);const r=w.oxw(2);return w.KtG(r.applyFilter(Oe))}),w.ALo(6,"translate"),w.qZA(),w._UZ(7,"perun-web-apps-resources-list",11,12),w.qZA(),w.TgZ(9,"mat-step"),w.YNc(10,V,2,3,"ng-template",9),w.TgZ(11,"mat-slide-toggle",13),w.NdJ("toggleChange",function(){w.CHM(He);const Oe=w.oxw(2);return w.KtG(Oe.changeSubgroupsMessage())})("ngModelChange",function(Oe){w.CHM(He);const r=w.oxw(2);return w.KtG(r.autoAssignSubgroups=Oe)}),w._uU(12),w.ALo(13,"translate"),w.qZA(),w.TgZ(14,"div",14),w._UZ(15,"i",15),w.qZA(),w.TgZ(16,"mat-slide-toggle",13),w.NdJ("toggleChange",function(){w.CHM(He);const Oe=w.oxw(2);return w.KtG(Oe.changeInactiveMessage())})("ngModelChange",function(Oe){w.CHM(He);const r=w.oxw(2);return w.KtG(r.asActive=Oe)}),w._uU(17),w.ALo(18,"translate"),w.qZA(),w.TgZ(19,"div",14),w._uU(20),w.qZA(),w.TgZ(21,"mat-slide-toggle",13),w.NdJ("toggleChange",function(){w.CHM(He);const Oe=w.oxw(2);return w.KtG(Oe.changeAsyncMessage())})("ngModelChange",function(Oe){w.CHM(He);const r=w.oxw(2);return w.KtG(r.async=Oe)}),w._uU(22),w.ALo(23,"translate"),w.qZA(),w.TgZ(24,"div",14),w._uU(25),w.qZA()()()()}if(2&he){const He=w.MAs(8),ve=w.oxw(2);w.xp6(1),w.Q6J("linear",!0),w.xp6(2),w.Q6J("completed",0!==ve.selection.selected.length&&void 0!==He&&He.addAuth),w.xp6(2),w.s9C("placeholder",w.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),w.xp6(2),w.Q6J("filterValue",ve.filterValue)("groupToResource",ve.data.group)("disableRouting",!0)("resources",ve.resources)("selection",ve.selection)("displayedColumns",w.DdM(27,W))("tableId",ve.tableId),w.xp6(4),w.Q6J("ngModel",ve.autoAssignSubgroups),w.xp6(1),w.hij(" ",w.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),w.xp6(3),w.Q6J("innerHTML",ve.autoAssignHint,w.oJD),w.xp6(1),w.Q6J("ngModel",ve.asActive),w.xp6(1),w.hij(" ",w.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),w.xp6(3),w.hij(" ",ve.asActiveHint," "),w.xp6(1),w.Q6J("ngModel",ve.async),w.xp6(1),w.hij(" ",w.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),w.xp6(3),w.hij(" ",ve.asyncHint," ")}}function ne(he,Re){if(1&he){const He=w.EpF();w.TgZ(0,"button",22),w.NdJ("click",function(){w.CHM(He);const Oe=w.oxw(3);return w.KtG(Oe.stepperPrevious())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&he&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function ye(he,Re){if(1&he){const He=w.EpF();w.TgZ(0,"button",23),w.NdJ("click",function(){w.CHM(He);const Oe=w.oxw(3);return w.KtG(Oe.stepperNext())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&he){const He=w.oxw(3);w.ekj("ms-2",void 0!==He.stepper&&0!==He.stepper.selectedIndex)("ms-auto",!(void 0!==He.stepper&&0!==He.stepper.selectedIndex)),w.Q6J("disabled",0===He.selection.selected.length||void 0!==He.list&&!He.list.addAuth),w.xp6(1),w.hij(" ",w.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function ze(he,Re){if(1&he){const He=w.EpF();w.TgZ(0,"button",24),w.NdJ("click",function(){w.CHM(He);const Oe=w.oxw(3);return w.KtG(Oe.onSubmit())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&he){const He=w.oxw(3);w.Q6J("disabled",0===He.selection.selected.length||He.loading),w.xp6(1),w.hij(" ",w.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function ke(he,Re){if(1&he){const He=w.EpF();w.TgZ(0,"div",16)(1,"button",17),w.NdJ("click",function(){w.CHM(He);const Oe=w.oxw(2);return w.KtG(Oe.onCancel())}),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,ne,3,3,"button",18),w.YNc(5,ye,3,8,"button",19),w.TgZ(6,"span",20),w.ALo(7,"translate"),w.YNc(8,ze,3,4,"button",21),w.qZA()()}if(2&he){const He=w.oxw(2);w.xp6(2),w.hij(" ",w.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),w.xp6(2),w.Q6J("ngIf",void 0!==He.stepper&&0!==He.stepper.selectedIndex),w.xp6(1),w.Q6J("ngIf",void 0!==He.stepper&&He.stepper.selectedIndex!==He.stepper._steps.length-1),w.xp6(1),w.s9C("matTooltip",w.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),w.Q6J("matTooltipDisabled",void 0===He.list||He.list.addAuth),w.xp6(2),w.Q6J("ngIf",void 0!==He.stepper&&He.stepper.selectedIndex===He.stepper._steps.length-1)}}function $e(he,Re){if(1&he&&(w.TgZ(0,"div")(1,"h1",2),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,te,26,28,"div",3),w.YNc(5,ke,9,10,"div",4),w.qZA()),2&he){const He=w.oxw();w.xp6(2),w.Oqu(w.lcZ(3,3,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),w.xp6(2),w.Q6J("ngIf",He.resources),w.xp6(1),w.Q6J("ngIf",void 0!==He.stepper)}}let Je=(()=>{class he{constructor(He,ve,Oe,r,u,_,C){this.dialogRef=He,this.data=ve,this.notificator=Oe,this.translate=r,this.resourcesManager=u,this.guiAuthResolver=_,this.cd=C,this.filterValue="",this.resources=null,this.selection=new e.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=A.dK}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.autoAssignHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT"),this.resourcesManager.getRichResources(this.data.group.voId).subscribe({next:He=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe({next:ve=>{this.resources=[];for(const Oe of He)-1===ve.findIndex(r=>r.id===Oe.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,Oe])&&this.resources.push(Oe);this.loading=!1,this.cd.detectChanges()},error:()=>this.loading=!1})},error:()=>this.loading=!1})}applyFilter(He){this.filterValue=He}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const He=this.selection.selected.map(ve=>ve.id);this.resourcesManager.assignGroupToResources(this.data.group.id,He,this.async,!this.asActive,this.autoAssignSubgroups).subscribe({next:()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(ve=>{this.notificator.showSuccess(ve),this.dialogRef.close(!0)})},error:()=>this.loading=!1})}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return he.\u0275fac=function(He){return new(He||he)(w.Y36(S.so),w.Y36(S.WI),w.Y36(m.V6),w.Y36(x.sK),w.Y36(f.xk),w.Y36(m.x4),w.Y36(w.sBO))},he.\u0275cmp=w.Xpm({type:he,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(He,ve){if(1&He&&(w.Gf(ge,5),w.Gf(pe,5)),2&He){let Oe;w.iGM(Oe=w.CRH())&&(ve.list=Oe.first),w.iGM(Oe=w.CRH())&&(ve.stepper=Oe.first)}},decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"filterValue","groupToResource","disableRouting","resources","selection","displayedColumns","tableId"],["list",""],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ms-auto","mat-flat-button","",3,"click",4,"ngIf"],["class","ms-auto","color","accent","mat-flat-button","","type","button",3,"ms-2","ms-auto","disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["class","ms-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","","type","button",1,"ms-auto",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(He,ve){if(1&He&&(w.YNc(0,re,1,0,"ng-template",null,0,w.W1O),w.TgZ(2,"div"),w.YNc(3,$e,6,5,"div",1),w.qZA()),2&He){const Oe=w.MAs(1);w.xp6(2),w.Gre("",ve.theme," position-relative"),w.xp6(1),w.Q6J("perunWebAppsLoader",ve.loading)("perunWebAppsLoaderIndicator",Oe)}},dependencies:[I.O5,F.JJ,F.On,T.lW,S.uh,S.xY,S.H8,H.gM,P.Rr,J.C0,J.VY,J.Vq,fe.b,j.C,$.P,_e.e,x.X$]}),he})();var Fe=p(30671);function Ve(he,Re){1&he&&w._UZ(0,"perun-web-apps-loading-dialog")}function le(he,Re){1&he&&w._UZ(0,"th",14)}function N(he,Re){if(1&he&&(w.TgZ(0,"td",15),w._uU(1),w.qZA()),2&he){const He=Re.$implicit;w.xp6(1),w.Oqu(He.name)}}function U(he,Re){1&he&&w._UZ(0,"tr",16)}function X(he,Re){1&he&&w._UZ(0,"tr",17)}function ce(he,Re){if(1&he){const He=w.EpF();w.TgZ(0,"div")(1,"h1",2),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"div",3)(5,"p"),w._uU(6),w.ALo(7,"translate"),w.qZA(),w.TgZ(8,"div",4),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"table",5),w.ynx(12,6),w.YNc(13,le,1,0,"th",7),w.YNc(14,N,2,1,"td",8),w.BQk(),w.YNc(15,U,1,0,"tr",9),w.YNc(16,X,1,0,"tr",10),w.qZA()(),w.TgZ(17,"div",11)(18,"button",12),w.NdJ("click",function(){w.CHM(He);const Oe=w.oxw();return w.KtG(Oe.onCancel())}),w._uU(19),w.ALo(20,"translate"),w.qZA(),w.TgZ(21,"button",13),w.NdJ("click",function(){w.CHM(He);const Oe=w.oxw();return w.KtG(Oe.onSubmit())}),w._uU(22),w.ALo(23,"translate"),w.qZA()()()}if(2&he){const He=w.oxw();w.xp6(2),w.Oqu(w.lcZ(3,9,"DIALOGS.REMOVE_RESOURCES.TITLE")),w.xp6(4),w.hij(" ",w.lcZ(7,11,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),w.xp6(3),w.hij(" ",w.lcZ(10,13,"DIALOGS.REMOVE_RESOURCES.ASK")," "),w.xp6(2),w.Q6J("dataSource",He.dataSource),w.xp6(4),w.Q6J("matHeaderRowDef",He.displayedColumns),w.xp6(1),w.Q6J("matRowDefColumns",He.displayedColumns),w.xp6(3),w.hij(" ",w.lcZ(20,15,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),w.xp6(2),w.Q6J("disabled",He.loading),w.xp6(1),w.hij(" ",w.lcZ(23,17,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let Me=(()=>{class he{constructor(He,ve,Oe,r,u){this.dialogRef=He,this.data=ve,this.notificator=Oe,this.translate=r,this.resourcesManager=u,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Fe.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const He=this.data.resources.map(ve=>ve.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,He).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(ve=>{this.loading=!1,this.notificator.showSuccess(ve),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return he.\u0275fac=function(He){return new(He||he)(w.Y36(S.so),w.Y36(S.WI),w.Y36(m.V6),w.Y36(x.sK),w.Y36(f.xk))},he.\u0275cmp=w.Xpm({type:he,selectors:[["app-remove-group-resource-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"fw-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","warn","mat-flat-button","",1,"ms-2",3,"disabled","click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(He,ve){if(1&He&&(w.YNc(0,Ve,1,0,"ng-template",null,0,w.W1O),w.TgZ(2,"div"),w.YNc(3,ce,24,19,"div",1),w.qZA()),2&He){const Oe=w.MAs(1);w.xp6(2),w.Gre("",ve.data.theme," position-relative"),w.xp6(1),w.Q6J("perunWebAppsLoader",ve.loading)("perunWebAppsLoaderIndicator",Oe)}},dependencies:[T.lW,Fe.BZ,Fe.fO,Fe.as,Fe.w1,Fe.Dz,Fe.nj,Fe.ge,Fe.ev,Fe.XQ,Fe.Gk,S.uh,S.xY,S.H8,fe.b,_e.e,x.X$]}),he})();var ue=p(9244),Pe=p(68530),tt=p(96214),Ce=p(7434);const at=["list"];function Ue(he,Re){if(1&he){const He=w.EpF();w.TgZ(0,"button",8),w.NdJ("click",function(){w.CHM(He);const Oe=w.oxw();return w.KtG(Oe.addResource())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&he&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function pt(he,Re){1&he&&w._UZ(0,"perun-web-apps-loading-table")}const z=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function st(he,Re){if(1&he){const He=w.EpF();w.TgZ(0,"perun-web-apps-resources-list",11,12),w.NdJ("refreshTable",function(){w.CHM(He);const Oe=w.oxw(2);return w.KtG(Oe.refreshTable())}),w.qZA()}if(2&he){const He=w.oxw(2);w.Q6J("disableRouting",!He.routingAuth)("filterValue",He.filterValue)("resources",He.resources)("routingVo",!0)("displayedColumns",w.DdM(10,z))("selection",He.selected)("groupId",He.group.id)("groupToResource",He.group)("resourcesToDisableCheckbox",He.resourcesToDisable)("tableId",He.tableId)}}function be(he,Re){if(1&he&&(w.TgZ(0,"div",9),w.YNc(1,st,2,11,"perun-web-apps-resources-list",10),w.qZA()),2&he){const He=w.oxw(),ve=w.MAs(13);w.xp6(1),w.Q6J("perunWebAppsLoader",He.loading)("perunWebAppsLoaderIndicator",ve)}}let Ye=(()=>{class he{constructor(He,ve,Oe,r,u){this.resourcesManager=He,this.groupService=ve,this.dialog=Oe,this.guiAuthResolver=r,this.entityStorageService=u,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=A.v1,this.addAuth=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthorization(),this.refreshTable()}setAuthorization(){null!==this.resources&&0!==this.resources.length&&(this.routingAuth=this.guiAuthResolver.isAuthorized("getResourceById_int_policy",[this.resources[0]])),this.addAuth=this.guiAuthResolver.isAuthorized("getResources_Vo_policy",[this.group])}refreshTable(){this.loading=!0,this.resourcesManager.getResourceAssignments(this.group.id).subscribe(He=>{this.resources=He.map(ve=>{const Oe=ve.enrichedResource.resource;return Oe.facility=ve.facility,Oe.status=ve.status,Oe.resourceTags=ve.resourceTags,Oe.failureCause=ve.failureCause,Oe.sourceGroupId=ve.sourceGroupId,Oe}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(ve=>null!==ve.sourceGroupId).map(ve=>ve.id)),this.setAuthorization(),this.loading=!1})}applyFilter(He){this.filterValue=He}addResource(){const He=(0,ue.kZ)();He.width="1000px",He.data={theme:"group-theme",group:this.group},this.dialog.open(Je,He).afterClosed().subscribe(Oe=>{Oe&&this.refreshTable()})}removeResource(){const He=(0,ue.kZ)();He.width="450px",He.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(Me,He).afterClosed().subscribe(Oe=>{Oe&&(this.selected.clear(),this.refreshTable())})}}return he.id="GroupResourcesComponent",he.\u0275fac=function(He){return new(He||he)(w.Y36(f.xk),w.Y36(f.ff),w.Y36(S.uw),w.Y36(m.x4),w.Y36(m.fb))},he.\u0275cmp=w.Xpm({type:he,selectors:[["app-group-resources"]],viewQuery:function(He,ve){if(1&He&&w.Gf(at,5),2&He){let Oe;w.iGM(Oe=w.CRH())&&(ve.list=Oe.first)}},hostVars:2,hostBindings:function(He,ve){2&He&&w.ekj("router-component",ve.true)},decls:15,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","me-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"me-2",3,"disabled","click"],[3,"placeholder","filter"],["spinner",""],["class","position-relative",4,"ngIf"],["color","accent","mat-flat-button","",1,"me-2","action-button",3,"click"],[1,"position-relative"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable"],["list",""]],template:function(He,ve){1&He&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return ve.refreshTable()}),w.qZA(),w.YNc(5,Ue,3,3,"button",2),w.TgZ(6,"span",3),w.ALo(7,"translate"),w.TgZ(8,"button",4),w.NdJ("click",function(){return ve.removeResource()}),w._uU(9),w.ALo(10,"translate"),w.qZA()(),w.TgZ(11,"perun-web-apps-immediate-filter",5),w.NdJ("filter",function(r){return ve.applyFilter(r)}),w.qZA(),w.YNc(12,pt,1,0,"ng-template",null,6,w.W1O),w.YNc(14,be,2,2,"div",7),w.qZA()),2&He&&(w.xp6(2),w.Oqu(w.lcZ(3,8,"GROUP_DETAIL.RESOURCES.TITLE")),w.xp6(3),w.Q6J("ngIf",ve.addAuth),w.xp6(1),w.s9C("matTooltip",w.lcZ(7,10,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),w.Q6J("matTooltipDisabled",0===ve.selected.selected.length||void 0!==ve.list&&ve.list.removeAuth),w.xp6(2),w.Q6J("disabled",0===ve.selected.selected.length||void 0!==ve.list&&!ve.list.removeAuth),w.xp6(1),w.hij(" ",w.lcZ(10,12,"GROUP_DETAIL.RESOURCES.DELETE")," "),w.xp6(2),w.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),w.xp6(3),w.Q6J("ngIf",ve.resources))},dependencies:[I.O5,T.lW,H.gM,Pe.K,tt.t,Ce.L,j.C,_e.e,x.X$]}),he})()},61639:(Qe,ae,p)=>{"use strict";p.d(ae,{C:()=>m});var e=p(61744),f=p(80279),A=p(94650),S=p(72263);let m=(()=>{class M{constructor(x,I,F){this.authzResolverService=x,this.entityStorageService=I,this.roleService=F,this.roles=new Map}ngOnInit(){this.groupId=this.entityStorageService.getEntity().id,this.getData()}getData(){this.outerLoading=!0,this.roles.clear(),this.authzResolverService.getGroupRoles(this.groupId).subscribe(x=>{const I=Object.keys(x).map(F=>F.toUpperCase());this.roles=this.roleService.prepareRoles(x,I),this.outerLoading=!1})}}return M.id="GroupRolesComponent",M.\u0275fac=function(x){return new(x||M)(A.Y36(e.Ct),A.Y36(f.fb),A.Y36(f.Nj))},M.\u0275cmp=A.Xpm({type:M,selectors:[["app-group-roles"]],hostVars:2,hostBindings:function(x,I){2&x&&A.ekj("router-component",I.true)},decls:1,vars:5,consts:[[3,"outerLoading","roles","entityId","entityType","showDescription","reload","startLoading"]],template:function(x,I){1&x&&(A.TgZ(0,"app-perun-web-apps-roles-page",0),A.NdJ("reload",function(){return I.getData()})("startLoading",function(){return I.outerLoading=!0}),A.qZA()),2&x&&A.Q6J("outerLoading",I.outerLoading)("roles",I.roles)("entityId",I.groupId)("entityType","GROUP")("showDescription",!0)},dependencies:[S._]}),M})()},14336:(Qe,ae,p)=>{"use strict";p.d(ae,{Z:()=>tt});var e=p(80279),f=p(93657),A=p(83491),S=p(95502),m=p(1186),M=p(61744),w=p(9244),x=p(94650),I=p(7274),F=p(89383),T=p(82761),H=p(36895),P=p(24006),J=p(97392),fe=p(4859),j=p(51572),$=p(10266),_e=p(90455),ge=p(44850),pe=p(98380),re=p(68530),v=p(96214),V=p(73358),W=p(157);const te=["autoRegToggle"];function ne(Ce,at){1&Ce&&x._UZ(0,"mat-spinner",3)}function ye(Ce,at){if(1&Ce&&(x.TgZ(0,"span"),x._uU(1," , "),x.TgZ(2,"mat-icon",24),x._uU(3,"nat"),x.qZA(),x._uU(4),x.ALo(5,"translate"),x.ALo(6,"translate"),x.qZA()),2&Ce){const Ue=x.oxw(3);x.xp6(4),x.hij(" ",Ue.applicationForm.automaticApprovalEmbedded?x.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):x.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function ze(Ce,at){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"div")(1,"mat-slide-toggle",25,26),x.NdJ("change",function(){x.CHM(Ue);const z=x.oxw(3);return x.KtG(z.updateAutoRegistration())}),x._uU(3),x.ALo(4,"translate"),x.qZA()()}if(2&Ce){const Ue=x.oxw(3);x.xp6(1),x.Q6J("disabled",!Ue.changeAutoRegistration)("ngModel",Ue.autoRegistrationEnabled),x.xp6(2),x.hij(" ",x.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function ke(Ce,at){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"button",27),x.NdJ("click",function(){x.CHM(Ue);const z=x.oxw(3);return x.KtG(z.settings())}),x.TgZ(1,"i",12),x._uU(2,"edit"),x.qZA(),x._uU(3),x.ALo(4,"translate"),x.qZA()}2&Ce&&(x.xp6(3),x.hij(" ",x.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function $e(Ce,at){if(1&Ce&&(x.TgZ(0,"div",17)(1,"div",18)(2,"div",19),x._uU(3),x.ALo(4,"translate"),x.qZA(),x.TgZ(5,"div")(6,"span",19),x._uU(7),x.ALo(8,"translate"),x.qZA(),x._uU(9,": "),x.TgZ(10,"mat-icon",20),x._uU(11,"arrow_right_alt"),x.qZA(),x._uU(12),x.ALo(13,"translate"),x.ALo(14,"translate"),x.TgZ(15,"mat-icon",21),x._uU(16,"restore"),x.qZA(),x._uU(17),x.ALo(18,"translate"),x.ALo(19,"translate"),x.YNc(20,ye,7,5,"span",2),x.qZA(),x.YNc(21,ze,5,5,"div",2),x.qZA(),x.TgZ(22,"div",22),x.YNc(23,ke,5,3,"button",23),x.qZA()()),2&Ce){const Ue=x.oxw(2);x.xp6(1),x.Q6J("ngClass",Ue.autoRegistrationEnabled?"w-75":"w-50"),x.xp6(2),x.AsE(" ",x.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",Ue.applicationForm.moduleClassName," "),x.xp6(4),x.Oqu(x.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),x.xp6(5),x.hij(" ",Ue.applicationForm.automaticApproval?x.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):x.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),x.xp6(5),x.hij(" ",Ue.applicationForm.automaticApprovalExtension?x.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):x.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),x.xp6(3),x.Q6J("ngIf",Ue.autoRegistrationEnabled),x.xp6(1),x.Q6J("ngIf",Ue.voHasEmbeddedGroupApplication),x.xp6(2),x.Q6J("ngIf",Ue.editAuth)}}function Je(Ce,at){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"button",28),x.NdJ("click",function(){x.CHM(Ue);const z=x.oxw(2);return x.KtG(z.add())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}2&Ce&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function Fe(Ce,at){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"button",29),x.NdJ("click",function(){x.CHM(Ue);const z=x.oxw(2);return x.KtG(z.save())}),x.TgZ(1,"i",12),x._uU(2,"save"),x.qZA(),x._uU(3),x.ALo(4,"translate"),x.qZA()}if(2&Ce){const Ue=x.oxw(2);x.Q6J("disabled",!Ue.itemsChanged),x.xp6(3),x.hij(" ",x.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function Ve(Ce,at){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"button",30),x.NdJ("click",function(){x.CHM(Ue);const z=x.oxw(2);return x.KtG(z.copy())}),x.TgZ(1,"i",12),x._uU(2,"file_copy"),x.qZA(),x._uU(3),x.ALo(4,"translate"),x.qZA()}2&Ce&&(x.xp6(3),x.hij(" ",x.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function le(Ce,at){1&Ce&&(x.TgZ(0,"perun-web-apps-alert",31),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&Ce&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}function N(Ce,at){1&Ce&&x._UZ(0,"perun-web-apps-loading-table")}const U=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},X=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function ce(Ce,at){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"app-application-form-list",32),x.NdJ("applicationFormItemsChange",function(){x.CHM(Ue);const z=x.oxw(2);return x.KtG(z.changeItems())}),x.qZA()}if(2&Ce){const Ue=x.oxw(2);x.Q6J("applicationForm",Ue.applicationForm)("applicationFormItems",Ue.applicationFormItems)("displayedColumns",Ue.editAuth?x.DdM(5,U):x.DdM(6,X))("refreshApplicationForm",Ue.refreshApplicationForm)("theme","group-theme")}}function Me(Ce,at){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"div"),x.YNc(1,$e,24,21,"div",4),x._UZ(2,"mat-divider",5),x.TgZ(3,"div",6)(4,"perun-web-apps-refresh-button",7),x.NdJ("refresh",function(){x.CHM(Ue);const z=x.oxw();return x.KtG(z.updateFormItems())}),x.qZA(),x.YNc(5,Je,3,3,"button",8),x.YNc(6,Fe,5,4,"button",9),x.YNc(7,Ve,5,3,"button",10),x.TgZ(8,"button",11),x.NdJ("click",function(){x.CHM(Ue);const z=x.oxw();return x.KtG(z.preview())}),x.TgZ(9,"i",12),x._uU(10,"search"),x.qZA(),x._uU(11),x.ALo(12,"translate"),x.qZA()(),x.YNc(13,le,3,3,"perun-web-apps-alert",13),x.YNc(14,N,1,0,"ng-template",null,14,x.W1O),x.TgZ(16,"div",15),x.YNc(17,ce,1,7,"app-application-form-list",16),x.qZA()()}if(2&Ce){const Ue=x.MAs(15),pt=x.oxw();x.xp6(1),x.Q6J("ngIf",!pt.loading),x.xp6(4),x.Q6J("ngIf",pt.editAuth),x.xp6(1),x.Q6J("ngIf",pt.editAuth),x.xp6(1),x.Q6J("ngIf",pt.editAuth),x.xp6(4),x.hij(" ",x.lcZ(12,8,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),x.xp6(2),x.Q6J("ngIf",pt.editAuth),x.xp6(4),x.Q6J("perunWebAppsLoader",pt.loading)("perunWebAppsLoaderIndicator",Ue)}}function ue(Ce,at){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"button",35),x.NdJ("click",function(){x.CHM(Ue);const z=x.oxw(2);return x.KtG(z.createEmptyApplicationForm())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}2&Ce&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function Pe(Ce,at){if(1&Ce&&(x.TgZ(0,"div")(1,"perun-web-apps-alert",33),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.YNc(4,ue,3,3,"button",34),x.qZA()),2&Ce){const Ue=x.oxw();x.xp6(2),x.Oqu(x.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),x.xp6(2),x.Q6J("ngIf",Ue.createEmptyForm)}}let tt=(()=>{class Ce{constructor(Ue,pt,z,st,be,Ye,he,Re,He){this.registrarManager=Ue,this.dialog=pt,this.notificator=z,this.translate=st,this.apiRequest=be,this.router=Ye,this.guiAuthResolver=he,this.attributesManager=Re,this.entityStorageService=He,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuth(),this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.group.id).subscribe(Ue=>{this.applicationForm=Ue,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(pt=>{this.applicationFormItems=pt,this.attributesManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(z=>{this.voHasEmbeddedGroupApplication=null!==z.value,this.autoRegistrationEnabled=!!z.value,this.loading=!1})},()=>this.loading=!1)},Ue=>{"FormNotExistsException"===Ue.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError(Ue)})}setAuth(){this.editAuth=this.guiAuthResolver.isAuthorized("group-updateFormItems_ApplicationForm_List_policy",[this.group]),this.createEmptyForm=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.changeAutoRegistration=this.guiAuthResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[this.group])}add(){let Ue=(0,w.kZ)();Ue.width="500px",Ue.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(f.J,Ue).afterClosed().subscribe(z=>{z&&(this.applicationFormItems=Object.assign([],z[0]),Ue=(0,w.kZ)(),Ue.width="600px",Ue.height="600px",Ue.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:z[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(A._,Ue),this.itemsChanged=!0)})}copy(){const Ue=(0,w.kZ)();Ue.width="500px",Ue.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(S.W,Ue).afterClosed().subscribe(z=>{z&&this.updateFormItems()})}settings(){const Ue=(0,w.kZ)();Ue.width="400px",Ue.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(m.E,Ue).afterClosed().subscribe(z=>{z&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(st=>{this.notificator.showSuccess(st)}),this.applicationForm=z)})}preview(){this.router.navigate(["/organizations",this.group.voId,"groups",this.group.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)},queryParamsHandling:"merge"})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe({next:Ue=>{this.applicationFormItems=Ue,this.itemsChanged=!1,this.refreshApplicationForm=!1,this.loading=!1},error:()=>this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let Ue=0;for(const pt of this.applicationFormItems)pt.ordnum=Ue,pt.forDelete||Ue++;this.registrarManager.updateFormItemsForGroup({group:this.group.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(pt=>{this.notificator.showSuccess(pt)}),this.updateFormItems()})}clear(){this.applicationFormItems=[],this.itemsChanged=!0}updateAutoRegistration(){this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.registrarManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Ue=>{this.notificator.showSuccess(Ue)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1)):this.registrarManager.addGroupsToAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Ue=>{this.notificator.showSuccess(Ue)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return Ce.id="GroupSettingsApplicationFormComponent",Ce.\u0275fac=function(Ue){return new(Ue||Ce)(x.Y36(M.tk),x.Y36(I.uw),x.Y36(e.V6),x.Y36(F.sK),x.Y36(e.F5),x.Y36(T.F0),x.Y36(e.x4),x.Y36(M.H8),x.Y36(e.fb))},Ce.\u0275cmp=x.Xpm({type:Ce,selectors:[["app-group-settings-application-form"]],viewQuery:function(Ue,pt){if(1&Ue&&x.Gf(te,5),2&Ue){let z;x.iGM(z=x.CRH())&&(pt.autoRegToggle=z.first)}},hostVars:2,hostBindings:function(Ue,pt){2&Ue&&x.ekj("router-component",pt.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ms-auto me-auto",4,"ngIf"],[4,"ngIf"],[1,"ms-auto","me-auto"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","me-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","class","me-2","data-cy","save-application-form","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","me-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],["spinner",""],[1,"position-relative"],[3,"applicationForm","applicationFormItems","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[1,"d-flex","w-50"],[3,"ngClass"],[1,"fw-bold"],["matTooltip","Initial",1,"align-bottom"],["matTooltip","Extension",1,"align-bottom"],[1,"w-25"],["class","ms-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["matTooltip","Embedded",1,"align-bottom"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ms-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"me-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"me-2",3,"disabled","click"],["mat-stroked-button","",1,"me-2","action-button",3,"click"],["alert_type","info"],[3,"applicationForm","applicationFormItems","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],["alert_type","warn"],["data-cy","create-empty-form","mat-stroked-button","",3,"click",4,"ngIf"],["data-cy","create-empty-form","mat-stroked-button","",3,"click"]],template:function(Ue,pt){1&Ue&&(x.TgZ(0,"h1",0),x._uU(1),x.ALo(2,"translate"),x.qZA(),x.YNc(3,ne,1,0,"mat-spinner",1),x.YNc(4,Me,18,10,"div",2),x.YNc(5,Pe,5,4,"div",2)),2&Ue&&(x.xp6(1),x.hij(" ",x.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),x.xp6(2),x.Q6J("ngIf",pt.loading),x.xp6(1),x.Q6J("ngIf",!pt.noApplicationForm),x.xp6(1),x.Q6J("ngIf",!pt.loading&&pt.noApplicationForm))},dependencies:[H.mk,H.O5,P.JJ,P.On,J.Hw,fe.lW,j.Ou,$.gM,_e.Rr,ge.d,pe.w,re.K,v.t,V.e,W.b,F.X$]}),Ce})()},15592:(Qe,ae,p)=>{"use strict";p.d(ae,{u:()=>X});var e=p(81889),f=p(95017),A=p(41656),S=p(9244),m=p(61744),M=p(64080),w=p(10036),x=p(87842),I=p(80279),F=p(54004),T=p(68675),H=p(94650),P=p(7274),J=p(36895),fe=p(24006),j=p(4859),$=p(10266),_e=p(90455),ge=p(68530),pe=p(25788),re=p(96214),v=p(58956),V=p(64901),W=p(73358),te=p(89383);const ne=["toggle"];function ye(ce,Me){if(1&ce){const ue=H.EpF();H.TgZ(0,"button",11),H.NdJ("click",function(){H.CHM(ue);const tt=H.oxw();return H.KtG(tt.onCreateGroup())}),H._uU(1),H.ALo(2,"translate"),H.qZA()}2&ce&&(H.xp6(1),H.hij(" ",H.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function ze(ce,Me){if(1&ce){const ue=H.EpF();H.TgZ(0,"button",14),H.NdJ("click",function(){H.CHM(ue);const tt=H.oxw(2);return H.KtG(tt.deleteGroup())}),H._uU(1),H.ALo(2,"translate"),H.qZA()}if(2&ce){const ue=H.oxw().ngIf,Pe=H.oxw();H.Q6J("disabled",0===Pe.selected.selected.length||!ue.removeAuth),H.xp6(1),H.hij(" ",H.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function ke(ce,Me){if(1&ce&&(H.TgZ(0,"span",12),H.ALo(1,"translate"),H.YNc(2,ze,3,4,"button",13),H.qZA()),2&ce){const ue=Me.ngIf,Pe=H.oxw();H.s9C("matTooltip",H.lcZ(1,3,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),H.Q6J("matTooltipDisabled",0===Pe.selected.selected.length||ue.removeAuth),H.xp6(2),H.Q6J("ngIf",Pe.deleteAuth)}}function $e(ce,Me){1&ce&&H._UZ(0,"perun-web-apps-loading-table")}function Je(ce,Me){if(1&ce){const ue=H.EpF();H.TgZ(0,"perun-web-apps-groups-tree",17),H.NdJ("moveGroup",function(tt){H.CHM(ue);const Ce=H.oxw(2);return H.KtG(Ce.onMoveGroup(tt))})("refreshTable",function(){H.CHM(ue);const tt=H.oxw(2);return H.KtG(tt.refreshTable())}),H.qZA()}if(2&ce){const ue=H.oxw(2);H.Q6J("disableRouting",!ue.routeAuth)("expandAll",ue.filtering)("groups",ue.groups)("hideCheckbox",!ue.deleteAuth)("filterValue",ue.filterValue)("selection",ue.selected)}}const Fe=function(){return["select","id","name","description","menu"]},Ve=function(){return["id","name","description","menu"]};function le(ce,Me){if(1&ce){const ue=H.EpF();H.TgZ(0,"perun-web-apps-groups-list",18),H.NdJ("groupMoved",function(tt){H.CHM(ue);const Ce=H.oxw(2);return H.KtG(Ce.onMoveGroup(tt))})("refreshTable",function(){H.CHM(ue);const tt=H.oxw(2);return H.KtG(tt.refreshTable())}),H.qZA()}if(2&ce){const ue=H.oxw(2);H.Q6J("disableMembers",!0)("disableRouting",!ue.routeAuth)("displayedColumns",ue.deleteAuth?H.DdM(7,Fe):H.DdM(8,Ve))("groups",ue.groups)("selection",ue.selected)("filter",ue.filterValue)("tableId",ue.tableId)}}function N(ce,Me){if(1&ce&&(H.TgZ(0,"div"),H.YNc(1,Je,1,6,"perun-web-apps-groups-tree",15),H.YNc(2,le,1,9,"perun-web-apps-groups-list",16),H.qZA()),2&ce){const ue=H.oxw();H.xp6(1),H.Q6J("ngIf",!ue.showGroupList),H.xp6(1),H.Q6J("ngIf",ue.showGroupList)}}const U=function(ce){return{removeAuth:ce}};let X=(()=>{class ce{constructor(ue,Pe,tt,Ce){this.dialog=ue,this.groupService=Pe,this.guiAuthResolver=tt,this.entityStorageService=Ce,this.groups=[],this.selected=new f.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=w.bf,this.filterValue="",this.removeAuth$=this.selected.changed.pipe((0,F.U)(at=>at.source.selected.reduce((Ue,pt)=>Ue&&this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[pt]),!0)),(0,T.O)(!0))}onCreateGroup(){const ue=(0,S.kZ)();ue.width="450px",ue.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(e.y,ue).afterClosed().subscribe(tt=>{tt&&(this.loading=!0,this.refreshTable())})}ngOnInit(){"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree")}),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.createAuth=this.guiAuthResolver.isAuthorized("createGroup_Group_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.group]),0!==this.groups.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.groups[0]]))}deleteGroup(){const ue=(0,S.kZ)();ue.width="450px",ue.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(A.P,ue).afterClosed().subscribe(tt=>{tt&&this.refreshTable()})}labelToggle(){this.showGroupList=!this.showGroupList,this.refreshTable()}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[M.r.GROUP_DEF_MAIL_FOOTER,M.r.GROUP_SYNC_ENABLED,M.r.GROUP_LAST_SYNC_STATE,M.r.GROUP_LAST_SYNC_TIMESTAMP,M.r.GROUP_STRUCTURE_SYNC_ENABLED,M.r.GROUP_LAST_STRUCTURE_SYNC_STATE,M.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(ue=>{this.groups=ue,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(ue){this.filterValue=ue,this.filtering=""!==ue}onMoveGroup(ue){const Pe=(0,S.kZ)();Pe.width="550px",Pe.data={group:ue,theme:"group-theme"},this.dialog.open(x.c,Pe).afterClosed().subscribe(Ce=>{Ce&&this.refreshTable()})}}return ce.id="GroupSubgroupsComponent",ce.\u0275fac=function(ue){return new(ue||ce)(H.Y36(P.uw),H.Y36(m.ff),H.Y36(I.x4),H.Y36(I.fb))},ce.\u0275cmp=H.Xpm({type:ce,selectors:[["app-group-subgroups"]],viewQuery:function(ue,Pe){if(1&ue&&H.Gf(ne,7),2&ue){let tt;H.iGM(tt=H.CRH())&&(Pe.toggle=tt.first)}},hostVars:2,hostBindings:function(ue,Pe){2&ue&&H.ekj("router-component",Pe.true)},decls:21,vars:19,consts:[[1,"page-subtitle"],[3,"refresh"],["class","me-2 action-button","color","accent","data-cy","new-subgroup-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],[1,"slide-label",3,"click"],["color","primary","labelPosition","before",1,"me-1",3,"ngModel","change","ngModelChange"],["toggle",""],["spinner",""],[1,"position-relative","mt-3"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["color","accent","data-cy","new-subgroup-button","mat-flat-button","",1,"me-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","class","me-2","data-cy","delete-group-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"me-2",3,"disabled","click"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable",4,"ngIf"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","groupMoved","refreshTable",4,"ngIf"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","groupMoved","refreshTable"]],template:function(ue,Pe){if(1&ue&&(H.TgZ(0,"div")(1,"h1",0),H._uU(2),H.ALo(3,"translate"),H.qZA(),H.TgZ(4,"perun-web-apps-refresh-button",1),H.NdJ("refresh",function(){return Pe.refreshTable()}),H.qZA(),H.YNc(5,ye,3,3,"button",2),H.YNc(6,ke,3,5,"span",3),H.ALo(7,"async"),H.TgZ(8,"perun-web-apps-debounce-filter",4),H.NdJ("filter",function(Ce){return Pe.applyFilter(Ce)}),H.qZA(),H.TgZ(9,"label",5),H.NdJ("click",function(){return Pe.labelToggle()}),H._uU(10),H.ALo(11,"translate"),H.qZA(),H.TgZ(12,"mat-slide-toggle",6,7),H.NdJ("change",function(){return Pe.selected.clear()})("ngModelChange",function(Ce){return Pe.showGroupList=Ce}),H.qZA(),H.TgZ(14,"label",5),H.NdJ("click",function(){return Pe.labelToggle()}),H._uU(15),H.ALo(16,"translate"),H.qZA(),H.YNc(17,$e,1,0,"ng-template",null,8,H.W1O),H.TgZ(19,"div",9),H.YNc(20,N,3,2,"div",10),H.qZA()()),2&ue){const tt=H.MAs(18);H.xp6(2),H.Oqu(H.lcZ(3,9,"GROUP_DETAIL.SUBGROUPS.TITLE")),H.xp6(3),H.Q6J("ngIf",Pe.createAuth),H.xp6(1),H.Q6J("ngIf",H.VKq(17,U,H.lcZ(7,11,Pe.removeAuth$))),H.xp6(2),H.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),H.xp6(2),H.hij(" ",H.lcZ(11,13,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")," "),H.xp6(2),H.Q6J("ngModel",Pe.showGroupList),H.xp6(3),H.hij(" ",H.lcZ(16,15,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")," "),H.xp6(5),H.Q6J("perunWebAppsLoader",Pe.loading)("perunWebAppsLoaderIndicator",tt)}},dependencies:[J.O5,fe.JJ,fe.On,j.lW,$.gM,_e.Rr,ge.K,pe.W,re.t,v.I,V.P,W.e,J.Ov,te.X$],styles:[".slide-label[_ngcontent-%COMP%]{display:inline;cursor:pointer}"]}),ce})()},85243:(Qe,ae,p)=>{"use strict";p.d(ae,{j:()=>ue});var e=p(61744),f=p(10036),A=p(95017),S=p(9244),m=p(7274),M=p(80279),w=p(64080),x=p(94650),I=p(89383),F=p(4859),T=p(97403),H=p(25788),P=p(7434),J=p(73358);function fe(Pe,tt){1&Pe&&x._UZ(0,"perun-web-apps-loading-dialog")}const j=function(){return["select","id","name","description"]};function $(Pe,tt){if(1&Pe){const Ce=x.EpF();x.TgZ(0,"div")(1,"h1",2),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"div",3)(5,"perun-web-apps-immediate-filter",4),x.NdJ("filter",function(Ue){x.CHM(Ce);const pt=x.oxw();return x.KtG(pt.applyFilter(Ue))}),x.qZA(),x._UZ(6,"perun-web-apps-groups-list",5),x.qZA(),x.TgZ(7,"div",6)(8,"button",7),x.NdJ("click",function(){x.CHM(Ce);const Ue=x.oxw();return x.KtG(Ue.onCancel())}),x._uU(9),x.ALo(10,"translate"),x.qZA(),x.TgZ(11,"button",8),x.NdJ("click",function(){x.CHM(Ce);const Ue=x.oxw();return x.KtG(Ue.onAdd())}),x._uU(12),x.ALo(13,"translate"),x.qZA()()()}if(2&Pe){const Ce=x.oxw();x.xp6(2),x.Oqu(x.lcZ(3,13,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),x.xp6(3),x.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER"),x.xp6(1),x.Q6J("disableGroups",!0)("disableMembers",!0)("displayedColumns",x.DdM(19,j))("groupsToDisableCheckbox",Ce.membersGroups)("disableRouting",!0)("groups",Ce.groups)("filter",Ce.filterValue)("selection",Ce.selection),x.xp6(3),x.hij(" ",x.lcZ(10,15,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),x.xp6(2),x.Q6J("disabled",0===Ce.selection.selected.length),x.xp6(1),x.hij(" ",x.lcZ(13,17,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let _e=(()=>{class Pe{constructor(Ce,at,Ue,pt,z,st,be){this.dialogRef=Ce,this.data=at,this.groupManager=Ue,this.memberManager=pt,this.notificator=z,this.translate=st,this.authResolver=be,this.loading=!1,this.groups=[],this.selection=new A.Ov(!0,[]),this.attrNames=[w.r.GROUP_SYNC_ENABLED,w.r.GROUP_LAST_SYNC_STATE,w.r.GROUP_LAST_SYNC_TIMESTAMP,w.r.GROUP_STRUCTURE_SYNC_ENABLED,w.r.GROUP_LAST_STRUCTURE_SYNC_STATE,w.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.filterValue=""}ngOnInit(){this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(Ce=>{this.member=Ce,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(at=>{this.groups=at.filter(Ue=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[Ue])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const Ce=this.selection.selected.map(at=>at.id);this.loading=!0,this.groupManager.addMember(Ce,this.member.id).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(Ce){this.filterValue=Ce}}return Pe.\u0275fac=function(Ce){return new(Ce||Pe)(x.Y36(m.so),x.Y36(m.WI),x.Y36(e.ff),x.Y36(e.uq),x.Y36(M.V6),x.Y36(I.sK),x.Y36(M.x4))},Pe.\u0275cmp=x.Xpm({type:Pe,selectors:[["app-add-member-group-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"disableGroups","disableMembers","displayedColumns","groupsToDisableCheckbox","disableRouting","groups","filter","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(Ce,at){if(1&Ce&&(x.YNc(0,fe,1,0,"ng-template",null,0,x.W1O),x.TgZ(2,"div"),x.YNc(3,$,14,20,"div",1),x.qZA()),2&Ce){const Ue=x.MAs(1);x.xp6(2),x.Gre("",at.theme," position-relative"),x.xp6(1),x.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",Ue)}},dependencies:[F.lW,m.uh,m.xY,m.H8,T.b,H.W,P.L,J.e,I.X$]}),Pe})();var ge=p(30671);function pe(Pe,tt){1&Pe&&x._UZ(0,"perun-web-apps-loading-dialog")}function re(Pe,tt){1&Pe&&x._UZ(0,"th",14)}function v(Pe,tt){if(1&Pe&&(x.TgZ(0,"td",15),x._uU(1),x.qZA()),2&Pe){const Ce=tt.$implicit;x.xp6(1),x.Oqu(Ce.name)}}function V(Pe,tt){1&Pe&&x._UZ(0,"tr",16)}function W(Pe,tt){1&Pe&&x._UZ(0,"tr",17)}function te(Pe,tt){if(1&Pe){const Ce=x.EpF();x.TgZ(0,"div")(1,"h1",2),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"div",3)(5,"p"),x._uU(6),x.ALo(7,"translate"),x.qZA(),x.TgZ(8,"div",4),x._uU(9),x.ALo(10,"translate"),x.qZA(),x.TgZ(11,"table",5),x.ynx(12,6),x.YNc(13,re,1,0,"th",7),x.YNc(14,v,2,1,"td",8),x.BQk(),x.YNc(15,V,1,0,"tr",9),x.YNc(16,W,1,0,"tr",10),x.qZA()(),x.TgZ(17,"div",11)(18,"button",12),x.NdJ("click",function(){x.CHM(Ce);const Ue=x.oxw();return x.KtG(Ue.onCancel())}),x._uU(19),x.ALo(20,"translate"),x.qZA(),x.TgZ(21,"button",13),x.NdJ("click",function(){x.CHM(Ce);const Ue=x.oxw();return x.KtG(Ue.onRemove())}),x._uU(22),x.ALo(23,"translate"),x.qZA()()()}if(2&Pe){const Ce=x.oxw();x.xp6(2),x.Oqu(x.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),x.xp6(4),x.Oqu(x.lcZ(7,11,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),x.xp6(3),x.hij(" ",x.lcZ(10,13,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),x.xp6(2),x.Q6J("dataSource",Ce.dataSource),x.xp6(4),x.Q6J("matHeaderRowDef",Ce.displayedColumns),x.xp6(1),x.Q6J("matRowDefColumns",Ce.displayedColumns),x.xp6(3),x.hij(" ",x.lcZ(20,15,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),x.xp6(2),x.Q6J("disabled",Ce.loading),x.xp6(1),x.hij(" ",x.lcZ(23,17,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," ")}}let ne=(()=>{class Pe{constructor(Ce,at,Ue,pt,z){this.dialogRef=Ce,this.data=at,this.groupManager=Ue,this.notificator=pt,this.translate=z,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new ge.by(this.data.groups)}onRemove(){this.loading=!0;const Ce=this.dataSource.data.map(at=>at.id);this.groupManager.removeMember(Ce,this.data.memberId).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return Pe.\u0275fac=function(Ce){return new(Ce||Pe)(x.Y36(m.so),x.Y36(m.WI),x.Y36(e.ff),x.Y36(M.V6),x.Y36(I.sK))},Pe.\u0275cmp=x.Xpm({type:Pe,selectors:[["app-remove-member-group-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"fw-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","warn","mat-flat-button","",1,"ms-2",3,"disabled","click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Ce,at){if(1&Ce&&(x.YNc(0,pe,1,0,"ng-template",null,0,x.W1O),x.TgZ(2,"div"),x.YNc(3,te,24,19,"div",1),x.qZA()),2&Ce){const Ue=x.MAs(1);x.xp6(2),x.Gre("",at.theme," position-relative"),x.xp6(1),x.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",Ue)}},dependencies:[F.lW,ge.BZ,ge.fO,ge.as,ge.w1,ge.Dz,ge.nj,ge.ge,ge.ev,ge.XQ,ge.Gk,m.uh,m.xY,m.H8,T.b,J.e,I.X$]}),Pe})();var ye=p(54004),ze=p(68675),ke=p(82761),$e=p(36895),Je=p(10266),Fe=p(68530),Ve=p(96214);function le(Pe,tt){if(1&Pe){const Ce=x.EpF();x.TgZ(0,"button",8),x.NdJ("click",function(){x.CHM(Ce);const Ue=x.oxw();return x.KtG(Ue.addGroup())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}2&Pe&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function N(Pe,tt){if(1&Pe){const Ce=x.EpF();x.TgZ(0,"span",9),x.ALo(1,"translate"),x.TgZ(2,"button",10),x.NdJ("click",function(){x.CHM(Ce);const Ue=x.oxw();return x.KtG(Ue.removeGroup())}),x._uU(3),x.ALo(4,"translate"),x.qZA()()}if(2&Pe){const Ce=tt.ngIf,at=x.oxw();x.s9C("matTooltip",x.lcZ(1,4,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),x.Q6J("matTooltipDisabled",Ce.removeAuth),x.xp6(2),x.Q6J("disabled",0===at.selection.selected.length||!Ce.removeAuth),x.xp6(1),x.hij(" ",x.lcZ(4,6,"MEMBER_DETAIL.GROUPS.REMOVE")," ")}}function U(Pe,tt){1&Pe&&x._UZ(0,"perun-web-apps-loading-table")}const X=function(){return["select","id","name","description","expiration","groupStatus"]};function ce(Pe,tt){if(1&Pe){const Ce=x.EpF();x.TgZ(0,"perun-web-apps-groups-list",11),x.NdJ("refreshTable",function(){x.CHM(Ce);const Ue=x.oxw();return x.KtG(Ue.refreshTable())}),x.qZA()}if(2&Pe){const Ce=x.oxw();x.Q6J("displayedColumns",x.DdM(8,X))("memberId",Ce.memberId)("disableRouting",!Ce.routeAuth)("groups",Ce.groups)("filter",Ce.filterValue)("memberGroupStatus",null==Ce.member?null:Ce.member.groupStatus)("selection",Ce.selection)("tableId",Ce.tableId)}}const Me=function(Pe){return{removeAuth:Pe}};let ue=(()=>{class Pe{constructor(Ce,at,Ue,pt,z){this.groupsService=Ce,this.route=at,this.dialog=Ue,this.authResolver=pt,this.memberService=z,this.groups=[],this.filterValue="",this.tableId=f.W1,this.selection=new A.Ov(!0,[]),this.removeAuth$=this.selection.changed.pipe((0,ye.U)(st=>st.source.selected.reduce((be,Ye)=>be&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[Ye]),!0)),(0,ze.O)(!0))}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(Ce=>{this.memberId=Number(Ce.memberId),this.memberService.getMemberById(this.memberId).subscribe(at=>{this.member=at,this.groupsService.getAllGroups(this.member.voId).subscribe(Ue=>{this.allGroups=Ue,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,[w.r.MEMBER_DEF_GROUP_EXPIRATION,w.r.MEMBER_GROUP_STATUS,w.r.MEMBER_GROUP_STATUS_INDIRECT]).subscribe(Ce=>{this.selection.clear(),this.groups=Ce,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const Ce={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((at,Ue)=>at||this.authResolver.isAuthorized("addMember_Group_Member_policy",[Ue]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[Ce,this.groups[0]]))}addGroup(){const Ce=(0,S.kZ)();Ce.width="850px",Ce.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(Ue=>Ue.id)),theme:"member-theme"},this.dialog.open(_e,Ce).afterClosed().subscribe(Ue=>{Ue&&this.refreshTable()})}removeGroup(){const Ce=(0,S.kZ)();Ce.width="650px",Ce.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(ne,Ce).afterClosed().subscribe(Ue=>{Ue&&this.refreshTable()})}applyFilter(Ce){this.filterValue=Ce}}return Pe.id="MemberGroupsComponent",Pe.\u0275fac=function(Ce){return new(Ce||Pe)(x.Y36(e.ff),x.Y36(ke.gz),x.Y36(m.uw),x.Y36(M.x4),x.Y36(e.uq))},Pe.\u0275cmp=x.Xpm({type:Pe,selectors:[["app-member-groups"]],hostVars:2,hostBindings:function(Ce,at){2&Ce&&x.ekj("router-component",at.true)},decls:12,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","me-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"displayedColumns","memberId","disableRouting","groups","filter","memberGroupStatus","selection","tableId","refreshTable",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["color","accent","mat-flat-button","",1,"me-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"me-2",3,"disabled","click"],[3,"displayedColumns","memberId","disableRouting","groups","filter","memberGroupStatus","selection","tableId","refreshTable"]],template:function(Ce,at){if(1&Ce&&(x.TgZ(0,"h1",0),x._uU(1),x.ALo(2,"translate"),x.qZA(),x.TgZ(3,"perun-web-apps-refresh-button",1),x.NdJ("refresh",function(){return at.refreshTable()}),x.qZA(),x.YNc(4,le,3,3,"button",2),x.YNc(5,N,5,8,"span",3),x.ALo(6,"async"),x.TgZ(7,"perun-web-apps-immediate-filter",4),x.NdJ("filter",function(pt){return at.applyFilter(pt)}),x.qZA(),x.YNc(8,U,1,0,"ng-template",null,5,x.W1O),x.TgZ(10,"div",6),x.YNc(11,ce,1,9,"perun-web-apps-groups-list",7),x.qZA()),2&Ce){const Ue=x.MAs(9);x.xp6(1),x.Oqu(x.lcZ(2,6,"MEMBER_DETAIL.GROUPS.TITLE")),x.xp6(3),x.Q6J("ngIf",at.addAuth),x.xp6(1),x.Q6J("ngIf",x.VKq(10,Me,x.lcZ(6,8,at.removeAuth$))),x.xp6(2),x.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),x.xp6(4),x.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",Ue)}},dependencies:[$e.O5,F.lW,Je.gM,Fe.K,H.W,Ve.t,P.L,J.e,$e.Ov,I.X$]}),Pe})()},94856:(Qe,ae,p)=>{"use strict";p.d(ae,{c:()=>ye});var e=p(61744),f=p(10036),A=p(24006),S=p(36895),m=p(80279),M=p(9244),w=p(23325),x=p(39646),I=p(94650),F=p(7274),T=p(4859),H=p(56709),P=p(10266),J=p(68530),fe=p(96214),j=p(39798),$=p(64901),_e=p(68788),ge=p(73358),pe=p(99168),re=p(89383);function v(ze,ke){if(1&ze){const $e=I.EpF();I.TgZ(0,"button",12),I.NdJ("click",function(){I.CHM($e);const Fe=I.oxw();return I.KtG(Fe.showDetails(!0))}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&ze&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function V(ze,ke){if(1&ze){const $e=I.EpF();I.TgZ(0,"button",12),I.NdJ("click",function(){I.CHM($e);const Fe=I.oxw();return I.KtG(Fe.showDetails(!1))}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&ze&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function W(ze,ke){if(1&ze){const $e=I.EpF();I.TgZ(0,"button",13),I.NdJ("click",function(){I.CHM($e);const Fe=I.oxw();return I.KtG(Fe.setColumns())}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&ze){const $e=I.oxw();I.Q6J("disabled",$e.showAllDetails),I.xp6(1),I.hij(" ",I.lcZ(2,2,"VO_DETAIL.APPLICATION.SET_COLUMN_SETTINGS")," ")}}function te(ze,ke){1&ze&&I._UZ(0,"perun-web-apps-loading-table")}function ne(ze,ke){if(1&ze){const $e=I.EpF();I.TgZ(0,"app-applications-dynamic-list",14),I.NdJ("loading$",function(Fe){I.CHM($e);const Ve=I.oxw();return I.KtG(Ve.loading$=Fe)}),I.qZA()}if(2&ze){const $e=I.oxw();I.Q6J("tableId",$e.showAllDetails?$e.detailTableId:$e.tableId)("searchString",$e.filterValue)("displayedColumns",$e.currentColumns)("fedColumns",$e.configuredFedColumns)("fedAttrNames",$e.fedAttrNames)("states",$e.currentStates)("dateFrom",$e.startDate.value)("dateTo",$e.endDate.value)("includeGroupApps",$e.showGroupApps)("refreshTable",$e.refresh)("vo",$e.vo)}}let ye=(()=>{class ze{constructor($e,Je,Fe,Ve,le){this.registrarManager=$e,this.entityStorageService=Je,this.attributeManager=Fe,this.dialog=Ve,this.cd=le,this.currentStates=["NEW","VERIFIED"],this.simplePrependColumns=["id"],this.groupPrependColumns=["id","groupId","groupName"],this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.detailedColumns=["createdAt","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.configuredColumns=[],this.configuredFedColumns=[],this.currentColumns=[],this.columnsAuth=!1,this.filterValue="",this.showAllDetails=!1,this.detailTableId=f.Jf,this.tableId=f.Hi,this.showGroupApps=!1,this.refresh=!1,this.fedAttrNames=[]}ngOnInit(){this.loading$=(0,x.of)(!0),this.vo=this.entityStorageService.getEntity(),this.startDate=new A.NI((0,S.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new A.NI((0,S.p6)(new Date,"yyyy-MM-dd","en-GB")),this.attributeManager.getIdpAttributeDefinitions().subscribe($e=>{$e.forEach(Je=>{this.fedAttrNames.includes(Je.friendlyName)||this.fedAttrNames.push(Je.friendlyName)})}),this.loadViewConfiguration()}yearAgo(){const $e=new Date;return $e.setDate($e.getDate()-365),$e}showGroupApplications($e){this.showGroupApps=$e.checked,this.currentColumns=this.refreshColumns()}showDetails($e){this.showAllDetails=$e,this.loadViewConfiguration()}applyFilter($e){this.filterValue=$e}refreshColumns(){return this.cd.detectChanges(),this.showAllDetails?this.showGroupApps?this.groupPrependColumns.concat(this.detailedColumns):this.simplePrependColumns.concat(this.detailedColumns):this.configuredColumns.length>0?this.showGroupApps?this.groupPrependColumns.concat(this.configuredColumns):this.simplePrependColumns.concat(this.configuredColumns):this.showGroupApps?this.groupPrependColumns.concat(this.simpleColumns):this.simplePrependColumns.concat(this.simpleColumns)}loadViewConfiguration(){this.cd.detectChanges(),this.attributeManager.getVoAttributeByName(this.vo.id,"urn:perun:vo:attribute-def:def:applicationViewPreferences").subscribe($e=>{null!=$e?.value&&$e?.value.length>0?(this.configuredColumns=$e.value,this.configuredFedColumns=this.configuredColumns.filter(Je=>this.fedAttrNames.includes(Je))):(this.configuredColumns=[],this.configuredFedColumns=[]),this.columnsAuth=$e.writable,this.currentColumns=this.refreshColumns()})}setColumns(){const $e=(0,M.kZ)();$e.width="650px",$e.data={columns:[],voId:this.vo.id,theme:"vo-theme"},this.dialog.open(w.a,$e).afterClosed().subscribe(Fe=>{Fe&&this.loadViewConfiguration()})}refreshTable(){this.refresh=!this.refresh,this.cd.detectChanges()}}return ze.id="VoApplicationsComponent",ze.\u0275fac=function($e){return new($e||ze)(I.Y36(e.tk),I.Y36(m.fb),I.Y36(e.H8),I.Y36(F.uw),I.Y36(I.sBO))},ze.\u0275cmp=I.Xpm({type:ze,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function($e,Je){2&$e&&I.ekj("router-component",Je.true)},decls:22,vars:21,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","me-2",3,"click",4,"ngIf"],[3,"stateChanged"],[3,"placeholder","filter"],[3,"endDate","startDate"],["color","primary",3,"checked","change"],["matTooltipPosition","above",3,"matTooltipDisabled","matTooltip"],["mat-stroked-button","","class","ms-2",3,"disabled","click",4,"ngIf"],["spinner",""],[1,"position-relative"],[3,"tableId","searchString","displayedColumns","fedColumns","fedAttrNames","states","dateFrom","dateTo","includeGroupApps","refreshTable","vo","loading$",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-stroked-button","",1,"me-2",3,"click"],["mat-stroked-button","",1,"ms-2",3,"disabled","click"],[3,"tableId","searchString","displayedColumns","fedColumns","fedAttrNames","states","dateFrom","dateTo","includeGroupApps","refreshTable","vo","loading$"]],template:function($e,Je){if(1&$e&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),I.NdJ("refresh",function(){return Je.refreshTable()}),I.qZA(),I.YNc(5,v,3,3,"button",2),I.YNc(6,V,3,3,"button",2),I.TgZ(7,"perun-web-apps-application-state-selector",3),I.NdJ("stateChanged",function(Ve){return Je.currentStates=Ve}),I.qZA(),I.TgZ(8,"perun-web-apps-debounce-filter",4),I.NdJ("filter",function(Ve){return Je.applyFilter(Ve)}),I.qZA(),I._UZ(9,"perun-web-apps-date-range",5),I.TgZ(10,"div")(11,"mat-checkbox",6),I.NdJ("change",function(Ve){return Je.showGroupApplications(Ve)}),I._uU(12),I.ALo(13,"translate"),I.qZA(),I.TgZ(14,"span",7),I.ALo(15,"translate"),I.YNc(16,W,3,4,"button",8),I.qZA()()(),I.YNc(17,te,1,0,"ng-template",null,9,I.W1O),I.TgZ(19,"div",10),I.YNc(20,ne,1,11,"app-applications-dynamic-list",11),I.ALo(21,"async"),I.qZA()),2&$e){const Fe=I.MAs(18);I.xp6(1),I.Oqu(I.lcZ(2,13,"VO_DETAIL.APPLICATION.TITLE")),I.xp6(4),I.Q6J("ngIf",!Je.showAllDetails),I.xp6(1),I.Q6J("ngIf",Je.showAllDetails),I.xp6(2),I.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),I.xp6(1),I.Q6J("endDate",Je.endDate)("startDate",Je.startDate),I.xp6(2),I.Q6J("checked",Je.showGroupApps),I.xp6(1),I.hij(" ",I.lcZ(13,15,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),I.xp6(2),I.s9C("matTooltip",I.lcZ(15,17,"VO_DETAIL.APPLICATION.COLUMNS_TOOLTIP")),I.Q6J("matTooltipDisabled",!Je.showAllDetails),I.xp6(2),I.Q6J("ngIf",Je.columnsAuth),I.xp6(4),I.Q6J("perunWebAppsLoader",I.lcZ(21,19,Je.loading$))("perunWebAppsLoaderIndicator",Fe)}},dependencies:[S.O5,T.lW,H.oG,P.gM,J.K,fe.t,j.S,$.P,_e.x,ge.e,pe.S,S.Ov,re.X$]}),ze})()},4732:(Qe,ae,p)=>{"use strict";p.d(ae,{G:()=>Me});var e=p(81889),f=p(41656),A=p(95017),S=p(87842),m=p(9244),M=p(61744),w=p(10036),x=p(64080),I=p(80279),F=p(61135),T=p(56451),H=p(63900),P=p(18505),J=p(68675),fe=p(54004),j=p(94650),$=p(7274),_e=p(36895),ge=p(24006),pe=p(4859),re=p(10266),v=p(90455),V=p(68530),W=p(25788),te=p(96214),ne=p(58956),ye=p(64901),ze=p(73358),ke=p(89383);const $e=["toggle"];function Je(ue,Pe){if(1&ue){const tt=j.EpF();j.TgZ(0,"button",11),j.NdJ("click",function(){j.CHM(tt);const at=j.oxw();return j.KtG(at.onCreateGroup())}),j._uU(1),j.ALo(2,"translate"),j.qZA()}2&ue&&(j.xp6(1),j.hij(" ",j.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function Fe(ue,Pe){if(1&ue){const tt=j.EpF();j.TgZ(0,"span",12),j.ALo(1,"translate"),j.TgZ(2,"button",13),j.NdJ("click",function(){j.CHM(tt);const at=j.oxw();return j.KtG(at.deleteGroup())}),j._uU(3),j.ALo(4,"translate"),j.qZA()()}if(2&ue){const tt=Pe.ngIf,Ce=j.oxw();j.s9C("matTooltip",j.lcZ(1,4,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),j.Q6J("matTooltipDisabled",tt.removeAuth),j.xp6(2),j.Q6J("disabled",0===Ce.selected.selected.length||!tt.removeAuth),j.xp6(1),j.hij(" ",j.lcZ(4,6,"VO_DETAIL.GROUPS.DELETE_GROUP")," ")}}function Ve(ue,Pe){if(1&ue){const tt=j.EpF();j.TgZ(0,"perun-web-apps-groups-tree",15),j.NdJ("moveGroup",function(at){j.CHM(tt);const Ue=j.oxw(2);return j.KtG(Ue.onMoveGroup(at))})("refreshTable",function(){j.CHM(tt);const at=j.oxw(2);return j.KtG(at.refresh())}),j.qZA()}if(2&ue){const tt=j.oxw(2);j.Q6J("expandAll",tt.filtering)("disableRouting",!tt.routeAuth)("groups",tt.groups)("selection",tt.selected)("filterValue",tt.filterValue)("vo",tt.vo)}}function le(ue,Pe){if(1&ue&&(j.TgZ(0,"div"),j.YNc(1,Ve,1,6,"perun-web-apps-groups-tree",14),j.ALo(2,"async"),j.qZA()),2&ue){const tt=j.oxw(),Ce=j.MAs(21);j.xp6(1),j.Q6J("perunWebAppsLoader",j.lcZ(2,2,tt.loading$))("perunWebAppsLoaderIndicator",Ce)}}function N(ue,Pe){if(1&ue){const tt=j.EpF();j.TgZ(0,"perun-web-apps-groups-list",17),j.NdJ("groupMoved",function(at){j.CHM(tt);const Ue=j.oxw(2);return j.KtG(Ue.onMoveGroup(at))})("queryChanged",function(at){j.CHM(tt);const Ue=j.oxw(2);return j.KtG(Ue.nextPage.next(at))})("refreshTable",function(){j.CHM(tt);const at=j.oxw(2);return j.KtG(at.refresh())})("downloadAll",function(at){j.CHM(tt);const Ue=j.oxw(2);return j.KtG(Ue.downloadAll(at))}),j.ALo(1,"async"),j.qZA()}if(2&ue){const tt=j.oxw(2);j.Q6J("disableMembers",!0)("displayedColumns",tt.displayedColumns)("disableRouting",!tt.routeAuth)("groups",j.lcZ(1,7,tt.groupPage$))("selection",tt.selected)("filter",tt.filterValue)("tableId",tt.tableId)}}function U(ue,Pe){if(1&ue&&(j.TgZ(0,"div"),j.YNc(1,N,2,9,"perun-web-apps-groups-list",16),j.ALo(2,"async"),j.qZA()),2&ue){const tt=j.oxw(),Ce=j.MAs(21);j.xp6(1),j.Q6J("perunWebAppsLoader",j.lcZ(2,2,tt.loading$))("perunWebAppsLoaderIndicator",Ce)}}function X(ue,Pe){1&ue&&j._UZ(0,"perun-web-apps-loading-table")}const ce=function(ue){return{removeAuth:ue}};let Me=(()=>{class ue{constructor(tt,Ce,at,Ue,pt){this.dialog=tt,this.groupService=Ce,this.authResolver=at,this.entityStorageService=Ue,this.groupUtils=pt,this.groups=[],this.nextPage=new F.X({}),this.groupPage$=this.nextPage.pipe((0,H.w)(z=>this.groupService.getGroupsPage({vo:this.vo.id,attrNames:this.attrNames,query:{order:z.order,pageSize:z.pageSize,offset:z.offset,searchString:z.searchString,sortColumn:z.sortColumn}})),(0,P.b)(z=>{this.groups=z.data,this.setAuthRights(),this.selected.clear(),setTimeout(()=>this.loadingSubject$.next(!1),200)}),(0,J.O)({data:[],totalCount:0,offset:0,pageSize:0})),this.showGroupList=!1,this.selected=new A.Ov(!0,[]),this.loadingSubject$=new F.X(!1),this.loading$=(0,T.T)(this.loadingSubject$,this.nextPage.pipe((0,fe.U)(()=>!0))),this.filtering=!1,this.filterValue="",this.tableId=w.rc,this.displayedColumns=["select","id","name","description","menu"],this.removeAuth$=this.selected.changed.pipe((0,fe.U)(z=>z.source.selected.reduce((st,be)=>st&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,be]),!0)),(0,J.O)(!0)),this.attrNames=[x.r.GROUP_SYNC_ENABLED,x.r.GROUP_LAST_SYNC_STATE,x.r.GROUP_LAST_SYNC_TIMESTAMP,x.r.GROUP_STRUCTURE_SYNC_ENABLED,x.r.GROUP_LAST_STRUCTURE_SYNC_STATE,x.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}onCreateGroup(){const tt=(0,m.kZ)();tt.width="450px",tt.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(e.y,tt).afterClosed().subscribe(at=>{at&&this.refresh()})}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),"list"===localStorage.getItem("preferedValue")?(this.toggle.toggle(),this.showGroupList=!0):this.refresh(),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree"),this.refresh()})}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createGroup_Vo_Group_policy",[this.vo]),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[this.vo,this.groups[0]]))}deleteGroup(){const tt=(0,m.kZ)();tt.width="450px",tt.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(f.P,tt).afterClosed().subscribe(at=>{at&&this.refresh()})}labelToggle(){this.showGroupList=!this.showGroupList,this.refresh()}removeAllGroups(){this.selected.clear()}onMoveGroup(tt){const Ce=(0,m.kZ)();Ce.width="550px",Ce.data={group:tt,theme:"vo-theme"},this.dialog.open(S.c,Ce).afterClosed().subscribe(Ue=>{Ue&&this.refresh()})}loadAllGroups(){this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,this.attrNames).subscribe(tt=>{this.groups=tt,this.selected.clear(),this.setAuthRights(),this.loadingSubject$.next(!1)})}applyFilter(tt){this.filterValue=tt,this.filtering=""!==tt}refresh(){this.loadingSubject$.next(!0),this.showGroupList?this.nextPage.next(this.nextPage.value):this.loadAllGroups()}downloadAll(tt){const Ce=this.nextPage.getValue(),at=(Ue,pt)=>this.groupUtils.getDataForColumn(Ue,pt);this.groupService.getGroupsPage({vo:this.vo.id,attrNames:this.attrNames,query:{order:Ce.order,pageSize:tt.length,offset:0,searchString:Ce.searchString,sortColumn:Ce.sortColumn}}).subscribe({next:Ue=>{(0,m.O6)((0,m.Xn)(Ue.data,this.displayedColumns,at),tt.format)}})}}return ue.id="VoGroupsComponent",ue.\u0275fac=function(tt){return new(tt||ue)(j.Y36($.uw),j.Y36(M.ff),j.Y36(I.x4),j.Y36(I.fb),j.Y36(I.K1))},ue.\u0275cmp=j.Xpm({type:ue,selectors:[["app-vo-groups"]],viewQuery:function(tt,Ce){if(1&tt&&j.Gf($e,7),2&tt){let at;j.iGM(at=j.CRH())&&(Ce.toggle=at.first)}},hostVars:2,hostBindings:function(tt,Ce){2&tt&&j.ekj("router-component",Ce.true)},decls:22,vars:19,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","me-2 action-button","data-cy","create-group-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],[1,"slide-label",3,"click"],["color","primary",1,"me-1",3,"ngModel","change","ngModelChange"],["toggle",""],[1,"mt-3","position-relative"],[4,"ngIf"],["spinner",""],["color","accent","data-cy","create-group-button","mat-flat-button","",1,"me-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"me-2",3,"disabled","click"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable"],["theme","vo-theme",3,"disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","groupMoved","queryChanged","refreshTable","downloadAll",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["theme","vo-theme",3,"disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","groupMoved","queryChanged","refreshTable","downloadAll"]],template:function(tt,Ce){1&tt&&(j.TgZ(0,"div")(1,"h1",0),j._uU(2),j.ALo(3,"translate"),j.qZA(),j.TgZ(4,"perun-web-apps-refresh-button",1),j.NdJ("refresh",function(){return Ce.refresh()}),j.qZA(),j.YNc(5,Je,3,3,"button",2),j.YNc(6,Fe,5,8,"span",3),j.ALo(7,"async"),j.TgZ(8,"perun-web-apps-debounce-filter",4),j.NdJ("filter",function(Ue){return Ce.applyFilter(Ue)}),j.qZA(),j.TgZ(9,"label",5),j.NdJ("click",function(){return Ce.labelToggle()}),j._uU(10),j.ALo(11,"translate"),j.qZA(),j.TgZ(12,"mat-slide-toggle",6,7),j.NdJ("change",function(){return Ce.removeAllGroups()})("ngModelChange",function(Ue){return Ce.showGroupList=Ue}),j.qZA(),j.TgZ(14,"label",5),j.NdJ("click",function(){return Ce.labelToggle()}),j._uU(15),j.ALo(16,"translate"),j.qZA(),j.TgZ(17,"div",8),j.YNc(18,le,3,4,"div",9),j.YNc(19,U,3,4,"div",9),j.qZA()(),j.YNc(20,X,1,0,"ng-template",null,10,j.W1O)),2&tt&&(j.xp6(2),j.Oqu(j.lcZ(3,9,"VO_DETAIL.GROUPS.TITLE")),j.xp6(3),j.Q6J("ngIf",Ce.createAuth),j.xp6(1),j.Q6J("ngIf",j.VKq(17,ce,j.lcZ(7,11,Ce.removeAuth$))),j.xp6(2),j.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),j.xp6(2),j.hij("",j.lcZ(11,13,"VO_DETAIL.GROUPS.TREE_VIEW")," "),j.xp6(2),j.Q6J("ngModel",Ce.showGroupList),j.xp6(3),j.hij("",j.lcZ(16,15,"VO_DETAIL.GROUPS.LIST_VIEW")," "),j.xp6(3),j.Q6J("ngIf",!Ce.showGroupList),j.xp6(1),j.Q6J("ngIf",Ce.showGroupList))},dependencies:[_e.O5,ge.JJ,ge.On,pe.lW,re.gM,v.Rr,V.K,W.W,te.t,ne.I,ye.P,ze.e,_e.Ov,ke.X$],styles:[".slide-label[_ngcontent-%COMP%]{display:inline;cursor:pointer}"],changeDetection:0}),ue})()},81847:(Qe,ae,p)=>{"use strict";p.d(ae,{y:()=>X});var e=p(95017),f=p(80279),A=p(53455),S=p(61744),m=p(64080),M=p(24006),w=p(10036),x=p(9244),I=p(74414),F=p(51525),T=p(94742),H=p(39646),P=p(94650),J=p(7274),fe=p(36895),j=p(3238),$=p(59549),_e=p(4859),ge=p(84385),pe=p(10266),re=p(28255),v=p(68530),V=p(96214),W=p(64901),te=p(4811),ne=p(73358),ye=p(89383),ze=p(20551);function ke(ce,Me){if(1&ce){const ue=P.EpF();P.TgZ(0,"button",17),P.NdJ("click",function(){P.CHM(ue);const tt=P.oxw();return P.KtG(tt.onAddMember())}),P._uU(1),P.ALo(2,"translate"),P.qZA()}if(2&ce){const ue=P.oxw();P.Q6J("disabled",ue.blockManualMemberAdding),P.xp6(1),P.hij(" ",P.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function $e(ce,Me){if(1&ce&&(P.TgZ(0,"button",18),P._uU(1),P.ALo(2,"translate"),P.qZA()),2&ce){const ue=P.oxw(),Pe=P.MAs(11);P.Q6J("disabled",ue.blockManualMemberAdding)("matMenuTriggerFor",Pe),P.xp6(1),P.hij(" ",P.lcZ(2,3,"VO_DETAIL.MEMBERS.INVITE")," ")}}function Je(ce,Me){if(1&ce){const ue=P.EpF();P.TgZ(0,"button",19),P.NdJ("click",function(){P.CHM(ue);const tt=P.oxw();return P.KtG(tt.onInviteMember())}),P._uU(1),P.ALo(2,"translate"),P.qZA()}2&ce&&(P.xp6(1),P.hij(" ",P.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE_ONE")," "))}function Fe(ce,Me){if(1&ce){const ue=P.EpF();P.TgZ(0,"button",19),P.NdJ("click",function(){P.CHM(ue);const tt=P.oxw();return P.KtG(tt.onBulkInvite())}),P._uU(1),P.ALo(2,"translate"),P.qZA()}2&ce&&(P.xp6(1),P.hij(" ",P.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE_BULK")," "))}function Ve(ce,Me){if(1&ce){const ue=P.EpF();P.TgZ(0,"button",20),P.NdJ("click",function(){P.CHM(ue);const tt=P.oxw();return P.KtG(tt.onRemoveMembers())}),P._uU(1),P.ALo(2,"translate"),P.qZA()}if(2&ce){const ue=P.oxw();P.Q6J("disabled",ue.selection.isEmpty()),P.xp6(1),P.hij(" ",P.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function le(ce,Me){if(1&ce&&(P.TgZ(0,"mat-option",21),P._uU(1),P.ALo(2,"memberStatus"),P.qZA()),2&ce){const ue=Me.$implicit;P.Q6J("value",ue),P.xp6(1),P.Oqu(P.lcZ(2,2,ue))}}function N(ce,Me){1&ce&&P._UZ(0,"perun-web-apps-loading-table")}function U(ce,Me){if(1&ce){const ue=P.EpF();P.TgZ(0,"perun-web-apps-members-dynamic-list",22),P.NdJ("loading$",function(tt){P.CHM(ue);const Ce=P.oxw();return P.KtG(Ce.loading$=tt)}),P.qZA()}if(2&ce){const ue=P.oxw();P.Q6J("attrNames",ue.attrNames)("selection",ue.selection)("tableId",ue.tableId)("displayedColumns",ue.displayedColumns)("updateTable",ue.updateTable)("searchString",ue.searchString)("selectedStatuses",ue.selectedStatuses)("voId",ue.vo.id)("isMembersGroup",!1)}}let X=(()=>{class ce{constructor(ue,Pe,tt,Ce,at,Ue,pt,z){this.notificator=ue,this.dialog=Pe,this.authzService=tt,this.storeService=Ce,this.attributesManager=at,this.apiRequest=Ue,this.entityStorageService=pt,this.cd=z,this.members=null,this.selection=new e.Ov(!0,[]),this.attrNames=[m.r.MEMBER_DEF_ORGANIZATION,m.r.MEMBER_DEF_MAIL,m.r.USER_DEF_ORGANIZATION,m.r.USER_DEF_PREFERRED_MAIL,m.r.MEMBER_DEF_EXPIRATION,m.r.MEMBER_LIFECYCLE_ALTERABLE],this.statuses=new M.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=w.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}ngOnInit(){this.loading$=(0,H.of)(!0),this.statuses.setValue(this.selectedStatuses),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.vo.id)}setAuthRights(){this.addAuth=this.authzService.isAuthorized("createMember_Vo_User_List_policy",[this.vo])&&this.authzService.isAuthorized("createMember_Vo_Candidate_List_policy",[this.vo]),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","fullName","status","organization","email","logins"],null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0]])),this.inviteAuth=this.authzService.isAuthorized("vo-sendInvitation_Vo_Group_String_String_String_policy",[this.vo])}onSearchByString(ue){this.searchString=ue,this.selection.clear()}onAddMember(){const ue=(0,x.kZ)();ue.width="1000px",ue.data={voId:this.vo.id},this.dialog.open(F.H,ue).afterClosed().subscribe(tt=>{tt&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const ue=(0,x.kZ)();ue.width="450px",ue.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(A.X,ue).afterClosed().subscribe(tt=>{tt&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const ue=(0,x.kZ)();ue.width="650px",ue.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(I.R,ue)}onBulkInvite(){const ue=(0,x.kZ)();ue.width="650px",ue.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(T.F,ue)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const ue=this.statuses.value;return ue?`${ue[0]} ${ue.length>1?"(+"+(ue.length-1).toString()+" "+(2===ue.length?"other)":"others)"):""}`:""}isManualAddingBlocked(ue){return new Promise(Pe=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(ue,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe({next:tt=>{this.blockManualMemberAdding=null!==tt.value,Pe()},error:tt=>{"PrivilegeException"!==tt.name&&this.notificator.showError(tt.name),Pe()}})})}changeStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value,this.cd.detectChanges()}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable,this.cd.detectChanges()}}return ce.id="VoMembersComponent",ce.\u0275fac=function(ue){return new(ue||ce)(P.Y36(f.V6),P.Y36(J.uw),P.Y36(f.x4),P.Y36(f.d6),P.Y36(S.H8),P.Y36(f.F5),P.Y36(f.fb),P.Y36(P.sBO))},ce.\u0275cmp=P.Xpm({type:ce,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(ue,Pe){2&ue&&P.ekj("router-component",Pe.true)},decls:30,vars:25,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","me-2 action-button","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","me-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-members","class","me-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"me-2","fix-select"],["multiple","",3,"formControl","closed"],["class","vo-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup","loading$",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["color","accent","data-cy","add-members","mat-flat-button","",1,"me-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"me-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"me-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup","loading$"]],template:function(ue,Pe){if(1&ue&&(P.TgZ(0,"div",0)(1,"h1",1),P._uU(2),P.ALo(3,"translate"),P.qZA(),P.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),P.NdJ("click",function(){return Pe.refreshTable()}),P.qZA(),P.TgZ(6,"div",4),P.ALo(7,"translate"),P.YNc(8,ke,3,4,"button",5),P.qZA(),P.YNc(9,$e,3,5,"button",6),P.TgZ(10,"mat-menu",null,7),P.YNc(12,Je,3,3,"button",8),P.YNc(13,Fe,3,3,"button",8),P.qZA(),P.YNc(14,Ve,3,4,"button",9),P.TgZ(15,"mat-form-field",10)(16,"mat-label"),P._uU(17),P.ALo(18,"translate"),P.qZA(),P.TgZ(19,"mat-select",11),P.NdJ("closed",function(){return Pe.changeStatuses()}),P.TgZ(20,"mat-select-trigger"),P._uU(21),P.ALo(22,"memberStatus"),P.qZA(),P.YNc(23,le,3,4,"mat-option",12),P.qZA()(),P.TgZ(24,"perun-web-apps-debounce-filter",13),P.NdJ("filter",function(Ce){return Pe.onSearchByString(Ce)}),P.qZA()(),P.YNc(25,N,1,0,"ng-template",null,14,P.W1O),P.TgZ(27,"div",15),P.YNc(28,U,1,9,"perun-web-apps-members-dynamic-list",16),P.ALo(29,"async"),P.qZA()()),2&ue){const tt=P.MAs(26);P.xp6(2),P.Oqu(P.lcZ(3,15,"VO_DETAIL.MEMBERS.TITLE")),P.xp6(4),P.s9C("matTooltip",P.lcZ(7,17,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),P.Q6J("matTooltipDisabled",!Pe.blockManualMemberAdding),P.xp6(2),P.Q6J("ngIf",Pe.addAuth),P.xp6(1),P.Q6J("ngIf",Pe.inviteAuth),P.xp6(3),P.Q6J("ngIf",Pe.inviteAuth),P.xp6(1),P.Q6J("ngIf",Pe.inviteAuth),P.xp6(1),P.Q6J("ngIf",Pe.removeAuth),P.xp6(3),P.Oqu(P.lcZ(18,19,"VO_DETAIL.MEMBERS.FILTER_STATUS")),P.xp6(2),P.Q6J("formControl",Pe.statuses),P.xp6(2),P.hij(" ",P.lcZ(22,21,Pe.displaySelectedStatuses())," "),P.xp6(2),P.Q6J("ngForOf",Pe.statusList),P.xp6(1),P.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),P.xp6(4),P.Q6J("perunWebAppsLoader",P.lcZ(29,23,Pe.loading$))("perunWebAppsLoaderIndicator",tt)}},dependencies:[fe.sg,fe.O5,j.ey,$.KE,$.hX,M.JJ,M.oH,_e.lW,ge.gD,ge.$L,pe.gM,re.VK,re.OP,re.p6,v.K,V.t,W.P,te.m,ne.e,fe.Ov,ye.X$,ze.l],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),ce})()},68056:(Qe,ae,p)=>{"use strict";p.d(ae,{z:()=>pe});var e=p(95017),f=p(61744),A=p(533),S=p(10036),m=p(9244),M=p(80279),w=p(94650),x=p(7274),I=p(36895),F=p(4859),T=p(68530),H=p(96214),P=p(7434),J=p(62109),fe=p(73358),j=p(89383);function $(re,v){if(1&re){const V=w.EpF();w.TgZ(0,"button",7),w.NdJ("click",function(){w.CHM(V);const te=w.oxw();return w.KtG(te.deleteSelectedResources())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&re){const V=w.oxw();w.Q6J("disabled",0===V.selected.selected.length),w.xp6(1),w.hij(" ",w.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function _e(re,v){1&re&&w._UZ(0,"perun-web-apps-loading-table")}function ge(re,v){if(1&re&&w._UZ(0,"perun-web-apps-resources-list",8),2&re){const V=w.oxw();w.Q6J("disableRouting",!V.routeAuth)("filterValue",V.filterValue)("resources",V.resources)("routingVo",!0)("displayedColumns",V.displayedColumns)("selection",V.selected)("tableId",V.tableId)}}let pe=(()=>{class re{constructor(V,W,te,ne){this.resourcesManager=V,this.dialog=W,this.authResolver=te,this.entityStorageService=ne,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=S.nT,this.routeAuth=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.vo]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[this.vo,this.resources[0]])),this.displayedColumns=this.removeAuth?["select","id","name","facility","tags","description"]:["id","name","facility","tags","description"]}refreshTable(){this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe(V=>{this.resources=V,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(V){this.filterValue=V}deleteSelectedResources(){const V=(0,m.kZ)();V.width="450px",V.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(A.f,V).afterClosed().subscribe(te=>{te&&this.refreshTable()})}}return re.id="VoResourcesPreviewComponent",re.\u0275fac=function(V){return new(V||re)(w.Y36(f.xk),w.Y36(x.uw),w.Y36(M.x4),w.Y36(M.fb))},re.\u0275cmp=w.Xpm({type:re,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(V,W){2&V&&w.ekj("router-component",W.true)},decls:11,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","me-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["color","warn","mat-flat-button","",1,"me-2",3,"disabled","click"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId"]],template:function(V,W){if(1&V&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return W.refreshTable()}),w.qZA(),w.YNc(5,$,3,4,"button",2),w.TgZ(6,"perun-web-apps-immediate-filter",3),w.NdJ("filter",function(ne){return W.applyFilter(ne)}),w.qZA(),w.YNc(7,_e,1,0,"ng-template",null,4,w.W1O),w.TgZ(9,"div",5),w.YNc(10,ge,1,7,"perun-web-apps-resources-list",6),w.qZA()()),2&V){const te=w.MAs(8);w.xp6(2),w.Oqu(w.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),w.xp6(3),w.Q6J("ngIf",W.removeAuth),w.xp6(1),w.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),w.xp6(4),w.Q6J("perunWebAppsLoader",W.loading)("perunWebAppsLoaderIndicator",te)}},dependencies:[I.O5,F.lW,T.K,H.t,P.L,J.C,fe.e,j.X$]}),re})()},24219:(Qe,ae,p)=>{"use strict";p.d(ae,{z:()=>st});var e=p(80279),f=p(61744),A=p(94650),S=p(36895),m=p(3848),M=p(98380),w=p(96214),x=p(30671),I=p(51572),F=p(44850),T=p(37084),H=p(89383);function P(be,Ye){1&be&&A._UZ(0,"mat-spinner",2)}function J(be,Ye){if(1&be&&(A.TgZ(0,"mat-panel-description")(1,"div")(2,"i",10),A._uU(3," error "),A.qZA(),A._uU(4),A.ALo(5,"translate"),A.ALo(6,"translate"),A.qZA()()),2&be){const he=A.oxw().$implicit,Re=A.oxw(2);A.xp6(4),A.HOy(" ",Re.getErrorCountStates(he)," ",A.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",he.taskList.length," ",A.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function fe(be,Ye){1&be&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&be&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function j(be,Ye){if(1&be&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&be){const he=Ye.$implicit;A.xp6(1),A.Oqu(he.id)}}function $(be,Ye){1&be&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&be&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function _e(be,Ye){if(1&be&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&be){const he=Ye.$implicit;A.xp6(1),A.Oqu(he.service.name)}}function ge(be,Ye){1&be&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&be&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function pe(be,Ye){if(1&be&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&be){const he=Ye.$implicit;A.xp6(1),A.Oqu(he.status)}}function re(be,Ye){1&be&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&be&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function v(be,Ye){if(1&be&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&be){const he=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,he.schedule,"d.M.y H:mm:ss")," ")}}function V(be,Ye){1&be&&(A._uU(0),A.ALo(1,"translate")),2&be&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function W(be,Ye){if(1&be&&(A.TgZ(0,"td",24),A.YNc(1,v,3,4,"div",25),A.YNc(2,V,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&be){const he=Ye.$implicit,Re=A.MAs(3);A.xp6(1),A.Q6J("ngIf",he.schedule)("ngIfElse",Re)}}function te(be,Ye){1&be&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&be&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function ne(be,Ye){if(1&be&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&be){const he=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,he.schedule,"d.M.y H:mm:ss")," ")}}function ye(be,Ye){1&be&&(A._uU(0),A.ALo(1,"translate")),2&be&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function ze(be,Ye){if(1&be&&(A.TgZ(0,"td",24),A.YNc(1,ne,3,4,"div",25),A.YNc(2,ye,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&be){const he=Ye.$implicit,Re=A.MAs(3);A.xp6(1),A.Q6J("ngIf",he.startTime)("ngIfElse",Re)}}function ke(be,Ye){1&be&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&be&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function $e(be,Ye){if(1&be&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&be){const he=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,he.schedule,"d.M.y H:mm:ss")," ")}}function Je(be,Ye){1&be&&(A._uU(0),A.ALo(1,"translate")),2&be&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Fe(be,Ye){if(1&be&&(A.TgZ(0,"td",24),A.YNc(1,$e,3,4,"div",25),A.YNc(2,Je,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&be){const he=Ye.$implicit,Re=A.MAs(3);A.xp6(1),A.Q6J("ngIf",he.endTime)("ngIfElse",Re)}}function Ve(be,Ye){1&be&&A._UZ(0,"tr",28)}const le=function(be,Ye,he){return{redTableItem:be,greenTableItem:Ye,yellowTableItem:he}};function N(be,Ye){if(1&be&&A._UZ(0,"tr",29),2&be){const he=Ye.$implicit;A.Q6J("ngClass",A.kEZ(1,le,"ERROR"===he.status||"SENDERROR"===he.status||"GENERROR"===he.status,"DONE"===he.status,"WARNING"===he.status))}}function U(be,Ye){if(1&be&&(A.TgZ(0,"table",12),A.ynx(1,13),A.YNc(2,fe,3,3,"th",14),A.YNc(3,j,2,1,"td",15),A.BQk(),A.ynx(4,16),A.YNc(5,$,3,3,"th",14),A.YNc(6,_e,2,1,"td",15),A.BQk(),A.ynx(7,17),A.YNc(8,ge,3,3,"th",14),A.YNc(9,pe,2,1,"td",15),A.BQk(),A.ynx(10,18),A.YNc(11,re,3,3,"th",14),A.YNc(12,W,4,2,"td",15),A.BQk(),A.ynx(13,19),A.YNc(14,te,3,3,"th",14),A.YNc(15,ze,4,2,"td",15),A.BQk(),A.ynx(16,20),A.YNc(17,ke,3,3,"th",14),A.YNc(18,Fe,4,2,"td",15),A.BQk(),A.YNc(19,Ve,1,0,"tr",21),A.YNc(20,N,1,5,"tr",22),A.qZA()),2&be){const he=A.oxw(2).$implicit,Re=A.oxw(2);A.Q6J("dataSource",Re.datasources[Re.propagation.indexOf(he)]),A.xp6(19),A.Q6J("matHeaderRowDef",Re.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",Re.displayedColumns)}}function X(be,Ye){1&be&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&be&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function ce(be,Ye){if(1&be&&(A._UZ(0,"mat-divider"),A.YNc(1,U,21,3,"table",11),A.YNc(2,X,3,3,"div",8)),2&be){const he=A.oxw().$implicit;A.xp6(1),A.Q6J("ngIf",0!==he.taskList.length),A.xp6(1),A.Q6J("ngIf",0===he.taskList.length)}}function Me(be,Ye){if(1&be&&(A.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),A._UZ(3,"img",6),A.TgZ(4,"div",7),A._uU(5),A.qZA()(),A.YNc(6,J,7,8,"mat-panel-description",8),A.qZA(),A.YNc(7,ce,3,2,"ng-template",9),A.qZA()),2&be){const he=Ye.$implicit,Re=A.oxw(2);A.xp6(5),A.hij(" ",he.resource.name," "),A.xp6(1),A.Q6J("ngIf",0!==Re.getErrorCountStates(he))}}function ue(be,Ye){if(1&be&&(A.TgZ(0,"div",3)(1,"mat-accordion",4),A.YNc(2,Me,8,2,"mat-expansion-panel",5),A.qZA()()),2&be){const he=A.oxw();A.xp6(2),A.Q6J("ngForOf",he.propagation)}}let Pe=(()=>{class be{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(he){let Re=0;for(const He of he.taskList)("ERROR"===He.status||"GENERROR"===He.status||"SENDERROR"===He.status)&&Re++;return Re}getDataSource(){this.datasources=[];for(const he of this.propagation)this.datasources.push(new x.by(he.taskList))}ngOnChanges(){this.getDataSource()}}return be.\u0275fac=function(he){return new(he||be)},be.\u0275cmp=A.Xpm({type:be,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[A.TTD],decls:2,vars:2,consts:[["class","ms-auto me-auto",4,"ngIf"],["class","p-2",4,"ngIf"],[1,"ms-auto","me-auto"],[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["height","28","src","assets/img/PerunWebImages/resource-black.svg","width","28"],[1,"ms-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","scheduled"],["matColumnDef","started"],["matColumnDef","ended"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["class","font-italic"],["notYet",""],["mat-header-row",""],["mat-row","",3,"ngClass"]],template:function(he,Re){1&he&&(A.YNc(0,P,1,0,"mat-spinner",0),A.YNc(1,ue,3,1,"div",1)),2&he&&(A.Q6J("ngIf",Re.loading),A.xp6(1),A.Q6J("ngIf",!Re.loading))},dependencies:[S.mk,S.sg,S.O5,x.BZ,x.fO,x.as,x.w1,x.Dz,x.nj,x.ge,x.ev,x.XQ,x.Gk,I.Ou,F.d,T.pp,T.ib,T.yz,T.yK,T.u4,T.HS,S.uU,H.X$],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{margin-left:15%;justify-content:space-between;align-items:center}"]}),be})();function tt(be,Ye){if(1&be&&(A._uU(0),A.ALo(1,"translate"),A.TgZ(2,"span",5),A._uU(3),A.qZA()),2&be){const he=A.oxw();A.hij(" ",A.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),A.xp6(3),A.Oqu(he.errorPropagation.length)}}function Ce(be,Ye){1&be&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&be&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function at(be,Ye){if(1&be&&(A.YNc(0,Ce,3,3,"perun-web-apps-alert",6),A._UZ(1,"app-state-tab",7)),2&be){const he=A.oxw();A.Q6J("ngIf",!he.loading&&0===he.errorPropagation.length),A.xp6(1),A.Q6J("loading",he.loading)("propagation",he.errorPropagation)}}function Ue(be,Ye){if(1&be&&(A._uU(0),A.ALo(1,"translate"),A.TgZ(2,"span",9),A._uU(3),A.qZA()),2&be){const he=A.oxw();A.hij(" ",A.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),A.xp6(3),A.Oqu(he.okPropagation.length)}}function pt(be,Ye){1&be&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&be&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function z(be,Ye){if(1&be&&(A.YNc(0,pt,3,3,"perun-web-apps-alert",6),A._UZ(1,"app-state-tab",7)),2&be){const he=A.oxw();A.Q6J("ngIf",!he.loading&&0===he.okPropagation.length),A.xp6(1),A.Q6J("loading",he.loading)("propagation",he.okPropagation)}}let st=(()=>{class be{constructor(he,Re){this.taskService=he,this.entityStorageService=Re,this.loading=!1,this.okPropagation=[],this.errorPropagation=[],this.resourceStates=[],this.selectedIndex=0}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.taskService.getAllResourcesState(this.vo.id).subscribe(he=>{this.resourceStates=he,this.okPropagation=[],this.errorPropagation=[];for(const Re of he){let He=!0;for(const ve of Re.taskList)if("ERROR"===ve.status||"GENERROR"===ve.status||"SENDERROR"===ve.status){He=!1;break}He?this.okPropagation.push(Re):this.errorPropagation.push(Re)}this.loading=!1},()=>this.loading=!1)}}return be.id="VoResourcesStatesComponent",be.\u0275fac=function(he){return new(he||be)(A.Y36(f.Ob),A.Y36(e.fb))},be.\u0275cmp=A.Xpm({type:be,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(he,Re){2&he&&A.ekj("router-component",Re.true)},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"refresh"],["animationDuration","0ms","mat-stretch-tabs","false",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ms-1"],["alert_type","warn",4,"ngIf"],[3,"loading","propagation"],["alert_type","warn"],[1,"badge","badge-success","ms-1"]],template:function(he,Re){1&he&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return Re.refreshTable()}),A.qZA(),A.TgZ(4,"mat-tab-group",2),A.NdJ("selectedIndexChange",function(ve){return Re.selectedIndex=ve}),A.TgZ(5,"mat-tab"),A.YNc(6,tt,4,4,"ng-template",3),A.YNc(7,at,2,3,"ng-template",4),A.qZA(),A.TgZ(8,"mat-tab"),A.YNc(9,Ue,4,4,"ng-template",3),A.YNc(10,z,2,3,"ng-template",4),A.qZA()()),2&he&&(A.xp6(1),A.Oqu(A.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),A.xp6(3),A.Q6J("selectedIndex",Re.selectedIndex))},dependencies:[S.O5,m.Vc,m.uD,m.uX,m.SP,M.w,w.t,Pe,H.X$]}),be})()},10369:(Qe,ae,p)=>{"use strict";p.d(ae,{w:()=>Fe});var e=p(1186),f=p(80279),A=p(95502),S=p(93657),m=p(83491),M=p(61744),w=p(9244),x=p(94650),I=p(7274),F=p(89383),T=p(82761),H=p(36895),P=p(97392),J=p(4859),fe=p(51572),j=p(10266),$=p(44850),_e=p(98380),ge=p(68530),pe=p(96214),re=p(73358),v=p(157);function V(Ve,le){1&Ve&&x._UZ(0,"mat-spinner",15)}function W(Ve,le){if(1&Ve){const N=x.EpF();x.TgZ(0,"button",23),x.NdJ("click",function(){x.CHM(N);const X=x.oxw(2);return x.KtG(X.settings())}),x.TgZ(1,"i",10),x._uU(2,"edit"),x.qZA(),x._uU(3),x.ALo(4,"translate"),x.qZA()}2&Ve&&(x.xp6(3),x.hij(" ",x.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function te(Ve,le){if(1&Ve&&(x.TgZ(0,"div",16)(1,"div",17)(2,"div",18),x._uU(3),x.ALo(4,"translate"),x.qZA(),x.TgZ(5,"div")(6,"span",18),x._uU(7),x.ALo(8,"translate"),x.qZA(),x._uU(9,": "),x.TgZ(10,"mat-icon",19),x._uU(11,"arrow_right_alt"),x.qZA(),x._uU(12),x.ALo(13,"translate"),x.ALo(14,"translate"),x.TgZ(15,"mat-icon",20),x._uU(16,"restore"),x.qZA(),x._uU(17),x.ALo(18,"translate"),x.ALo(19,"translate"),x.qZA()(),x.TgZ(20,"div",21),x.YNc(21,W,5,3,"button",22),x.qZA()()),2&Ve){const N=x.oxw();x.xp6(3),x.AsE(" ",x.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",N.applicationForm.moduleClassName," "),x.xp6(4),x.Oqu(x.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),x.xp6(5),x.hij(" ",N.applicationForm.automaticApproval?x.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):x.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),x.xp6(5),x.hij(" ",N.applicationForm.automaticApprovalExtension?x.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):x.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),x.xp6(4),x.Q6J("ngIf",N.editAuth)}}function ne(Ve,le){if(1&Ve){const N=x.EpF();x.TgZ(0,"button",24),x.NdJ("click",function(){x.CHM(N);const X=x.oxw();return x.KtG(X.add())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}2&Ve&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function ye(Ve,le){if(1&Ve){const N=x.EpF();x.TgZ(0,"button",25),x.NdJ("click",function(){x.CHM(N);const X=x.oxw();return x.KtG(X.save())}),x.TgZ(1,"i",10),x._uU(2,"save"),x.qZA(),x._uU(3),x.ALo(4,"translate"),x.qZA()}if(2&Ve){const N=x.oxw();x.Q6J("disabled",!N.itemsChanged),x.xp6(3),x.hij(" ",x.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function ze(Ve,le){if(1&Ve){const N=x.EpF();x.TgZ(0,"button",26),x.NdJ("click",function(){x.CHM(N);const X=x.oxw();return x.KtG(X.copy())}),x.TgZ(1,"i",10),x._uU(2,"file_copy"),x.qZA(),x._uU(3),x.ALo(4,"translate"),x.qZA()}2&Ve&&(x.xp6(3),x.hij(" ",x.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function ke(Ve,le){1&Ve&&(x.TgZ(0,"perun-web-apps-alert",27),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&Ve&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}function $e(Ve,le){1&Ve&&x._UZ(0,"perun-web-apps-loading-table")}function Je(Ve,le){if(1&Ve){const N=x.EpF();x.TgZ(0,"app-application-form-list",28),x.NdJ("applicationFormItemsChange",function(){x.CHM(N);const X=x.oxw();return x.KtG(X.changeItems())}),x.qZA()}if(2&Ve){const N=x.oxw();x.Q6J("applicationForm",N.applicationForm)("applicationFormItems",N.applicationFormItems)("displayedColumns",N.displayedColumns)("refreshApplicationForm",N.refreshApplicationForm)("theme","vo-theme")}}let Fe=(()=>{class Ve{constructor(N,U,X,ce,Me,ue,Pe,tt){this.registrarManager=N,this.dialog=U,this.notificator=X,this.translate=ce,this.router=Me,this.authResolver=ue,this.voService=Pe,this.entityStorageService=tt,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarManager.getVoApplicationForm(this.vo.id).subscribe(N=>{this.applicationForm=N,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(U=>{this.applicationFormItems=U,this.loading=!1})})}add(){let N=(0,w.kZ)();N.width="500px",N.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(S.J,N).afterClosed().subscribe(X=>{X&&(this.applicationFormItems=Object.assign([],X[0]),N=(0,w.kZ)(),N.width="600px",N.height="600px",N.data={voId:this.vo.id,applicationFormItem:X[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(m._,N),this.itemsChanged=!0)})}copy(){const N=(0,w.kZ)();N.width="500px",N.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(A.W,N).afterClosed().subscribe(X=>{X&&this.updateFormItems()})}settings(){const N=(0,w.kZ)();N.width="400px",N.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(e.E,N).afterClosed().subscribe(X=>{X&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(ce=>{this.notificator.showSuccess(ce)}),this.applicationForm=X)})}preview(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)},queryParamsHandling:"merge"})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(N=>{this.applicationFormItems=N,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){this.loading=!0;let N=0;for(const U of this.applicationFormItems)U.ordnum=N,U.forDelete||N++;this.registrarManager.updateFormItemsForVo({vo:this.vo.id,items:this.applicationFormItems}).subscribe({next:()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(U=>{this.notificator.showSuccess(U)}),this.updateFormItems()},error:()=>this.loading=!1})}clear(){this.applicationFormItems.forEach(N=>N.forDelete=!0),this.itemsChanged=!0}setAuthRights(){this.editAuth=this.authResolver.isAuthorized("vo-updateFormItems_ApplicationForm_List_policy",[this.vo]),this.displayedColumns=this.editAuth?["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]:["shortname","type","disabled","hidden","preview","managegroups"]}}return Ve.id="VoSettingsApplicationFormComponent",Ve.\u0275fac=function(N){return new(N||Ve)(x.Y36(M.tk),x.Y36(I.uw),x.Y36(f.V6),x.Y36(F.sK),x.Y36(T.F0),x.Y36(f.x4),x.Y36(M.YF),x.Y36(f.fb))},Ve.\u0275cmp=x.Xpm({type:Ve,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(N,U){2&N&&x.ekj("router-component",U.true)},decls:22,vars:14,consts:[[1,"page-subtitle"],["class","ms-auto me-auto",4,"ngIf"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","me-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","data-cy","save-application-form","class","me-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","me-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],["spinner",""],[1,"position-relative"],[3,"applicationForm","applicationFormItems","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[1,"ms-auto","me-auto"],[1,"d-flex","w-50"],[1,"w-50"],[1,"fw-bold"],["matTooltip","Initial",1,"align-bottom"],["matTooltip","Extension",1,"align-bottom"],[1,"w-25"],["class","ms-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ms-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"me-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"me-2",3,"disabled","click"],["mat-stroked-button","",1,"me-2","action-button",3,"click"],["alert_type","info"],[3,"applicationForm","applicationFormItems","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"]],template:function(N,U){if(1&N&&(x.TgZ(0,"h1",0),x._uU(1),x.ALo(2,"translate"),x.qZA(),x.YNc(3,V,1,0,"mat-spinner",1),x.TgZ(4,"div"),x.YNc(5,te,22,18,"div",2),x._UZ(6,"mat-divider",3),x.TgZ(7,"div",4)(8,"perun-web-apps-refresh-button",5),x.NdJ("refresh",function(){return U.updateFormItems()}),x.qZA(),x.YNc(9,ne,3,3,"button",6),x.YNc(10,ye,5,4,"button",7),x.YNc(11,ze,5,3,"button",8),x.TgZ(12,"button",9),x.NdJ("click",function(){return U.preview()}),x.TgZ(13,"i",10),x._uU(14,"search"),x.qZA(),x._uU(15),x.ALo(16,"translate"),x.qZA()(),x.YNc(17,ke,3,3,"perun-web-apps-alert",11),x.YNc(18,$e,1,0,"ng-template",null,12,x.W1O),x.TgZ(20,"div",13),x.YNc(21,Je,1,5,"app-application-form-list",14),x.qZA()()),2&N){const X=x.MAs(19);x.xp6(1),x.hij(" ",x.lcZ(2,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),x.xp6(2),x.Q6J("ngIf",U.loading),x.xp6(2),x.Q6J("ngIf",!U.loading),x.xp6(4),x.Q6J("ngIf",U.editAuth),x.xp6(1),x.Q6J("ngIf",U.editAuth),x.xp6(1),x.Q6J("ngIf",U.editAuth),x.xp6(4),x.hij(" ",x.lcZ(16,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),x.xp6(2),x.Q6J("ngIf",U.editAuth),x.xp6(4),x.Q6J("perunWebAppsLoader",U.loading)("perunWebAppsLoaderIndicator",X)}},dependencies:[H.O5,P.Hw,J.lW,fe.Ou,j.gM,$.d,_e.w,ge.K,pe.t,re.e,v.b,F.X$]}),Ve})()},11042:(Qe,ae,p)=>{"use strict";p.d(ae,{T:()=>Un});var e=p(61744),f=p(95017),A=p(10036),S=p(9244),m=p(7274),M=p(80279),w=p(24006),x=p(36895),I=p(28499),F=p(77579),T=p(94650),H=p(89383),P=p(3238),J=p(284),fe=p(59549),j=p(97392),$=p(4859),_e=p(56709),ge=p(84385),pe=p(10266),re=p(86257),v=p(98380),V=p(97403),W=p(73358),te=p(13469),ne=p(75162),ye=p(64080),ze=p(71948),ke=p(25788),$e=p(7434),Je=p(61150);function Fe(St,ri){1&St&&(T.TgZ(0,"div")(1,"perun-web-apps-alert",8),T._uU(2),T.ALo(3,"translate"),T.qZA()()),2&St&&(T.xp6(2),T.Oqu(T.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Ve(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"div")(1,"h5",9),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-create-group-form",10),T.NdJ("asSubgroupChanged",function(Jt){T.CHM(lt);const ui=T.oxw();return T.KtG(ui.onAsSubgroupChange(Jt))})("nameChanged",function(Jt){T.CHM(lt);const ui=T.oxw();return T.KtG(ui.onNameChange(Jt))})("descriptionChanged",function(Jt){T.CHM(lt);const ui=T.oxw();return T.KtG(ui.onDescriptionChange(Jt))})("parentGroupChanged",function(Jt){T.CHM(lt);const ui=T.oxw();return T.KtG(ui.onParentChange(Jt))}),T.qZA()()}if(2&St){const lt=T.oxw();T.xp6(2),T.Oqu(T.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")),T.xp6(2),T.Q6J("voGroups",lt.allVoGroups)}}const le=function(){return["select","id","name","description"]};function N(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"div")(1,"h5",9),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-immediate-filter",11),T.NdJ("filter",function(Jt){T.CHM(lt);const ui=T.oxw();return T.KtG(ui.applyFilter(Jt))}),T.qZA(),T._UZ(5,"perun-web-apps-groups-list",12),T.qZA()}if(2&St){const lt=T.oxw();T.xp6(2),T.Oqu(T.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")),T.xp6(2),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("groups",lt.assignableGroups)("selection",lt.selection)("disableRouting",!0)("displayedColumns",T.DdM(10,le))("filter",lt.filterValue)("tableId",lt.tableId)}}let U=(()=>{class St{constructor(lt,jt,Jt){this.groupsService=lt,this.guiAuthResolver=jt,this.attributesService=Jt,this.groupsToAdd=new T.vpe,this.submitAllowed=new T.vpe,this.loading=!1,this.assignableGroups=[],this.allVoGroups=[],this.manualMemberAddingBlocked=!1,this.groupAssignment="none",this.selection=new f.Ov(!0,[]),this.name="",this.description="",this.asSubgroup=!1,this.parentGroup=null,this.filterValue="",this.tableId=A.rc,this.groupToCreate={id:0,beanName:"Group"},this.groupIds=[],this.groupAttrNames=[ye.r.GROUP_SYNC_ENABLED,ye.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.onSubmit=this.submit.subscribe(()=>this.handleGroups()),this.selection.changed.subscribe(()=>this.isSubmitAllowed()),this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.voId,beanName:"Vo"}]),this.attributesService.getVoAttributes(this.voId).subscribe(lt=>{this.manualMemberAddingBlocked=(0,S.jh)(lt,ye.r.VO_BLOCK_MANUAL_MEMBER_ADDING),this.groupsService.getAllRichGroupsWithAttributesByNames(this.voId,this.groupAttrNames).subscribe(jt=>{this.allVoGroups=jt.filter(Jt=>"members"!==Jt.name),this.assignableGroups=this.filterAssignableGroups(jt),this.isSubmitAllowed()})})}ngOnDestroy(){void 0!==this.onSubmit&&this.onSubmit.unsubscribe()}groupAssigmentChanged(){this.selection.clear(),this.groupToCreate.name="",this.groupToCreate.description="",this.asSubgroup=!1,this.groupToCreate.parentGroupId=null,this.isSubmitAllowed()}applyFilter(lt){this.filterValue=lt}onNameChange(lt){this.groupToCreate.name=lt,this.isSubmitAllowed()}onParentChange(lt){this.groupToCreate.parentGroupId=null===lt?null:lt.id,this.isSubmitAllowed()}onAsSubgroupChange(lt){this.asSubgroup=lt,this.isSubmitAllowed()}onDescriptionChange(lt){this.groupToCreate.description=lt,this.isSubmitAllowed()}isSubmitAllowed(){this.submitAllowed.emit(!(null===this.groupAssignment||"existing"===this.groupAssignment&&0===this.selection.selected.length||"new"===this.groupAssignment&&(0===this.groupToCreate.name.length||0===this.groupToCreate.description.length)||this.asSubgroup&&null===this.groupToCreate.parentGroupId))}handleGroups(){this.loading=!0,"new"===this.groupAssignment?this.asSubgroup?this.groupsService.createGroupWithParentGroupNameDescription(this.groupToCreate.parentGroupId,this.groupToCreate.name,this.groupToCreate.description).subscribe({next:lt=>{this.groupIds.push(lt.id),this.groupsToAdd.emit(this.groupIds)},error:()=>this.loading=!1}):this.groupsService.createGroupWithVoNameDescription(this.voId,this.groupToCreate.name,this.groupToCreate.description).subscribe({next:lt=>{this.groupIds.push(lt.id),this.groupsToAdd.emit(this.groupIds)},error:()=>this.loading=!1}):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(lt=>lt.id)),this.groupsToAdd.emit(this.groupIds))}filterAssignableGroups(lt){const jt=[];for(const Jt of lt)!(0,S.bx)(Jt)&&!(0,S.jh)(Jt.attributes,ye.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[Jt])&&jt.push(Jt);return jt}}return St.\u0275fac=function(lt){return new(lt||St)(T.Y36(e.ff),T.Y36(M.x4),T.Y36(e.H8))},St.\u0275cmp=T.Xpm({type:St,selectors:[["app-assign-groups-sponsored-members-component"]],inputs:{submit:"submit",voId:"voId"},outputs:{groupsToAdd:"groupsToAdd",submitAllowed:"submitAllowed"},decls:21,vars:26,consts:[[1,"mt-2"],[1,"mb-4"],[1,"flex-container",3,"ngModel","change","ngModelChange"],["value","none","data-cy","no-assign-button"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","new",3,"disabled"],["value","existing",3,"disabled"],[4,"ngIf"],["alert_type","info",1,"mt-4"],[1,"mt-4"],[3,"voGroups","asSubgroupChanged","nameChanged","descriptionChanged","parentGroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(lt,jt){1<&&(T.TgZ(0,"div",0)(1,"h5",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-radio-group",2),T.NdJ("change",function(){return jt.groupAssigmentChanged()})("ngModelChange",function(ui){return jt.groupAssignment=ui}),T.TgZ(5,"mat-radio-button",3),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.TgZ(8,"span",4),T.ALo(9,"translate"),T.TgZ(10,"mat-radio-button",5),T._uU(11),T.ALo(12,"translate"),T.qZA()(),T.TgZ(13,"span",4),T.ALo(14,"translate"),T.TgZ(15,"mat-radio-button",6),T._uU(16),T.ALo(17,"translate"),T.qZA()()()(),T.YNc(18,Fe,4,3,"div",7),T.YNc(19,Ve,5,4,"div",7),T.YNc(20,N,6,11,"div",7)),2<&&(T.xp6(2),T.Oqu(T.lcZ(3,14,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),T.xp6(2),T.Q6J("ngModel",jt.groupAssignment),T.xp6(2),T.hij(" ",T.lcZ(7,16,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),T.xp6(2),T.s9C("matTooltip",T.lcZ(9,18,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),T.Q6J("matTooltipDisabled",!jt.manualMemberAddingBlocked&&jt.createGroupAuth),T.xp6(2),T.Q6J("disabled",jt.manualMemberAddingBlocked||!jt.createGroupAuth),T.xp6(1),T.hij(" ",T.lcZ(12,20,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),T.xp6(2),T.s9C("matTooltip",T.lcZ(14,22,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),T.Q6J("matTooltipDisabled",!jt.manualMemberAddingBlocked&&0!==jt.assignableGroups.length),T.xp6(2),T.Q6J("disabled",jt.manualMemberAddingBlocked||0===jt.assignableGroups.length),T.xp6(1),T.hij(" ",T.lcZ(17,24,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),T.xp6(2),T.Q6J("ngIf","none"===jt.groupAssignment),T.xp6(1),T.Q6J("ngIf","new"===jt.groupAssignment),T.xp6(1),T.Q6J("ngIf","existing"===jt.groupAssignment))},dependencies:[x.O5,w.JJ,w.On,pe.gM,ze.VQ,ze.U0,v.w,ke.W,$e.L,Je.r,H.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),St})();var X=p(39158),ce=p(31359);const Me=["stepper"];function ue(St,ri){1&St&&T._UZ(0,"perun-web-apps-loading-dialog")}function Pe(St,ri){1&St&&(T.TgZ(0,"h1",5),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function tt(St,ri){1&St&&(T._uU(0),T.ALo(1,"translate")),2&St&&T.Oqu(T.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function Ce(St,ri){1&St&&(T.TgZ(0,"perun-web-apps-alert",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function at(St,ri){1&St&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Ue(St,ri){1&St&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function pt(St,ri){1&St&&(T._uU(0),T.ALo(1,"translate")),2&St&&T.Oqu(T.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function z(St,ri){if(1&St&&(T.TgZ(0,"mat-option",34),T._uU(1),T.qZA()),2&St){const lt=ri.$implicit;T.Q6J("value",lt),T.uIk("data-cy",lt),T.xp6(1),T.hij(" ",lt," ")}}function st(St,ri){1&St&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function be(St,ri){1&St&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Ye(St,ri){1&St&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function he(St,ri){if(1&St&&(T.TgZ(0,"mat-option",34),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"uppercase"),T.qZA()),2&St){const lt=ri.$implicit;T.s9C("value",lt),T.xp6(1),T.hij(" ",T.lcZ(2,2,T.lcZ(3,4,"SHARED_LIB.LANGUAGES."+lt))," ")}}function Re(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"mat-form-field")(1,"mat-label"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-select",35),T.NdJ("valueChange",function(Jt){T.CHM(lt);const ui=T.oxw(3);return T.KtG(ui.currentLanguage=Jt)}),T.YNc(5,he,4,6,"mat-option",23),T.qZA()()}if(2&St){const lt=T.oxw(3);T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.INVITE_MEMBER.LANGUAGE")),T.xp6(2),T.Q6J("value",lt.currentLanguage),T.xp6(1),T.Q6J("ngForOf",lt.languages)}}function He(St,ri){1&St&&(T._uU(0),T.ALo(1,"translate")),2&St&&T.Oqu(T.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function ve(St,ri){1&St&&(T._uU(0),T.ALo(1,"translate")),2&St&&T.Oqu(T.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function Oe(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"div",6)(1,"mat-stepper",7,8)(3,"mat-step",9),T.YNc(4,tt,2,3,"ng-template",10),T.YNc(5,Ce,3,3,"perun-web-apps-alert",11),T.TgZ(6,"form",12)(7,"h5",13),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"mat-form-field",14)(11,"mat-label"),T._uU(12),T.ALo(13,"translate"),T.qZA(),T._UZ(14,"input",15),T.YNc(15,at,3,3,"mat-error",16),T.qZA(),T.TgZ(16,"mat-form-field")(17,"mat-label"),T._uU(18),T.ALo(19,"translate"),T.qZA(),T._UZ(20,"input",17),T.YNc(21,Ue,3,3,"mat-error",16),T.qZA(),T.TgZ(22,"mat-form-field")(23,"mat-label"),T._uU(24),T.ALo(25,"translate"),T.qZA(),T._UZ(26,"input",18),T.qZA(),T.TgZ(27,"mat-form-field")(28,"mat-label"),T._uU(29),T.ALo(30,"translate"),T.qZA(),T._UZ(31,"input",19),T.qZA()()(),T.TgZ(32,"mat-step",9),T.YNc(33,pt,2,3,"ng-template",10),T.TgZ(34,"h5",13),T._uU(35),T.ALo(36,"translate"),T.qZA(),T.TgZ(37,"form",20)(38,"mat-form-field",21)(39,"mat-label"),T._uU(40),T.ALo(41,"translate"),T.qZA(),T.TgZ(42,"mat-select",22),T.NdJ("valueChange",function(Jt){T.CHM(lt);const ui=T.oxw(2);return T.KtG(ui.onNamespaceChanged(Jt))}),T.YNc(43,z,2,3,"mat-option",23),T.qZA(),T.YNc(44,st,3,3,"mat-error",16),T.qZA(),T.TgZ(45,"mat-form-field",24),T.ALo(46,"translate"),T.TgZ(47,"mat-label"),T._uU(48),T.ALo(49,"translate"),T.qZA(),T._UZ(50,"input",25),T.YNc(51,be,3,3,"mat-error",16),T.qZA(),T.TgZ(52,"mat-form-field")(53,"mat-label"),T._uU(54),T.ALo(55,"translate"),T.qZA(),T._UZ(56,"input",26),T.YNc(57,Ye,3,3,"mat-error",16),T.qZA(),T.TgZ(58,"span",24),T.ALo(59,"translate"),T.TgZ(60,"mat-checkbox",27),T.NdJ("change",function(){T.CHM(lt);const Jt=T.oxw(2);return T.KtG(Jt.passwordResetChange())}),T._uU(61),T.ALo(62,"translate"),T.qZA()(),T.YNc(63,Re,6,5,"mat-form-field",16),T._UZ(64,"perun-web-apps-password-form",28),T.qZA()(),T.TgZ(65,"mat-step"),T.YNc(66,He,2,3,"ng-template",10),T.TgZ(67,"div",29)(68,"h5",13),T._uU(69),T.ALo(70,"translate"),T.qZA(),T.TgZ(71,"app-choose-sponsor",30),T.NdJ("sponsorTypeSelected",function(Jt){T.CHM(lt);const ui=T.oxw(2);return T.KtG(ui.sponsorType=Jt)})("sponsorSelected",function(Jt){T.CHM(lt);const ui=T.oxw(2);return T.KtG(ui.selectedSponsor=Jt)}),T.qZA(),T.TgZ(72,"h6",14),T._uU(73),T.ALo(74,"translate"),T.qZA(),T.TgZ(75,"perun-web-apps-expiration-select",31),T.NdJ("datePicker",function(Jt){T.CHM(lt);const ui=T.oxw(2);return T.KtG(ui.setExpiration(Jt))}),T.qZA()()(),T.TgZ(76,"mat-step"),T.YNc(77,ve,2,3,"ng-template",10),T.TgZ(78,"app-assign-groups-sponsored-members-component",32),T.NdJ("groupsToAdd",function(Jt){T.CHM(lt);const ui=T.oxw(2);return T.KtG(ui.createMember(Jt))})("submitAllowed",function(Jt){T.CHM(lt);const ui=T.oxw(2);return T.KtG(ui.submitAllowed=Jt)}),T.qZA()()()()}if(2&St){const lt=T.oxw(2);T.xp6(1),T.Q6J("linear",!0),T.xp6(2),T.Q6J("stepControl",lt.userControl),T.xp6(2),T.Q6J("ngIf",lt.functionalityNotSupported),T.xp6(1),T.Q6J("formGroup",lt.userControl),T.xp6(2),T.hij(" ",T.lcZ(9,37,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),T.xp6(4),T.Oqu(T.lcZ(13,39,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),T.xp6(3),T.Q6J("ngIf",lt.userControl.hasError("required","firstName")),T.xp6(3),T.Oqu(T.lcZ(19,41,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),T.xp6(3),T.Q6J("ngIf",lt.userControl.hasError("required","lastName")),T.xp6(3),T.Oqu(T.lcZ(25,43,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),T.xp6(5),T.Oqu(T.lcZ(30,45,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),T.xp6(3),T.Q6J("stepControl",lt.namespaceControl),T.xp6(3),T.Oqu(T.lcZ(36,47,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),T.xp6(2),T.Q6J("formGroup",lt.namespaceControl),T.xp6(3),T.Oqu(T.lcZ(41,49,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),T.xp6(3),T.Q6J("ngForOf",lt.namespaceOptions),T.xp6(1),T.Q6J("ngIf",lt.namespaceControl.hasError("required","namespace")),T.xp6(1),T.s9C("matTooltip",T.lcZ(46,51,null===lt.selectedNamespace?"DIALOGS.CREATE_SPONSORED_MEMBER.NO_NAMESPACE_SELECTED":"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),T.Q6J("matTooltipDisabled",lt.namespaceControl.get("login").enabled),T.xp6(3),T.Oqu(T.lcZ(49,53,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),T.xp6(3),T.Q6J("ngIf",lt.namespaceControl.hasError("required","login")),T.xp6(3),T.Oqu(T.lcZ(55,55,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),T.xp6(3),T.Q6J("ngIf",lt.namespaceControl.hasError("required","email")||lt.namespaceControl.hasError("pattern","email")),T.xp6(1),T.s9C("matTooltip",T.lcZ(59,57,null===lt.selectedNamespace?"DIALOGS.CREATE_SPONSORED_MEMBER.NO_NAMESPACE_SELECTED":"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),T.Q6J("matTooltipDisabled",lt.namespaceControl.get("passwordReset").enabled),T.xp6(3),T.hij("",T.lcZ(62,59,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),T.xp6(2),T.Q6J("ngIf",lt.namespaceControl.get("passwordReset").value),T.xp6(1),T.Q6J("formGroup",lt.namespaceControl)("namespace",lt.selectedNamespace)("tooltipPwdViaEmail",lt.namespaceControl.get("passwordReset").value),T.xp6(5),T.hij(" ",T.lcZ(70,61,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")," "),T.xp6(2),T.Q6J("voId",lt.data.voId)("voSponsors",lt.data.sponsors),T.xp6(2),T.Oqu(T.lcZ(74,63,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION")),T.xp6(2),T.Q6J("minDate",lt.minDate),T.xp6(3),T.Q6J("voId",lt.data.voId)("submit",lt.groupsToAssign.asObservable())}}function r(St,ri){1&St&&(T.TgZ(0,"perun-web-apps-alert",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.WITH_ERRORS")))}function u(St,ri){if(1&St&&(T.TgZ(0,"div",6)(1,"div",36)(2,"mat-icon",37),T._uU(3,"done"),T.qZA(),T._uU(4),T.ALo(5,"translate"),T.TgZ(6,"i"),T._uU(7),T.ALo(8,"userFullName"),T.qZA(),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.TgZ(11,"div"),T._uU(12),T.ALo(13,"translate"),T.qZA(),T.TgZ(14,"div"),T._uU(15),T.ALo(16,"translate"),T.qZA(),T.TgZ(17,"perun-web-apps-alert",38),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.YNc(20,r,3,3,"perun-web-apps-alert",11),T.qZA()),2&St){const lt=T.oxw(2);T.xp6(4),T.hij(" ",T.lcZ(5,9,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),T.xp6(3),T.Oqu(T.lcZ(8,11,lt.createdMember.user)),T.xp6(2),T.hij(" ",T.lcZ(10,13,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),T.xp6(3),T.AsE("",T.lcZ(13,15,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",lt.loginThatWasSet,""),T.xp6(3),T.AsE(" ",T.lcZ(16,17,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",lt.namespaceControl.get("passwordCtrl").value," "),T.xp6(3),T.Oqu(T.lcZ(19,19,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION")),T.xp6(2),T.Q6J("ngIf",lt.finishedWithErrors)}}function _(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"div",39)(1,"button",40),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw(2);return T.KtG(Jt.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA()()}2&St&&(T.xp6(2),T.hij(" ",T.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function C(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"button",45),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw(3);return T.KtG(Jt.stepperPrevious())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function h(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"button",46),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw(3);return T.KtG(Jt.stepperNext())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&St){const lt=T.oxw(3);T.ekj("ms-2",void 0!==lt.stepper&&0!==lt.stepper.selectedIndex)("ms-auto",!(void 0!==lt.stepper&&0!==lt.stepper.selectedIndex)),T.Q6J("disabled",lt.getStepperNextConditions()),T.xp6(1),T.hij(" ",T.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function o(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"button",47),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw(3);return T.KtG(Jt.onConfirm())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&St){const lt=T.oxw(3);T.Q6J("disabled",!lt.submitAllowed),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function n(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"div",39)(1,"button",41),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw(2);return T.KtG(Jt.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,C,3,3,"button",42),T.YNc(5,h,3,8,"button",43),T.YNc(6,o,3,4,"button",44),T.qZA()}if(2&St){const lt=T.oxw(2);T.xp6(2),T.hij(" ",T.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),T.xp6(2),T.Q6J("ngIf",void 0!==lt.stepper&&0!==lt.stepper.selectedIndex),T.xp6(1),T.Q6J("ngIf",void 0!==lt.stepper&<.stepper.selectedIndex!==lt.stepper._steps.length-1),T.xp6(1),T.Q6J("ngIf",void 0!==lt.stepper&<.stepper.selectedIndex===lt.stepper._steps.length-1)}}function t(St,ri){if(1&St&&(T.TgZ(0,"div"),T.YNc(1,Pe,3,3,"h1",2),T.YNc(2,Oe,79,65,"div",3),T.YNc(3,u,21,21,"div",3),T.YNc(4,_,4,3,"div",4),T.YNc(5,n,7,6,"div",4),T.qZA()),2&St){const lt=T.oxw();T.xp6(1),T.Q6J("ngIf",!lt.successfullyCreated),T.xp6(1),T.Q6J("ngIf",!lt.successfullyCreated),T.xp6(1),T.Q6J("ngIf",lt.successfullyCreated),T.xp6(1),T.Q6J("ngIf",lt.successfullyCreated),T.xp6(1),T.Q6J("ngIf",!lt.successfullyCreated&&void 0!==lt.stepper)}}let i=(()=>{class St{constructor(lt,jt,Jt,ui,Ii,Li,Qi,Pn,Dr,zn,$n,wr){this.dialogRef=lt,this.data=jt,this.membersService=Jt,this.apiRequestConfiguration=ui,this.usersService=Ii,this.store=Li,this.translator=Qi,this.authzService=Pn,this.guiAuthResolver=Dr,this.formBuilder=zn,this.cd=$n,this.groupsService=wr,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.selectedNamespace=null,this.userControl=null,this.namespaceControl=null,this.selectedSponsor=null,this.sponsorType="self",this.languages=["en"],this.currentLanguage="en",this.finishedWithErrors=!1,this.submitAllowed=!1,this.groupsToAssign=new F.x,this.minDate=new Date,this.namespaceRules=[],this.parsedRules=new Map,this.expiration="never"}static parseAttributes(lt,jt,Jt){for(const ui of jt)switch(ui){case"login":lt.login=Jt;break;case"password":lt.password=Jt}}onConfirm(){this.loading=!0,this.groupsToAssign.next()}createMember(lt){this.loading=!0;const jt={vo:this.data.voId,userData:{firstName:this.userControl.get("firstName").value,lastName:this.userControl.get("lastName").value,titleAfter:this.userControl.get("titleAfter").value,titleBefore:this.userControl.get("titleBefore").value,email:this.namespaceControl.get("email").value},sponsor:"other"===this.sponsorType?this.selectedSponsor.id:this.store.getPerunPrincipal().userId},Jt=this.namespaceControl.get("namespace").value,ui=this.parsedRules.get(Jt);"No namespace"!==Jt&&(jt.userData.namespace=Jt),"disabled"!==ui.login&&(jt.userData.login=this.namespaceControl.get("login").value),"disabled"!==ui.password&&(jt.sendActivationLink=this.namespaceControl.get("passwordReset").value,jt.language=this.currentLanguage,jt.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(jt.validityTo=this.expiration),this.membersService.createSponsoredMember(jt).subscribe(Ii=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=Ii,Ii&&Ii.userAttributes&&Ii.userAttributes.filter(Li=>"login-namespace"===Li.baseFriendlyName).filter(Li=>Li.friendlyNameParameter===Jt).filter(Li=>null!==Li.value).forEach(Li=>{this.loginThatWasSet=Li.value}),lt.length>0&&this.groupsService.addMember(lt,Ii.id).subscribe({next:()=>this.loading=!1,error:()=>{this.finishedWithErrors=!0,this.loading=!1}}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(lt){this.selectedNamespace=lt;const jt=null===this.selectedNamespace?{login:"disabled",password:"disabled"}:this.parsedRules.get(lt),Jt=this.namespaceControl.get("login"),ui=this.namespaceControl.get("passwordCtrl"),Ii=this.namespaceControl.get("passwordAgainCtrl"),Li=this.namespaceControl.get("passwordReset");"disabled"!==jt.login?(0,S.mH)(Jt,"optional"===jt.login?[]:[w.kI.required]):(Jt.disable(),Jt.setValue("")),"disabled"!==jt.password?((0,S.mH)(ui,"optional"===jt.password?[]:[w.kI.required],[(0,I.yT)(lt,this.usersService,this.apiRequestConfiguration)]),(0,S.mH)(Ii,[]),(0,S.mH)(Li,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(ui.disable(),ui.setValue(""),Ii.disable(),Ii.setValue(""),Li.disable(),Li.setValue(!1))}passwordResetChange(){const lt=this.namespaceControl.get("passwordCtrl"),jt=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(lt.disable(),lt.setValue(""),jt.disable(),jt.setValue("")):(lt.enable(),jt.enable())}setExpiration(lt){this.expiration="never"===lt?"never":(0,x.p6)(lt,"yyyy-MM-dd","en-GB")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.userControl.invalid;case 1:return this.namespaceControl.invalid||this.namespaceControl.get("passwordCtrl").pending;case 2:return null===this.sponsorType||"other"===this.sponsorType&&null===this.selectedSponsor;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.userControl=this.formBuilder.group({firstName:["",w.kI.required],lastName:["",w.kI.required],titleBefore:[""],titleAfter:[""]}),this.languages=this.store.getProperty("supported_languages"),this.namespaceControl=this.formBuilder.group({namespace:["",w.kI.required],login:["",[w.kI.required]],passwordCtrl:["",w.kI.required,[(0,I.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[w.kI.required,w.kI.pattern(S.B2)]]},{validators:S.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(lt=>{this.store.getProperty("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(lt),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.onNamespaceChanged(this.selectedNamespace),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const lt of this.namespaceRules){this.namespaceOptions.push(lt.namespaceName);const jt={login:"disabled",password:"disabled"};St.parseAttributes(jt,lt.requiredAttributes,"required"),St.parseAttributes(jt,lt.optionalAttributes,"optional"),this.parsedRules.set(lt.namespaceName,jt)}1===this.namespaceOptions.length&&(this.selectedNamespace=this.namespaceOptions[0])}}return St.\u0275fac=function(lt){return new(lt||St)(T.Y36(m.so),T.Y36(m.WI),T.Y36(e.uq),T.Y36(M.F5),T.Y36(e.Fv),T.Y36(M.d6),T.Y36(H.sK),T.Y36(e.Ct),T.Y36(M.x4),T.Y36(w.QS),T.Y36(T.sBO),T.Y36(e.ff))},St.\u0275cmp=T.Xpm({type:St,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(lt,jt){if(1<&&T.Gf(Me,5),2<){let Jt;T.iGM(Jt=T.CRH())&&(jt.stepper=Jt.first)}},decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title","",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"dialog-container",3,"formGroup"],[1,"mt-2"],[1,"mt-4"],["data-cy","first-name-input","matInput","","formControlName","firstName","required",""],[4,"ngIf"],["data-cy","last-name-input","matInput","","formControlName","lastName","required",""],["matInput","","formControlName","titleBefore"],["matInput","","formControlName","titleAfter"],[1,"dialog-container","mt-4",3,"formGroup"],["data-cy","namespace-filter"],["formControlName","namespace","required","",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["data-cy","login-input","matInput","","formControlName","login","required",""],["data-cy","email-input","matInput","","formControlName","email","required",""],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","namespace","tooltipPwdViaEmail"],[1,"dialog-container"],[3,"voId","voSponsors","sponsorTypeSelected","sponsorSelected"],[1,"mt-2",3,"minDate","datePicker"],[3,"voId","submit","groupsToAdd","submitAllowed"],["alert_type","error"],[3,"value"],[3,"value","valueChange"],[1,"bigger-font","mb-2"],[1,"me-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","","data-cy","ok-button",1,"ms-auto",3,"click"],["mat-flat-button","",3,"click"],["class","ms-auto","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","next-button","color","accent","mat-flat-button","","type","button",3,"ms-2","ms-auto","disabled","click",4,"ngIf"],["data-cy","confirm-button","class","ms-2","color","accent","mat-flat-button","","type","button",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","next-button","color","accent","mat-flat-button","","type","button",3,"disabled","click"],["data-cy","confirm-button","color","accent","mat-flat-button","","type","button",1,"ms-2",3,"disabled","click"]],template:function(lt,jt){if(1<&&(T.YNc(0,ue,1,0,"ng-template",null,0,T.W1O),T.TgZ(2,"div"),T.YNc(3,t,6,5,"div",1),T.qZA()),2<){const Jt=T.MAs(1);T.xp6(2),T.Gre("",jt.theme," position-relative"),T.xp6(1),T.Q6J("perunWebAppsLoader",jt.loading)("perunWebAppsLoaderIndicator",Jt)}},dependencies:[x.sg,x.O5,P.ey,J.Nt,fe.KE,fe.hX,fe.TO,w._Y,w.Fj,w.JJ,w.JL,w.Q7,w.sg,w.u,j.Hw,$.lW,_e.oG,m.uh,m.xY,m.H8,ge.gD,pe.gM,re.C0,re.VY,re.Vq,v.w,V.b,W.e,te.G,ne.c,U,X.l,x.gd,H.X$,ce.d],styles:[".bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:8px}mat-icon[_ngcontent-%COMP%]{color:#28a745;font-size:36px;vertical-align:bottom}"]}),St})();var a=p(28255);const c=["stepper"];function l(St,ri){1&St&&T._UZ(0,"perun-web-apps-loading-dialog")}function d(St,ri){1&St&&(T._uU(0),T.ALo(1,"translate")),2&St&&T.Oqu(T.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function s(St,ri){1&St&&(T.TgZ(0,"perun-web-apps-alert",25),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function E(St,ri){if(1&St&&(T.TgZ(0,"mat-option",26),T._uU(1),T.qZA()),2&St){const lt=ri.$implicit;T.Q6J("value",lt),T.uIk("data-cy",lt),T.xp6(1),T.hij(" ",lt," ")}}function B(St,ri){1&St&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function q(St,ri){1&St&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function qe(St,ri){if(1&St&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St){const lt=T.oxw(3);T.xp6(1),T.AsE(" ",T.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",lt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function it(St,ri){if(1&St&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St){const lt=T.oxw(3);T.xp6(1),T.AsE(" ",T.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",lt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function xt(St,ri){if(1&St&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St){const lt=T.oxw(3);T.xp6(1),T.AsE(" ",T.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",lt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function ht(St,ri){1&St&&(T._uU(0),T.ALo(1,"translate")),2&St&&T.Oqu(T.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function _t(St,ri){1&St&&(T.TgZ(0,"perun-web-apps-alert",27),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function Ee(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"mat-radio-group",28),T.NdJ("ngModelChange",function(Jt){T.CHM(lt);const ui=T.oxw(3);return T.KtG(ui.passwordReset=Jt)}),T.TgZ(1,"mat-radio-button",29),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-radio-button",30),T._uU(5),T.ALo(6,"translate"),T.qZA()()}if(2&St){const lt=T.oxw(3);T.Q6J("ngModel",lt.passwordReset),T.xp6(2),T.hij(" ",T.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),T.xp6(3),T.hij(" ",T.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function we(St,ri){if(1&St&&(T.TgZ(0,"mat-option",26),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"uppercase"),T.qZA()),2&St){const lt=ri.$implicit;T.s9C("value",lt),T.xp6(1),T.hij(" ",T.lcZ(2,2,T.lcZ(3,4,"SHARED_LIB.LANGUAGES."+lt))," ")}}function de(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"mat-form-field",31)(1,"mat-label"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-select",32),T.NdJ("valueChange",function(Jt){T.CHM(lt);const ui=T.oxw(3);return T.KtG(ui.currentLanguage=Jt)}),T.YNc(5,we,4,6,"mat-option",15),T.qZA()()}if(2&St){const lt=T.oxw(3);T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.INVITE_MEMBER.LANGUAGE")),T.xp6(2),T.Q6J("value",lt.currentLanguage),T.xp6(1),T.Q6J("ngForOf",lt.languages)}}function Ae(St,ri){1&St&&(T._uU(0),T.ALo(1,"translate")),2&St&&T.Oqu(T.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function Te(St,ri){1&St&&(T._uU(0),T.ALo(1,"translate")),2&St&&T.Oqu(T.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function ut(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"mat-stepper",7,8)(2,"mat-step",9),T.YNc(3,d,2,3,"ng-template",10),T.YNc(4,s,3,3,"perun-web-apps-alert",11),T.TgZ(5,"h5",12),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.TgZ(8,"form",13)(9,"mat-form-field")(10,"mat-label"),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.TgZ(13,"mat-select",14),T.YNc(14,E,2,3,"mat-option",15),T.qZA(),T.YNc(15,B,3,3,"mat-error",5),T.qZA(),T.TgZ(16,"div"),T._uU(17),T.ALo(18,"translate"),T.qZA(),T.TgZ(19,"div",16),T._uU(20),T.qZA(),T.TgZ(21,"mat-form-field",17)(22,"mat-label"),T._uU(23),T.ALo(24,"translate"),T.qZA(),T.TgZ(25,"textarea",18),T._uU(26," "),T.qZA(),T.YNc(27,q,3,3,"mat-error",5),T.YNc(28,qe,3,4,"mat-error",5),T.YNc(29,it,3,4,"mat-error",5),T.YNc(30,xt,3,4,"mat-error",5),T.qZA()()(),T.TgZ(31,"mat-step"),T.YNc(32,ht,2,3,"ng-template",10),T.TgZ(33,"div",12)(34,"h5",19),T._uU(35),T.ALo(36,"translate"),T.qZA(),T.YNc(37,_t,3,3,"perun-web-apps-alert",20),T.YNc(38,Ee,7,7,"mat-radio-group",21),T.YNc(39,de,6,5,"mat-form-field",22),T.qZA()(),T.TgZ(40,"mat-step"),T.YNc(41,Ae,2,3,"ng-template",10),T.TgZ(42,"div",12)(43,"h5",19),T._uU(44),T.ALo(45,"translate"),T.qZA(),T.TgZ(46,"perun-web-apps-expiration-select",23),T.NdJ("datePicker",function(Jt){T.CHM(lt);const ui=T.oxw(2);return T.KtG(ui.setExpiration(Jt))}),T.qZA()()(),T.TgZ(47,"mat-step"),T.YNc(48,Te,2,3,"ng-template",10),T.TgZ(49,"app-assign-groups-sponsored-members-component",24),T.NdJ("groupsToAdd",function(Jt){T.CHM(lt);const ui=T.oxw(2);return T.KtG(ui.onGenerate(Jt))})("submitAllowed",function(Jt){T.CHM(lt);const ui=T.oxw(2);return T.KtG(ui.submitAllowed=Jt)}),T.qZA()()()}if(2&St){const lt=T.oxw(2);T.Q6J("linear",!0),T.xp6(2),T.Q6J("stepControl",lt.usersInfoFormGroup),T.xp6(2),T.Q6J("ngIf",lt.functionalityNotSupported),T.xp6(2),T.Oqu(T.lcZ(7,25,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),T.xp6(2),T.Q6J("formGroup",lt.usersInfoFormGroup),T.xp6(3),T.Oqu(T.lcZ(12,27,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),T.xp6(3),T.Q6J("ngForOf",lt.namespaceOptions),T.xp6(1),T.Q6J("ngIf",lt.usersInfoFormGroup.hasError("required","namespace")),T.xp6(2),T.Oqu(T.lcZ(18,29,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),T.xp6(3),T.hij(" ",lt.getSelectedNamespaceRules().csvGenHeaderDescription," "),T.xp6(3),T.Oqu(T.lcZ(24,31,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),T.xp6(2),T.s9C("placeholder",lt.getSelectedNamespaceRules().csvGenPlaceholder),T.xp6(2),T.Q6J("ngIf",lt.usersInfoFormGroup.hasError("required","sponsoredMembers")),T.xp6(1),T.Q6J("ngIf",lt.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),T.xp6(1),T.Q6J("ngIf",lt.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),T.xp6(1),T.Q6J("ngIf",lt.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),T.xp6(5),T.hij(" ",T.lcZ(36,33,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),T.xp6(2),T.Q6J("ngIf","No namespace"===lt.getSelectedNamespaceRules().namespaceName),T.xp6(1),T.Q6J("ngIf","No namespace"!==lt.getSelectedNamespaceRules().namespaceName),T.xp6(1),T.Q6J("ngIf","reset"===lt.passwordReset),T.xp6(5),T.Oqu(T.lcZ(45,35,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),T.xp6(2),T.Q6J("minDate",lt.minDate)("expiration",lt.expiration),T.xp6(3),T.Q6J("voId",lt.data.voId)("submit",lt.groupsToAssign.asObservable())}}function bt(St,ri){1&St&&(T.TgZ(0,"perun-web-apps-alert",34),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.Q6J("alert_type","success"),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function Ht(St,ri){1&St&&(T.TgZ(0,"perun-web-apps-alert",34),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.Q6J("alert_type","warn"),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function Mt(St,ri){if(1&St&&(T.TgZ(0,"div"),T.YNc(1,bt,3,4,"perun-web-apps-alert",33),T.YNc(2,Ht,3,4,"perun-web-apps-alert",33),T.qZA()),2&St){const lt=T.oxw(2);T.xp6(1),T.Q6J("ngIf",!1===lt.finishedWithErrors),T.xp6(1),T.Q6J("ngIf",lt.finishedWithErrors)}}function It(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"button",40),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw(3);return T.KtG(Jt.stepperPrevious())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function ai(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"button",41),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw(3);return T.KtG(Jt.stepperNext())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&St){const lt=T.oxw(3);T.ekj("ms-2",void 0!==lt.stepper&&0!==lt.stepper.selectedIndex)("ms-auto",!(void 0!==lt.stepper&&0!==lt.stepper.selectedIndex)),T.Q6J("disabled",lt.getStepperNextConditions()),T.xp6(1),T.hij(" ",T.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function pi(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"button",42),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw(3);return T.KtG(Jt.onSubmit())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&St){const lt=T.oxw(3);T.Q6J("disabled",!lt.submitAllowed),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function Ut(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"div",35)(1,"button",36),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw(2);return T.KtG(Jt.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,It,3,3,"button",37),T.YNc(5,ai,3,8,"button",38),T.YNc(6,pi,3,4,"button",39),T.qZA()}if(2&St){const lt=T.oxw(2);T.xp6(2),T.hij(" ",T.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),T.xp6(2),T.Q6J("ngIf",void 0!==lt.stepper&&0!==lt.stepper.selectedIndex),T.xp6(1),T.Q6J("ngIf",void 0!==lt.stepper&<.stepper.selectedIndex!==lt.stepper._steps.length-1),T.xp6(1),T.Q6J("ngIf",void 0!==lt.stepper&<.stepper.selectedIndex===lt.stepper._steps.length-1)}}function Tt(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"div",35)(1,"button",43),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw(2);return T.KtG(Jt.onClose())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"button",44),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"mat-menu",null,45)(9,"button",46),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw(2);return T.KtG(Jt.generatePdf())}),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"button",46),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw(2);return T.KtG(Jt.downloadCsv())}),T._uU(13),T.ALo(14,"translate"),T.qZA()()()}if(2&St){const lt=T.MAs(8);T.xp6(2),T.hij(" ",T.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),T.xp6(2),T.Q6J("matMenuTriggerFor",lt),T.xp6(1),T.hij(" ",T.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),T.xp6(5),T.hij(" ",T.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),T.xp6(3),T.hij(" ",T.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}function Se(St,ri){if(1&St&&(T.TgZ(0,"div")(1,"h1",2),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",3),T.YNc(5,ut,50,37,"mat-stepper",4),T.YNc(6,Mt,3,2,"div",5),T.qZA(),T.YNc(7,Ut,7,6,"div",6),T.YNc(8,Tt,15,13,"div",6),T.qZA()),2&St){const lt=T.oxw();T.xp6(2),T.Oqu(T.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),T.xp6(3),T.Q6J("ngIf","user-input"===lt.state&&0!==lt.namespaceRules.length),T.xp6(1),T.Q6J("ngIf","results"===lt.state),T.xp6(1),T.Q6J("ngIf",void 0!==lt.stepper&&"results"!==lt.state),T.xp6(1),T.Q6J("ngIf","results"===lt.state)}}let We=(()=>{class St{constructor(lt,jt,Jt,ui,Ii,Li,Qi,Pn,Dr,zn,$n,wr){this.dialogRef=lt,this.data=jt,this.store=Jt,this.membersService=ui,this.notificator=Ii,this.translate=Li,this.guiAuthResolver=Qi,this.groupsService=Pn,this.attributesService=Dr,this.formBuilder=zn,this.sponsoredMembersPDFService=$n,this.cd=wr,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.state="user-input",this.passwordReset="generate",this.expiration="never",this.finishedWithErrors=!1,this.submitAllowed=!1,this.groupsToAssign=new F.x,this.languages=["en"],this.currentLanguage="en",this.minDate=new Date,this.namespaceRules=[],this.resultData=[]}static didSomeGenerationFailed(lt){return lt.forEach(jt=>{if("OK"!==jt.status)return!0}),!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.languages=this.store.getProperty("supported_languages"),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",w.kI.required],sponsoredMembers:["",[w.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.membersService.getAllNamespacesRules().subscribe(lt=>{this.store.getProperty("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",csvGenHeader:"firstname;lastname;urn:perun:user:attribute-def:def:preferredMail",csvGenPlaceholder:"John;Doe;john@mail.cz",csvGenHeaderDescription:"First name;Last name;Email"}),this.namespaceRules=this.namespaceRules.concat(lt),this.namespaceRules.forEach(jt=>this.namespaceOptions.push(jt.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1,this.cd.detectChanges()})}onCancel(){this.dialogRef.close(!1)}onClose(){this.dialogRef.close(!0)}setExpiration(lt){this.expiration="never"===lt?"never":(0,x.p6)(lt,"yyyy-MM-dd","en-GB")}onSubmit(){this.loading=!0,this.groupsToAssign.next()}getSelectedNamespaceRules(){return this.namespaceRules.find(lt=>lt.namespaceName===this.usersInfoFormGroup.get("namespace").value)}generatePdf(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");this.loading=!0,this.sponsoredMembersPDFService.generate(this.resultData).then(()=>this.loading=!1)}downloadCsv(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");(0,S.O6)(this.createOutputObjects(this.resultData),"csv","member-logins")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.usersInfoFormGroup.invalid;case 1:return null===this.passwordReset;case 2:return null===this.expiration;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}onGenerate(lt){this.loading=!0;const jt=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),Jt=this.getSelectedNamespaceRules().csvGenHeader,ui=[];for(const Li of jt){const Qi=this.parseMemberLine(Li);if("format"===Qi||"email"===Qi)return void(this.loading=!1);""!==Qi&&ui.push(Qi)}const Ii={data:ui,header:Jt,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset,language:this.currentLanguage};lt.length>0&&(Ii.groups=lt),"never"!==this.expiration&&(Ii.validityTo=(0,x.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(Ii.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(Ii).subscribe(Li=>{this.state="results",this.finishedWithErrors=St.didSomeGenerationFailed(Li),this.loading=!1,this.resultData=Li},()=>this.loading=!1)}createOutputObjects(lt){let jt="",Jt="",ui="",Ii="";const Li=[];return lt.forEach(Qi=>{jt=Qi.name.replace(";"," ").split(";")[0],Jt=Qi.status,ui=Qi.login?Qi.login:ui,Ii=Qi.password?Qi.password:Ii;const Pn={name:jt,status:Jt,login:ui,password:Ii};Qi.note&&(Pn.note=Qi.note),Li.push(Pn)}),Li}parseMemberLine(lt){const jt=lt.trim();if(""===jt)return"";const Jt=jt.split(";"),ui=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(Jt.length!==ui.length)return"format";if("mail"===ui[2].slice(ui[2].length-4).toLowerCase()&&!Jt[2].trim().match(S.B2))return"email";if("login"===ui[3]&&""===Jt[3].trim())return"login";let Ii="";for(const Li of Jt)Ii+=Li.trim()+";";return Ii.slice(0,-1)}userInputValidator(){return lt=>{const jt=lt.value.split("\n");for(const Jt of jt){const ui=this.parseMemberLine(Jt);if("format"===ui)return{invalidFormat:{value:Jt}};if("email"===ui)return{invalidEmail:{value:Jt}};if("login"===ui)return{invalidLogin:{value:Jt}}}return null}}}return St.\u0275fac=function(lt){return new(lt||St)(T.Y36(m.so),T.Y36(m.WI),T.Y36(M.d6),T.Y36(e.uq),T.Y36(M.V6),T.Y36(H.sK),T.Y36(M.x4),T.Y36(e.ff),T.Y36(e.H8),T.Y36(w.QS),T.Y36(M.HV),T.Y36(T.sBO))},St.\u0275cmp=T.Xpm({type:St,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(lt,jt){if(1<&&T.Gf(c,5),2<){let Jt;T.iGM(Jt=T.CRH())&&(jt.stepper=Jt.first)}},decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"mt-2"],[1,"flex-container","mt-2",3,"formGroup"],["data-cy","namespace-filter","formControlName","namespace","required",""],[3,"value",4,"ngFor","ngForOf"],[1,"fw-bold"],[1,"pt-2"],["data-cy","csv-input","cols","50","id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","formControlName","sponsoredMembers","matInput","","rows","8",1,"md-textarea","form-control",3,"placeholder"],[1,"mb-4"],["alert_type","info",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["class","w-100",4,"ngIf"],[3,"minDate","expiration","datePicker"],[3,"voId","submit","groupsToAdd","submitAllowed"],["alert_type","error"],[3,"value"],["alert_type","info"],[3,"ngModel","ngModelChange"],["value","generate"],["value","reset"],[1,"w-100"],[3,"value","valueChange"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ms-auto","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","next-button","color","accent","mat-flat-button","",3,"ms-2","ms-auto","disabled","click",4,"ngIf"],["data-cy","submit-button","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","next-button","color","accent","mat-flat-button","",3,"disabled","click"],["data-cy","submit-button","color","accent","mat-flat-button","",3,"disabled","click"],["mat-flat-button","","data-cy","close-button",3,"click"],["color","accent","mat-flat-button","",1,"ms-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(lt,jt){if(1<&&(T.YNc(0,l,1,0,"ng-template",null,0,T.W1O),T.TgZ(2,"div"),T.YNc(3,Se,9,7,"div",1),T.qZA()),2<){const Jt=T.MAs(1);T.xp6(2),T.Gre("",jt.theme," position-relative"),T.xp6(1),T.Q6J("perunWebAppsLoader",jt.loading)("perunWebAppsLoaderIndicator",Jt)}},dependencies:[x.sg,x.O5,P.ey,J.Nt,fe.KE,fe.hX,fe.TO,w._Y,w.Fj,w.JJ,w.JL,w.Q7,w.sg,w.u,w.On,$.lW,m.uh,m.xY,m.H8,ge.gD,ze.VQ,ze.U0,re.C0,re.VY,re.Vq,a.VK,a.OP,a.p6,v.w,V.b,W.e,ne.c,U,x.gd,H.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),St})();var oe=p(91828),et=p(96308),rt=p(30671),Ft=p(19352),yt=p(58964),Zt=p(82761),li=p(34198),Di=p(55660),At=p(18750),Nt=p(20919),ft=p(5865),Bt=p(9185),Kt=p(8231),ii=p(14849);function di(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"th",20)(1,"mat-checkbox",21),T.NdJ("change",function(Jt){T.CHM(lt);const ui=T.oxw(2);return T.KtG(Jt?ui.masterToggle():null)}),T.ALo(2,"translate"),T.ALo(3,"masterCheckboxLabel"),T.qZA()()}if(2&St){const lt=T.oxw().ngIf,jt=T.oxw();T.xp6(1),T.Q6J("aria-label",T.lcZ(2,3,T.lcZ(3,5,lt.all)))("checked",jt.selection.hasValue()&<.all)("indeterminate",jt.selection.hasValue()&&!lt.all)}}const Ai=function(St){return{name:St}};function Ri(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"td",22)(1,"mat-checkbox",23),T.NdJ("change",function(Jt){const Ii=T.CHM(lt).$implicit,Li=T.oxw(2);return T.KtG(Jt?Li.selection.toggle(Ii):null)})("click",function(Jt){return Jt.stopPropagation()}),T.ALo(2,"translate"),T.ALo(3,"checkboxLabel"),T.ALo(4,"userFullName"),T.qZA()()}if(2&St){const lt=ri.$implicit,jt=T.oxw(2);T.xp6(1),T.Q6J("aria-label",T.xi3(2,2,T.lcZ(3,5,jt.selection.isSelected(lt)),T.VKq(9,Ai,T.lcZ(4,7,lt.member.user))))("checked",jt.selection.isSelected(lt))}}function Dt(St,ri){1&St&&(T.ynx(0,17),T.YNc(1,di,4,7,"th",18),T.YNc(2,Ri,5,11,"td",19),T.BQk())}function Gt(St,ri){1&St&&(T.TgZ(0,"th",24),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function Q(St,ri){if(1&St&&(T.TgZ(0,"td",25),T._uU(1),T.qZA()),2&St){const lt=ri.$implicit;T.xp6(1),T.hij(" ",lt.member.id," ")}}function Ie(St,ri){1&St&&(T.TgZ(0,"th",24),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function gt(St,ri){if(1&St&&(T.TgZ(0,"td",26),T._uU(1),T.ALo(2,"userFullName"),T.qZA()),2&St){const lt=ri.$implicit;T.xp6(1),T.hij(" ",T.lcZ(2,1,lt.member.user)," ")}}function Pt(St,ri){1&St&&(T.TgZ(0,"th",27),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.EMAIL")," "))}function ci(St,ri){if(1&St&&(T.TgZ(0,"td",26),T._uU(1),T.ALo(2,"memberEmail"),T.qZA()),2&St){const lt=ri.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,lt.member))}}function bi(St,ri){1&St&&(T.TgZ(0,"th",27),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.LOGIN")," "))}function Vi(St,ri){if(1&St&&(T.TgZ(0,"td",26),T._uU(1),T.ALo(2,"memberLogins"),T.qZA()),2&St){const lt=ri.$implicit;T.xp6(1),T.hij(" ",T.lcZ(2,1,lt.member)," ")}}function en(St,ri){1&St&&(T.TgZ(0,"th",24),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function ji(St,ri){if(1&St&&(T.TgZ(0,"span"),T._uU(1),T.ALo(2,"userFullName"),T._UZ(3,"br"),T.qZA()),2&St){const lt=ri.$implicit;T.xp6(1),T.hij(" ",T.lcZ(2,1,lt.user),"")}}function on(St,ri){if(1&St&&(T.TgZ(0,"td",26),T.YNc(1,ji,4,3,"span",28),T.qZA()),2&St){const lt=ri.$implicit;T.xp6(1),T.Q6J("ngForOf",lt.sponsors)}}function wn(St,ri){1&St&&T._UZ(0,"th",24)}function Hi(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"span",31),T.ALo(1,"translate"),T.TgZ(2,"button",32),T.NdJ("mouseenter",function(){T.CHM(lt);const Jt=T.oxw(2);return T.KtG(Jt.disableRouting=!0)})("mouseleave",function(){T.CHM(lt);const Jt=T.oxw(2);return T.KtG(Jt.disableRouting=Jt.routingStrategy)})("click",function(){T.CHM(lt);const Jt=T.oxw().$implicit,ui=T.oxw();return T.KtG(ui.resetPassword(Jt))}),T.TgZ(3,"mat-icon"),T._uU(4,"vpn_key"),T.qZA()()()}if(2&St){const lt=T.oxw().$implicit,jt=T.oxw();T.Q6J("matTooltipPosition","above")("matTooltip",T.lcZ(1,4,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),T.xp6(2),T.Q2q("data-cy","",lt.member.user.firstName,"-reset-passwd-button"),T.Q6J("disabled",jt.loading)}}function Qn(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"td",26)(1,"button",29),T.NdJ("click",function(){const ui=T.CHM(lt).$implicit,Ii=T.oxw();return T.KtG(Ii.showSponsors(ui))})("mouseenter",function(){T.CHM(lt);const Jt=T.oxw();return T.KtG(Jt.disableRouting=!0)})("mouseleave",function(){T.CHM(lt);const Jt=T.oxw();return T.KtG(Jt.disableRouting=Jt.routingStrategy)}),T.TgZ(2,"mat-icon"),T._uU(3,"edit"),T.qZA()(),T.YNc(4,Hi,5,6,"span",30),T.qZA()}if(2&St){const lt=ri.$implicit,jt=T.oxw();T.xp6(1),T.Q2q("data-cy","",lt.member.user.firstName,"-edit-sponsors-button"),T.xp6(3),T.Q6J("ngIf",jt.passwdResetAuth(lt))}}function cr(St,ri){1&St&&T._UZ(0,"tr",33)}const Ur=function(St,ri){return["/organizations",St,"members",ri]};function Cr(St,ri){if(1&St&&T._UZ(0,"tr",34),2&St){const lt=ri.$implicit,jt=T.oxw();T.ekj("cursor-pointer",!jt.disableRouting)("disable-outline",jt.disableRouting),T.Q2q("data-cy","",lt.member.user.firstName,"-name"),T.Q6J("perunWebAppsMiddleClickRouterLink",jt.disableRouting?null:T.WLB(7,Ur,lt.member.voId,lt.member.id))("routerLink",jt.disableRouting?null:T.WLB(10,Ur,lt.member.voId,lt.member.id))}}function bn(St,ri){1&St&&(T.TgZ(0,"perun-web-apps-alert",35),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function dr(St,ri){1&St&&(T.TgZ(0,"perun-web-apps-alert",35),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}const On=function(St){return{all:St}};let hn=(()=>{class St{constructor(lt,jt,Jt,ui,Ii){this.dialog=lt,this.authResolver=jt,this.storeService=Jt,this.attributesManager=ui,this.tableCheckbox=Ii,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","email","logins","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new T.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=S.f7}set matSort(lt){this.sort=lt}static getSortDataForColumn(lt,jt){switch(jt){case"id":return lt.member.id.toString();case"name":return lt.member.user?lt.member.user.lastName?lt.member.user.lastName:lt.member.user.firstName??"":"";case"sponsors":return lt.sponsors.length.toString();default:return""}}static getDataForColumn(lt,jt){switch(jt){case"id":return lt.member.id.toString();case"name":return lt.member.user?(0,S.bD)(lt.member.user):"";case"sponsors":return lt.sponsors.map(Jt=>(0,S.bD)(Jt.user)).join();default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(lt=>"id"!==lt)),this.setDataSource(),this.routingStrategy=this.disableRouting}exportAllData(lt){(0,S.O6)((0,S.Xn)(this.dataSource.filteredData,this.displayedColumns,St.getDataForColumn),lt)}exportDisplayedData(lt){const jt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Jt=jt+this.dataSource.paginator.pageSize;(0,S.O6)((0,S.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(jt,Jt),this.displayedColumns,St.getDataForColumn),lt)}setDataSource(){this.dataSource||(this.dataSource=new rt.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(lt,jt)=>(0,S.Sd)(lt,jt,this.displayedColumns,St.getDataForColumn),this.dataSource.sortData=(lt,jt)=>(0,S.pR)(lt,jt,St.getSortDataForColumn)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(lt){const jt=(0,S.kZ)();jt.width="650px",jt.data={sponsors:lt.sponsors,member:lt.member,theme:"vo-theme"},this.dialog.open(Ft.H,jt).afterClosed().subscribe(ui=>{ui&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}resetPassword(lt){this.loading=!0;const jt=this.storeService.getProperty("password_namespace_attributes").map(Jt=>{const ui=Jt.split(":");return ui[ui.length-1]});this.attributesManager.getLogins(lt.member.userId).subscribe(Jt=>{const ui=Jt.filter(Qi=>jt.includes(Qi.friendlyNameParameter)),Ii=(0,S.kZ)();Ii.width="400px",Ii.data={userId:lt.member.userId,memberId:lt.member.id,logins:ui},this.dialog.open(yt.m,Ii).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(lt){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:lt.member.voId,beanName:"Vo"},lt.member])}}return St.\u0275fac=function(lt){return new(lt||St)(T.Y36(m.uw),T.Y36(M.x4),T.Y36(M.d6),T.Y36(e.H8),T.Y36(M.UA))},St.\u0275cmp=T.Xpm({type:St,selectors:[["app-sponsored-members-list"]],viewQuery:function(lt,jt){if(1<&&(T.Gf(S.l9,7),T.Gf(et.YE,7)),2<){let Jt;T.iGM(Jt=T.CRH())&&(jt.child=Jt.first),T.iGM(Jt=T.CRH())&&(jt.matSort=Jt.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[T.TTD],decls:27,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","email"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","logins"],["matColumnDef","sponsors"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],[4,"ngFor","ngForOf"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"click","mouseenter","mouseleave"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"disabled","mouseenter","mouseleave","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(lt,jt){1<&&(T.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),T.NdJ("exportDisplayedData",function(ui){return jt.exportDisplayedData(ui)})("exportAllData",function(ui){return jt.exportAllData(ui)}),T.TgZ(2,"table",2),T.YNc(3,Dt,3,0,"ng-container",3),T.ALo(4,"isAllSelected"),T.ynx(5,4),T.YNc(6,Gt,3,3,"th",5),T.YNc(7,Q,2,1,"td",6),T.BQk(),T.ynx(8,7),T.YNc(9,Ie,3,3,"th",5),T.YNc(10,gt,3,3,"td",8),T.BQk(),T.ynx(11,9),T.YNc(12,Pt,3,3,"th",10),T.YNc(13,ci,3,3,"td",8),T.BQk(),T.ynx(14,11),T.YNc(15,bi,3,3,"th",10),T.YNc(16,Vi,3,3,"td",8),T.BQk(),T.ynx(17,12),T.YNc(18,en,3,3,"th",5),T.YNc(19,on,2,1,"td",8),T.BQk(),T.ynx(20,13),T.YNc(21,wn,1,0,"th",5),T.YNc(22,Qn,5,2,"td",8),T.BQk(),T.YNc(23,cr,1,0,"tr",14),T.YNc(24,Cr,1,13,"tr",15),T.qZA()()(),T.YNc(25,bn,3,3,"perun-web-apps-alert",16),T.YNc(26,dr,3,3,"perun-web-apps-alert",16)),2<&&(T.Q6J("hidden",0===jt.dataSource.filteredData.length||0===jt.sponsoredMembers.length),T.xp6(1),T.Q6J("pageSizeOptions",jt.pageSizeOptions)("dataLength",jt.dataSource.filteredData.length)("tableId",jt.tableId),T.xp6(1),T.Q6J("dataSource",jt.dataSource),T.xp6(1),T.Q6J("ngIf",T.VKq(13,On,T.xi3(4,10,jt.dataSource,jt.selection.selected.length))),T.xp6(20),T.Q6J("matHeaderRowDef",jt.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",jt.displayedColumns),T.xp6(1),T.Q6J("ngIf",0===jt.dataSource.filteredData.length&&0!==jt.sponsoredMembers.length),T.xp6(1),T.Q6J("ngIf",0===jt.sponsoredMembers.length))},dependencies:[x.sg,x.O5,Zt.rH,j.Hw,$.RK,et.YE,et.nU,rt.BZ,rt.fO,rt.as,rt.w1,rt.Dz,rt.nj,rt.ge,rt.ev,rt.XQ,rt.Gk,_e.oG,pe.gM,v.w,li.Y,Di.Q,At.l,H.X$,ce.d,Nt.D,ft.p,Bt.I,Kt.G,ii.r],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),St})();var rr=p(68530),fn=p(96214);function Ki(St,ri){if(1&St&&(T.TgZ(0,"button",12),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&St){const lt=T.oxw(),jt=T.MAs(9);T.Q6J("disabled",lt.findSponsorsAuth&&0===lt.voSponsors.length)("matMenuTriggerFor",jt),T.xp6(1),T.hij(" ",T.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function Yr(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"button",13),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw();return T.KtG(Jt.onCreate())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function mn(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"button",14),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw();return T.KtG(Jt.onGenerate())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function Nr(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"button",15),T.NdJ("click",function(){T.CHM(lt);const Jt=T.oxw();return T.KtG(Jt.onSponsorExistingMember())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&St&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function ar(St,ri){1&St&&T._UZ(0,"perun-web-apps-loading-table")}function Gn(St,ri){if(1&St){const lt=T.EpF();T.TgZ(0,"app-sponsored-members-list",16),T.NdJ("refreshTable",function(){T.CHM(lt);const Jt=T.oxw();return T.KtG(Jt.refresh())}),T.qZA()}if(2&St){const lt=T.oxw();T.Q6J("disableRouting",!lt.routeAuth)("selection",lt.selection)("filterValue",lt.searchString)("sponsoredMembers",lt.members)("tableId",lt.tableId)}}let Un=(()=>{class St{constructor(lt,jt,Jt,ui,Ii,Li,Qi){this.membersManager=lt,this.dialog=jt,this.authResolver=Jt,this.storeService=ui,this.authzResolver=Ii,this.entityStorageService=Li,this.findSponsors=Qi,this.members=[],this.voSponsors=[],this.selection=new f.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=A.Bf,this.attrNames=[ye.r.USER_DEF_PREFERRED_MAIL]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.setAuthRights(),this.findSponsorsAuth=this.findSponsors.findSponsorsAuth(this.vo),this.findSponsorsAuth?this.findSponsors.getSponsors(this.vo.id).subscribe(lt=>{this.voSponsors=lt,this.refresh()}):this.refresh()}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createSponsoredMember_Vo_String_Map_String_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.generateAuth=this.authResolver.isAuthorized("createSponsoredMembers_Vo_String_List_User_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.setSponsorshipAuth=this.authResolver.isAuthorized("setSponsorshipForMember_Member_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0].member]))}onCreate(){const lt=(0,S.kZ)();lt.width="750px",lt.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(i,lt).afterClosed().subscribe(Jt=>{Jt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(ui=>{this.storeService.setPerunPrincipal(ui),this.refresh()}))})}onGenerate(){const lt=(0,S.kZ)();lt.width="750px",lt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(We,lt).afterClosed().subscribe(Jt=>{Jt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(ui=>{this.storeService.setPerunPrincipal(ui),this.refresh()}))})}onSponsorExistingMember(){const lt=(0,S.kZ)();lt.width="650px",lt.data={voId:this.vo.id,theme:"vo-theme",voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth},this.dialog.open(oe.b,lt).afterClosed().subscribe(Jt=>{Jt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(ui=>{this.storeService.setPerunPrincipal(ui),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(lt=>{this.selection.clear(),this.members=lt,this.setAuthRights(),this.loading=!1})}applyFilter(lt){this.searchString=lt}}return St.id="VoSponsoredMembersComponent",St.\u0275fac=function(lt){return new(lt||St)(T.Y36(e.uq),T.Y36(m.uw),T.Y36(M.x4),T.Y36(M.d6),T.Y36(e.Ct),T.Y36(M.fb),T.Y36(M.Mf))},St.\u0275cmp=T.Xpm({type:St,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(lt,jt){2<&&T.ekj("router-component",jt.true)},decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["data-cy","sponsor-dropdown-button","class","me-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["data-cy","sponsor-new-button","class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["data-cy","sponsor-csv-button","class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["data-cy","sponsor-existing-button","color","accent","class","me-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["data-cy","sponsor-dropdown-button","color","accent","mat-flat-button","",1,"me-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["data-cy","sponsor-new-button","mat-menu-item","",1,"action-button",3,"click"],["data-cy","sponsor-csv-button","mat-menu-item","",1,"action-button",3,"click"],["data-cy","sponsor-existing-button","color","accent","mat-flat-button","",1,"me-2","action-button",3,"click"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable"]],template:function(lt,jt){if(1<&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return jt.refresh()}),T.qZA(),T.TgZ(5,"span",2),T.ALo(6,"translate"),T.YNc(7,Ki,3,5,"button",3),T.qZA(),T.TgZ(8,"mat-menu",null,4),T.YNc(10,Yr,3,3,"button",5),T.YNc(11,mn,3,3,"button",6),T.qZA(),T.YNc(12,Nr,3,3,"button",7),T.TgZ(13,"perun-web-apps-immediate-filter",8),T.NdJ("filter",function(ui){return jt.applyFilter(ui)}),T.qZA(),T.YNc(14,ar,1,0,"ng-template",null,9,T.W1O),T.TgZ(16,"div",10),T.YNc(17,Gn,1,5,"app-sponsored-members-list",11),T.qZA()()),2<){const Jt=T.MAs(15);T.xp6(2),T.Oqu(T.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),T.xp6(3),T.s9C("matTooltip",T.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),T.Q6J("matTooltipDisabled",!(jt.findSponsorsAuth&&0===jt.voSponsors.length)),T.xp6(2),T.Q6J("ngIf",jt.createAuth||jt.generateAuth),T.xp6(3),T.Q6J("ngIf",jt.createAuth),T.xp6(1),T.Q6J("ngIf",jt.generateAuth),T.xp6(1),T.Q6J("ngIf",jt.setSponsorshipAuth),T.xp6(1),T.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),T.xp6(4),T.Q6J("perunWebAppsLoader",jt.loading)("perunWebAppsLoaderIndicator",Jt)}},dependencies:[x.O5,$.lW,pe.gM,a.VK,a.OP,a.p6,hn,rr.K,fn.t,$e.L,W.e,H.X$]}),St})()},25309:(Qe,ae,p)=>{"use strict";p.d(ae,{Y:()=>le});var e=p(61744),f=p(9244),A=p(80279),S=p(11717),m=p(95017),M=p(7274),w=p(24006),x=p(94650),I=p(89383),F=p(82761),T=p(284),H=p(59549),P=p(4859),J=p(10266),fe=p(97403),j=p(73358);function $(N,U){1&N&&x._UZ(0,"perun-web-apps-loading-dialog")}function _e(N,U){if(1&N){const X=x.EpF();x.TgZ(0,"div")(1,"h1",2),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"div",3)(5,"mat-form-field")(6,"mat-label"),x._uU(7),x.ALo(8,"translate"),x.qZA(),x._UZ(9,"input",4),x.TgZ(10,"mat-error"),x._uU(11),x.ALo(12,"translate"),x.qZA()(),x.TgZ(13,"mat-form-field")(14,"mat-label"),x._uU(15),x.ALo(16,"translate"),x.qZA(),x._UZ(17,"input",5),x.TgZ(18,"mat-error"),x._uU(19),x.ALo(20,"translate"),x.qZA()()(),x.TgZ(21,"div",6)(22,"button",7),x.NdJ("click",function(){x.CHM(X);const Me=x.oxw();return x.KtG(Me.onCancel())}),x._uU(23),x.ALo(24,"translate"),x.qZA(),x.TgZ(25,"div",8),x.ALo(26,"translate"),x.TgZ(27,"button",9),x.NdJ("click",function(){x.CHM(X);const Me=x.oxw();return x.KtG(Me.onSubmit())}),x._uU(28),x.ALo(29,"translate"),x.qZA()()()()}if(2&N){const X=x.oxw();x.xp6(2),x.Oqu(x.lcZ(3,12,"DIALOGS.CREATE_VO.TITLE")),x.xp6(5),x.Oqu(x.lcZ(8,14,"DIALOGS.CREATE_VO.FULL_NAME")),x.xp6(2),x.Q6J("formControl",X.fullNameCtrl),x.xp6(2),x.hij(" ",x.lcZ(12,16,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),x.xp6(4),x.Oqu(x.lcZ(16,18,"DIALOGS.CREATE_VO.SHORT_NAME")),x.xp6(2),x.Q6J("formControl",X.shortNameCtrl),x.xp6(2),x.hij(" ",x.lcZ(20,20,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),x.xp6(4),x.hij(" ",x.lcZ(24,22,"DIALOGS.CREATE_VO.CANCEL")," "),x.xp6(2),x.s9C("matTooltip",x.lcZ(26,24,"DIALOGS.CREATE_VO.TOOLTIP")),x.Q6J("matTooltipDisabled",X.shortNameCtrl.valid&&X.fullNameCtrl.valid),x.xp6(2),x.Q6J("disabled",X.shortNameCtrl.invalid||X.fullNameCtrl.invalid),x.xp6(1),x.hij(" ",x.lcZ(29,26,"DIALOGS.CREATE_VO.CREATE")," ")}}let ge=(()=>{class N{constructor(X,ce,Me,ue,Pe,tt){this.dialogRef=X,this.data=ce,this.notificator=Me,this.voService=ue,this.translate=Pe,this.router=tt,Pe.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(Ce=>this.successMessage=Ce)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new w.p4(null,[w.kI.required,w.kI.pattern("^[\\w.-]+$"),w.kI.maxLength(33)]),this.fullNameCtrl=new w.p4(null,[w.kI.required,w.kI.pattern(".*[\\S]+.*"),w.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe({next:X=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.router.navigate(["/organizations",X.id],{queryParamsHandling:"preserve"}),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return N.\u0275fac=function(X){return new(X||N)(x.Y36(M.so),x.Y36(M.WI),x.Y36(A.V6),x.Y36(e.YF),x.Y36(I.sK),x.Y36(F.F0))},N.\u0275cmp=x.Xpm({type:N,selectors:[["app-create-vo-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","vo-name-input","required","",3,"formControl"],["matInput","","data-cy","vo-shortname-input","required","",3,"formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","data-cy","create-vo-button","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(X,ce){if(1&X&&(x.YNc(0,$,1,0,"ng-template",null,0,x.W1O),x.TgZ(2,"div"),x.YNc(3,_e,30,28,"div",1),x.qZA()),2&X){const Me=x.MAs(1);x.xp6(2),x.Gre("",ce.theme," position-relative"),x.xp6(1),x.Q6J("perunWebAppsLoader",ce.loading)("perunWebAppsLoaderIndicator",Me)}},dependencies:[T.Nt,H.KE,H.hX,H.TO,w.Fj,w.JJ,w.Q7,w.oH,P.lW,M.uh,M.xY,M.H8,J.gM,fe.b,j.e,I.X$],styles:[".mat-mdc-dialog-content[_ngcontent-%COMP%]{height:auto}@media (min-width: 421px) and (max-width: 755px){.mat-mdc-dialog-content[_ngcontent-%COMP%]{height:150px}}@media (max-width: 420px){.mat-mdc-dialog-content[_ngcontent-%COMP%]{height:175px}}"]}),N})();var pe=p(10036),re=p(77968),v=p(36895),V=p(97392),W=p(68530),te=p(87831),ne=p(96214),ye=p(4235),ze=p(7434);function ke(N,U){if(1&N){const X=x.EpF();x.TgZ(0,"button",10),x.NdJ("click",function(){x.CHM(X);const Me=x.oxw();return x.KtG(Me.onCreateVo())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}2&N&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function $e(N,U){if(1&N){const X=x.EpF();x.TgZ(0,"button",11),x.NdJ("click",function(){x.CHM(X);const Me=x.oxw();return x.KtG(Me.onRemoveVo())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}if(2&N){const X=x.oxw();x.Q6J("disabled",0===X.selection.selected.length),x.xp6(1),x.hij(" ",x.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function Je(N,U){1&N&&x._UZ(0,"perun-web-apps-loading-table")}function Fe(N,U){if(1&N&&x._UZ(0,"perun-web-apps-vos-list",12),2&N){const X=x.oxw();x.Q6J("tableId",X.tableId)("displayedColumns",X.displayedColumns)("filterValue",X.filterValue)("recentIds",X.recentIds)("selection",X.selection)("vos",X.vos)}}const Ve=function(){return{color:"black"}};let le=(()=>{class N{constructor(X,ce,Me,ue,Pe,tt){this.sideMenuService=X,this.voService=ce,this.guiAuthResolver=Me,this.dialog=ue,this.notificator=Pe,this.apiRequest=tt,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=pe.tw}ngOnInit(){this.loading=!0,this.selection=new m.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","hierarchy","recent","shortName","name"]:["id","recent","hierarchy","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyEnrichedVos().subscribe({next:X=>{this.vos=X,this.recentIds=(0,f.vL)("vos"),this.loading=!1},error:X=>{"PrivilegeException"===X.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(X)}})}applyFilter(X){this.filterValue=X}onCreateVo(){const X=(0,f.kZ)();X.width="610px",X.data={theme:"vo-theme"},this.dialog.open(ge,X).afterClosed().subscribe(Me=>{Me&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const X=(0,f.kZ)();X.width="500px",X.data={theme:"vo-theme",vos:[this.selection.selected[0].vo]},this.dialog.open(S.o,X).afterClosed().subscribe(Me=>{Me&&this.refreshTable()})}}return N.id="VoSelectPageComponent",N.\u0275fac=function(X){return new(X||N)(x.Y36(re.D),x.Y36(e.YF),x.Y36(A.x4),x.Y36(M.uw),x.Y36(A.V6),x.Y36(A.F5))},N.\u0275cmp=x.Xpm({type:N,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(X,ce){2&X&&x.ekj("router-component",ce.true)},decls:14,vars:11,consts:[[1,"container-fluid","ps-xl-5","pe-xl-5","vo-theme"],[1,"page-title","d-flex"],["svgIcon","perun-vo-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["class","me-2 action-button","data-cy","new-vo-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","me-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["data-cy","new-vo-button","color","accent","mat-flat-button","",1,"me-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"me-2",3,"disabled","click"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos"]],template:function(X,ce){if(1&X&&(x.TgZ(0,"div",0),x._UZ(1,"perun-web-apps-back-button"),x.TgZ(2,"h1",1),x._UZ(3,"mat-icon",2),x._uU(4),x.ALo(5,"translate"),x.qZA(),x.TgZ(6,"perun-web-apps-refresh-button",3),x.NdJ("refresh",function(){return ce.refreshTable()}),x.qZA(),x.YNc(7,ke,3,3,"button",4),x.YNc(8,$e,3,4,"button",5),x.TgZ(9,"perun-web-apps-immediate-filter",6),x.NdJ("filter",function(ue){return ce.applyFilter(ue)}),x.qZA(),x.YNc(10,Je,1,0,"ng-template",null,7,x.W1O),x.TgZ(12,"div",8),x.YNc(13,Fe,1,6,"perun-web-apps-vos-list",9),x.qZA()()),2&X){const Me=x.MAs(11);x.xp6(3),x.Q6J("ngStyle",x.DdM(10,Ve)),x.xp6(1),x.hij(" ",x.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),x.xp6(3),x.Q6J("ngIf",ce.createAuth),x.xp6(1),x.Q6J("ngIf",ce.deleteAuth),x.xp6(1),x.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),x.xp6(4),x.Q6J("perunWebAppsLoader",ce.loading)("perunWebAppsLoaderIndicator",Me)}},dependencies:[v.O5,v.PC,V.Hw,P.lW,W.K,te.Z,ne.t,ye.W,ze.L,j.e,I.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),N})()},92013:(Qe,ae,p)=>{"use strict";var e=p(11481),f=p(94650),A=p(82761);let S=(()=>{class ie{}return ie.\u0275fac=function(O){return new(O||ie)},ie.\u0275cmp=f.Xpm({type:ie,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(O,Y){}}),ie})();var m=p(61744),M=p(80279),w=p(9244),x=p(21029),I=p(40034),F=p(77968),T=p(89383),H=p(7274),P=p(36895),J=p(24006),fe=p(97392),j=p(23267),$=p(4859),_e=p(56709),ge=p(10266),pe=p(68530),re=p(87831),v=p(25788),V=p(62109),W=p(74010),te=p(73358);function ne(ie,k){1&ie&&f._UZ(0,"perun-web-apps-loading-table")}const ye=function(){return["id","recent","shortName","name"]};function ze(ie,k){if(1&ie&&f._UZ(0,"perun-web-apps-vos-list",9),2&ie){const O=f.oxw(2);f.Q6J("pageSizeOptions",null)("displayedColumns",f.DdM(4,ye))("recentIds",O.recentIds)("vos",O.objects)}}function ke(ie,k){if(1&ie&&(f.TgZ(0,"span",7),f.YNc(1,ze,1,5,"perun-web-apps-vos-list",8),f.qZA()),2&ie){const O=f.oxw(),Y=f.MAs(10);f.xp6(1),f.Q6J("perunWebAppsLoader",O.loading)("perunWebAppsLoaderIndicator",Y)}}const $e=function(){return["id","recent","vo","name","description"]};function Je(ie,k){if(1&ie&&f._UZ(0,"perun-web-apps-groups-list",11),2&ie){const O=f.oxw(2);f.Q6J("pageSizeOptions",null)("displayedColumns",f.DdM(4,$e))("groups",O.objects)("recentIds",O.recentIds)}}function Fe(ie,k){if(1&ie&&(f.TgZ(0,"span",7),f.YNc(1,Je,1,5,"perun-web-apps-groups-list",10),f.qZA()),2&ie){const O=f.oxw(),Y=f.MAs(10);f.xp6(1),f.Q6J("perunWebAppsLoader",O.loading)("perunWebAppsLoaderIndicator",Y)}}const Ve=function(){return["id","recent","name","vo","facility"]};function le(ie,k){if(1&ie&&f._UZ(0,"perun-web-apps-resources-list",13),2&ie){const O=f.oxw(2);f.Q6J("pageSizeOptions",null)("displayedColumns",f.DdM(5,Ve))("resources",O.objects)("recentIds",O.recentIds)("routingVo",!0)}}function N(ie,k){if(1&ie&&(f.TgZ(0,"span",7),f.YNc(1,le,1,6,"perun-web-apps-resources-list",12),f.qZA()),2&ie){const O=f.oxw(),Y=f.MAs(10);f.xp6(1),f.Q6J("perunWebAppsLoader",O.loading)("perunWebAppsLoaderIndicator",Y)}}const U=function(){return["id","recent","name","description"]};function X(ie,k){if(1&ie&&f._UZ(0,"perun-web-apps-facilities-list",15),2&ie){const O=f.oxw(2);f.Q6J("displayedColumns",f.DdM(4,U))("facilities",O.objects)("pageSizeOptions",null)("recentIds",O.recentIds)}}function ce(ie,k){if(1&ie&&(f.TgZ(0,"span",7),f.YNc(1,X,1,5,"perun-web-apps-facilities-list",14),f.qZA()),2&ie){const O=f.oxw(),Y=f.MAs(10);f.xp6(1),f.Q6J("perunWebAppsLoader",O.loading)("perunWebAppsLoaderIndicator",Y)}}let Me=(()=>{class ie{constructor(O,Y,je){this.authzResolver=O,this.guiAuthResolver=Y,this.resourceService=je,this.objects=[],this.loading=!1,this.recentIds=[]}ngOnInit(){this.loading=!0,this.primaryObject=this.guiAuthResolver.getPrimaryObjectOfRole(this.roleName),this.svgIcon="perun-"+this.primaryObject.toLowerCase()+"-black",this.title="USER_DETAIL.DASHBOARD.CARD_TITLE_"+this.roleName,this.roleTooltipInfo="USER_DETAIL.DASHBOARD.ROLE_INFO_"+this.roleName,this.getObjects()}getObjects(){switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe(O=>{this.objects=O,this.recentIds=(0,w.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(O=>{this.objects=O,this.recentIds=(0,w.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(O=>{this.objects=O,this.recentIds=(0,w.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(O=>{this.objects=O.map(Y=>({facility:Y})),this.recentIds=(0,w.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(m.Ct),f.Y36(M.x4),f.Y36(m.xk))},ie.\u0275cmp=f.Xpm({type:ie,selectors:[["app-perun-web-apps-dashboard-card"]],inputs:{role:"role",roleName:"roleName"},decls:15,vars:11,consts:[[1,"card","p-3"],[1,"flex-column","card-title"],[1,"cover-image",3,"svgIcon"],["matTooltipPosition","above",3,"matTooltip"],[1,"dashboard-icon"],["spinner",""],["class","position-relative",4,"ngIf"],[1,"position-relative"],[3,"pageSizeOptions","displayedColumns","recentIds","vos",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"pageSizeOptions","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","displayedColumns","groups","recentIds",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"pageSizeOptions","displayedColumns","groups","recentIds"],[3,"pageSizeOptions","displayedColumns","resources","recentIds","routingVo",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"pageSizeOptions","displayedColumns","resources","recentIds","routingVo"],[3,"displayedColumns","facilities","pageSizeOptions","recentIds",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"displayedColumns","facilities","pageSizeOptions","recentIds"]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0)(1,"div",1),f._UZ(2,"mat-icon",2),f._uU(3),f.ALo(4,"translate"),f.TgZ(5,"span",3),f.ALo(6,"translate"),f.TgZ(7,"mat-icon",4),f._uU(8,"info_outline"),f.qZA()()(),f.YNc(9,ne,1,0,"ng-template",null,5,f.W1O),f.YNc(11,ke,2,2,"span",6),f.YNc(12,Fe,2,2,"span",6),f.YNc(13,N,2,2,"span",6),f.YNc(14,ce,2,2,"span",6),f.qZA()),2&O&&(f.xp6(2),f.Q6J("svgIcon",Y.svgIcon),f.xp6(1),f.hij(" ",f.lcZ(4,7,Y.title)," "),f.xp6(2),f.s9C("matTooltip",f.lcZ(6,9,Y.roleTooltipInfo)),f.xp6(6),f.Q6J("ngIf","Vo"===Y.primaryObject),f.xp6(1),f.Q6J("ngIf","Group"===Y.primaryObject),f.xp6(1),f.Q6J("ngIf","Resource"===Y.primaryObject),f.xp6(1),f.Q6J("ngIf","Facility"===Y.primaryObject))},dependencies:[P.O5,fe.Hw,ge.gM,pe.K,re.Z,v.W,V.C,W.X,te.e,T.X$],styles:[".dashboard-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}.card-title[_ngcontent-%COMP%]{font-size:1.4rem;flex-wrap:wrap}.cover-image[_ngcontent-%COMP%]{transform:scale(1.8);margin-left:.9rem;margin-right:.7rem}"]}),ie})();var ue=p(51572),Pe=p(3238),tt=p(98380),Ce=p(34198),at=p(55660);function Ue(ie,k){1&ie&&f._UZ(0,"mat-spinner",3)}function pt(ie,k){1&ie&&(f.TgZ(0,"perun-web-apps-alert",4),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ie&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}const z=function(ie){return[ie]};function st(ie,k){if(1&ie&&(f.TgZ(0,"div",7)(1,"a",8),f.NdJ("auxclick",function(Y){return Y.preventDefault()}),f.TgZ(2,"span",9),f._uU(3),f.qZA(),f._UZ(4,"mat-icon",10),f.TgZ(5,"p",11),f._uU(6),f.qZA()()()),2&ie){const O=k.$implicit;f.xp6(1),f.Gre("",O.style," item-itself"),f.s9C("matTooltip",O.tooltip),f.Q6J("perunWebAppsMiddleClickRouterLink",f.VKq(9,z,O.url))("routerLink",O.url),f.xp6(2),f.Oqu(O.type),f.xp6(1),f.Q6J("svgIcon",O.cssIcon),f.xp6(2),f.Oqu(O.label)}}function be(ie,k){if(1&ie&&(f.TgZ(0,"div",5),f.YNc(1,st,7,11,"div",6),f.qZA()),2&ie){const O=f.oxw();f.xp6(1),f.Q6J("ngForOf",O.items)}}let Ye=(()=>{class ie{constructor(O,Y,je,dt){this.vosManager=O,this.groupsManager=Y,this.authResolver=je,this.facilitiesManager=dt,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,w.j4)("recent");for(const O of this.recentItems)switch(O.type){case"Vo":this.vosIds.push(O.id);break;case"Group":this.groupsIds.push(O.id);break;case"Facility":this.facilitiesIds.push(O.id)}0===this.vosIds.length&&this.vosIds.push(-1),0===this.groupsIds.length&&this.groupsIds.push(-1),0===this.facilitiesIds.length&&this.facilitiesIds.push(-1),this.getVos()}getVos(){this.authResolver.isAuthorized("getVosByIds_List_policy",[])?this.vosManager.getVosByIds(this.vosIds).subscribe(O=>{this.vos=O,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(O=>{this.groups=O,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(O=>{this.facilities=O,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const O of this.recentItems)switch(O.type){case"Vo":{const Y=this.vos.filter(je=>je.id===O.id)[0];Y&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${Y.id}`,label:Y.name,tooltip:Y.name,style:"vo-btn",type:"Organization"});break}case"Group":{const Y=this.groups.filter(je=>je.id===O.id)[0];Y&&this.items.push({cssIcon:"perun-group",url:`/organizations/${Y.voId}/groups/${Y.id}`,label:Y.shortName,tooltip:`${O.voName} : ${Y.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const Y=this.facilities.filter(je=>je.id===O.id)[0];Y&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${Y.id}`,label:Y.name,tooltip:Y.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(m.YF),f.Y36(m.ff),f.Y36(M.x4),f.Y36(m.IQ))},ie.\u0275cmp=f.Xpm({type:ie,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:3,vars:3,consts:[["class","ms-auto me-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],[1,"ms-auto","me-auto"],["alert_type","info"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],[3,"perunWebAppsMiddleClickRouterLink","routerLink","matTooltip","auxclick"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(O,Y){1&O&&(f.YNc(0,Ue,1,0,"mat-spinner",0),f.YNc(1,pt,3,3,"perun-web-apps-alert",1),f.YNc(2,be,2,1,"div",2)),2&O&&(f.Q6J("ngIf",Y.loading),f.xp6(1),f.Q6J("ngIf",0===Y.items.length&&!Y.loading),f.xp6(1),f.Q6J("ngIf",Y.items.length>0))},dependencies:[P.sg,P.O5,A.rH,fe.Hw,ue.Ou,ge.gM,Pe.wG,tt.w,Ce.Y,at.Q,T.X$],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px;align-self:center}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;font-size:1.25rem;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word;text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}.item-type[_ngcontent-%COMP%]{font-size:.75rem}.truncate[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}"]}),ie})();var he=p(31359);function Re(ie,k){if(1&ie){const O=f.EpF();f.TgZ(0,"div")(1,"mat-checkbox",8),f.NdJ("change",function(je){const Lt=f.CHM(O).$implicit,kt=f.oxw();return f.KtG(je?kt.changeRoleView(Lt):null)}),f._uU(2),f.ALo(3,"translate"),f.qZA()()}if(2&ie){const O=k.$implicit,Y=f.oxw();f.xp6(1),f.Q6J("checked",Y.isRoleShowed(O)),f.xp6(1),f.Oqu(f.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+O))}}function He(ie,k){if(1&ie){const O=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){f.CHM(O);const je=f.oxw(2);return f.KtG(je.rightSettingOpened=!0)}),f.TgZ(1,"mat-icon"),f._uU(2,"settings"),f.qZA()()}}function ve(ie,k){1&ie&&(f.TgZ(0,"span"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ie&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function Oe(ie,k){1&ie&&(f.TgZ(0,"span"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ie&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function r(ie,k){if(1&ie){const O=f.EpF();f.TgZ(0,"button",23),f.NdJ("click",function(){f.CHM(O);const je=f.oxw(3);return f.KtG(je.goToUserProfile())}),f.TgZ(1,"mat-icon",24),f._uU(2,"exit_to_app"),f.qZA(),f._uU(3),f.ALo(4,"translate"),f.qZA()}if(2&ie){const O=f.oxw(3);f.xp6(3),f.AsE("",f.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",O.userProfileName," ")}}const u=function(){return["/myProfile"]};function _(ie,k){if(1&ie&&(f.TgZ(0,"div")(1,"div",16)(2,"div",17),f._uU(3),f.ALo(4,"translate"),f.qZA(),f.TgZ(5,"div",18),f.YNc(6,ve,3,3,"span",14),f.YNc(7,Oe,3,3,"span",14),f.qZA(),f.TgZ(8,"div",19)(9,"button",20),f._UZ(10,"mat-icon",21),f._uU(11),f.ALo(12,"translate"),f.qZA(),f.YNc(13,r,5,4,"button",22),f.qZA()()()),2&ie){const O=f.oxw(2);f.xp6(3),f.hij(" ",f.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),f.xp6(3),f.Q6J("ngIf",!O.userProfileUrl),f.xp6(1),f.Q6J("ngIf",O.userProfileUrl),f.xp6(2),f.Q6J("routerLink",f.DdM(10,u)),f.xp6(2),f.hij(" ",f.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),f.xp6(2),f.Q6J("ngIf",O.userProfileUrl)}}function C(ie,k){1&ie&&(f.TgZ(0,"span")(1,"div",3),f._uU(2),f.ALo(3,"translate"),f.qZA(),f._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),f.qZA()),2&ie&&(f.xp6(2),f.hij(" ",f.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function h(ie,k){1&ie&&(f.TgZ(0,"div",27),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ie&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function o(ie,k){if(1&ie&&f._UZ(0,"app-perun-web-apps-dashboard-card",30),2&ie){const O=f.oxw().$implicit,Y=f.oxw(3);f.Q6J("roleName",O)("role",Y.roles[O])}}function n(ie,k){if(1&ie&&(f.TgZ(0,"div",28),f.YNc(1,o,1,2,"app-perun-web-apps-dashboard-card",29),f.qZA()),2&ie){const O=k.$implicit,Y=f.oxw(3);f.xp6(1),f.Q6J("ngIf",Y.isRoleShowed(O))}}function t(ie,k){if(1&ie&&(f.TgZ(0,"div"),f.YNc(1,C,5,3,"span",14),f.YNc(2,h,3,3,"div",25),f.TgZ(3,"div"),f.YNc(4,n,2,1,"div",26),f.qZA()()),2&ie){const O=f.oxw(2);f.xp6(1),f.Q6J("ngIf",O.recentlyViewedShow),f.xp6(1),f.Q6J("ngIf",O.rolesToHide.toString()!==O.roleNames.toString()),f.xp6(2),f.Q6J("ngForOf",O.roleNames)}}function i(ie,k){if(1&ie&&(f.TgZ(0,"div",9)(1,"h1",10),f._UZ(2,"mat-icon",11),f.TgZ(3,"span",12),f._uU(4),f.ALo(5,"translate"),f.ALo(6,"userFullName"),f.qZA(),f.YNc(7,He,3,0,"button",13),f.qZA(),f.YNc(8,_,14,11,"div",14),f.YNc(9,t,5,3,"div",14),f.qZA()),2&ie){const O=f.oxw();f.xp6(4),f.AsE("",f.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",f.lcZ(6,7,O.user),""),f.xp6(3),f.Q6J("ngIf",!O.isOnlySelfRole),f.xp6(1),f.Q6J("ngIf",O.isOnlySelfRole),f.xp6(1),f.Q6J("ngIf",!O.isOnlySelfRole)}}let a=(()=>{class ie{constructor(O,Y,je,dt,Lt,kt,Qt,ni,wi,Ei){this.userManager=O,this.storeService=Y,this.sideMenuService=je,this.route=dt,this.router=Lt,this.notificator=kt,this.translateService=Qt,this.dialog=ni,this.apiRequestConfiguration=wi,this.otherApplicationService=Ei,this.roles={},this.userProfileUrl="",this.isOnlySelfRole=!1,this.rightSettingOpened=!1,this.recentlyViewedShow=!0,this.rolesToHide=[],this.allowedRoles=["VOADMIN","GROUPADMIN","FACILITYADMIN","SPONSOR","RESOURCEADMIN","TOPGROUPCREATOR","VOOBSERVER","GROUPOBSERVER","GROUPMEMBERSHIPMANAGER","FACILITYOBSERVER","RESOURCEOBSERVER"],Qt.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(qi=>this.mailSuccessMessage=qi)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const O=Object.keys(this.roles);this.isOnlySelfRole=O.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(Y=>O.includes(Y)),this.getDashboardSettings()}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}changeRoleView(O){if(this.isRoleShowed(O)){const Y=[];for(const je of this.roleNames)this.isRoleShowed(je)||Y.push(je),je===O&&Y.push(je);this.rolesToHide=Y}else this.rolesToHide=this.rolesToHide.filter(Y=>Y!==O);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(O){return!this.rolesToHide.includes(O)}validatePreferredMailChange(){const O=this.route.snapshot.queryParamMap,Y=O.get("token"),je=O.get("u");Y&&je&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(Y,Number.parseInt(je,10)).subscribe({next:()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0,queryParamsHandling:"preserve"})},error:()=>{const dt=(0,w.kZ)();dt.width="600px",this.dialog.open(x.qD,dt).afterClosed().subscribe(()=>{this.getDashboardSettings()})}}))}getDashboardSettings(){const O=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===O||O;const Y=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===Y?[]:Y}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication(I.p.Profile),this.userProfileName=this.storeService.getProperty("profile_label_en")}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(m.Fv),f.Y36(M.d6),f.Y36(F.D),f.Y36(A.gz),f.Y36(A.F0),f.Y36(M.V6),f.Y36(T.sK),f.Y36(H.uw),f.Y36(M.F5),f.Y36(M.jq))},ie.\u0275cmp=f.Xpm({type:ie,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(O,Y){2&O&&f.ekj("router-component",Y.true)},decls:16,vars:13,consts:[["hasBackdrop","true",1,"dashboard"],["mode","over","position","end",3,"opened","openedChange"],[1,"m-4","user-theme"],[1,"page-subtitle"],[3,"ngModel","ngModelChange","change"],[1,"text-bigger","mt-1","mb-1"],[4,"ngFor","ngForOf"],["class","container-fluid ps-xl-5 pe-xl-5 user-theme",4,"ngIf"],[3,"checked","change"],[1,"container-fluid","ps-xl-5","pe-xl-5","user-theme"],[1,"page-title","d-flex"],["svgIcon","perun-home-white",1,"home-image","perun-icon"],["data-cy","dashboard-welcome",1,"pt-1"],["class","ms-auto text-bigger","mat-stroked-button","",3,"click",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"ms-auto","text-bigger",3,"click"],[1,"card","m-3","p-5"],[1,"text-align"],[1,"text-align","pt-3"],[1,"mx-auto","pt-3"],["queryParamsHandling","merge","mat-stroked-button","",1,"text-bigger",3,"routerLink"],["svgIcon","perun-user-dark",1,"me-1","user-icon","perun-icon"],["class","text-bigger ms-2 mt-2","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"text-bigger","ms-2","mt-2",3,"click"],[1,"me-1"],["class","page-subtitle mt-4",4,"ngIf"],["class","mb-3",4,"ngFor","ngForOf"],[1,"page-subtitle","mt-4"],[1,"mb-3"],[3,"roleName","role",4,"ngIf"],[3,"roleName","role"]],template:function(O,Y){1&O&&(f.TgZ(0,"mat-sidenav-container",0)(1,"mat-sidenav",1),f.NdJ("openedChange",function(dt){return Y.rightSettingOpened=dt}),f.TgZ(2,"div",2)(3,"div",3),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div")(7,"mat-checkbox",4),f.NdJ("ngModelChange",function(dt){return Y.recentlyViewedShow=dt})("change",function(dt){return dt?Y.recentlyViewedChanged():null}),f._uU(8),f.ALo(9,"translate"),f.qZA()(),f.TgZ(10,"div",5),f._uU(11),f.ALo(12,"translate"),f.qZA(),f.YNc(13,Re,4,4,"div",6),f.qZA()(),f.TgZ(14,"mat-sidenav-content"),f.YNc(15,i,10,9,"div",7),f.qZA()()),2&O&&(f.xp6(1),f.Q6J("opened",Y.rightSettingOpened),f.xp6(3),f.Oqu(f.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),f.xp6(3),f.Q6J("ngModel",Y.recentlyViewedShow),f.xp6(1),f.Oqu(f.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),f.xp6(3),f.Oqu(f.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),f.xp6(2),f.Q6J("ngForOf",Y.roleNames),f.xp6(2),f.Q6J("ngIf",void 0!==Y.user))},dependencies:[P.sg,P.O5,A.rH,J.JJ,J.On,fe.Hw,j.JX,j.TM,j.Rh,$.lW,_e.oG,Me,Ye,T.X$,he.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;-moz-column-gap:1rem;column-gap:1rem;margin:0}.dashboard-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0 1rem 1rem 0;display:inline-block;min-width:300px;width:100%}.home-image[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.7rem;margin-left:.6rem}.text-align[_ngcontent-%COMP%]{text-align:center;font-size:1.25rem}.text-bigger[_ngcontent-%COMP%]{font-size:1.1rem}.user-icon[_ngcontent-%COMP%]{vertical-align:top}.dashboard[_ngcontent-%COMP%]{position:relative;min-height:calc(100vh - 234px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),ie})();var c=p(4235);let l=(()=>{class ie{}return ie.\u0275fac=function(O){return new(O||ie)},ie.\u0275cmp=f.Xpm({type:ie,selectors:[["app-perun-web-apps-not-found-page"]],decls:5,vars:3,consts:[[1,"container-fluid","ps-xl-5","pe-xl-5"],[1,"page-title"]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0),f._UZ(1,"perun-web-apps-back-button"),f.TgZ(2,"h1",1),f._uU(3),f.ALo(4,"translate"),f.qZA()()),2&O&&(f.xp6(3),f.Oqu(f.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},dependencies:[c.W,T.X$]}),ie})();var d=p(37433),s=p(59549),E=p(284),B=p(63189),q=p(46860);let qe=(()=>{class ie{}return ie.\u0275fac=function(O){return new(O||ie)},ie.\u0275mod=f.oAB({type:ie}),ie.\u0275inj=f.cJS({imports:[P.ez,$.ot,fe.Ps,A.Bz,d.ez,T.aw,s.lN,J.UX,E.c,B.r,q.A]}),ie})(),it=(()=>{class ie{constructor(O,Y){this.auth=O,this.router=Y}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(M.e8),f.Y36(A.F0))},ie.\u0275cmp=f.Xpm({type:ie,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ms-auto","me-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"button",4),f.NdJ("click",function(){return Y.startAuth()}),f._uU(7),f.ALo(8,"translate"),f.TgZ(9,"mat-icon"),f._uU(10," login "),f.qZA()()()()()),2&O&&(f.xp6(4),f.hij(" ",f.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),f.xp6(3),f.hij(" ",f.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[$.lW,fe.Hw,T.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),ie})();var xt=p(41619);function ht(ie,k){if(1&ie&&(f.TgZ(0,"div",8),f._UZ(1,"div",9),f.qZA()),2&ie){const O=f.oxw();f.xp6(1),f.Q6J("innerHTML",O.logo,f.oJD)}}function _t(ie,k){if(1&ie&&(f.TgZ(0,"div",10),f._UZ(1,"div",11)(2,"mat-icon",12),f.qZA()),2&ie){const O=f.oxw();f.xp6(1),f.Q6J("innerHTML",O.logo,f.oJD)}}const Ee=function(ie){return{color:ie}};function we(ie,k){if(1&ie&&(f.TgZ(0,"p",13),f._uU(1),f.qZA()),2&ie){const O=f.oxw();f.Q6J("ngStyle",f.VKq(2,Ee,O.textColor)),f.xp6(1),f.hij(" ",O.headerTitle," ")}}const de=function(ie,k){return{background:ie,color:k}},Ae=function(ie,k){return{"min-height":ie,"background-color":k}};let Te=(()=>{class ie{constructor(O,Y,je,dt){this.storeService=O,this.sanitizer=Y,this.preferredLangService=je,this.translateService=dt,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const O=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(O)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(M.d6),f.Y36(e.H7),f.Y36(M.BN),f.Y36(T.sK))},ie.\u0275cmp=f.Xpm({type:ie,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ms-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ms-2","me-2"],[1,"ms-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0),f.YNc(1,ht,2,1,"div",1),f.YNc(2,_t,3,1,"div",2),f.YNc(3,we,2,4,"p",3),f.qZA(),f.TgZ(4,"div",4)(5,"div",5)(6,"div",6),f._UZ(7,"router-outlet"),f.qZA(),f.TgZ(8,"div",7),f._UZ(9,"perun-web-apps-footer"),f.qZA()()()),2&O&&(f.Q6J("ngStyle",f.WLB(5,de,Y.headerBackgroundColor,Y.headerTextColor)),f.xp6(1),f.Q6J("ngIf","admin-gui"===Y.application||"user-profile"===Y.application||"consolidator"===Y.application),f.xp6(1),f.Q6J("ngIf","publications"===Y.application),f.xp6(1),f.Q6J("ngIf",!!Y.headerTitle),f.xp6(2),f.Q6J("ngStyle",f.WLB(8,Ae,Y.getContentInnerMinHeight(),Y.contentBackgroundColor)))},dependencies:[P.O5,P.PC,fe.Hw,A.lC,xt.$],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),ie})();function ut(ie,k){1&ie&&(f.TgZ(0,"perun-web-apps-alert",9),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ie&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const Ht=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"api-callback",component:S},{path:"login",component:it},{path:"service-access",component:(()=>{class ie{constructor(O,Y,je){this.authzService=O,this.auth=Y,this.router=je,this.usernameCtrl=new J.NI(null,[J.kI.required]),this.passwordCtrl=new J.NI(null,[J.kI.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:O=>{sessionStorage.setItem("baPrincipal",JSON.stringify(O)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(m.Ct),f.Y36(M.e8),f.Y36(A.F0))},ie.\u0275cmp=f.Xpm({type:ie,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ms-auto","me-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline","subscriptSizing","dynamic"],["matInput","","required","",3,"formControl","keyup.enter"],["appearance","outline","subscriptSizing","dynamic",1,"my-3"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.YNc(6,ut,3,3,"perun-web-apps-alert",3),f.TgZ(7,"mat-form-field",4)(8,"mat-label"),f._uU(9),f.ALo(10,"translate"),f.qZA(),f.TgZ(11,"input",5),f.NdJ("keyup.enter",function(){return Y.startAuth()}),f.qZA(),f.TgZ(12,"mat-error"),f._uU(13),f.ALo(14,"translate"),f.qZA()(),f.TgZ(15,"mat-form-field",6)(16,"mat-label"),f._uU(17),f.ALo(18,"translate"),f.qZA(),f.TgZ(19,"input",7),f.NdJ("keyup.enter",function(){return Y.startAuth()}),f.qZA(),f.TgZ(20,"mat-error"),f._uU(21),f.ALo(22,"translate"),f.qZA()(),f.TgZ(23,"button",8),f.NdJ("click",function(){return Y.startAuth()}),f._uU(24),f.ALo(25,"translate"),f.TgZ(26,"mat-icon"),f._uU(27," login "),f.qZA()()()()()),2&O&&(f.xp6(4),f.Oqu(f.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),f.xp6(2),f.Q6J("ngIf",Y.wrongUsernameOrPassword),f.xp6(3),f.Oqu(f.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),f.xp6(2),f.Q6J("formControl",Y.usernameCtrl),f.xp6(2),f.hij(" ",f.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),f.xp6(4),f.Oqu(f.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),f.xp6(2),f.Q6J("formControl",Y.passwordCtrl)("type","password"),f.xp6(2),f.hij(" ",f.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),f.xp6(2),f.Q6J("disabled",Y.usernameCtrl.invalid||Y.passwordCtrl.invalid),f.xp6(1),f.hij(" ",f.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[P.O5,$.lW,fe.Hw,s.KE,s.hX,s.TO,J.Fj,J.JJ,J.Q7,J.oH,E.Nt,tt.w,T.X$],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-mdc-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),ie})()},{path:"organizations",loadChildren:()=>Promise.all([p.e(283),p.e(109),p.e(907),p.e(254)]).then(p.bind(p,74254)).then(ie=>ie.VosModule)},{path:"admin",loadChildren:()=>Promise.all([p.e(283),p.e(338),p.e(109),p.e(275)]).then(p.bind(p,52275)).then(ie=>ie.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([p.e(283),p.e(338),p.e(109),p.e(275),p.e(907),p.e(775)]).then(p.bind(p,27775)).then(ie=>ie.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([p.e(283),p.e(338)]).then(p.bind(p,38338)).then(ie=>ie.UsersModule)},{path:"home",component:a},{path:"notAuthorized",component:d.y9},{path:"**",component:l}];let Mt=(()=>{class ie{}return ie.\u0275fac=function(O){return new(O||ie)},ie.\u0275mod=f.oAB({type:ie}),ie.\u0275inj=f.cJS({imports:[A.Bz.forRoot(Ht,{preloadingStrategy:A.GZ,scrollPositionRestoration:"enabled"}),A.Bz]}),ie})();var It=p(72077),ai=p(14264);class pi{constructor(k,O="/assets/i18n/",Y=".json"){this.http=k,this.prefix=O,this.suffix=Y}getTranslation(k){return this.http.get(`${this.prefix}${k}${this.suffix}`)}}var Ut=p(80529),Tt=p(37340);function We(ie){return new f.vHH(3e3,!1)}function dr(){return typeof window<"u"&&typeof window.document<"u"}function On(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function hn(ie){switch(ie.length){case 0:return new Tt.ZN;case 1:return ie[0];default:return new Tt.ZE(ie)}}function rr(ie,k,O,Y,je=new Map,dt=new Map){const Lt=[],kt=[];let Qt=-1,ni=null;if(Y.forEach(wi=>{const Ei=wi.get("offset"),qi=Ei==Qt,Ji=qi&&ni||new Map;wi.forEach((Oi,Fi)=>{let cn=Fi,Cn=Oi;if("offset"!==Fi)switch(cn=k.normalizePropertyName(cn,Lt),Cn){case Tt.k1:Cn=je.get(Fi);break;case Tt.l3:Cn=dt.get(Fi);break;default:Cn=k.normalizeStyleValue(Fi,cn,Cn,Lt)}Ji.set(cn,Cn)}),qi||kt.push(Ji),ni=Ji,Qt=Ei}),Lt.length)throw function ci(ie){return new f.vHH(3502,!1)}();return kt}function fn(ie,k,O,Y){switch(k){case"start":ie.onStart(()=>Y(O&&Ki(O,"start",ie)));break;case"done":ie.onDone(()=>Y(O&&Ki(O,"done",ie)));break;case"destroy":ie.onDestroy(()=>Y(O&&Ki(O,"destroy",ie)))}}function Ki(ie,k,O){const dt=Yr(ie.element,ie.triggerName,ie.fromState,ie.toState,k||ie.phaseName,O.totalTime??ie.totalTime,!!O.disabled),Lt=ie._data;return null!=Lt&&(dt._data=Lt),dt}function Yr(ie,k,O,Y,je="",dt=0,Lt){return{element:ie,triggerName:k,fromState:O,toState:Y,phaseName:je,totalTime:dt,disabled:!!Lt}}function mn(ie,k,O){let Y=ie.get(k);return Y||ie.set(k,Y=O),Y}function Nr(ie){const k=ie.indexOf(":");return[ie.substring(1,k),ie.slice(k+1)]}let ar=(ie,k)=>!1,Gn=(ie,k,O)=>[],Un=null;function St(ie){const k=ie.parentNode||ie.host;return k===Un?null:k}(On()||typeof Element<"u")&&(dr()?(Un=(()=>document.documentElement)(),ar=(ie,k)=>{for(;k;){if(k===ie)return!0;k=St(k)}return!1}):ar=(ie,k)=>ie.contains(k),Gn=(ie,k,O)=>{if(O)return Array.from(ie.querySelectorAll(k));const Y=ie.querySelector(k);return Y?[Y]:[]});let jt=null,Jt=!1;const Qi=ar,Pn=Gn;let zn=(()=>{class ie{validateStyleProperty(O){return function ui(ie){jt||(jt=function Li(){return typeof document<"u"?document.body:null}()||{},Jt=!!jt.style&&"WebkitAppearance"in jt.style);let k=!0;return jt.style&&!function lt(ie){return"ebkit"==ie.substring(1,6)}(ie)&&(k=ie in jt.style,!k&&Jt&&(k="Webkit"+ie.charAt(0).toUpperCase()+ie.slice(1)in jt.style)),k}(O)}matchesElement(O,Y){return!1}containsElement(O,Y){return Qi(O,Y)}getParentElement(O){return St(O)}query(O,Y,je){return Pn(O,Y,je)}computeStyle(O,Y,je){return je||""}animate(O,Y,je,dt,Lt,kt=[],Qt){return new Tt.ZN(je,dt)}}return ie.\u0275fac=function(O){return new(O||ie)},ie.\u0275prov=f.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),$n=(()=>{class ie{}return ie.NOOP=new zn,ie})();const wr=1e3,ct="ng-enter",Yt="ng-leave",Ge="ng-trigger",Rt=".ng-trigger",zt="ng-animating",_i=".ng-animating";function Ti(ie){if("number"==typeof ie)return ie;const k=ie.match(/^(-?[\.\d]+)(m?s)/);return!k||k.length<2?0:rn(parseFloat(k[1]),k[2])}function rn(ie,k){return"s"===k?ie*wr:ie}function tn(ie,k,O){return ie.hasOwnProperty("duration")?ie:function En(ie,k,O){let je,dt=0,Lt="";if("string"==typeof ie){const kt=ie.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===kt)return k.push(We()),{duration:0,delay:0,easing:""};je=rn(parseFloat(kt[1]),kt[2]);const Qt=kt[3];null!=Qt&&(dt=rn(parseFloat(Qt),kt[4]));const ni=kt[5];ni&&(Lt=ni)}else je=ie;if(!O){let kt=!1,Qt=k.length;je<0&&(k.push(function oe(){return new f.vHH(3100,!1)}()),kt=!0),dt<0&&(k.push(function et(){return new f.vHH(3101,!1)}()),kt=!0),kt&&k.splice(Qt,0,We())}return{duration:je,delay:dt,easing:Lt}}(ie,k,O)}function or(ie,k={}){return Object.keys(ie).forEach(O=>{k[O]=ie[O]}),k}function Aa(ie){const k=new Map;return Object.keys(ie).forEach(O=>{k.set(O,ie[O])}),k}function Xn(ie,k=new Map,O){if(O)for(let[Y,je]of O)k.set(Y,je);for(let[Y,je]of ie)k.set(Y,je);return k}function Jr(ie,k,O){return O?k+":"+O+";":""}function oa(ie){let k="";for(let O=0;O{const dt=Ir(je);O&&!O.has(je)&&O.set(je,ie.style[dt]),ie.style[dt]=Y}),On()&&oa(ie))}function Kr(ie,k){ie.style&&(k.forEach((O,Y)=>{const je=Ir(Y);ie.style[je]=""}),On()&&oa(ie))}function Er(ie){return Array.isArray(ie)?1==ie.length?ie[0]:(0,Tt.vP)(ie):ie}const $r=new RegExp("{{\\s*(.+?)\\s*}}","g");function sa(ie){let k=[];if("string"==typeof ie){let O;for(;O=$r.exec(ie);)k.push(O[1]);$r.lastIndex=0}return k}function Xr(ie,k,O){const Y=ie.toString(),je=Y.replace($r,(dt,Lt)=>{let kt=k[Lt];return null==kt&&(O.push(function Ft(ie){return new f.vHH(3003,!1)}()),kt=""),kt.toString()});return je==Y?ie:je}function yn(ie){const k=[];let O=ie.next();for(;!O.done;)k.push(O.value),O=ie.next();return k}const Nn=/-+([a-z0-9])/g;function Ir(ie){return ie.replace(Nn,(...k)=>k[1].toUpperCase())}function gn(ie){return ie.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function sn(ie,k,O){switch(k.type){case 7:return ie.visitTrigger(k,O);case 0:return ie.visitState(k,O);case 1:return ie.visitTransition(k,O);case 2:return ie.visitSequence(k,O);case 3:return ie.visitGroup(k,O);case 4:return ie.visitAnimate(k,O);case 5:return ie.visitKeyframes(k,O);case 6:return ie.visitStyle(k,O);case 8:return ie.visitReference(k,O);case 9:return ie.visitAnimateChild(k,O);case 10:return ie.visitAnimateRef(k,O);case 11:return ie.visitQuery(k,O);case 12:return ie.visitStagger(k,O);default:throw function yt(ie){return new f.vHH(3004,!1)}()}}function Ca(ie,k){return window.getComputedStyle(ie)[k]}const pr="*";function Oa(ie,k){const O=[];return"string"==typeof ie?ie.split(/\s*,\s*/).forEach(Y=>function Ui(ie,k,O){if(":"==ie[0]){const Qt=function Qa(ie,k){switch(ie){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(O,Y)=>parseFloat(Y)>parseFloat(O);case":decrement":return(O,Y)=>parseFloat(Y) *"}}(ie,O);if("function"==typeof Qt)return void k.push(Qt);ie=Qt}const Y=ie.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Y||Y.length<4)return O.push(function Gt(ie){return new f.vHH(3015,!1)}()),k;const je=Y[1],dt=Y[2],Lt=Y[3];k.push(Be(je,Lt));"<"==dt[0]&&!(je==pr&&Lt==pr)&&k.push(Be(Lt,je))}(Y,O,k)):O.push(ie),O}const Ke=new Set(["true","1"]),Ze=new Set(["false","0"]);function Be(ie,k){const O=Ke.has(ie)||Ze.has(ie),Y=Ke.has(k)||Ze.has(k);return(je,dt)=>{let Lt=ie==pr||ie==je,kt=k==pr||k==dt;return!Lt&&O&&"boolean"==typeof je&&(Lt=je?Ke.has(ie):Ze.has(ie)),!kt&&Y&&"boolean"==typeof dt&&(kt=dt?Ke.has(k):Ze.has(k)),Lt&&kt}}const Xt=new RegExp("s*:selfs*,?","g");function mi(ie,k,O,Y){return new oi(ie).build(k,O,Y)}class oi{constructor(k){this._driver=k}build(k,O,Y){const je=new ko(O);return this._resetContextStyleTimingState(je),sn(this,Er(k),je)}_resetContextStyleTimingState(k){k.currentQuerySelector="",k.collectedStyles=new Map,k.collectedStyles.set("",new Map),k.currentTime=0}visitTrigger(k,O){let Y=O.queryCount=0,je=O.depCount=0;const dt=[],Lt=[];return"@"==k.name.charAt(0)&&O.errors.push(function li(){return new f.vHH(3006,!1)}()),k.definitions.forEach(kt=>{if(this._resetContextStyleTimingState(O),0==kt.type){const Qt=kt,ni=Qt.name;ni.toString().split(/\s*,\s*/).forEach(wi=>{Qt.name=wi,dt.push(this.visitState(Qt,O))}),Qt.name=ni}else if(1==kt.type){const Qt=this.visitTransition(kt,O);Y+=Qt.queryCount,je+=Qt.depCount,Lt.push(Qt)}else O.errors.push(function Di(){return new f.vHH(3007,!1)}())}),{type:7,name:k.name,states:dt,transitions:Lt,queryCount:Y,depCount:je,options:null}}visitState(k,O){const Y=this.visitStyle(k.styles,O),je=k.options&&k.options.params||null;if(Y.containsDynamicStyles){const dt=new Set,Lt=je||{};Y.styles.forEach(kt=>{kt instanceof Map&&kt.forEach(Qt=>{sa(Qt).forEach(ni=>{Lt.hasOwnProperty(ni)||dt.add(ni)})})}),dt.size&&(yn(dt.values()),O.errors.push(function At(ie,k){return new f.vHH(3008,!1)}()))}return{type:0,name:k.name,style:Y,options:je?{params:je}:null}}visitTransition(k,O){O.queryCount=0,O.depCount=0;const Y=sn(this,Er(k.animation),O);return{type:1,matchers:Oa(k.expr,O.errors),animation:Y,queryCount:O.queryCount,depCount:O.depCount,options:yr(k.options)}}visitSequence(k,O){return{type:2,steps:k.steps.map(Y=>sn(this,Y,O)),options:yr(k.options)}}visitGroup(k,O){const Y=O.currentTime;let je=0;const dt=k.steps.map(Lt=>{O.currentTime=Y;const kt=sn(this,Lt,O);return je=Math.max(je,O.currentTime),kt});return O.currentTime=je,{type:3,steps:dt,options:yr(k.options)}}visitAnimate(k,O){const Y=function Ao(ie,k){if(ie.hasOwnProperty("duration"))return ie;if("number"==typeof ie)return fr(tn(ie,k).duration,0,"");const O=ie;if(O.split(/\s+/).some(dt=>"{"==dt.charAt(0)&&"{"==dt.charAt(1))){const dt=fr(0,0,"");return dt.dynamic=!0,dt.strValue=O,dt}const je=tn(O,k);return fr(je.duration,je.delay,je.easing)}(k.timings,O.errors);O.currentAnimateTimings=Y;let je,dt=k.styles?k.styles:(0,Tt.oB)({});if(5==dt.type)je=this.visitKeyframes(dt,O);else{let Lt=k.styles,kt=!1;if(!Lt){kt=!0;const ni={};Y.easing&&(ni.easing=Y.easing),Lt=(0,Tt.oB)(ni)}O.currentTime+=Y.duration+Y.delay;const Qt=this.visitStyle(Lt,O);Qt.isEmptyStep=kt,je=Qt}return O.currentAnimateTimings=null,{type:4,timings:Y,style:je,options:null}}visitStyle(k,O){const Y=this._makeStyleAst(k,O);return this._validateStyleAst(Y,O),Y}_makeStyleAst(k,O){const Y=[],je=Array.isArray(k.styles)?k.styles:[k.styles];for(let kt of je)"string"==typeof kt?kt===Tt.l3?Y.push(kt):O.errors.push(new f.vHH(3002,!1)):Y.push(Aa(kt));let dt=!1,Lt=null;return Y.forEach(kt=>{if(kt instanceof Map&&(kt.has("easing")&&(Lt=kt.get("easing"),kt.delete("easing")),!dt))for(let Qt of kt.values())if(Qt.toString().indexOf("{{")>=0){dt=!0;break}}),{type:6,styles:Y,easing:Lt,offset:k.offset,containsDynamicStyles:dt,options:null}}_validateStyleAst(k,O){const Y=O.currentAnimateTimings;let je=O.currentTime,dt=O.currentTime;Y&&dt>0&&(dt-=Y.duration+Y.delay),k.styles.forEach(Lt=>{"string"!=typeof Lt&&Lt.forEach((kt,Qt)=>{const ni=O.collectedStyles.get(O.currentQuerySelector),wi=ni.get(Qt);let Ei=!0;wi&&(dt!=je&&dt>=wi.startTime&&je<=wi.endTime&&(O.errors.push(function Bt(ie,k,O,Y,je){return new f.vHH(3010,!1)}()),Ei=!1),dt=wi.startTime),Ei&&ni.set(Qt,{startTime:dt,endTime:je}),O.options&&function Qr(ie,k,O){const Y=k.params||{},je=sa(ie);je.length&&je.forEach(dt=>{Y.hasOwnProperty(dt)||O.push(function rt(ie){return new f.vHH(3001,!1)}())})}(kt,O.options,O.errors)})})}visitKeyframes(k,O){const Y={type:5,styles:[],options:null};if(!O.currentAnimateTimings)return O.errors.push(function Kt(){return new f.vHH(3011,!1)}()),Y;let dt=0;const Lt=[];let kt=!1,Qt=!1,ni=0;const wi=k.steps.map(Cn=>{const Bn=this._makeStyleAst(Cn,O);let br=null!=Bn.offset?Bn.offset:function Ln(ie){if("string"==typeof ie)return null;let k=null;if(Array.isArray(ie))ie.forEach(O=>{if(O instanceof Map&&O.has("offset")){const Y=O;k=parseFloat(Y.get("offset")),Y.delete("offset")}});else if(ie instanceof Map&&ie.has("offset")){const O=ie;k=parseFloat(O.get("offset")),O.delete("offset")}return k}(Bn.styles),ir=0;return null!=br&&(dt++,ir=Bn.offset=br),Qt=Qt||ir<0||ir>1,kt=kt||ir0&&dt{const br=qi>0?Bn==Ji?1:qi*Bn:Lt[Bn],ir=br*cn;O.currentTime=Oi+Fi.delay+ir,Fi.duration=ir,this._validateStyleAst(Cn,O),Cn.offset=br,Y.styles.push(Cn)}),Y}visitReference(k,O){return{type:8,animation:sn(this,Er(k.animation),O),options:yr(k.options)}}visitAnimateChild(k,O){return O.depCount++,{type:9,options:yr(k.options)}}visitAnimateRef(k,O){return{type:10,animation:this.visitReference(k.animation,O),options:yr(k.options)}}visitQuery(k,O){const Y=O.currentQuerySelector,je=k.options||{};O.queryCount++,O.currentQuery=k;const[dt,Lt]=function zi(ie){const k=!!ie.split(/\s*,\s*/).find(O=>":self"==O);return k&&(ie=ie.replace(Xt,"")),ie=ie.replace(/@\*/g,Rt).replace(/@\w+/g,O=>Rt+"-"+O.slice(1)).replace(/:animating/g,_i),[ie,k]}(k.selector);O.currentQuerySelector=Y.length?Y+" "+dt:dt,mn(O.collectedStyles,O.currentQuerySelector,new Map);const kt=sn(this,Er(k.animation),O);return O.currentQuery=null,O.currentQuerySelector=Y,{type:11,selector:dt,limit:je.limit||0,optional:!!je.optional,includeSelf:Lt,animation:kt,originalSelector:k.selector,options:yr(k.options)}}visitStagger(k,O){O.currentQuery||O.errors.push(function Ri(){return new f.vHH(3013,!1)}());const Y="full"===k.timings?{duration:0,delay:0,easing:"full"}:tn(k.timings,O.errors,!0);return{type:12,animation:sn(this,Er(k.animation),O),timings:Y,options:null}}}class ko{constructor(k){this.errors=k,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function yr(ie){return ie?(ie=or(ie)).params&&(ie.params=function wa(ie){return ie?or(ie):null}(ie.params)):ie={},ie}function fr(ie,k,O){return{duration:ie,delay:k,easing:O}}function La(ie,k,O,Y,je,dt,Lt=null,kt=!1){return{type:1,element:ie,keyframes:k,preStyleProps:O,postStyleProps:Y,duration:je,delay:dt,totalTime:je+dt,easing:Lt,subTimeline:kt}}class ea{constructor(){this._map=new Map}get(k){return this._map.get(k)||[]}append(k,O){let Y=this._map.get(k);Y||this._map.set(k,Y=[]),Y.push(...O)}has(k){return this._map.has(k)}clear(){this._map.clear()}}const la=new RegExp(":enter","g"),Tr=new RegExp(":leave","g");function ca(ie,k,O,Y,je,dt=new Map,Lt=new Map,kt,Qt,ni=[]){return(new ta).buildKeyframes(ie,k,O,Y,je,dt,Lt,kt,Qt,ni)}class ta{buildKeyframes(k,O,Y,je,dt,Lt,kt,Qt,ni,wi=[]){ni=ni||new ea;const Ei=new Co(k,O,ni,je,dt,wi,[]);Ei.options=Qt;const qi=Qt.delay?Ti(Qt.delay):0;Ei.currentTimeline.delayNextStep(qi),Ei.currentTimeline.setStyles([Lt],null,Ei.errors,Qt),sn(this,Y,Ei);const Ji=Ei.timelines.filter(Oi=>Oi.containsAnimation());if(Ji.length&&kt.size){let Oi;for(let Fi=Ji.length-1;Fi>=0;Fi--){const cn=Ji[Fi];if(cn.element===O){Oi=cn;break}}Oi&&!Oi.allowOnlyTimelineStyles()&&Oi.setStyles([kt],null,Ei.errors,Qt)}return Ji.length?Ji.map(Oi=>Oi.buildKeyframes()):[La(O,[],[],[],0,qi,"",!1)]}visitTrigger(k,O){}visitState(k,O){}visitTransition(k,O){}visitAnimateChild(k,O){const Y=O.subInstructions.get(O.element);if(Y){const je=O.createSubContext(k.options),dt=O.currentTimeline.currentTime,Lt=this._visitSubInstructions(Y,je,je.options);dt!=Lt&&O.transformIntoNewTimeline(Lt)}O.previousNode=k}visitAnimateRef(k,O){const Y=O.createSubContext(k.options);Y.transformIntoNewTimeline(),this._applyAnimationRefDelays([k.options,k.animation.options],O,Y),this.visitReference(k.animation,Y),O.transformIntoNewTimeline(Y.currentTimeline.currentTime),O.previousNode=k}_applyAnimationRefDelays(k,O,Y){for(const je of k){const dt=je?.delay;if(dt){const Lt="number"==typeof dt?dt:Ti(Xr(dt,je?.params??{},O.errors));Y.delayNextStep(Lt)}}}_visitSubInstructions(k,O,Y){let dt=O.currentTimeline.currentTime;const Lt=null!=Y.duration?Ti(Y.duration):null,kt=null!=Y.delay?Ti(Y.delay):null;return 0!==Lt&&k.forEach(Qt=>{const ni=O.appendInstructionToTimeline(Qt,Lt,kt);dt=Math.max(dt,ni.duration+ni.delay)}),dt}visitReference(k,O){O.updateOptions(k.options,!0),sn(this,k.animation,O),O.previousNode=k}visitSequence(k,O){const Y=O.subContextCount;let je=O;const dt=k.options;if(dt&&(dt.params||dt.delay)&&(je=O.createSubContext(dt),je.transformIntoNewTimeline(),null!=dt.delay)){6==je.previousNode.type&&(je.currentTimeline.snapshotCurrentStyles(),je.previousNode=er);const Lt=Ti(dt.delay);je.delayNextStep(Lt)}k.steps.length&&(k.steps.forEach(Lt=>sn(this,Lt,je)),je.currentTimeline.applyStylesToKeyframe(),je.subContextCount>Y&&je.transformIntoNewTimeline()),O.previousNode=k}visitGroup(k,O){const Y=[];let je=O.currentTimeline.currentTime;const dt=k.options&&k.options.delay?Ti(k.options.delay):0;k.steps.forEach(Lt=>{const kt=O.createSubContext(k.options);dt&&kt.delayNextStep(dt),sn(this,Lt,kt),je=Math.max(je,kt.currentTimeline.currentTime),Y.push(kt.currentTimeline)}),Y.forEach(Lt=>O.currentTimeline.mergeTimelineCollectedStyles(Lt)),O.transformIntoNewTimeline(je),O.previousNode=k}_visitTiming(k,O){if(k.dynamic){const Y=k.strValue;return tn(O.params?Xr(Y,O.params,O.errors):Y,O.errors)}return{duration:k.duration,delay:k.delay,easing:k.easing}}visitAnimate(k,O){const Y=O.currentAnimateTimings=this._visitTiming(k.timings,O),je=O.currentTimeline;Y.delay&&(O.incrementTime(Y.delay),je.snapshotCurrentStyles());const dt=k.style;5==dt.type?this.visitKeyframes(dt,O):(O.incrementTime(Y.duration),this.visitStyle(dt,O),je.applyStylesToKeyframe()),O.currentAnimateTimings=null,O.previousNode=k}visitStyle(k,O){const Y=O.currentTimeline,je=O.currentAnimateTimings;!je&&Y.hasCurrentStyleProperties()&&Y.forwardFrame();const dt=je&&je.easing||k.easing;k.isEmptyStep?Y.applyEmptyStep(dt):Y.setStyles(k.styles,dt,O.errors,O.options),O.previousNode=k}visitKeyframes(k,O){const Y=O.currentAnimateTimings,je=O.currentTimeline.duration,dt=Y.duration,kt=O.createSubContext().currentTimeline;kt.easing=Y.easing,k.styles.forEach(Qt=>{kt.forwardTime((Qt.offset||0)*dt),kt.setStyles(Qt.styles,Qt.easing,O.errors,O.options),kt.applyStylesToKeyframe()}),O.currentTimeline.mergeTimelineCollectedStyles(kt),O.transformIntoNewTimeline(je+dt),O.previousNode=k}visitQuery(k,O){const Y=O.currentTimeline.currentTime,je=k.options||{},dt=je.delay?Ti(je.delay):0;dt&&(6===O.previousNode.type||0==Y&&O.currentTimeline.hasCurrentStyleProperties())&&(O.currentTimeline.snapshotCurrentStyles(),O.previousNode=er);let Lt=Y;const kt=O.invokeQuery(k.selector,k.originalSelector,k.limit,k.includeSelf,!!je.optional,O.errors);O.currentQueryTotal=kt.length;let Qt=null;kt.forEach((ni,wi)=>{O.currentQueryIndex=wi;const Ei=O.createSubContext(k.options,ni);dt&&Ei.delayNextStep(dt),ni===O.element&&(Qt=Ei.currentTimeline),sn(this,k.animation,Ei),Ei.currentTimeline.applyStylesToKeyframe(),Lt=Math.max(Lt,Ei.currentTimeline.currentTime)}),O.currentQueryIndex=0,O.currentQueryTotal=0,O.transformIntoNewTimeline(Lt),Qt&&(O.currentTimeline.mergeTimelineCollectedStyles(Qt),O.currentTimeline.snapshotCurrentStyles()),O.previousNode=k}visitStagger(k,O){const Y=O.parentContext,je=O.currentTimeline,dt=k.timings,Lt=Math.abs(dt.duration),kt=Lt*(O.currentQueryTotal-1);let Qt=Lt*O.currentQueryIndex;switch(dt.duration<0?"reverse":dt.easing){case"reverse":Qt=kt-Qt;break;case"full":Qt=Y.currentStaggerTime}const wi=O.currentTimeline;Qt&&wi.delayNextStep(Qt);const Ei=wi.currentTime;sn(this,k.animation,O),O.previousNode=k,Y.currentStaggerTime=je.currentTime-Ei+(je.startTime-Y.currentTimeline.startTime)}}const er={};class Co{constructor(k,O,Y,je,dt,Lt,kt,Qt){this._driver=k,this.element=O,this.subInstructions=Y,this._enterClassName=je,this._leaveClassName=dt,this.errors=Lt,this.timelines=kt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=er,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Qt||new Ha(this._driver,O,0),kt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(k,O){if(!k)return;const Y=k;let je=this.options;null!=Y.duration&&(je.duration=Ti(Y.duration)),null!=Y.delay&&(je.delay=Ti(Y.delay));const dt=Y.params;if(dt){let Lt=je.params;Lt||(Lt=this.options.params={}),Object.keys(dt).forEach(kt=>{(!O||!Lt.hasOwnProperty(kt))&&(Lt[kt]=Xr(dt[kt],Lt,this.errors))})}}_copyOptions(){const k={};if(this.options){const O=this.options.params;if(O){const Y=k.params={};Object.keys(O).forEach(je=>{Y[je]=O[je]})}}return k}createSubContext(k=null,O,Y){const je=O||this.element,dt=new Co(this._driver,je,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(je,Y||0));return dt.previousNode=this.previousNode,dt.currentAnimateTimings=this.currentAnimateTimings,dt.options=this._copyOptions(),dt.updateOptions(k),dt.currentQueryIndex=this.currentQueryIndex,dt.currentQueryTotal=this.currentQueryTotal,dt.parentContext=this,this.subContextCount++,dt}transformIntoNewTimeline(k){return this.previousNode=er,this.currentTimeline=this.currentTimeline.fork(this.element,k),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(k,O,Y){const je={duration:O??k.duration,delay:this.currentTimeline.currentTime+(Y??0)+k.delay,easing:""},dt=new Ba(this._driver,k.element,k.keyframes,k.preStyleProps,k.postStyleProps,je,k.stretchStartingKeyframe);return this.timelines.push(dt),je}incrementTime(k){this.currentTimeline.forwardTime(this.currentTimeline.duration+k)}delayNextStep(k){k>0&&this.currentTimeline.delayNextStep(k)}invokeQuery(k,O,Y,je,dt,Lt){let kt=[];if(je&&kt.push(this.element),k.length>0){k=(k=k.replace(la,"."+this._enterClassName)).replace(Tr,"."+this._leaveClassName);let ni=this._driver.query(this.element,k,1!=Y);0!==Y&&(ni=Y<0?ni.slice(ni.length+Y,ni.length):ni.slice(0,Y)),kt.push(...ni)}return!dt&&0==kt.length&&Lt.push(function Dt(ie){return new f.vHH(3014,!1)}()),kt}}class Ha{constructor(k,O,Y,je){this._driver=k,this.element=O,this.startTime=Y,this._elementTimelineStylesLookup=je,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(O),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(O,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(k){const O=1===this._keyframes.size&&this._pendingStyles.size;this.duration||O?(this.forwardTime(this.currentTime+k),O&&this.snapshotCurrentStyles()):this.startTime+=k}fork(k,O){return this.applyStylesToKeyframe(),new Ha(this._driver,k,O||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(k){this.applyStylesToKeyframe(),this.duration=k,this._loadKeyframe()}_updateStyle(k,O){this._localTimelineStyles.set(k,O),this._globalTimelineStyles.set(k,O),this._styleSummary.set(k,{time:this.currentTime,value:O})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(k){k&&this._previousKeyframe.set("easing",k);for(let[O,Y]of this._globalTimelineStyles)this._backFill.set(O,Y||Tt.l3),this._currentKeyframe.set(O,Tt.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(k,O,Y,je){O&&this._previousKeyframe.set("easing",O);const dt=je&&je.params||{},Lt=function $a(ie,k){const O=new Map;let Y;return ie.forEach(je=>{if("*"===je){Y=Y||k.keys();for(let dt of Y)O.set(dt,Tt.l3)}else Xn(je,O)}),O}(k,this._globalTimelineStyles);for(let[kt,Qt]of Lt){const ni=Xr(Qt,dt,Y);this._pendingStyles.set(kt,ni),this._localTimelineStyles.has(kt)||this._backFill.set(kt,this._globalTimelineStyles.get(kt)??Tt.l3),this._updateStyle(kt,ni)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((k,O)=>{this._currentKeyframe.set(O,k)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((k,O)=>{this._currentKeyframe.has(O)||this._currentKeyframe.set(O,k)}))}snapshotCurrentStyles(){for(let[k,O]of this._localTimelineStyles)this._pendingStyles.set(k,O),this._updateStyle(k,O)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const k=[];for(let O in this._currentKeyframe)k.push(O);return k}mergeTimelineCollectedStyles(k){k._styleSummary.forEach((O,Y)=>{const je=this._styleSummary.get(Y);(!je||O.time>je.time)&&this._updateStyle(Y,O.value)})}buildKeyframes(){this.applyStylesToKeyframe();const k=new Set,O=new Set,Y=1===this._keyframes.size&&0===this.duration;let je=[];this._keyframes.forEach((kt,Qt)=>{const ni=Xn(kt,new Map,this._backFill);ni.forEach((wi,Ei)=>{wi===Tt.k1?k.add(Ei):wi===Tt.l3&&O.add(Ei)}),Y||ni.set("offset",Qt/this.duration),je.push(ni)});const dt=k.size?yn(k.values()):[],Lt=O.size?yn(O.values()):[];if(Y){const kt=je[0],Qt=new Map(kt);kt.set("offset",0),Qt.set("offset",1),je=[kt,Qt]}return La(this.element,je,dt,Lt,this.duration,this.startTime,this.easing,!1)}}class Ba extends Ha{constructor(k,O,Y,je,dt,Lt,kt=!1){super(k,O,Lt.delay),this.keyframes=Y,this.preStyleProps=je,this.postStyleProps=dt,this._stretchStartingKeyframe=kt,this.timings={duration:Lt.duration,delay:Lt.delay,easing:Lt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let k=this.keyframes,{delay:O,duration:Y,easing:je}=this.timings;if(this._stretchStartingKeyframe&&O){const dt=[],Lt=Y+O,kt=O/Lt,Qt=Xn(k[0]);Qt.set("offset",0),dt.push(Qt);const ni=Xn(k[0]);ni.set("offset",ka(kt)),dt.push(ni);const wi=k.length-1;for(let Ei=1;Ei<=wi;Ei++){let qi=Xn(k[Ei]);const Ji=qi.get("offset");qi.set("offset",ka((O+Ji*Y)/Lt)),dt.push(qi)}Y=Lt,O=0,je="",k=dt}return La(this.element,k,this.preStyleProps,this.postStyleProps,Y,O,je,!0)}}function ka(ie,k=3){const O=Math.pow(10,k-1);return Math.round(ie*O)/O}class da{}const Na=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Eo extends da{normalizePropertyName(k,O){return Ir(k)}normalizeStyleValue(k,O,Y,je){let dt="";const Lt=Y.toString().trim();if(Na.has(O)&&0!==Y&&"0"!==Y)if("number"==typeof Y)dt="px";else{const kt=Y.match(/^[+-]?[\d\.]+([a-z]*)$/);kt&&0==kt[1].length&&je.push(function Zt(ie,k){return new f.vHH(3005,!1)}())}return Lt+dt}}function Xa(ie,k,O,Y,je,dt,Lt,kt,Qt,ni,wi,Ei,qi){return{type:0,element:ie,triggerName:k,isRemovalTransition:je,fromState:O,fromStyles:dt,toState:Y,toStyles:Lt,timelines:kt,queriedElements:Qt,preStyleProps:ni,postStyleProps:wi,totalTime:Ei,errors:qi}}const eo={};class yo{constructor(k,O,Y){this._triggerName=k,this.ast=O,this._stateStyles=Y}match(k,O,Y,je){return function To(ie,k,O,Y,je){return ie.some(dt=>dt(k,O,Y,je))}(this.ast.matchers,k,O,Y,je)}buildStyles(k,O,Y){let je=this._stateStyles.get("*");return void 0!==k&&(je=this._stateStyles.get(k?.toString())||je),je?je.buildStyles(O,Y):new Map}build(k,O,Y,je,dt,Lt,kt,Qt,ni,wi){const Ei=[],qi=this.ast.options&&this.ast.options.params||eo,Oi=this.buildStyles(Y,kt&&kt.params||eo,Ei),Fi=Qt&&Qt.params||eo,cn=this.buildStyles(je,Fi,Ei),Cn=new Set,Bn=new Map,br=new Map,ir="void"===je,Oo={params:to(Fi,qi),delay:this.ast.options?.delay},ma=wi?[]:ca(k,O,this.ast.animation,dt,Lt,Oi,cn,Oo,ni,Ei);let Ar=0;if(ma.forEach(ga=>{Ar=Math.max(ga.duration+ga.delay,Ar)}),Ei.length)return Xa(O,this._triggerName,Y,je,ir,Oi,cn,[],[],Bn,br,Ar,Ei);ma.forEach(ga=>{const ra=ga.element,hl=mn(Bn,ra,new Set);ga.preStyleProps.forEach(ho=>hl.add(ho));const uo=mn(br,ra,new Set);ga.postStyleProps.forEach(ho=>uo.add(ho)),ra!==O&&Cn.add(ra)});const Ta=yn(Cn.values());return Xa(O,this._triggerName,Y,je,ir,Oi,cn,ma,Ta,Bn,br,Ar)}}function to(ie,k){const O=or(k);for(const Y in ie)ie.hasOwnProperty(Y)&&null!=ie[Y]&&(O[Y]=ie[Y]);return O}class Uo{constructor(k,O,Y){this.styles=k,this.defaultParams=O,this.normalizer=Y}buildStyles(k,O){const Y=new Map,je=or(this.defaultParams);return Object.keys(k).forEach(dt=>{const Lt=k[dt];null!==Lt&&(je[dt]=Lt)}),this.styles.styles.forEach(dt=>{"string"!=typeof dt&&dt.forEach((Lt,kt)=>{Lt&&(Lt=Xr(Lt,je,O));const Qt=this.normalizer.normalizePropertyName(kt,O);Lt=this.normalizer.normalizeStyleValue(kt,Qt,Lt,O),Y.set(kt,Lt)})}),Y}}class Yn{constructor(k,O,Y){this.name=k,this.ast=O,this._normalizer=Y,this.transitionFactories=[],this.states=new Map,O.states.forEach(je=>{this.states.set(je.name,new Uo(je.style,je.options&&je.options.params||{},Y))}),_n(this.states,"true","1"),_n(this.states,"false","0"),O.transitions.forEach(je=>{this.transitionFactories.push(new yo(k,je,this.states))}),this.fallbackTransition=function ua(ie,k,O){return new yo(ie,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Lt,kt)=>!0],options:null,queryCount:0,depCount:0},k)}(k,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(k,O,Y,je){return this.transitionFactories.find(Lt=>Lt.match(k,O,Y,je))||null}matchStyles(k,O,Y){return this.fallbackTransition.buildStyles(k,O,Y)}}function _n(ie,k,O){ie.has(k)?ie.has(O)||ie.set(O,ie.get(k)):ie.has(O)&&ie.set(k,ie.get(O))}const Vo=new ea;class cs{constructor(k,O,Y){this.bodyNode=k,this._driver=O,this._normalizer=Y,this._animations=new Map,this._playersById=new Map,this.players=[]}register(k,O){const Y=[],je=[],dt=mi(this._driver,O,Y,je);if(Y.length)throw function bi(ie){return new f.vHH(3503,!1)}();this._animations.set(k,dt)}_buildPlayer(k,O,Y){const je=k.element,dt=rr(0,this._normalizer,0,k.keyframes,O,Y);return this._driver.animate(je,dt,k.duration,k.delay,k.easing,[],!0)}create(k,O,Y={}){const je=[],dt=this._animations.get(k);let Lt;const kt=new Map;if(dt?(Lt=ca(this._driver,O,dt,ct,Yt,new Map,new Map,Y,Vo,je),Lt.forEach(wi=>{const Ei=mn(kt,wi.element,new Map);wi.postStyleProps.forEach(qi=>Ei.set(qi,null))})):(je.push(function Vi(){return new f.vHH(3300,!1)}()),Lt=[]),je.length)throw function en(ie){return new f.vHH(3504,!1)}();kt.forEach((wi,Ei)=>{wi.forEach((qi,Ji)=>{wi.set(Ji,this._driver.computeStyle(Ei,Ji,Tt.l3))})});const ni=hn(Lt.map(wi=>{const Ei=kt.get(wi.element);return this._buildPlayer(wi,new Map,Ei)}));return this._playersById.set(k,ni),ni.onDestroy(()=>this.destroy(k)),this.players.push(ni),ni}destroy(k){const O=this._getPlayer(k);O.destroy(),this._playersById.delete(k);const Y=this.players.indexOf(O);Y>=0&&this.players.splice(Y,1)}_getPlayer(k){const O=this._playersById.get(k);if(!O)throw function ji(ie){return new f.vHH(3301,!1)}();return O}listen(k,O,Y,je){const dt=Yr(O,"","","");return fn(this._getPlayer(k),Y,dt,je),()=>{}}command(k,O,Y,je){if("register"==Y)return void this.register(k,je[0]);if("create"==Y)return void this.create(k,O,je[0]||{});const dt=this._getPlayer(k);switch(Y){case"play":dt.play();break;case"pause":dt.pause();break;case"reset":dt.reset();break;case"restart":dt.restart();break;case"finish":dt.finish();break;case"init":dt.init();break;case"setPosition":dt.setPosition(parseFloat(je[0]));break;case"destroy":this.destroy(k)}}}const io="ng-animate-queued",no="ng-animate-disabled",mt=[],Vt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ei={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ti="__ng_removed";class Ci{constructor(k,O=""){this.namespaceId=O;const Y=k&&k.hasOwnProperty("value");if(this.value=function vn(ie){return ie??null}(Y?k.value:k),Y){const dt=or(k);delete dt.value,this.options=dt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(k){const O=k.params;if(O){const Y=this.options.params;Object.keys(O).forEach(je=>{null==Y[je]&&(Y[je]=O[je])})}}}const Wi="void",$i=new Ci(Wi);class an{constructor(k,O,Y){this.id=k,this.hostElement=O,this._engine=Y,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+k,Sn(O,this._hostClassName)}listen(k,O,Y,je){if(!this._triggers.has(O))throw function on(ie,k){return new f.vHH(3302,!1)}();if(null==Y||0==Y.length)throw function wn(ie){return new f.vHH(3303,!1)}();if(!function Or(ie){return"start"==ie||"done"==ie}(Y))throw function Hi(ie,k){return new f.vHH(3400,!1)}();const dt=mn(this._elementListeners,k,[]),Lt={name:O,phase:Y,callback:je};dt.push(Lt);const kt=mn(this._engine.statesByElement,k,new Map);return kt.has(O)||(Sn(k,Ge),Sn(k,Ge+"-"+O),kt.set(O,$i)),()=>{this._engine.afterFlush(()=>{const Qt=dt.indexOf(Lt);Qt>=0&&dt.splice(Qt,1),this._triggers.has(O)||kt.delete(O)})}}register(k,O){return!this._triggers.has(k)&&(this._triggers.set(k,O),!0)}_getTrigger(k){const O=this._triggers.get(k);if(!O)throw function Qn(ie){return new f.vHH(3401,!1)}();return O}trigger(k,O,Y,je=!0){const dt=this._getTrigger(O),Lt=new xn(this.id,O,k);let kt=this._engine.statesByElement.get(k);kt||(Sn(k,Ge),Sn(k,Ge+"-"+O),this._engine.statesByElement.set(k,kt=new Map));let Qt=kt.get(O);const ni=new Ci(Y,this.id);if(!(Y&&Y.hasOwnProperty("value"))&&Qt&&ni.absorbOptions(Qt.options),kt.set(O,ni),Qt||(Qt=$i),ni.value!==Wi&&Qt.value===ni.value){if(!function xo(ie,k){const O=Object.keys(ie),Y=Object.keys(k);if(O.length!=Y.length)return!1;for(let je=0;je{Kr(k,cn),ur(k,Cn)})}return}const qi=mn(this._engine.playersByElement,k,[]);qi.forEach(Fi=>{Fi.namespaceId==this.id&&Fi.triggerName==O&&Fi.queued&&Fi.destroy()});let Ji=dt.matchTransition(Qt.value,ni.value,k,ni.params),Oi=!1;if(!Ji){if(!je)return;Ji=dt.fallbackTransition,Oi=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:k,triggerName:O,transition:Ji,fromState:Qt,toState:ni,player:Lt,isFallbackTransition:Oi}),Oi||(Sn(k,io),Lt.onStart(()=>{Lr(k,io)})),Lt.onDone(()=>{let Fi=this.players.indexOf(Lt);Fi>=0&&this.players.splice(Fi,1);const cn=this._engine.playersByElement.get(k);if(cn){let Cn=cn.indexOf(Lt);Cn>=0&&cn.splice(Cn,1)}}),this.players.push(Lt),qi.push(Lt),Lt}deregister(k){this._triggers.delete(k),this._engine.statesByElement.forEach(O=>O.delete(k)),this._elementListeners.forEach((O,Y)=>{this._elementListeners.set(Y,O.filter(je=>je.name!=k))})}clearElementCache(k){this._engine.statesByElement.delete(k),this._elementListeners.delete(k);const O=this._engine.playersByElement.get(k);O&&(O.forEach(Y=>Y.destroy()),this._engine.playersByElement.delete(k))}_signalRemovalForInnerTriggers(k,O){const Y=this._engine.driver.query(k,Rt,!0);Y.forEach(je=>{if(je[ti])return;const dt=this._engine.fetchNamespacesByElement(je);dt.size?dt.forEach(Lt=>Lt.triggerLeaveAnimation(je,O,!1,!0)):this.clearElementCache(je)}),this._engine.afterFlushAnimationsDone(()=>Y.forEach(je=>this.clearElementCache(je)))}triggerLeaveAnimation(k,O,Y,je){const dt=this._engine.statesByElement.get(k),Lt=new Map;if(dt){const kt=[];if(dt.forEach((Qt,ni)=>{if(Lt.set(ni,Qt.value),this._triggers.has(ni)){const wi=this.trigger(k,ni,Wi,je);wi&&kt.push(wi)}}),kt.length)return this._engine.markElementAsRemoved(this.id,k,!0,O,Lt),Y&&hn(kt).onDone(()=>this._engine.processLeaveNode(k)),!0}return!1}prepareLeaveAnimationListeners(k){const O=this._elementListeners.get(k),Y=this._engine.statesByElement.get(k);if(O&&Y){const je=new Set;O.forEach(dt=>{const Lt=dt.name;if(je.has(Lt))return;je.add(Lt);const Qt=this._triggers.get(Lt).fallbackTransition,ni=Y.get(Lt)||$i,wi=new Ci(Wi),Ei=new xn(this.id,Lt,k);this._engine.totalQueuedPlayers++,this._queue.push({element:k,triggerName:Lt,transition:Qt,fromState:ni,toState:wi,player:Ei,isFallbackTransition:!0})})}}removeNode(k,O){const Y=this._engine;if(k.childElementCount&&this._signalRemovalForInnerTriggers(k,O),this.triggerLeaveAnimation(k,O,!0))return;let je=!1;if(Y.totalAnimations){const dt=Y.players.length?Y.playersByQueriedElement.get(k):[];if(dt&&dt.length)je=!0;else{let Lt=k;for(;Lt=Lt.parentNode;)if(Y.statesByElement.get(Lt)){je=!0;break}}}if(this.prepareLeaveAnimationListeners(k),je)Y.markElementAsRemoved(this.id,k,!1,O);else{const dt=k[ti];(!dt||dt===Vt)&&(Y.afterFlush(()=>this.clearElementCache(k)),Y.destroyInnerAnimations(k),Y._onRemovalComplete(k,O))}}insertNode(k,O){Sn(k,this._hostClassName)}drainQueuedTransitions(k){const O=[];return this._queue.forEach(Y=>{const je=Y.player;if(je.destroyed)return;const dt=Y.element,Lt=this._elementListeners.get(dt);Lt&&Lt.forEach(kt=>{if(kt.name==Y.triggerName){const Qt=Yr(dt,Y.triggerName,Y.fromState.value,Y.toState.value);Qt._data=k,fn(Y.player,kt.phase,Qt,kt.callback)}}),je.markedForDestroy?this._engine.afterFlush(()=>{je.destroy()}):O.push(Y)}),this._queue=[],O.sort((Y,je)=>{const dt=Y.transition.ast.depCount,Lt=je.transition.ast.depCount;return 0==dt||0==Lt?dt-Lt:this._engine.driver.containsElement(Y.element,je.element)?1:-1})}destroy(k){this.players.forEach(O=>O.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,k)}elementContainsData(k){let O=!1;return this._elementListeners.has(k)&&(O=!0),O=!!this._queue.find(Y=>Y.element===k)||O,O}}class Zi{constructor(k,O,Y){this.bodyNode=k,this.driver=O,this._normalizer=Y,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(je,dt)=>{}}_onRemovalComplete(k,O){this.onRemovalComplete(k,O)}get queuedPlayers(){const k=[];return this._namespaceList.forEach(O=>{O.players.forEach(Y=>{Y.queued&&k.push(Y)})}),k}createNamespace(k,O){const Y=new an(k,O,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,O)?this._balanceNamespaceList(Y,O):(this.newHostElements.set(O,Y),this.collectEnterElement(O)),this._namespaceLookup[k]=Y}_balanceNamespaceList(k,O){const Y=this._namespaceList,je=this.namespacesByHostElement;if(Y.length-1>=0){let Lt=!1,kt=this.driver.getParentElement(O);for(;kt;){const Qt=je.get(kt);if(Qt){const ni=Y.indexOf(Qt);Y.splice(ni+1,0,k),Lt=!0;break}kt=this.driver.getParentElement(kt)}Lt||Y.unshift(k)}else Y.push(k);return je.set(O,k),k}register(k,O){let Y=this._namespaceLookup[k];return Y||(Y=this.createNamespace(k,O)),Y}registerTrigger(k,O,Y){let je=this._namespaceLookup[k];je&&je.register(O,Y)&&this.totalAnimations++}destroy(k,O){if(!k)return;const Y=this._fetchNamespace(k);this.afterFlush(()=>{this.namespacesByHostElement.delete(Y.hostElement),delete this._namespaceLookup[k];const je=this._namespaceList.indexOf(Y);je>=0&&this._namespaceList.splice(je,1)}),this.afterFlushAnimationsDone(()=>Y.destroy(O))}_fetchNamespace(k){return this._namespaceLookup[k]}fetchNamespacesByElement(k){const O=new Set,Y=this.statesByElement.get(k);if(Y)for(let je of Y.values())if(je.namespaceId){const dt=this._fetchNamespace(je.namespaceId);dt&&O.add(dt)}return O}trigger(k,O,Y,je){if(mr(O)){const dt=this._fetchNamespace(k);if(dt)return dt.trigger(O,Y,je),!0}return!1}insertNode(k,O,Y,je){if(!mr(O))return;const dt=O[ti];if(dt&&dt.setForRemoval){dt.setForRemoval=!1,dt.setForMove=!0;const Lt=this.collectedLeaveElements.indexOf(O);Lt>=0&&this.collectedLeaveElements.splice(Lt,1)}if(k){const Lt=this._fetchNamespace(k);Lt&&Lt.insertNode(O,Y)}je&&this.collectEnterElement(O)}collectEnterElement(k){this.collectedEnterElements.push(k)}markElementAsDisabled(k,O){O?this.disabledNodes.has(k)||(this.disabledNodes.add(k),Sn(k,no)):this.disabledNodes.has(k)&&(this.disabledNodes.delete(k),Lr(k,no))}removeNode(k,O,Y,je){if(mr(O)){const dt=k?this._fetchNamespace(k):null;if(dt?dt.removeNode(O,je):this.markElementAsRemoved(k,O,!1,je),Y){const Lt=this.namespacesByHostElement.get(O);Lt&&Lt.id!==k&&Lt.removeNode(O,je)}}else this._onRemovalComplete(O,je)}markElementAsRemoved(k,O,Y,je,dt){this.collectedLeaveElements.push(O),O[ti]={namespaceId:k,setForRemoval:je,hasAnimation:Y,removedBeforeQueried:!1,previousTriggersValues:dt}}listen(k,O,Y,je,dt){return mr(O)?this._fetchNamespace(k).listen(O,Y,je,dt):()=>{}}_buildInstruction(k,O,Y,je,dt){return k.transition.build(this.driver,k.element,k.fromState.value,k.toState.value,Y,je,k.fromState.options,k.toState.options,O,dt)}destroyInnerAnimations(k){let O=this.driver.query(k,Rt,!0);O.forEach(Y=>this.destroyActiveAnimationsForElement(Y)),0!=this.playersByQueriedElement.size&&(O=this.driver.query(k,_i,!0),O.forEach(Y=>this.finishActiveQueriedAnimationOnElement(Y)))}destroyActiveAnimationsForElement(k){const O=this.playersByElement.get(k);O&&O.forEach(Y=>{Y.queued?Y.markedForDestroy=!0:Y.destroy()})}finishActiveQueriedAnimationOnElement(k){const O=this.playersByQueriedElement.get(k);O&&O.forEach(Y=>Y.finish())}whenRenderingDone(){return new Promise(k=>{if(this.players.length)return hn(this.players).onDone(()=>k());k()})}processLeaveNode(k){const O=k[ti];if(O&&O.setForRemoval){if(k[ti]=Vt,O.namespaceId){this.destroyInnerAnimations(k);const Y=this._fetchNamespace(O.namespaceId);Y&&Y.clearElementCache(k)}this._onRemovalComplete(k,O.setForRemoval)}k.classList?.contains(no)&&this.markElementAsDisabled(k,!1),this.driver.query(k,".ng-animate-disabled",!0).forEach(Y=>{this.markElementAsDisabled(Y,!1)})}flush(k=-1){let O=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Y,je)=>this._balanceNamespaceList(Y,je)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Y=0;YY()),this._flushFns=[],this._whenQuietFns.length){const Y=this._whenQuietFns;this._whenQuietFns=[],O.length?hn(O).onDone(()=>{Y.forEach(je=>je())}):Y.forEach(je=>je())}}reportError(k){throw function cr(ie){return new f.vHH(3402,!1)}()}_flushAnimations(k,O){const Y=new ea,je=[],dt=new Map,Lt=[],kt=new Map,Qt=new Map,ni=new Map,wi=new Set;this.disabledNodes.forEach(Mi=>{wi.add(Mi);const Pi=this.driver.query(Mi,".ng-animate-queued",!0);for(let Bi=0;Bi{const Bi=ct+Fi++;Oi.set(Pi,Bi),Mi.forEach(nn=>Sn(nn,Bi))});const cn=[],Cn=new Set,Bn=new Set;for(let Mi=0;MiCn.add(nn)):Bn.add(Pi))}const br=new Map,ir=Zr(qi,Array.from(Cn));ir.forEach((Mi,Pi)=>{const Bi=Yt+Fi++;br.set(Pi,Bi),Mi.forEach(nn=>Sn(nn,Bi))}),k.push(()=>{Ji.forEach((Mi,Pi)=>{const Bi=Oi.get(Pi);Mi.forEach(nn=>Lr(nn,Bi))}),ir.forEach((Mi,Pi)=>{const Bi=br.get(Pi);Mi.forEach(nn=>Lr(nn,Bi))}),cn.forEach(Mi=>{this.processLeaveNode(Mi)})});const Oo=[],ma=[];for(let Mi=this._namespaceList.length-1;Mi>=0;Mi--)this._namespaceList[Mi].drainQueuedTransitions(O).forEach(Bi=>{const nn=Bi.player,Jn=Bi.element;if(Oo.push(nn),this.collectedEnterElements.length){const Kn=Jn[ti];if(Kn&&Kn.setForMove){if(Kn.previousTriggersValues&&Kn.previousTriggersValues.has(Bi.triggerName)){const za=Kn.previousTriggersValues.get(Bi.triggerName),vr=this.statesByElement.get(Bi.element);if(vr&&vr.has(Bi.triggerName)){const po=vr.get(Bi.triggerName);po.value=za,vr.set(Bi.triggerName,po)}}return void nn.destroy()}}const xa=!Ei||!this.driver.containsElement(Ei,Jn),lr=br.get(Jn),Ga=Oi.get(Jn),Mn=this._buildInstruction(Bi,Y,Ga,lr,xa);if(Mn.errors&&Mn.errors.length)return void ma.push(Mn);if(xa)return nn.onStart(()=>Kr(Jn,Mn.fromStyles)),nn.onDestroy(()=>ur(Jn,Mn.toStyles)),void je.push(nn);if(Bi.isFallbackTransition)return nn.onStart(()=>Kr(Jn,Mn.fromStyles)),nn.onDestroy(()=>ur(Jn,Mn.toStyles)),void je.push(nn);const fl=[];Mn.timelines.forEach(Kn=>{Kn.stretchStartingKeyframe=!0,this.disabledNodes.has(Kn.element)||fl.push(Kn)}),Mn.timelines=fl,Y.append(Jn,Mn.timelines),Lt.push({instruction:Mn,player:nn,element:Jn}),Mn.queriedElements.forEach(Kn=>mn(kt,Kn,[]).push(nn)),Mn.preStyleProps.forEach((Kn,za)=>{if(Kn.size){let vr=Qt.get(za);vr||Qt.set(za,vr=new Set),Kn.forEach((po,ys)=>vr.add(ys))}}),Mn.postStyleProps.forEach((Kn,za)=>{let vr=ni.get(za);vr||ni.set(za,vr=new Set),Kn.forEach((po,ys)=>vr.add(ys))})});if(ma.length){const Mi=[];ma.forEach(Pi=>{Mi.push(function Cr(ie,k){return new f.vHH(3505,!1)}())}),Oo.forEach(Pi=>Pi.destroy()),this.reportError(Mi)}const Ar=new Map,Ta=new Map;Lt.forEach(Mi=>{const Pi=Mi.element;Y.has(Pi)&&(Ta.set(Pi,Pi),this._beforeAnimationBuild(Mi.player.namespaceId,Mi.instruction,Ar))}),je.forEach(Mi=>{const Pi=Mi.element;this._getPreviousPlayers(Pi,!1,Mi.namespaceId,Mi.triggerName,null).forEach(nn=>{mn(Ar,Pi,[]).push(nn),nn.destroy()})});const ga=cn.filter(Mi=>Mo(Mi,Qt,ni)),ra=new Map;_r(ra,this.driver,Bn,ni,Tt.l3).forEach(Mi=>{Mo(Mi,Qt,ni)&&ga.push(Mi)});const uo=new Map;Ji.forEach((Mi,Pi)=>{_r(uo,this.driver,new Set(Mi),Qt,Tt.k1)}),ga.forEach(Mi=>{const Pi=ra.get(Mi),Bi=uo.get(Mi);ra.set(Mi,new Map([...Array.from(Pi?.entries()??[]),...Array.from(Bi?.entries()??[])]))});const ho=[],uc=[],pl={};Lt.forEach(Mi=>{const{element:Pi,player:Bi,instruction:nn}=Mi;if(Y.has(Pi)){if(wi.has(Pi))return Bi.onDestroy(()=>ur(Pi,nn.toStyles)),Bi.disabled=!0,Bi.overrideTotalTime(nn.totalTime),void je.push(Bi);let Jn=pl;if(Ta.size>1){let lr=Pi;const Ga=[];for(;lr=lr.parentNode;){const Mn=Ta.get(lr);if(Mn){Jn=Mn;break}Ga.push(lr)}Ga.forEach(Mn=>Ta.set(Mn,Jn))}const xa=this._buildAnimation(Bi.namespaceId,nn,Ar,dt,uo,ra);if(Bi.setRealPlayer(xa),Jn===pl)ho.push(Bi);else{const lr=this.playersByElement.get(Jn);lr&&lr.length&&(Bi.parentPlayer=hn(lr)),je.push(Bi)}}else Kr(Pi,nn.fromStyles),Bi.onDestroy(()=>ur(Pi,nn.toStyles)),uc.push(Bi),wi.has(Pi)&&je.push(Bi)}),uc.forEach(Mi=>{const Pi=dt.get(Mi.element);if(Pi&&Pi.length){const Bi=hn(Pi);Mi.setRealPlayer(Bi)}}),je.forEach(Mi=>{Mi.parentPlayer?Mi.syncPlayerEvents(Mi.parentPlayer):Mi.destroy()});for(let Mi=0;Mi!xa.destroyed);Jn.length?us(this,Pi,Jn):this.processLeaveNode(Pi)}return cn.length=0,ho.forEach(Mi=>{this.players.push(Mi),Mi.onDone(()=>{Mi.destroy();const Pi=this.players.indexOf(Mi);this.players.splice(Pi,1)}),Mi.play()}),ho}elementContainsData(k,O){let Y=!1;const je=O[ti];return je&&je.setForRemoval&&(Y=!0),this.playersByElement.has(O)&&(Y=!0),this.playersByQueriedElement.has(O)&&(Y=!0),this.statesByElement.has(O)&&(Y=!0),this._fetchNamespace(k).elementContainsData(O)||Y}afterFlush(k){this._flushFns.push(k)}afterFlushAnimationsDone(k){this._whenQuietFns.push(k)}_getPreviousPlayers(k,O,Y,je,dt){let Lt=[];if(O){const kt=this.playersByQueriedElement.get(k);kt&&(Lt=kt)}else{const kt=this.playersByElement.get(k);if(kt){const Qt=!dt||dt==Wi;kt.forEach(ni=>{ni.queued||!Qt&&ni.triggerName!=je||Lt.push(ni)})}}return(Y||je)&&(Lt=Lt.filter(kt=>!(Y&&Y!=kt.namespaceId||je&&je!=kt.triggerName))),Lt}_beforeAnimationBuild(k,O,Y){const dt=O.element,Lt=O.isRemovalTransition?void 0:k,kt=O.isRemovalTransition?void 0:O.triggerName;for(const Qt of O.timelines){const ni=Qt.element,wi=ni!==dt,Ei=mn(Y,ni,[]);this._getPreviousPlayers(ni,wi,Lt,kt,O.toState).forEach(Ji=>{const Oi=Ji.getRealPlayer();Oi.beforeDestroy&&Oi.beforeDestroy(),Ji.destroy(),Ei.push(Ji)})}Kr(dt,O.fromStyles)}_buildAnimation(k,O,Y,je,dt,Lt){const kt=O.triggerName,Qt=O.element,ni=[],wi=new Set,Ei=new Set,qi=O.timelines.map(Oi=>{const Fi=Oi.element;wi.add(Fi);const cn=Fi[ti];if(cn&&cn.removedBeforeQueried)return new Tt.ZN(Oi.duration,Oi.delay);const Cn=Fi!==Qt,Bn=function ro(ie){const k=[];return hs(ie,k),k}((Y.get(Fi)||mt).map(Ar=>Ar.getRealPlayer())).filter(Ar=>!!Ar.element&&Ar.element===Fi),br=dt.get(Fi),ir=Lt.get(Fi),Oo=rr(0,this._normalizer,0,Oi.keyframes,br,ir),ma=this._buildPlayer(Oi,Oo,Bn);if(Oi.subTimeline&&je&&Ei.add(Fi),Cn){const Ar=new xn(k,kt,Fi);Ar.setRealPlayer(ma),ni.push(Ar)}return ma});ni.forEach(Oi=>{mn(this.playersByQueriedElement,Oi.element,[]).push(Oi),Oi.onDone(()=>function ln(ie,k,O){let Y=ie.get(k);if(Y){if(Y.length){const je=Y.indexOf(O);Y.splice(je,1)}0==Y.length&&ie.delete(k)}return Y}(this.playersByQueriedElement,Oi.element,Oi))}),wi.forEach(Oi=>Sn(Oi,zt));const Ji=hn(qi);return Ji.onDestroy(()=>{wi.forEach(Oi=>Lr(Oi,zt)),ur(Qt,O.toStyles)}),Ei.forEach(Oi=>{mn(je,Oi,[]).push(Ji)}),Ji}_buildPlayer(k,O,Y){return O.length>0?this.driver.animate(k.element,O,k.duration,k.delay,k.easing,Y):new Tt.ZN(k.duration,k.delay)}}class xn{constructor(k,O,Y){this.namespaceId=k,this.triggerName=O,this.element=Y,this._player=new Tt.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(k){this._containsRealPlayer||(this._player=k,this._queuedCallbacks.forEach((O,Y)=>{O.forEach(je=>fn(k,Y,void 0,je))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(k.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(k){this.totalTime=k}syncPlayerEvents(k){const O=this._player;O.triggerCallback&&k.onStart(()=>O.triggerCallback("start")),k.onDone(()=>this.finish()),k.onDestroy(()=>this.destroy())}_queueEvent(k,O){mn(this._queuedCallbacks,k,[]).push(O)}onDone(k){this.queued&&this._queueEvent("done",k),this._player.onDone(k)}onStart(k){this.queued&&this._queueEvent("start",k),this._player.onStart(k)}onDestroy(k){this.queued&&this._queueEvent("destroy",k),this._player.onDestroy(k)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(k){this.queued||this._player.setPosition(k)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(k){const O=this._player;O.triggerCallback&&O.triggerCallback(k)}}function mr(ie){return ie&&1===ie.nodeType}function gr(ie,k){const O=ie.style.display;return ie.style.display=k??"none",O}function _r(ie,k,O,Y,je){const dt=[];O.forEach(Qt=>dt.push(gr(Qt)));const Lt=[];Y.forEach((Qt,ni)=>{const wi=new Map;Qt.forEach(Ei=>{const qi=k.computeStyle(ni,Ei,je);wi.set(Ei,qi),(!qi||0==qi.length)&&(ni[ti]=ei,Lt.push(ni))}),ie.set(ni,wi)});let kt=0;return O.forEach(Qt=>gr(Qt,dt[kt++])),Lt}function Zr(ie,k){const O=new Map;if(ie.forEach(kt=>O.set(kt,[])),0==k.length)return O;const Y=1,je=new Set(k),dt=new Map;function Lt(kt){if(!kt)return Y;let Qt=dt.get(kt);if(Qt)return Qt;const ni=kt.parentNode;return Qt=O.has(ni)?ni:je.has(ni)?Y:Lt(ni),dt.set(kt,Qt),Qt}return k.forEach(kt=>{const Qt=Lt(kt);Qt!==Y&&O.get(Qt).push(kt)}),O}function Sn(ie,k){ie.classList?.add(k)}function Lr(ie,k){ie.classList?.remove(k)}function us(ie,k,O){hn(O).onDone(()=>ie.processLeaveNode(k))}function hs(ie,k){for(let O=0;Oje.add(dt)):k.set(ie,Y),O.delete(ie),!0}class Gr{constructor(k,O,Y){this.bodyNode=k,this._driver=O,this._normalizer=Y,this._triggerCache={},this.onRemovalComplete=(je,dt)=>{},this._transitionEngine=new Zi(k,O,Y),this._timelineEngine=new cs(k,O,Y),this._transitionEngine.onRemovalComplete=(je,dt)=>this.onRemovalComplete(je,dt)}registerTrigger(k,O,Y,je,dt){const Lt=k+"-"+je;let kt=this._triggerCache[Lt];if(!kt){const Qt=[],ni=[],wi=mi(this._driver,dt,Qt,ni);if(Qt.length)throw function Pt(ie,k){return new f.vHH(3404,!1)}();kt=function No(ie,k,O){return new Yn(ie,k,O)}(je,wi,this._normalizer),this._triggerCache[Lt]=kt}this._transitionEngine.registerTrigger(O,je,kt)}register(k,O){this._transitionEngine.register(k,O)}destroy(k,O){this._transitionEngine.destroy(k,O)}onInsert(k,O,Y,je){this._transitionEngine.insertNode(k,O,Y,je)}onRemove(k,O,Y,je){this._transitionEngine.removeNode(k,O,je||!1,Y)}disableAnimations(k,O){this._transitionEngine.markElementAsDisabled(k,O)}process(k,O,Y,je){if("@"==Y.charAt(0)){const[dt,Lt]=Nr(Y);this._timelineEngine.command(dt,O,Lt,je)}else this._transitionEngine.trigger(k,O,Y,je)}listen(k,O,Y,je,dt){if("@"==Y.charAt(0)){const[Lt,kt]=Nr(Y);return this._timelineEngine.listen(Lt,O,kt,dt)}return this._transitionEngine.listen(k,O,Y,je,dt)}flush(k=-1){this._transitionEngine.flush(k)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ps=(()=>{class ie{constructor(O,Y,je){this._element=O,this._startStyles=Y,this._endStyles=je,this._state=0;let dt=ie.initialStylesByElement.get(O);dt||ie.initialStylesByElement.set(O,dt=new Map),this._initialStyles=dt}start(){this._state<1&&(this._startStyles&&ur(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ur(this._element,this._initialStyles),this._endStyles&&(ur(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ie.initialStylesByElement.delete(this._element),this._startStyles&&(Kr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Kr(this._element,this._endStyles),this._endStyles=null),ur(this._element,this._initialStyles),this._state=3)}}return ie.initialStylesByElement=new WeakMap,ie})();function ao(ie){let k=null;return ie.forEach((O,Y)=>{(function Ys(ie){return"display"===ie||"position"===ie})(Y)&&(k=k||new Map,k.set(Y,O))}),k}class Hr{constructor(k,O,Y,je){this.element=k,this.keyframes=O,this.options=Y,this._specialStyles=je,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=Y.duration,this._delay=Y.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(k=>k()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const k=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,k,this.options),this._finalKeyframe=k.length?k[k.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(k){const O=[];return k.forEach(Y=>{O.push(Object.fromEntries(Y))}),O}_triggerWebAnimation(k,O,Y){return k.animate(this._convertKeyframesToObject(O),Y)}onStart(k){this._originalOnStartFns.push(k),this._onStartFns.push(k)}onDone(k){this._originalOnDoneFns.push(k),this._onDoneFns.push(k)}onDestroy(k){this._onDestroyFns.push(k)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(k=>k()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(k=>k()),this._onDestroyFns=[])}setPosition(k){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=k*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const k=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Y,je)=>{"offset"!==je&&k.set(je,this._finished?Y:Ca(this.element,je))}),this.currentSnapshot=k}triggerCallback(k){const O="start"===k?this._onStartFns:this._onDoneFns;O.forEach(Y=>Y()),O.length=0}}class qs{validateStyleProperty(k){return!0}validateAnimatableStyleProperty(k){return!0}matchesElement(k,O){return!1}containsElement(k,O){return Qi(k,O)}getParentElement(k){return St(k)}query(k,O,Y){return Pn(k,O,Y)}computeStyle(k,O,Y){return window.getComputedStyle(k)[O]}animate(k,O,Y,je,dt,Lt=[]){const Qt={duration:Y,delay:je,fill:0==je?"both":"forwards"};dt&&(Qt.easing=dt);const ni=new Map,wi=Lt.filter(Ji=>Ji instanceof Hr);(function Vr(ie,k){return 0===ie||0===k})(Y,je)&&wi.forEach(Ji=>{Ji.currentSnapshot.forEach((Oi,Fi)=>ni.set(Fi,Oi))});let Ei=function qr(ie){return ie.length?ie[0]instanceof Map?ie:ie.map(k=>Aa(k)):[]}(O).map(Ji=>Xn(Ji));Ei=function va(ie,k,O){if(O.size&&k.length){let Y=k[0],je=[];if(O.forEach((dt,Lt)=>{Y.has(Lt)||je.push(Lt),Y.set(Lt,dt)}),je.length)for(let dt=1;dtLt.set(kt,Ca(ie,kt)))}}return k}(k,Ei,ni);const qi=function Bl(ie,k){let O=null,Y=null;return Array.isArray(k)&&k.length?(O=ao(k[0]),k.length>1&&(Y=ao(k[k.length-1]))):k instanceof Map&&(O=ao(k)),O||Y?new ps(ie,O,Y):null}(k,Ei);return new Hr(k,Ei,Qt,qi)}}let So=(()=>{class ie extends Tt._j{constructor(O,Y){super(),this._nextAnimationId=0,this._renderer=O.createRenderer(Y.body,{id:"0",encapsulation:f.ifc.None,styles:[],data:{animation:[]}})}build(O){const Y=this._nextAnimationId.toString();this._nextAnimationId++;const je=Array.isArray(O)?(0,Tt.vP)(O):O;return Ea(this._renderer,null,Y,"register",[je]),new qn(Y,this._renderer)}}return ie.\u0275fac=function(O){return new(O||ie)(f.LFG(f.FYo),f.LFG(P.K0))},ie.\u0275prov=f.Yz7({token:ie,factory:ie.\u0275fac}),ie})();class qn extends Tt.LC{constructor(k,O){super(),this._id=k,this._renderer=O}create(k,O){return new fs(this._id,k,O||{},this._renderer)}}class fs{constructor(k,O,Y,je){this.id=k,this.element=O,this._renderer=je,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Y)}_listen(k,O){return this._renderer.listen(this.element,`@@${this.id}:${k}`,O)}_command(k,...O){return Ea(this._renderer,this.element,this.id,k,O)}onDone(k){this._listen("done",k)}onStart(k){this._listen("start",k)}onDestroy(k){this._listen("destroy",k)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(k){this._command("setPosition",k)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Ea(ie,k,O,Y,je){return ie.setProperty(k,`@@${O}:${Y}`,je)}const ms="@.disabled";let Fo=(()=>{class ie{constructor(O,Y,je){this.delegate=O,this.engine=Y,this._zone=je,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Y.onRemovalComplete=(dt,Lt)=>{const kt=Lt?.parentNode(dt);kt&&Lt.removeChild(kt,dt)}}createRenderer(O,Y){const dt=this.delegate.createRenderer(O,Y);if(!(O&&Y&&Y.data&&Y.data.animation)){let wi=this._rendererCache.get(dt);return wi||(wi=new gs("",dt,this.engine,()=>this._rendererCache.delete(dt)),this._rendererCache.set(dt,wi)),wi}const Lt=Y.id,kt=Y.id+"-"+this._currentId;this._currentId++,this.engine.register(kt,O);const Qt=wi=>{Array.isArray(wi)?wi.forEach(Qt):this.engine.registerTrigger(Lt,kt,O,wi.name,wi)};return Y.data.animation.forEach(Qt),new _s(this,kt,dt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(O,Y,je){O>=0&&OY(je)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(dt=>{const[Lt,kt]=dt;Lt(kt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Y,je]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return ie.\u0275fac=function(O){return new(O||ie)(f.LFG(f.FYo),f.LFG(Gr),f.LFG(f.R0b))},ie.\u0275prov=f.Yz7({token:ie,factory:ie.\u0275fac}),ie})();class gs{constructor(k,O,Y,je){this.namespaceId=k,this.delegate=O,this.engine=Y,this._onDestroy=je,this.destroyNode=this.delegate.destroyNode?dt=>O.destroyNode(dt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(k,O){return this.delegate.createElement(k,O)}createComment(k){return this.delegate.createComment(k)}createText(k){return this.delegate.createText(k)}appendChild(k,O){this.delegate.appendChild(k,O),this.engine.onInsert(this.namespaceId,O,k,!1)}insertBefore(k,O,Y,je=!0){this.delegate.insertBefore(k,O,Y),this.engine.onInsert(this.namespaceId,O,k,je)}removeChild(k,O,Y){this.engine.onRemove(this.namespaceId,O,this.delegate,Y)}selectRootElement(k,O){return this.delegate.selectRootElement(k,O)}parentNode(k){return this.delegate.parentNode(k)}nextSibling(k){return this.delegate.nextSibling(k)}setAttribute(k,O,Y,je){this.delegate.setAttribute(k,O,Y,je)}removeAttribute(k,O,Y){this.delegate.removeAttribute(k,O,Y)}addClass(k,O){this.delegate.addClass(k,O)}removeClass(k,O){this.delegate.removeClass(k,O)}setStyle(k,O,Y,je){this.delegate.setStyle(k,O,Y,je)}removeStyle(k,O,Y){this.delegate.removeStyle(k,O,Y)}setProperty(k,O,Y){"@"==O.charAt(0)&&O==ms?this.disableAnimations(k,!!Y):this.delegate.setProperty(k,O,Y)}setValue(k,O){this.delegate.setValue(k,O)}listen(k,O,Y){return this.delegate.listen(k,O,Y)}disableAnimations(k,O){this.engine.disableAnimations(k,O)}}class _s extends gs{constructor(k,O,Y,je,dt){super(O,Y,je,dt),this.factory=k,this.namespaceId=O}setProperty(k,O,Y){"@"==O.charAt(0)?"."==O.charAt(1)&&O==ms?this.disableAnimations(k,Y=void 0===Y||!!Y):this.engine.process(this.namespaceId,k,O.slice(1),Y):this.delegate.setProperty(k,O,Y)}listen(k,O,Y){if("@"==O.charAt(0)){const je=function bs(ie){switch(ie){case"body":return document.body;case"document":return document;case"window":return window;default:return ie}}(k);let dt=O.slice(1),Lt="";return"@"!=dt.charAt(0)&&([dt,Lt]=function jo(ie){const k=ie.indexOf(".");return[ie.substring(0,k),ie.slice(k+1)]}(dt)),this.engine.listen(this.namespaceId,je,dt,Lt,kt=>{this.factory.scheduleListenerCallback(kt._data||-1,Y,kt)})}return this.delegate.listen(k,O,Y)}}const Do=[{provide:Tt._j,useClass:So},{provide:da,useFactory:function xr(){return new Eo}},{provide:Gr,useClass:(()=>{class ie extends Gr{constructor(O,Y,je,dt){super(O.body,Y,je)}ngOnDestroy(){this.flush()}}return ie.\u0275fac=function(O){return new(O||ie)(f.LFG(P.K0),f.LFG($n),f.LFG(da),f.LFG(f.z2F))},ie.\u0275prov=f.Yz7({token:ie,factory:ie.\u0275fac}),ie})()},{provide:f.FYo,useFactory:function kl(ie,k,O){return new Fo(ie,k,O)},deps:[e.se,Gr,f.R0b]}],ia=[{provide:$n,useFactory:()=>new qs},{provide:f.QbO,useValue:"BrowserAnimations"},...Do],na=[{provide:$n,useClass:zn},{provide:f.QbO,useValue:"NoopAnimations"},...Do];let Js=(()=>{class ie{static withConfig(O){return{ngModule:ie,providers:O.disableAnimations?na:ia}}}return ie.\u0275fac=function(O){return new(O||ie)},ie.\u0275mod=f.oAB({type:ie}),ie.\u0275inj=f.cJS({providers:ia,imports:[e.b2]}),ie})(),Zo=(()=>{class ie{}return ie.\u0275fac=function(O){return new(O||ie)},ie.\u0275mod=f.oAB({type:ie}),ie.\u0275inj=f.cJS({providers:[M.e8],imports:[P.ez]}),ie})();var so=p(81847),Fa=p(4732),ja=p(94856),Za=p(55857),Go=p(37240),zo=p(15592),lo=p(13600),Ro=p(37380),Nl=p(34904),dn=p(85243),Vl=p(68056),Fl=p(24219),jl=p(25828),Zl=p(10369),Gl=p(14336),zl=p(25309),Wl=p(86353),co=p(11042),$s=p(57788),Yl=p(80774),Hn=p(25610),ee=p(61639);let G=(()=>{class ie{constructor(){this.handlers=new Map,this.cachedComponents=new Set([so.y.id,Fa.G.id,ja.c.id,Vl.z.id,Fl.z.id,Zl.w.id,co.T.id,lo.y.id,zo.u.id,Go.q.id,ee.C.id,Za.W.id,Gl.Z.id,Ro.o.id,Nl.f.id,Hn._.id,dn.j.id,jl.t.id,$s.g.id,Yl.F.id,zl.Y.id,Wl.P.id]),this.cacheTimeMs=3e5,this.isUserNavigatingBack=!1}shouldReuseRoute(O,Y){return O.routeConfig===Y.routeConfig}retrieve(O){const Y=this.getKey(O);return this.handlers.has(Y)?this.handlers.get(Y).routeHandle:null}shouldAttach(O){if(!this.isUserNavigatingBack||!O.component)return!1;const Y=this.handlers.get(this.getKey(O));return Y&&this.getCurrentTimestamp()-Y.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();if(document.getElementsByClassName("cdk-overlay-container").length>0)for(;document.getElementsByClassName("cdk-overlay-container")[0].children.length>0;)document.getElementsByClassName("cdk-overlay-container")[0].children[0].remove();this.handlers.set(this.getKey(O),{routeHandle:Y,saveTimeStamp:this.getCurrentTimestamp()})}setLastNavigationType(O){this.isUserNavigatingBack="back"===O}getComponentId(O){return O.id}getKey(O){return O.pathFromRoot.map(Y=>Y.url.map(je=>je.toString())).join("/")}getCurrentTimestamp(){return+Date.now()}}return ie.\u0275fac=function(O){return new(O||ie)},ie.\u0275prov=f.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const De=new f.OlP("perun-api-service");let Xe=(()=>{class ie{constructor(O,Y,je,dt,Lt){this.http=O,this.storeService=Y,this.authzSevice=je,this.titleService=dt,this.utilsService=Lt}initializeColors(O,Y){return new Promise(je=>{Y.forEach(dt=>{const Lt=this.storeService.getProperty("theme")[dt.configValue];document.documentElement.style.setProperty(dt.cssVariable,Lt)}),O.forEach(dt=>{const Lt=this.storeService.getProperty("theme")[dt.configValue];document.documentElement.style.setProperty(dt.cssVariable,Lt),this.setEntityTheme(dt.entity,Lt)}),je()})}setEntityTheme(O,Y){const je=function vt(ie){return[Et(tinycolor(ie).lighten(52),"50"),Et(tinycolor(ie).lighten(37),"100"),Et(tinycolor(ie).lighten(26),"200"),Et(tinycolor(ie).lighten(12),"300"),Et(tinycolor(ie).lighten(6),"400"),Et(tinycolor(ie),"500"),Et(tinycolor(ie).darken(6),"600"),Et(tinycolor(ie).darken(12),"700"),Et(tinycolor(ie).darken(18),"800"),Et(tinycolor(ie).darken(24),"900"),Et(tinycolor(ie).lighten(50).saturate(30),"A100"),Et(tinycolor(ie).lighten(30).saturate(30),"A200"),Et(tinycolor(ie).lighten(10).saturate(15),"A400"),Et(tinycolor(ie).lighten(5).saturate(5),"A700")]}(Y);for(const dt of je){const Qt=`--${O}-theme-primary-contrast-${dt.name}`,ni=dt.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${O}-theme-primary-${dt.name}`,`${dt.red},${dt.green},${dt.blue}`),document.documentElement.style.setProperty(Qt,ni)}}loadAppDefaultConfig(){return new Promise(O=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(Y=>{this.storeService.setDefaultConfig(Y),O()})})}loadAppInstanceConfig(){return new Promise(O=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(Y=>{this.storeService.setInstanceConfig(Y);const je=document.location.hostname;Y?.brandings?.[je]&&this.storeService.setBanding(je),O()},()=>{O()})})}getNoCacheHeaders(){return new Ut.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(O=>{const Y=document.querySelector("link[rel*='icon']")||document.createElement("link");Y.type="image/x-icon",Y.rel="shortcut icon",Y.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(Y),O()})}setApiUrl(){return new Promise(O=>{let Y=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(Y=Y.replace("oauth","ba")),this.authzSevice.configuration.basePath=Y,this.titleService.setTitle(this.storeService.getProperty("document_title").en),O()})}loadAppsConfig(){return new Promise((O,Y)=>{this.utilsService.getAppsConfig().subscribe(je=>{this.storeService.setAppsConfig(je),O()},je=>Y(je))})}}return ie.\u0275fac=function(O){return new(O||ie)(f.LFG(Ut.eN),f.LFG(M.d6),f.LFG(m.Ct),f.LFG(e.Dx),f.LFG(m.FW))},ie.\u0275prov=f.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function Et(ie,k){const O=tinycolor(ie),Y=O.toRgb();return{name:k,hex:O.toHexString(),darkContrast:O.isLight(),red:Y.r,green:Y.g,blue:Y.b}}let qt=(()=>{class ie{constructor(O,Y){this.data=O,this.location=Y}redirect(){this.location.go("/"),location.reload()}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(H.WI),f.Y36(P.Ye))},ie.\u0275cmp=f.Xpm({type:ie,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[3,"click"]],template:function(O,Y){1&O&&(f.TgZ(0,"h2",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"p",1),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div",2)(7,"button",3),f.NdJ("click",function(){return Y.redirect()}),f._uU(8),f.ALo(9,"translate"),f.qZA()()),2&O&&(f.xp6(1),f.hij(" ",f.lcZ(2,3,Y.data.title),"\n"),f.xp6(3),f.hij(" ",f.lcZ(5,5,Y.data.message),"\n"),f.xp6(4),f.hij(" ",f.lcZ(9,7,Y.data.action)," "))},dependencies:[H.uh,H.xY,H.H8,T.X$]}),ie})(),hi=(()=>{class ie{constructor(O,Y){this.dialogRef=O,this.data=Y}refresh(){location.reload()}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(H.so),f.Y36(H.WI))},ie.\u0275cmp=f.Xpm({type:ie,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","",3,"click"]],template:function(O,Y){1&O&&(f.TgZ(0,"h2",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"p",1),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div",2)(7,"button",3),f.NdJ("click",function(){return Y.refresh()}),f._uU(8),f.ALo(9,"translate"),f.qZA()()),2&O&&(f.xp6(1),f.hij(" ",f.lcZ(2,3,Y.data.title),"\n"),f.xp6(3),f.hij(" ",f.lcZ(5,5,Y.data.message),"\n"),f.xp6(4),f.hij(" ",f.lcZ(9,7,Y.data.action)," "))},dependencies:[H.uh,H.xY,H.H8,$.lW,T.X$]}),ie})();var yi=p(83905);let xi=(()=>{class ie{constructor(O,Y,je,dt,Lt,kt,Qt){this.initAuthService=O,this.appConfigService=Y,this.authzSevice=je,this.dialog=dt,this.location=Lt,this.guiAuthResolver=kt,this.mfaHandlerService=Qt,this.entityColorConfigs=[{entity:"vo",configValue:"vo_color",cssVariable:"--vo-color"},{entity:"group",configValue:"group_color",cssVariable:"--group-color"},{entity:"user",configValue:"user_color",cssVariable:"--user-color"},{entity:"member",configValue:"member_color",cssVariable:"--member-color"},{entity:"facility",configValue:"facility_color",cssVariable:"--facility-color"},{entity:"resource",configValue:"resource_color",cssVariable:"--resource-color"},{entity:"admin",configValue:"admin_color",cssVariable:"--admin-color"},{entity:"service",configValue:"service_color",cssVariable:"--service-color"}],this.colorConfigs=[{configValue:"sidemenu_hover_color",cssVariable:"--side-root-item-hover"},{configValue:"sidemenu_active_color",cssVariable:"--side-root-item-active"},{configValue:"sidemenu_submenu_active_color",cssVariable:"--side-link-active"},{configValue:"sidemenu_submenu_hover_color",cssVariable:"--side-link-hover"},{configValue:"sidemenu_hover_text_color",cssVariable:"--side-root-item-text-hover"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-root-item-text-active"},{configValue:"sidemenu_submenu_active_text_color",cssVariable:"--side-link-text-active"},{configValue:"sidemenu_submenu_hover_text_color",cssVariable:"--side-link-text-hover"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(O=>{if("Invalid path"!==O)throw this.mfaHandlerService.catchNoMfaTokenError(O?.params?.error),console.error(O),this.location.go("/"),location.reload(),O;this.handleErr(O)}).then(O=>O?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().catch(Y=>this.handleErr(Y)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}handleErr(O){const Y=(0,w.kZ)();throw"Invalid path"===O?(Y.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(qt,Y)):401!==O.status&&(Y.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===O.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":O.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(hi,Y)),console.error(O),O}loadPolicies(){return(0,yi.z)(this.authzSevice.getAllPolicies()).then(O=>this.guiAuthResolver.setPerunPolicies(O))}}return ie.\u0275fac=function(O){return new(O||ie)(f.LFG(M.v0),f.LFG(Xe),f.LFG(m.Ct),f.LFG(H.uw),f.LFG(P.Ye),f.LFG(M.x4),f.LFG(M.hy))},ie.\u0275prov=f.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),un=(()=>{class ie{}return ie.\u0275fac=function(O){return new(O||ie)},ie.\u0275mod=f.oAB({type:ie}),ie.\u0275inj=f.cJS({imports:[P.ez,H.Is,$.ot,T.aw]}),ie})();var Xi=p(40445),zr=p(84080),Dn=p(83353),tr=p(21281),Vn=p(77579),ya=p(56451),Fn=p(54968),Po=p(69751),ql=p(66406),Xs=p(39646),Qc=p(95698),el=p(54482),As=p(72733),Wo=p(22529),ha=p(82722),Yo=p(28746),$c=p(71345);const Jl=new f.OlP("SMOOTH_SCROLL_OPTIONS");let qo=(()=>{class ie{constructor(O,Y,je){this._document=O,this._platform=Y,this._onGoingScrolls=new Map,this._defaultOptions={duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1},...je}}get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}_scrollElement(O,Y,je){O.scrollLeft=Y,O.scrollTop=je}_getElement(O,Y){return"string"==typeof O?(Y||this._document).querySelector(O):(0,tr.fI)(O)}_initSmoothScroll(O){return this._onGoingScrolls.has(O)&&this._onGoingScrolls.get(O).next(),this._onGoingScrolls.set(O,new Vn.x).get(O)}_isFinished(O,Y,je){return O.currentX!==O.x||O.currentY!==O.y||(Y.next(),je(),!1)}_interrupted(O,Y){return(0,ya.T)((0,Fn.R)(O,"wheel",{passive:!0,capture:!0}),(0,Fn.R)(O,"touchmove",{passive:!0,capture:!0}),Y).pipe((0,Qc.q)(1))}_destroy(O,Y){Y.complete(),this._onGoingScrolls.delete(O)}_step(O){return new Po.y(Y=>{let je=(this._now()-O.startTime)/O.duration;je=je>1?1:je;const dt=O.easing(je);O.currentX=O.startX+(O.x-O.startX)*dt,O.currentY=O.startY+(O.y-O.startY)*dt,this._scrollElement(O.scrollable,O.currentX,O.currentY),ql.Z.schedule(()=>Y.next(O))})}_applyScrollToOptions(O,Y){if(!Y.duration)return this._scrollElement(O,Y.left,Y.top),Promise.resolve();const je=this._initSmoothScroll(O),dt={scrollable:O,startTime:this._now(),startX:O.scrollLeft,startY:O.scrollTop,x:null==Y.left?O.scrollLeft:~~Y.left,y:null==Y.top?O.scrollTop:~~Y.top,duration:Y.duration,easing:$c(Y.easing.x1,Y.easing.y1,Y.easing.x2,Y.easing.y2)};return new Promise(Lt=>{(0,Xs.of)(null).pipe(function vs(ie,k=1/0,O){return k=(k||0)<1?1/0:k,(0,el.e)((Y,je)=>(0,As.p)(Y,je,ie,k,void 0,!0,O))}(()=>this._step(dt).pipe((0,Wo.o)(kt=>this._isFinished(kt,je,Lt)))),(0,ha.R)(this._interrupted(O,je)),(0,Yo.x)(()=>this._destroy(O,je))).subscribe()})}scrollTo(O,Y){if((0,P.NF)(this._platform)){const je=this._getElement(O),dt="rtl"===getComputedStyle(je).direction,Lt=(0,Dn._i)(),kt={...this._defaultOptions,...Y,left:null==Y.left?dt?Y.end:Y.start:Y.left,right:null==Y.right?dt?Y.start:Y.end:Y.right};return null!=kt.bottom&&(kt.top=je.scrollHeight-je.clientHeight-kt.bottom),dt&&0!==Lt?(null!=kt.left&&(kt.right=je.scrollWidth-je.clientWidth-kt.left),2===Lt?kt.left=kt.right:1===Lt&&(kt.left=kt.right?-kt.right:kt.right)):null!=kt.right&&(kt.left=je.scrollWidth-je.clientWidth-kt.right),this._applyScrollToOptions(je,kt)}return Promise.resolve()}scrollToElement(O,Y,je={}){const dt=this._getElement(O),Lt=this._getElement(Y,dt),kt={...je,left:Lt.offsetLeft+(je.left||0),top:Lt.offsetTop+(je.top||0)};return Lt?this.scrollTo(dt,kt):Promise.resolve()}}return ie.\u0275fac=function(O){return new(O||ie)(f.LFG(P.K0),f.LFG(f.Lbi),f.LFG(Jl,8))},ie.\u0275prov=f.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),Kl=(()=>{class ie{}return ie.\u0275fac=function(O){return new(O||ie)},ie.\u0275mod=f.oAB({type:ie}),ie.\u0275inj=f.cJS({}),ie})();var Xc=p(61135),ed=p(50727),Io=p(60515),In=p(18505),Wr=p(54004),il=p(63900),nl=p(78372),rl=p(71884);function al(...ie){const k=ie.length;if(0===k)throw new Error("list of properties cannot be empty.");return(0,Wr.U)(O=>{let Y=O;for(let je=0;je{ie.onselectstart=()=>!1})}function tc(ie){return(0,In.b)(()=>{ie.onselectstart=null})}function pa(){return(0,In.b)(ie=>ie.stopPropagation())}function ic(ie,k){return ie.clientX>=k.left&&ie.clientX<=k.left+k.width&&ie.clientY>=k.top&&ie.clientY<=k.top+k.height}let nc=(()=>{class ie{constructor(O){this.viewPort=O,this.nativeElement=O.nativeElement}get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){return this.contentWrapperElement?.clientHeight||0}get contentWidth(){return this.contentWrapperElement?.clientWidth||0}activatePointerEvents(O,Y){this.hovered=new Po.y(je=>{const dt=(0,Fn.R)(this.nativeElement,"mousemove",{passive:!0}),Lt=O?dt:dt.pipe(pa()),kt=(0,Fn.R)(this.nativeElement,"mouseleave",{passive:!0}).pipe((0,Wr.U)(()=>!1));(0,ya.T)(Lt,kt).pipe((0,In.b)(Qt=>je.next(Qt)),(0,ha.R)(Y)).subscribe()}),this.clicked=new Po.y(je=>{const dt=(0,Fn.R)(this.nativeElement,"mousedown",{passive:!0}).pipe((0,In.b)(kt=>je.next(kt))),Lt=(0,Fn.R)(this.nativeElement,"mouseup",{passive:!0}).pipe((0,In.b)(()=>je.next(!1)));dt.pipe((0,il.w)(()=>Lt),(0,ha.R)(Y)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(O){this.nativeElement.className=`ng-native-scrollbar-hider ng-scroll-viewport ${O}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(O){this.nativeElement.scrollTop=O}scrollXTo(O){this.nativeElement.scrollLeft=O}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(f.SBq))},ie.\u0275dir=f.lG2({type:ie,selectors:[["","scrollViewport",""]]}),ie})(),Br=(()=>{class ie{}return ie.\u0275fac=function(O){return new(O||ie)},ie.\u0275dir=f.lG2({type:ie}),ie})();const ad=new f.OlP("NG_SCROLLBAR_OPTIONS"),od={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1};let sd=(()=>{class ie{constructor(O){this.globalOptions=O?{...od,...O}:od,this.rtlScrollAxisType=(0,Dn._i)()}}return ie.\u0275fac=function(O){return new(O||ie)(f.LFG(ad,8))},ie.\u0275prov=f.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),lh=(()=>{class ie{constructor(O,Y,je){this.document=O,this.manager=Y,this.platform=je,this._scrollbarSize=new Xc.X(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),je.isBrowser&&(0,Fn.R)(this.document.defaultView,"resize",{passive:!0}).pipe((0,nl.b)(this.manager.globalOptions.windowResizeDebounce),(0,Wr.U)(()=>this.getNativeScrollbarSize()),(0,rl.x)(),(0,In.b)(dt=>this._scrollbarSize.next(dt))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const O=this.document.createElement("div");O.className="ng-scrollbar-measure",O.style.left="0px",O.style.overflow="scroll",O.style.position="fixed",O.style.top="-9999px",this.document.body.appendChild(O);const Y=O.getBoundingClientRect().right;return this.document.body.removeChild(O),Y}}return ie.\u0275fac=function(O){return new(O||ie)(f.LFG(P.K0),f.LFG(sd),f.LFG(Dn.t4))},ie.\u0275prov=f.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),ch=(()=>{class ie{constructor(O,Y,je){this.renderer=Y,this.hideNativeScrollbar=je,this._subscriber=ed.w0.EMPTY,this._subscriber=je.scrollbarSize.subscribe(dt=>{this.renderer.setStyle(O.nativeElement,"--native-scrollbar-size",`-${dt}px`,f.JOm.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(f.SBq),f.Y36(f.Qsj),f.Y36(lh))},ie.\u0275dir=f.lG2({type:ie,selectors:[["","hideNativeScrollbar",""]]}),ie})(),ld=(()=>{class ie{constructor(O){this.el=O}set ngAttr(O){for(const[Y,je]of Object.entries(O))this.el.nativeElement.setAttribute(Y,je)}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(f.SBq))},ie.\u0275dir=f.lG2({type:ie,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}}),ie})(),rc=(()=>{class ie{constructor(O,Y,je){if(this.zone=O,this.platform=Y,this.scrollbar=je,this._disabled=!1,this._currentSubscription=null,this.event=new f.vpe,!je)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}get debounce(){return this._debounce}set debounce(O){this._debounce=(0,tr.su)(O),this._subscribe()}get disabled(){return this._disabled}set disabled(O){this._disabled=(0,tr.Ig)(O),this._disabled?this._unsubscribe():this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){const O=new Po.y(Y=>{this._resizeObserver=new ResizeObserver(je=>Y.next(je)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?O.pipe((0,nl.b)(this._debounce)):O).subscribe(this.event)})}}_unsubscribe(){this._resizeObserver?.disconnect(),this._currentSubscription?.unsubscribe()}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(f.R0b),f.Y36(Dn.t4),f.Y36(Br))},ie.\u0275dir=f.lG2({type:ie,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}}),ie})(),Jo=(()=>{class ie{constructor(O,Y,je){this.cmp=O,this.trackElement=Y,this.document=je}get clicked(){const O=(0,Fn.R)(this.trackElement,"mousedown",{passive:!0}).pipe(pa(),ec(this.document)),Y=(0,Fn.R)(this.document,"mouseup",{passive:!0}).pipe(pa(),tc(this.document),(0,il.w)(()=>Io.E));return(0,ya.T)(O,Y)}get clientRect(){return this.trackElement.getBoundingClientRect()}onTrackClicked(O,Y,je){return(0,Xs.of)(O).pipe(al(this.pageProperty),(0,Wr.U)(dt=>(dt-this.offset-Y/2)/this.size*je),(0,In.b)(dt=>{this.cmp.scrollTo({...this.mapToScrollToOption(dt),duration:(0,tr.su)(this.cmp.trackClickScrollDuration)})}))}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(Br),f.Y36(HTMLElement),f.Y36(Document))},ie.\u0275dir=f.lG2({type:ie}),ie})(),ws=(()=>{class ie extends Jo{constructor(O,Y,je){super(O,Y.nativeElement,je),this.cmp=O,this.document=je}get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}mapToScrollToOption(O){return{left:O}}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(Br),f.Y36(f.SBq),f.Y36(P.K0))},ie.\u0275dir=f.lG2({type:ie,selectors:[["","scrollbarTrackX",""]],features:[f.qOj]}),ie})(),Es=(()=>{class ie extends Jo{constructor(O,Y,je){super(O,Y.nativeElement,je),this.cmp=O,this.document=je}get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}mapToScrollToOption(O){return{top:O}}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(Br),f.Y36(f.SBq),f.Y36(P.K0))},ie.\u0275dir=f.lG2({type:ie,selectors:[["","scrollbarTrackY",""]],features:[f.qOj]}),ie})(),ol=(()=>{class ie{constructor(O,Y,je,dt){this.cmp=O,this.track=Y,this.thumbElement=je,this.document=dt,this._dragging=new Vn.x,this.dragging=this._dragging.pipe((0,rl.x)())}get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return(0,Fn.R)(this.thumbElement,"mousedown",{passive:!0}).pipe(pa())}update(){const O=function fa(ie,k,O){return Math.max(~~(ie/k*ie),O)}(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),Y=function cd(ie,k,O){return ie*O/k}(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);ql.Z.schedule(()=>this.updateStyles(this.handleDirection(Y,this.trackMax),O))}dragged(O){let Y,je;const dt=(0,Xs.of)(O).pipe(ec(this.document),(0,In.b)(()=>{Y=this.trackMax,je=this.viewportScrollMax,this.setDragging(!0)})),Lt=(0,Fn.R)(this.document,"mousemove",{capture:!0,passive:!0}).pipe(pa()),kt=(0,Fn.R)(this.document,"mouseup",{capture:!0}).pipe(pa(),tc(this.document),(0,In.b)(()=>this.setDragging(!1)));return dt.pipe(al(this.pageProperty),(0,Wr.U)(Qt=>Qt-this.dragStartOffset),(0,td.z)(Qt=>Lt.pipe(al(this.clientProperty),(0,Wr.U)(ni=>ni-this.track.offset),(0,Wr.U)(ni=>je*(ni-Qt)/Y),(0,Wr.U)(ni=>this.handleDrag(ni,je)),(0,In.b)(ni=>this.scrollTo(ni)),(0,ha.R)(kt))))}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(Br),f.Y36(Jo),f.Y36(HTMLElement),f.Y36(Document))},ie.\u0275dir=f.lG2({type:ie,outputs:{dragging:"dragging"}}),ie})(),ac=(()=>{class ie extends ol{constructor(O,Y,je,dt,Lt){super(O,Y,je.nativeElement,dt),this.cmp=O,this.track=Y,this.element=je,this.document=dt,this.dir=Lt}get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}updateStyles(O,Y){this.thumbElement.style.width=`${Y}px`,this.thumbElement.style.transform=`translate3d(${O}px, 0, 0)`}handleDrag(O,Y){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return O-Y;if(2===this.cmp.manager.rtlScrollAxisType)return Y-O}return O}handleDirection(O,Y){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-O;if(0===this.cmp.manager.rtlScrollAxisType)return O-Y}return O}setDragging(O){this.cmp.setDragging({horizontalDragging:O})}scrollTo(O){this.cmp.viewport.scrollXTo(O)}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(Br),f.Y36(ws),f.Y36(f.SBq),f.Y36(P.K0),f.Y36(Xi.Is))},ie.\u0275dir=f.lG2({type:ie,selectors:[["","scrollbarThumbX",""]],features:[f.qOj]}),ie})(),oc=(()=>{class ie extends ol{constructor(O,Y,je,dt){super(O,Y,je.nativeElement,dt),this.cmp=O,this.track=Y,this.element=je,this.document=dt}get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}updateStyles(O,Y){this.thumbElement.style.height=`${Y}px`,this.thumbElement.style.transform=`translate3d(0px, ${O}px, 0)`}handleDrag(O){return O}handleDirection(O){return O}setDragging(O){this.cmp.setDragging({verticalDragging:O})}scrollTo(O){this.cmp.viewport.scrollYTo(O)}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(Br),f.Y36(Es),f.Y36(f.SBq),f.Y36(P.K0))},ie.\u0275dir=f.lG2({type:ie,selectors:[["","scrollbarThumbY",""]],features:[f.qOj]}),ie})(),sl=(()=>{class ie{constructor(O,Y,je,dt,Lt){this.el=O,this.cmp=Y,this.platform=je,this.document=dt,this.zone=Lt,this.destroyed=new Vn.x}activatePointerEvents(){let O,Y,je;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new Vn.x,this.viewportThumbClicked=new Vn.x,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),O=this.viewportThumbClicked,Y=this.viewportTrackClicked,je=this.cmp.viewport.hovered.pipe((0,Wr.U)(dt=>!!dt&&ic(dt,this.el.getBoundingClientRect())),(0,rl.x)(),(0,In.b)(dt=>this.document.onselectstart=dt?()=>!1:null)),this.cmp.viewport.clicked.pipe((0,In.b)(dt=>{dt?ic(dt,this.thumb.clientRect)?this.viewportThumbClicked.next(dt):ic(dt,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(dt)):this.cmp.setClicked(!1)}),(0,ha.R)(this.destroyed)).subscribe()):(O=this.thumb.clicked,Y=this.track.clicked,je=this.hovered),(0,ya.T)(je.pipe((0,In.b)(dt=>this.setHovered(dt))),O.pipe((0,il.w)(dt=>this.thumb.dragged(dt))),Y.pipe((0,il.w)(dt=>this.track.onTrackClicked(dt,this.thumb.size,this.viewportScrollSize))))}get hovered(){const O=(0,Fn.R)(this.el,"mouseenter",{passive:!0}).pipe(pa(),(0,Wr.U)(()=>!0)),Y=(0,Fn.R)(this.el,"mouseleave",{passive:!0}).pipe(pa(),(0,Wr.U)(()=>!1));return(0,ya.T)(O,Y)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe((0,ha.R)(this.destroyed)).subscribe(),(0,ya.T)(this.cmp.scrolled,this.cmp.updated).pipe((0,In.b)(()=>this.thumb?.update()),(0,ha.R)(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(HTMLElement),f.Y36(Br),f.Y36(Dn.t4),f.Y36(Document),f.Y36(f.R0b))},ie.\u0275dir=f.lG2({type:ie}),ie})(),ll=(()=>{class ie extends sl{constructor(O,Y,je,dt,Lt){super(O.nativeElement,Y,je,dt,Lt),this.cmp=Y,this.platform=je,this.document=dt,this.zone=Lt}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}setHovered(O){this.cmp.setHovered({verticalHovered:O})}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(f.SBq),f.Y36(Br),f.Y36(Dn.t4),f.Y36(P.K0),f.Y36(f.R0b))},ie.\u0275cmp=f.Xpm({type:ie,selectors:[["scrollbar-y"]],viewQuery:function(O,Y){if(1&O&&(f.Gf(Es,7),f.Gf(oc,7)),2&O){let je;f.iGM(je=f.CRH())&&(Y.track=je.first),f.iGM(je=f.CRH())&&(Y.thumb=je.first)}},hostVars:2,hostBindings:function(O,Y){2&O&&f.ekj("scrollbar-control",!0)},features:[f.qOj],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0),f._UZ(1,"div",1),f.qZA()),2&O&&(f.Gre("ng-scrollbar-track ",Y.cmp.trackClass,""),f.xp6(1),f.Gre("ng-scrollbar-thumb ",Y.cmp.thumbClass,""))},dependencies:[oc,Es],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%} .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:auto;left:initial} .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:auto;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:auto;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:auto;left:initial;right:0} .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0}),ie})(),dd=(()=>{class ie extends sl{constructor(O,Y,je,dt,Lt){super(O.nativeElement,Y,je,dt,Lt),this.cmp=Y,this.platform=je,this.document=dt,this.zone=Lt}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}setHovered(O){this.cmp.setHovered({horizontalHovered:O})}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(f.SBq),f.Y36(Br),f.Y36(Dn.t4),f.Y36(P.K0),f.Y36(f.R0b))},ie.\u0275cmp=f.Xpm({type:ie,selectors:[["scrollbar-x"]],viewQuery:function(O,Y){if(1&O&&(f.Gf(ws,7),f.Gf(ac,7)),2&O){let je;f.iGM(je=f.CRH())&&(Y.track=je.first),f.iGM(je=f.CRH())&&(Y.thumb=je.first)}},hostVars:2,hostBindings:function(O,Y){2&O&&f.ekj("scrollbar-control",!0)},features:[f.qOj],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0),f._UZ(1,"div",1),f.qZA()),2&O&&(f.Gre("ng-scrollbar-track ",Y.cmp.trackClass,""),f.xp6(1),f.Gre("ng-scrollbar-thumb ",Y.cmp.thumbClass,""))},dependencies:[ac,ws],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%} .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:auto;bottom:initial} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:auto;top:initial} .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:auto;bottom:initial} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0}),ie})(),ud=(()=>{class ie{constructor(O,Y,je,dt,Lt,kt){this.el=O,this.zone=Y,this.changeDetectorRef=je,this.dir=dt,this.smoothScroll=Lt,this.manager=kt,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new f.vpe,this.state={},this.destroyed=new Vn.x}get disabled(){return this._disabled}set disabled(O){this._disabled=(0,tr.Ig)(O)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(O){this._sensorDisabled=(0,tr.Ig)(O)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(O){this._pointerEventsDisabled=(0,tr.Ig)(O)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(O){this._viewportPropagateMouseMove=(0,tr.Ig)(O)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(O){this._autoHeightDisabled=(0,tr.Ig)(O)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(O){this._autoWidthDisabled=(0,tr.Ig)(O)}get nativeElement(){return this.el.nativeElement}updateState(){let O=!1,Y=!1,je=!1,dt=!1;("all"===this.track||"vertical"===this.track)&&(je=this.viewport.scrollHeight>this.viewport.clientHeight,O="always"===this.visibility||je),("all"===this.track||"horizontal"===this.track)&&(dt=this.viewport.scrollWidth>this.viewport.clientWidth,Y="always"===this.visibility||dt),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:O,horizontalUsed:Y,isVerticallyScrollable:je,isHorizontallyScrollable:dt})}setState(O){this.state={...this.state,...O},this.changeDetectorRef.detectChanges()}getScrolledByDirection(O){let Y;return this.scrolled.pipe((0,In.b)(je=>Y=je),al("target",O),(0,id.G)(),(0,nd.h)(([je,dt])=>je!==dt),(0,Wr.U)(()=>Y))}setHovered(O){this.zone.run(()=>this.setState({...O}))}setDragging(O){this.zone.run(()=>this.setState({...O}))}setClicked(O){this.zone.run(()=>this.setState({scrollbarClicked:O}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let O=(0,Fn.R)(this.viewport.nativeElement,"scroll",{passive:!0});O=this.scrollAuditTime?O.pipe((0,Cs.e)(this.scrollAuditTime)):O,this.scrolled=O.pipe((0,ha.R)(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(O){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe((0,In.b)(()=>this.update()),(0,ha.R)(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(O){return this.smoothScroll.scrollTo(this.viewport.nativeElement,O)}scrollToElement(O,Y){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,O,Y)}updateHeight(){this.nativeElement.style.height="standard"===this.appearance&&this.scrollbarX?`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:`${this.viewport.contentHeight}px`}updateWidth(){this.nativeElement.style.width="standard"===this.appearance&&this.scrollbarY?`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:`${this.viewport.contentWidth}px`}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(f.sBO),f.Y36(Xi.Is),f.Y36(qo),f.Y36(sd))},ie.\u0275cmp=f.Xpm({type:ie,selectors:[["ng-scrollbar"]],contentQueries:function(O,Y,je){if(1&O&&f.Suo(je,nc,7),2&O){let dt;f.iGM(dt=f.CRH())&&(Y.customViewPort=dt.first)}},viewQuery:function(O,Y){if(1&O&&(f.Gf(Ql,5,f.SBq),f.Gf(rd,5,f.SBq),f.Gf(nc,7)),2&O){let je;f.iGM(je=f.CRH())&&(Y.scrollbarY=je.first),f.iGM(je=f.CRH())&&(Y.scrollbarX=je.first),f.iGM(je=f.CRH())&&(Y.defaultViewPort=je.first)}},hostVars:2,hostBindings:function(O,Y){2&O&&f.ekj("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[f._Bn([{provide:Br,useExisting:ie}]),f.TTD],ngContentSelectors:sh,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"],["scrollbarX",""],["scrollbarY",""]],template:function(O,Y){1&O&&(f.F$t(),f.TgZ(0,"div",0)(1,"div",1),f.NdJ("resizeSensor",function(){return Y.update()}),f.TgZ(2,"div",2)(3,"div"),f.Hsn(4),f.qZA()()(),f.YNc(5,Xl,3,2,"ng-container",3),f.qZA()),2&O&&(f.Q6J("ngAttr",Y.state),f.xp6(1),f.Q6J("sensorDebounce",Y.sensorDebounce)("sensorDisabled",Y.sensorDisabled),f.xp6(4),f.Q6J("ngIf",!Y.disabled))},dependencies:[P.O5,nc,ch,ld,rc,ll,dd],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none} .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)} .ng-scroll-content{display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%], .ng-scroll-viewport{position:absolute;left:0;right:0;top:0;bottom:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none} .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none} .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)} .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none} .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default} .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0}),ie})(),hd=(()=>{class ie{static withConfig(O){return{ngModule:ie,providers:[{provide:ad,useValue:O}]}}}return ie.\u0275fac=function(O){return new(O||ie)},ie.\u0275mod=f.oAB({type:ie}),ie.\u0275inj=f.cJS({imports:[P.ez,Xi.vT,zr.eL,Dn.ud,Kl]}),ie})();var cl=p(51214),pd=p(73228),fd=p(36769),Mr=p(22465);function dl(ie,k){if(1&ie){const O=f.EpF();f.TgZ(0,"div")(1,"perun-web-apps-notification",2),f.NdJ("closeNotification",function(){const dt=f.CHM(O).index,Lt=f.oxw();return f.KtG(Lt.removeNotification(dt))}),f.qZA()()}if(2&ie){const O=k.$implicit;f.Q6J("@flyInOut",void 0),f.xp6(1),f.Q6J("data",O)("newNotification",!0)}}const sc=function(ie){return{top:ie}};let ul=(()=>{class ie{constructor(O,Y){this.notificator=O,this.notificationStorageService=Y,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(je=>{this.processNotification(je)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(O){this.notifications.splice(O,1)}processNotification(O){this.notifications.push(O),this.notificationStorageService.storeNotification(O)}}return ie.\u0275fac=function(O){return new(O||ie)(f.Y36(M.V6),f.Y36(M.SZ))},ie.\u0275cmp=f.Xpm({type:ie,selectors:[["perun-web-apps-notificator"]],hostBindings:function(O,Y){1&O&&f.NdJ("resize",function(dt){return Y.getScreenSize(dt)},!1,f.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0),f.YNc(1,dl,2,3,"div",1),f.qZA()),2&O&&(f.Q6J("ngStyle",f.VKq(2,sc,Y.getNotificatorTop())),f.xp6(1),f.Q6J("ngForOf",Y.notifications))},dependencies:[P.sg,P.PC,Mr.c],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:initial;bottom:0}}"],data:{animation:[fd.Pd]}}),ie})();var sr=p(46453);const Ko={provide:Ut.TP,useExisting:(0,f.Gpc)(()=>M.yC),multi:!0};function lc(ie){return new pi(ie,"./assets/i18n/",".json")}function cc(ie){const k={basePath:ie.getProperty("api_url")};return new m.VK(k)}const md=ie=>()=>ie.initialize();let dc=(()=>{class ie{constructor(O,Y){this.customIconService=O,this.translate=Y,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return ie.\u0275fac=function(O){return new(O||ie)(f.LFG(M.EB),f.LFG(T.sK))},ie.\u0275mod=f.oAB({type:ie,bootstrap:[It.y]}),ie.\u0275inj=f.cJS({providers:[xi,{provide:f.ip1,useFactory:md,multi:!0,deps:[xi]},{provide:m.VK,useFactory:cc,deps:[M.d6]},{provide:A.wN,useClass:G},M.EB,{provide:De,useClass:M.sM},M.yC,Ko,{provide:cl.Hy,useFactory:()=>localStorage}],imports:[Js,e.b2,Ut.JF,ai.m,Zo,Mt,fe.Ps,un,T.aw.forRoot({loader:{provide:T.Zw,useFactory:lc,deps:[Ut.eN]}}),m.au,d.ez,qe,hd.withConfig({autoWidthDisabled:!1,visibility:"hover"}),cl.zr.forRoot()]}),ie})();f.B6R(It.y,function(){return[P.O5,P.PC,A.lC,fe.Hw,pd.V,j.JX,j.TM,j.Rh,xt.$,ul,sr.Y,Te,ud]},[]),(0,f.G48)(),e.q6().bootstrapModule(dc).catch(ie=>console.error(ie))},11243:(Qe,ae,p)=>{"use strict";p.d(ae,{r:()=>A});var e=p(36895),f=p(94650);let A=(()=>{class S{}return S.\u0275fac=function(M){return new(M||S)},S.\u0275mod=f.oAB({type:S}),S.\u0275inj=f.cJS({imports:[e.ez]}),S})()},6335:(Qe,ae,p)=>{"use strict";p.d(ae,{Ng:()=>S,Rc:()=>f,pI:()=>A});var e=p(94650);const f="GUI_CONFIG.PREF_PAGE_SIZE",A="GUI_CONFIG.PREF_PAGE_SIZE.";let S=(()=>{class m{getString(w){return localStorage.getItem(w)}getNumber(w){return parseInt(localStorage.getItem(w),10)}setNumber(w,x){localStorage.setItem(w,x.toString())}}return m.\u0275fac=function(w){return new(w||m)},m.\u0275prov=e.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},10036:(Qe,ae,p)=>{"use strict";p.d(ae,{$I:()=>ai,$V:()=>s,$t:()=>Ut,AA:()=>F,Ad:()=>Je,Af:()=>V,Aj:()=>$e,BV:()=>pe,Bf:()=>t,CE:()=>xt,CP:()=>S,Cf:()=>Pe,DR:()=>ve,FF:()=>It,H2:()=>J,HC:()=>N,HE:()=>bt,Hi:()=>ne,Is:()=>ht,It:()=>C,Iz:()=>_,JO:()=>r,Jf:()=>ye,KE:()=>U,M8:()=>we,NG:()=>z,NL:()=>he,O7:()=>W,O9:()=>st,RS:()=>le,S7:()=>E,Sb:()=>X,US:()=>l,VR:()=>T,W1:()=>ze,Wv:()=>_e,XH:()=>pi,YF:()=>w,_7:()=>ce,_c:()=>Ae,aL:()=>He,bf:()=>Me,bj:()=>Se,cL:()=>Ve,d7:()=>be,dB:()=>A,dI:()=>j,dK:()=>Te,e5:()=>n,ee:()=>Mt,eq:()=>pt,g:()=>de,gB:()=>te,gG:()=>d,gc:()=>x,iQ:()=>o,j1:()=>$,kO:()=>Re,kZ:()=>Fe,nT:()=>M,oK:()=>u,qV:()=>re,qy:()=>ge,rF:()=>ke,rc:()=>ue,tY:()=>v,tw:()=>m,uC:()=>Oe,uI:()=>Tt,uM:()=>H,v1:()=>I,vq:()=>Ye,xt:()=>fe,xx:()=>P,yW:()=>ut,z6:()=>h,zW:()=>qe,zp:()=>c});var e=p(6335),f=p(94650);let A=(()=>{class We{constructor(et){this.guiConfigService=et,this.defaultTableSizes=new Map,this.defaultTableSizes.set(ke,25),this.defaultTableSizes.set(H,25)}getTablePageSize(et){const rt=this.guiConfigService.getNumber(e.pI+et);if(!isNaN(rt))return rt;const Ft=this.guiConfigService.getNumber(e.Rc);return isNaN(Ft)?this.defaultTableSizes.get(et)??10:Ft}setTablePageSize(et,rt){this.guiConfigService.setNumber(e.pI+et,rt)}}return We.\u0275fac=function(et){return new(et||We)(f.LFG(e.Ng))},We.\u0275prov=f.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"}),We})();const S="0",m="1",M="2",w="3",x="4",I="5",F="6",T="7",H="8",P="9",J="10",fe="11",j="12",$="13",_e="14",ge="15",pe="16",re="17",v="18",V="19",W="20",te="21",ne="22",ye="23",ze="24",ke="25",$e="26",Je="27",Fe="28",Ve="29",le="30",N="31",U="32",X="33",ce="34",Me="35",ue="36",Pe="37",pt="42",z="43",st="44",be="45",Ye="46",he="47",Re="48",He="49",ve="50",Oe="51",r="52",u="53",_="54",C="55",h="56",o="57",n="58",t="59",c="62",l="63",d="64",s="65",E="66",qe="69",xt="71",ht="72",we="75",de="76",Ae="77",Te="78",ut="79",bt="80",Mt="82",It="83",ai="84",pi="85",Ut="86",Tt="87",Se="88"},36769:(Qe,ae,p)=>{"use strict";p.d(ae,{Ji:()=>m,Pd:()=>A,BQ:()=>f,Ly:()=>S,GH:()=>x,Ls:()=>I,SG:()=>w,es:()=>M});var e=p(37340);const f=(0,e.X$)("openClose",[(0,e.SB)("open",(0,e.oB)({overflow:"hidden"})),(0,e.SB)("closed",(0,e.oB)({height:"0px",overflow:"hidden"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),A=(0,e.X$)("flyInOut",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".5s",(0,e.oB)({transform:"translateX(100%)"}))])]),S=(0,e.X$)("rollInOut",[(0,e.eR)(":enter",[(0,e.oB)({height:"0px"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".25s",(0,e.oB)({height:"0px"}))])]),m=(0,e.X$)("routeAnimations",[(0,e.eR)("* => *",[(0,e.oB)({position:"relative"}),(0,e.IO)(":enter",[(0,e.oB)({width:"100%",opacity:0})],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({position:"absolute",width:"100%",opacity:1}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,e.IO)(":enter",[(0,e.oB)({position:"absolute",width:"100%",opacity:0}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),M=(0,e.X$)("tagsOpenClose",[(0,e.SB)("open",(0,e.oB)({})),(0,e.SB)("closed",(0,e.oB)({width:"0px",height:"0px"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),w=(0,e.X$)("switchAnimations",[(0,e.eR)("true => false",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(-100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,e.eR)("false => true",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),x=(0,e.X$)("slideInOutLeft",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(-100%)"}))])]),I=(0,e.X$)("slideInOutRight",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)",position:"fixed"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(100%)"}))])])},37433:(Qe,ae,p)=>{"use strict";p.d(ae,{Mw:()=>tt.M,CZ:()=>l.C,Ld:()=>B.L,qG:()=>r.qG,Sx:()=>ve.S,y9:()=>u,Nj:()=>be.N,ez:()=>ue,N7:()=>a});var e=p(36895),f=p(56709),A=p(30671),S=p(89383),m=p(82761),M=p(96308),w=p(98739),x=p(51572),I=p(63189),F=p(46860),T=p(97392),H=p(28255),P=p(4859),J=p(10266),fe=p(59549),j=p(24006),$=p(284),_e=p(77331),ge=p(73555),pe=p(3238),re=p(19516),v=p(22465),V=p(64425),W=p(35423),te=p(99602),ne=p(71948),ye=p(84385),ze=p(33231),ke=p(67376),$e=p(7274),Je=p(9244),Fe=p(60900),Ve=p(42673),le=p(21029),N=p(94650),U=p(98380),X=p(34447);let ce=(()=>{class q extends pe.LF{format(it,xt){return"input"===xt?`${it.getDate().toString()}.${(it.getMonth()+1).toString()}.${it.getFullYear()}`:it.toDateString()}}return q.\u0275fac=function(){let qe;return function(xt){return(qe||(qe=N.n5z(q)))(xt||q)}}(),q.\u0275prov=N.Yz7({token:q,factory:q.\u0275fac}),q})();const Me={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let ue=(()=>{class q{}return q.\u0275fac=function(it){return new(it||q)},q.\u0275mod=N.oAB({type:q}),q.\u0275inj=N.cJS({providers:[{provide:pe._A,useClass:ce},{provide:pe.sG,useValue:Me}],imports:[e.ez,f.p9,A.p0,j.u5,_e.Hi,ge._t,S.aw,m.Bz,M.JX,w.TU,x.Cq,I.r,F.A,T.Ps,H.Tx,P.ot,J.AV,fe.lN,j.UX,$.c,pe.si,re.d4,V.Iq,W.dp,te.FA,ne.Fk,pe.Ng,ye.LD,ze.Co,ke.Cl,$e.Is,Je.Je,Fe.C,Ve.g]}),q})();N.B6R(le.Us,[e.O5,U.w,P.lW,ke.xd,ke.x0,ke.N7,$e.uh,$e.xY,$e.H8,v.c],[S.X$,X.a]),p(53984);var tt=p(43532),be=(p(38719),p(21963),p(28820),p(63167),p(62109),p(80275),p(53599)),ve=(p(25788),p(58956),p(41619),p(61150),p(63312)),r=(p(52314),p(52170));let u=(()=>{class q{constructor(it){this.router=it}redirectToHome(){this.router.navigate(["/home"],{queryParamsHandling:"merge"})}}return q.\u0275fac=function(it){return new(it||q)(N.Y36(m.F0))},q.\u0275cmp=N.Xpm({type:q,selectors:[["perun-web-apps-not-authorized-page"]],decls:10,vars:9,consts:[[1,"container-fluid","ps-xl-5","pe-xl-5"],[1,"page-title"],["mat-stroked-button","",1,"mt-2",3,"click"]],template:function(it,xt){1&it&&(N.TgZ(0,"div",0)(1,"h1",1),N._uU(2),N.ALo(3,"translate"),N.qZA(),N.TgZ(4,"div"),N._uU(5),N.ALo(6,"translate"),N.qZA(),N.TgZ(7,"button",2),N.NdJ("click",function(){return xt.redirectToHome()}),N._uU(8),N.ALo(9,"translate"),N.qZA()()),2&it&&(N.xp6(2),N.Oqu(N.lcZ(3,3,"GENERAL.NOT_AUTHORIZED_PAGE.TITLE")),N.xp6(3),N.Oqu(N.lcZ(6,5,"GENERAL.NOT_AUTHORIZED_PAGE.DESC")),N.xp6(3),N.hij(" ",N.lcZ(9,7,"GENERAL.NOT_AUTHORIZED_PAGE.REDIRECT")," "))},dependencies:[P.lW,S.X$]}),q})();p(2541),p(74006);var h=p(80279),o=p(61744),n=p(95017),t=p(96338);function i(q,qe){if(1&q){const it=N.EpF();N.TgZ(0,"mat-list-item",3)(1,"div",4)(2,"p",5),N.NdJ("click",function(){const _t=N.CHM(it).$implicit,Ee=N.oxw();return N.KtG(Ee.showWholeKey(_t))}),N._uU(3),N.qZA(),N.TgZ(4,"button",6),N.ALo(5,"translate"),N.ALo(6,"customTranslate"),N.TgZ(7,"mat-icon"),N._uU(8," file_copy "),N.qZA()(),N.TgZ(9,"button",7),N.NdJ("click",function(){const _t=N.CHM(it).$implicit,Ee=N.oxw();return N.KtG(Ee.removeKey(_t))}),N.ALo(10,"translate"),N.ALo(11,"customTranslate"),N.TgZ(12,"mat-icon"),N._uU(13," delete "),N.qZA()()()()}if(2&q){const it=qe.$implicit;N.xp6(3),N.Oqu(it),N.xp6(1),N.s9C("matTooltip",N.lcZ(5,4,N.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.COPY_TOOLTIP"))),N.Q6J("cdkCopyToClipboard",it),N.xp6(5),N.s9C("matTooltip",N.lcZ(10,8,N.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_TOOLTIP")))}}let a=(()=>{class q{constructor(it,xt,ht,_t,Ee){this.store=it,this.attributesManagerService=xt,this.dialog=ht,this.translateService=_t,this.entityStorageService=Ee,this.userKeys=[],this.userUrn="urn:perun:user:attribute-def:def:sshPublicKey",this.selection=new n.Ov(!1,[]),_t.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(we=>this.removeDialogDescription=we),_t.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(we=>this.removeDialogTitle=we),_t.get("ALERTS.NO_ALT_PASSWORDS").subscribe(we=>this.alertText=we),_t.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(we=>this.headerColumnText=we)}ngOnInit(){this.userId=window.location.pathname.startsWith("/myProfile")?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(it=>this.removeDialogDescription=it),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(it=>this.removeDialogTitle=it),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(it=>this.alertText=it),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(it=>this.headerColumnText=it)}),this.loading=!0,this.getUserSSH()}addKey(){const it=(0,Je.kZ)();it.width="850px",it.data={attribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(le.FJ,it).afterClosed().subscribe(ht=>{ht&&this.getUserSSH()})}removeKey(it){const xt=(0,Je.kZ)();xt.width="600px",xt.data={values:[it],attribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(le.eK,xt).afterClosed().subscribe(_t=>{_t&&(this.loading=!0,this.getUserSSH(),this.selection.clear())})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(it=>{this.userKeyAttribute=it,this.userKeys=it.value,this.loading=!1})}showWholeKey(it){const xt=(0,Je.kZ)();xt.width="600px",xt.data={value:it},this.dialog.open(le.iI,xt)}}return q.\u0275fac=function(it){return new(it||q)(N.Y36(h.d6),N.Y36(o.H8),N.Y36($e.uw),N.Y36(S.sK),N.Y36(h.fb))},q.\u0275cmp=N.Xpm({type:q,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:14,vars:16,consts:[[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["class","dark-hover-list-item w-auto","matRipple","",4,"ngFor","ngForOf"],["matRipple","",1,"dark-hover-list-item","w-auto"],[1,"d-flex","flex-row"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ms-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ms-2","center-content",3,"matTooltip","click"]],template:function(it,xt){1&it&&(N.TgZ(0,"h1",0),N._uU(1),N.ALo(2,"translate"),N.ALo(3,"customTranslate"),N.qZA(),N.TgZ(4,"p"),N._uU(5),N.ALo(6,"translate"),N.ALo(7,"customTranslate"),N.qZA(),N.TgZ(8,"button",1),N.NdJ("click",function(){return xt.addKey()}),N._uU(9),N.ALo(10,"translate"),N.ALo(11,"customTranslate"),N.qZA(),N.TgZ(12,"mat-list"),N.YNc(13,i,14,12,"mat-list-item",2),N.qZA()),2&it&&(N.xp6(1),N.hij(" ",N.lcZ(2,4,N.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_TITLE")),"\n"),N.xp6(4),N.Oqu(N.lcZ(6,8,N.lcZ(7,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_DESCRIPTION"))),N.xp6(4),N.hij(" ",N.lcZ(10,12,N.lcZ(11,14,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),N.xp6(4),N.Q6J("ngForOf",xt.userKeys))},dependencies:[e.sg,T.Hw,P.lW,P.RK,J.gM,pe.wG,V.i3,t.i$,t.Tg,S.X$,X.a],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}label[_ngcontent-%COMP%]:hover, .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),q})();p(46453);var l=p(29926),B=(p(91880),p(61880),p(12488),p(7434))},63312:(Qe,ae,p)=>{"use strict";p.d(ae,{S:()=>m,Y:()=>M});var e=p(94650),A=(p(61744),p(89383)),S=p(89593);const m={};let M=(()=>{class w{constructor(I){this.translate=I,this.item=null,this.itemSelected=new e.vpe,this.nameFunction=F=>F===m?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):F.shortname,this.secondaryFunction=F=>F===m?"":F.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+String(F.id),this.searchFunction=F=>F===m?"":F.shortname+String(F.id)}}return w.\u0275fac=function(I){return new(I||w)(e.Y36(A.sK))},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-app-form-item-search-select"]],inputs:{items:"items",item:"item"},outputs:{itemSelected:"itemSelected"},decls:4,vars:15,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","entity","disableAutoSelect","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(I,F){1&I&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(H){return F.itemSelected.emit(H)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&I&&e.Q6J("entities",F.items)("searchFunction",F.searchFunction)("mainTextFunction",F.nameFunction)("secondaryTextFunction",F.secondaryFunction)("entity",F.item)("disableAutoSelect",!0)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[S.i,A.X$]}),w})()},68788:(Qe,ae,p)=>{"use strict";p.d(ae,{x:()=>M});var e=p(94650),f=p(59549),A=p(3238),S=p(84385),m=p(89383);let M=(()=>{class w{constructor(){this.stateChanged=new e.vpe,this.state="pending"}select(){switch(this.state){case"approved":this.stateChanged.emit(["APPROVED"]);break;case"rejected":this.stateChanged.emit(["REJECTED"]);break;case"wfmv":this.stateChanged.emit(["NEW"]);break;case"submitted":this.stateChanged.emit(["VERIFIED"]);break;case"pending":this.stateChanged.emit(["NEW","VERIFIED"]);break;case"all":this.stateChanged.emit(null)}}}return w.\u0275fac=function(I){return new(I||w)},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-application-state-selector"]],outputs:{stateChanged:"stateChanged"},decls:23,vars:22,consts:[[1,"input-width-250","me-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","pending"],["value","wfmv"],["value","submitted"],["value","approved"],["value","rejected"]],template:function(I,F){1&I&&(e.TgZ(0,"mat-form-field",0)(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-select",1),e.NdJ("selectionChange",function(){return F.select()})("valueChange",function(H){return F.state=H}),e.TgZ(5,"mat-option",2),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"mat-option",3),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"mat-option",4),e._uU(12),e.ALo(13,"translate"),e.qZA(),e.TgZ(14,"mat-option",5),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"mat-option",6),e._uU(18),e.ALo(19,"translate"),e.qZA(),e.TgZ(20,"mat-option",7),e._uU(21),e.ALo(22,"translate"),e.qZA()()()),2&I&&(e.xp6(2),e.Oqu(e.lcZ(3,8,"APPLICATIONS_LIST.STATE")),e.xp6(2),e.Q6J("value",F.state),e.xp6(2),e.Oqu(e.lcZ(7,10,"VO_DETAIL.APPLICATION.SELECTION_ALL")),e.xp6(3),e.Oqu(e.lcZ(10,12,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),e.xp6(3),e.Oqu(e.lcZ(13,14,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),e.xp6(3),e.Oqu(e.lcZ(16,16,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),e.xp6(3),e.Oqu(e.lcZ(19,18,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),e.xp6(3),e.Oqu(e.lcZ(22,20,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")))},dependencies:[f.KE,f.hX,A.ey,S.gD,m.X$]}),w})()},38719:(Qe,ae,p)=>{"use strict";p.d(ae,{u:()=>F});var e=p(94650),f=p(9244),A=p(36895),S=p(56709),m=p(24006),M=p(59549),w=p(64597);function x(T,H){if(1&T){const P=e.EpF();e.TgZ(0,"mat-checkbox",2),e.NdJ("change",function(){e.CHM(P);const fe=e.oxw();return e.KtG(fe._sendEventToParent())})("ngModelChange",function(fe){e.CHM(P);const j=e.oxw();return e.KtG(j.attribute.value=fe)}),e.ALo(1,"multiWordDataCy"),e.qZA()}if(2&T){const P=e.oxw();e.Q2q("data-cy","",e.lcZ(1,2,P.attribute.displayName),"-value"),e.Q6J("ngModel",P.attribute.value)}}function I(T,H){if(1&T&&(e.TgZ(0,"mat-label"),e._uU(1),e.qZA()),2&T){const P=e.oxw();e.xp6(1),e.Oqu(P.attribute.value)}}let F=(()=>{class T{constructor(){this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,f.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return T.\u0275fac=function(P){return new(P||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(P,J){1&P&&(e.TgZ(0,"div"),e.YNc(1,x,2,4,"mat-checkbox",0),e.YNc(2,I,2,1,"mat-label",1),e.qZA()),2&P&&(e.xp6(1),e.Q6J("ngIf",!J.readonly),e.xp6(1),e.Q6J("ngIf",J.readonly))},dependencies:[A.O5,S.oG,m.JJ,m.On,M.hX,w.R]}),T})()},21963:(Qe,ae,p)=>{"use strict";p.d(ae,{H:()=>re});var e=p(94650),f=p(29521),A=p(73555),S=p(21029),m=p(9244),M=p(7274),w=p(36895),x=p(77331),I=p(97392),F=p(4859),T=p(10266),H=p(59549),P=p(284);function J(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"mat-icon",14),e.NdJ("mousedown",function(){e.CHM(W);const ne=e.oxw(2);return e.KtG(ne.dragDisabled=!1)}),e._uU(1,"drag_indicator"),e.qZA()}}function fe(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"mat-icon",15),e.NdJ("click",function(){e.CHM(W);const ne=e.oxw().$implicit,ye=e.oxw();return e.KtG(ye.edit(ne))}),e._uU(1,"edit"),e.qZA()}}function j(v,V){1&v&&(e.TgZ(0,"button",16)(1,"mat-icon",17),e._uU(2,"cancel"),e.qZA()())}function $(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"mat-chip-row",7),e.NdJ("removed",function(){const ye=e.CHM(W).$implicit,ze=e.oxw();return ze.remove(ye),e.KtG(ze._sendEventToParent())}),e.TgZ(1,"div",8),e.NdJ("click",function(){const ye=e.CHM(W).$implicit,ze=e.oxw();return e.KtG(ze.readonly&&void 0!==ze.attribute.displayName&&ze.showValue(ye,ze.attribute.displayName))}),e.YNc(2,J,2,0,"mat-icon",9),e.TgZ(3,"span",10),e._uU(4),e.qZA()(),e.TgZ(5,"button",11),e.YNc(6,fe,2,0,"mat-icon",12),e.qZA(),e.YNc(7,j,3,0,"button",13),e.qZA()}if(2&v){const W=V.$implicit,te=e.oxw();e.Q6J("cdkDragData",W)("removable",te.removable),e.xp6(1),e.ekj("cursor-pointer",te.readonly&&void 0!==te.attribute.displayName),e.xp6(1),e.Q6J("ngIf",te.removable),e.xp6(2),e.Oqu(W),e.xp6(2),e.Q6J("ngIf",te.removable),e.xp6(1),e.Q6J("ngIf",te.removable)}}function _e(v,V){1&v&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function ge(v,V){1&v&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function pe(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"div",18)(1,"span",19)(2,"button",20),e.NdJ("click",function(){e.CHM(W);const ne=e.oxw();return e.KtG(ne.onShowChange())}),e.YNc(3,_e,2,0,"mat-icon",21),e.YNc(4,ge,2,0,"mat-icon",21),e.qZA()()()}if(2&v){const W=e.oxw();e.xp6(1),e.Q6J("matTooltip",W.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(2),e.Q6J("ngIf",!W.showMore),e.xp6(1),e.Q6J("ngIf",W.showMore)}}let re=(()=>{class v{constructor(W,te){this.dialog=W,this.changeDetector=te,this.readonly=!1,this.sendEventToParent=new e.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[f.K5,f.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!(0,m.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,m.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(W){const te=W.input,ne=W.value;(ne||"").trim()&&(this.attribute.value.push(ne.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),te&&(te.value=""),this.sendEventToParent.emit()}remove(W){const te=(0,m.kZ)();te.width="400px",te.data={name:W},this.dialog.open(S.Wr,te).afterClosed().subscribe(ye=>{if(ye){const ze=this.attribute.value.indexOf(W);this.attribute.value.splice(ze,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(W){this.dragDisabled=!0,(0,A.bA)(this.attribute.value,W.previousIndex,W.currentIndex),this.values=this.attribute.value}edit(W){const te=this.attribute.value.indexOf(W),ne=(0,m.kZ)();ne.width="600px",ne.data={attribute:this.attribute,index:te},this.dialog.open(S.r2,ne).afterClosed().subscribe(ze=>{ze&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(W,te){const ne=(0,m.kZ)();ne.width="350px",ne.data={value:W,title:te},this.dialog.open(S.mk,ne)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return v.\u0275fac=function(W){return new(W||v)(e.Y36(M.uw),e.Y36(e.sBO))},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:7,vars:7,consts:[["cdkDropList","","cdkDropListOrientation","vertical",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],[1,"d-flex","flex-column"],["class","chip-word-break","cdkDrag","",3,"cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["subscriptSizing","dynamic",1,"w-100",3,"hidden"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"],["cdkDrag","",1,"chip-word-break",3,"cdkDragData","removable","removed"],[1,"chip-body",3,"click"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text"],["matChipTrailingIcon",""],["class","edit-delete-icon ms-2",3,"click",4,"ngIf"],["matChipRemove","",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ms-2",3,"click"],["matChipRemove",""],[1,"edit-delete-icon"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ms-auto",3,"click"],[4,"ngIf"]],template:function(W,te){if(1&W&&(e.TgZ(0,"mat-chip-grid",0,1),e.NdJ("cdkDropListDropped",function(ye){return te.drop(ye),te._sendEventToParent()}),e.TgZ(2,"div",2),e.YNc(3,$,8,8,"mat-chip-row",3),e.qZA(),e.YNc(4,pe,5,4,"div",4),e.TgZ(5,"mat-form-field",5)(6,"input",6),e.NdJ("matChipInputTokenEnd",function(ye){return te.add(ye)})("change",function(){return te._sendEventToParent()}),e.qZA()()()),2&W){const ne=e.MAs(1);e.Q6J("cdkDropListDisabled",te.dragDisabled),e.xp6(3),e.Q6J("ngForOf",te.values.slice(0,te.itemsShown)),e.xp6(1),e.Q6J("ngIf",te.values.length>te.defaultItemsShown),e.xp6(1),e.Q6J("hidden",te.readonly),e.xp6(1),e.Q6J("matChipInputFor",ne)("matChipInputSeparatorKeyCodes",te.separatorKeysCodes)("matChipInputAddOnBlur",te.addOnBlur)}},dependencies:[w.sg,w.O5,x.RA,x.oH,x.qH,x.z3,x.T,A.Wj,A.Zt,I.Hw,F.RK,T.gM,H.KE,P.Nt],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-body[_ngcontent-%COMP%]{align-items:center;display:flex}.mat-mdc-chip-grid[_ngcontent-%COMP%] .mat-mdc-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px;margin-left:-4px}.mat-mdc-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.chip-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:400px}"]}),v})()},28820:(Qe,ae,p)=>{"use strict";p.d(ae,{$:()=>_e});var e=p(21029),f=p(9244),A=p(94650),S=p(7274),m=p(36895),M=p(24006),w=p(97392),x=p(4859),I=p(10266),F=p(59549),T=p(284);function H(ge,pe){if(1&ge){const re=A.EpF();A.TgZ(0,"button",13),A.NdJ("click",function(){A.CHM(re);const V=A.oxw().index,W=A.oxw();return A.KtG(W.removeValue(V))}),A.TgZ(1,"mat-icon"),A._uU(2," indeterminate_check_box "),A.qZA()()}}function P(ge,pe){if(1&ge){const re=A.EpF();A.TgZ(0,"div",8)(1,"mat-form-field",9)(2,"input",10),A.NdJ("click",function(){const W=A.CHM(re).index,te=A.oxw();return A.KtG(te.readonly&&te.attribute.displayName&&te.showValue(te.keys[W],te.attribute.displayName))})("ngModelChange",function(V){const te=A.CHM(re).index,ne=A.oxw();return A.KtG(ne.keys[te]=V)}),A.qZA()(),A.TgZ(3,"mat-form-field",9)(4,"input",11),A.NdJ("click",function(){const W=A.CHM(re).$implicit,te=A.oxw();return A.KtG(te.readonly&&void 0!==te.attribute.displayName&&te.showValue(W,te.attribute.displayName))})("ngModelChange",function(V){const te=A.CHM(re).index,ne=A.oxw();return A.KtG(ne.values[te]=V)}),A.qZA()(),A.YNc(5,H,3,0,"button",12),A.qZA()}if(2&ge){const re=pe.index,v=A.oxw();A.xp6(1),A.s9C("appearance",v.readonly?"outline":"fill"),A.xp6(1),A.ekj("cursor-pointer",v.readonly&&void 0!==v.attribute.displayName),A.hYB("id","",v.attribute.id,"-key-",re,""),A.MGl("name","key-",re,""),A.Q6J("ngModel",v.keys[re])("readonly",v.readonly),A.xp6(1),A.s9C("appearance",v.readonly?"outline":"fill"),A.xp6(1),A.ekj("cursor-pointer",v.readonly&&void 0!==v.attribute.displayName),A.MGl("name","value-",re,""),A.hYB("id","",v.attribute.id,"-value-",re,""),A.Q6J("readonly",v.readonly)("ngModel",v.values[re]),A.xp6(1),A.Q6J("ngIf",!v.readonly)}}function J(ge,pe){1&ge&&(A.TgZ(0,"mat-icon"),A._uU(1,"more_horiz"),A.qZA())}function fe(ge,pe){1&ge&&(A.TgZ(0,"mat-icon"),A._uU(1,"keyboard_arrow_up"),A.qZA())}function j(ge,pe){if(1&ge){const re=A.EpF();A.TgZ(0,"button",14),A.NdJ("click",function(){A.CHM(re);const V=A.oxw();return A.KtG(V.onShowChange())}),A.YNc(1,J,2,0,"mat-icon",15),A.YNc(2,fe,2,0,"mat-icon",15),A.qZA()}if(2&ge){const re=A.oxw();A.xp6(1),A.Q6J("ngIf",!re.showMore),A.xp6(1),A.Q6J("ngIf",re.showMore)}}function $(ge,pe){if(1&ge){const re=A.EpF();A.TgZ(0,"button",16),A.NdJ("click",function(){A.CHM(re);const V=A.oxw();return A.KtG(V.addValue())}),A.TgZ(1,"mat-icon"),A._uU(2," add_box "),A.qZA()()}}let _e=(()=>{class ge{constructor(re){this.dialog=re,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const re=new Map(Object.entries(this.attribute.value));for(const[v,V]of re.entries())this.keys.push(v),this.values.push(V)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,f.Hm)(this.attribute))}customTrackBy(re){return re}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(re){this.keys.splice(re,1),this.values.splice(re,1)}updateAttribute(){const re={};for(let v=0;vv.defaultItemsShown),A.xp6(1),A.Q6J("ngIf",!v.readonly))},dependencies:[m.sg,m.O5,M._Y,M.Fj,M.JJ,M.JL,M.Q7,M.On,M.F,w.Hw,x.RK,I.gM,F.KE,T.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.fixed-height[_ngcontent-%COMP%]{height:35px}"]}),ge})()},63167:(Qe,ae,p)=>{"use strict";p.d(ae,{_:()=>I});var e=p(94650),f=p(9244),A=p(21029),S=p(7274),m=p(24006),M=p(59549),w=p(284),x=p(64597);let I=(()=>{class F{constructor(H){this.dialog=H,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,f.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(H,P){const J=(0,f.kZ)();J.width="350px",J.data={value:H,title:P},this.dialog.open(A.mk,J)}}return F.\u0275fac=function(H){return new(H||F)(e.Y36(S.uw))},F.\u0275cmp=e.Xpm({type:F,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[["subscriptSizing","dynamic",1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(H,P){1&H&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return P.readonly&&void 0!==P.value&&P.showValue(P.value,P.attribute.displayName)})("ngModelChange",function(fe){return P.attribute.value=fe})("keydown",function(){return P._sendEventToParent()}),e.ALo(2,"multiWordDataCy"),e.qZA()()),2&H&&(e.s9C("appearance",P.readonly?"outline":"fill"),e.xp6(1),e.ekj("cursor-pointer",P.readonly&&void 0!==P.value),e.Q2q("data-cy","",e.lcZ(2,6,P.attribute.displayName),"-value"),e.Q6J("readonly",P.readonly)("ngModel",P.attribute.value))},dependencies:[m.Fj,m.JJ,m.On,M.KE,w.Nt,x.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),F})()},43532:(Qe,ae,p)=>{"use strict";p.d(ae,{M:()=>pe});var e=p(94650),f=p(28820),A=p(36895),S=p(38719),m=p(21963),M=p(63167),w=p(9244),x=p(21029),I=p(7274),F=p(24006),T=p(59549),H=p(284);let P=(()=>{class re{constructor(V){this.dialog=V,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,w.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(V){const W=(0,w.kZ)();W.width="350px",W.data={value:V.value,title:V.displayName},this.dialog.open(x.mk,W)}}return re.\u0275fac=function(V){return new(V||re)(e.Y36(I.uw))},re.\u0275cmp=e.Xpm({type:re,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[["subscriptSizing","dynamic",1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(V,W){1&V&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return W.readonly&&void 0!==W.attribute.value&&W.showValue(W.attribute)})("ngModelChange",function(ne){return W.attribute.value=ne})("keydown",function(){return W._sendEventToParent()}),e.qZA()()),2&V&&(e.s9C("appearance",W.readonly?"outline":"fill"),e.xp6(1),e.ekj("cursor-pointer",W.readonly&&void 0!==W.attribute.value),e.Q6J("readonly",W.readonly)("ngModel",W.attribute.value))},dependencies:[F.Fj,F.wV,F.JJ,F.On,T.KE,H.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),re})();const J=["map"];function fe(re,v){if(1&re){const V=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-boolean",3),e.NdJ("sendEventToParent",function(){e.CHM(V);const te=e.oxw();return e.KtG(te._sendEventToParent2())}),e.qZA()}if(2&re){const V=e.oxw();e.Q6J("attribute",V.attribute)("readonly",V.readonly)}}function j(re,v){if(1&re){const V=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-list",3),e.NdJ("sendEventToParent",function(){e.CHM(V);const te=e.oxw();return e.KtG(te._sendEventToParent2())}),e.qZA()}if(2&re){const V=e.oxw();e.Q6J("attribute",V.attribute)("readonly",V.readonly)}}function $(re,v){if(1&re&&e._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&re){const V=e.oxw();e.Q6J("attribute",V.attribute)("readonly",V.readonly)}}function _e(re,v){if(1&re){const V=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-string",3),e.NdJ("sendEventToParent",function(){e.CHM(V);const te=e.oxw();return e.KtG(te._sendEventToParent2())}),e.qZA()}if(2&re){const V=e.oxw();e.Q6J("attribute",V.attribute)("readonly",V.readonly)}}function ge(re,v){if(1&re){const V=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-integer",3),e.NdJ("sendEventToParent",function(){e.CHM(V);const te=e.oxw();return e.KtG(te._sendEventToParent2())}),e.qZA()}if(2&re){const V=e.oxw();e.Q6J("attribute",V.attribute)("readonly",V.readonly)}}let pe=(()=>{class re{constructor(){this.readonly=!1,this.sendEventToParent2=new e.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return re.\u0275fac=function(V){return new(V||re)},re.\u0275cmp=e.Xpm({type:re,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(V,W){if(1&V&&e.Gf(J,5),2&V){let te;e.iGM(te=e.CRH())&&(W.mapComponent=te.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(V,W){1&V&&(e.TgZ(0,"div"),e.YNc(1,fe,1,2,"perun-web-apps-attribute-value-boolean",0),e.YNc(2,j,1,2,"perun-web-apps-attribute-value-list",0),e.TgZ(3,"div",1),e.NdJ("click",function(){return W._sendEventToParent2()}),e.YNc(4,$,2,2,"perun-web-apps-attribute-value-map",2),e.qZA(),e.YNc(5,_e,1,2,"perun-web-apps-attribute-value-string",0),e.YNc(6,ge,1,2,"perun-web-apps-attribute-value-integer",0),e.qZA()),2&V&&(e.xp6(1),e.Q6J("ngIf","java.lang.Boolean"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.util.ArrayList"===W.attribute.type),e.xp6(2),e.Q6J("ngIf","java.util.LinkedHashMap"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.String"===W.attribute.type||"java.lang.LargeString"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.Integer"===W.attribute.type))},dependencies:[A.O5,S.u,m.H,f.$,M._,P]}),re})()},53984:(Qe,ae,p)=>{"use strict";p.d(ae,{p:()=>U});var e=p(96308),f=p(30671),A=p(95017),S=p(43532),m=p(9244),M=p(80279),w=p(94650),x=p(36895),I=p(56709),F=p(98380),T=p(10266),H=p(18750),P=p(89383);let J=(()=>{class X{transform(Me){return"virt"===Me.namespace.split(":")[4]}}return X.\u0275fac=function(Me){return new(Me||X)},X.\u0275pipe=w.Yjl({name:"isVirtualAttribute",type:X,pure:!0}),X})();var fe=p(64597),j=p(9185),$=p(8231),_e=p(14849);function ge(X,ce){if(1&X){const Me=w.EpF();w.TgZ(0,"th",18)(1,"mat-checkbox",19),w.NdJ("change",function(Pe){w.CHM(Me);const tt=w.oxw(2);return w.KtG(Pe?tt.masterToggle():null)}),w.ALo(2,"translate"),w.ALo(3,"masterCheckboxLabel"),w.qZA()()}if(2&X){const Me=w.oxw().ngIf,ue=w.oxw();w.xp6(1),w.Q6J("checked",ue.selection.hasValue()&&Me.all)("indeterminate",ue.selection.hasValue()&&!Me.all)("aria-label",w.lcZ(2,3,w.lcZ(3,5,Me.all)))}}const pe=function(X){return{name:X}};function re(X,ce){if(1&X){const Me=w.EpF();w.TgZ(0,"td",20)(1,"mat-checkbox",21),w.NdJ("click",function(Pe){return Pe.stopPropagation()})("change",function(Pe){const Ce=w.CHM(Me).$implicit,at=w.oxw(2);return w.KtG(Pe?at.selection.toggle(Ce):null)}),w.ALo(2,"multiWordDataCy"),w.ALo(3,"isVirtualAttribute"),w.ALo(4,"translate"),w.ALo(5,"checkboxLabel"),w.qZA()()}if(2&X){const Me=ce.$implicit,ue=w.oxw(2);w.xp6(1),w.Q2q("data-cy","",w.lcZ(2,4,Me.displayName),"-checkbox"),w.Q6J("checked",ue.selection.isSelected(Me))("disabled",w.lcZ(3,6,Me)||!Me.writable)("aria-label",w.xi3(4,8,w.lcZ(5,11,ue.selection.isSelected(Me)),w.VKq(13,pe,Me.displayName)))}}function v(X,ce){1&X&&(w.ynx(0,15),w.YNc(1,ge,4,7,"th",16),w.YNc(2,re,6,15,"td",17),w.BQk())}function V(X,ce){1&X&&(w.TgZ(0,"th",22),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&X&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function W(X,ce){if(1&X&&(w.TgZ(0,"td",23),w._uU(1),w.qZA()),2&X){const Me=ce.$implicit;w.xp6(1),w.Oqu(Me.id)}}function te(X,ce){1&X&&(w.TgZ(0,"th",22),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&X&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function ne(X,ce){if(1&X&&(w.TgZ(0,"td",24),w.ALo(1,"multiWordDataCy"),w.TgZ(2,"div",25),w._uU(3),w.qZA()()),2&X){const Me=ce.$implicit,ue=w.oxw();w.Q2q("data-cy","",w.lcZ(1,3,Me.friendlyName),"-friendlyName"),w.xp6(2),w.s9C("matTooltip",ue.getAttributeFullName(Me)),w.xp6(1),w.hij(" ",Me.displayName," ")}}function ye(X,ce){1&X&&(w.TgZ(0,"th",26),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&X&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function ze(X,ce){if(1&X){const Me=w.EpF();w.TgZ(0,"td",24)(1,"perun-web-apps-attribute-value",27),w.NdJ("sendEventToParent2",function(){const tt=w.CHM(Me).$implicit,Ce=w.oxw();return w.KtG(Ce.onValueChange(tt))}),w.qZA()()}if(2&X){const Me=ce.$implicit,ue=w.oxw();w.xp6(1),w.Q6J("attribute",Me)("readonly",ue.readonly||!Me.writable)}}function ke(X,ce){1&X&&(w.TgZ(0,"th",22),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&X&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function $e(X,ce){if(1&X&&(w.TgZ(0,"td",24),w._uU(1),w.qZA()),2&X){const Me=ce.$implicit;w.xp6(1),w.Oqu(Me.description)}}function Je(X,ce){1&X&&w._UZ(0,"tr",28)}function Fe(X,ce){if(1&X&&(w._UZ(0,"tr",29),w.ALo(1,"translate")),2&X){const Me=ce.$implicit,ue=w.oxw();w.s9C("matTooltip",w.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),w.Q6J("matTooltipPosition","before")("matTooltipDisabled",Me.writable||ue.readonly)}}function Ve(X,ce){1&X&&(w.TgZ(0,"perun-web-apps-alert",30),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&X&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function le(X,ce){if(1&X&&(w.TgZ(0,"perun-web-apps-alert",30),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&X){const Me=w.oxw();w.xp6(1),w.hij(" ",w.lcZ(2,1,Me.emptyListText),"\n")}}const N=function(X){return{all:X}};let U=(()=>{class X{constructor(Me,ue){this.authResolver=Me,this.tableCheckbox=ue,this.attributes=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=m.f7}set matSort(Me){this.sort=Me,this.setDataSource()}static canBeSelected(Me){return!(0,m.Hm)(Me)&&Me.writable}static getDataForColumn(Me,ue){switch(ue){case"id":return Me.id.toString();case"displayName":return Me.displayName;case"description":return Me.description;case"value":return JSON.stringify(Me.value);case"urn":return Me.namespace+":"+Me.baseFriendlyName;default:return""}}canBeSelected(Me){return!(0,m.Hm)(Me)&&Me.writable}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Me=>"id"!==Me)),this.dataSource=new f.by((0,m.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(Me){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,X.getDataForColumn),Me)}exportDisplayedData(Me){const ue=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Pe=ue+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ue,Pe),this.displayedColumns,X.getDataForColumn),Me)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(Me=>!this.hiddenColumns.includes(Me)),this.dataSource&&(this.dataSource.filterPredicate=(Me,ue)=>(0,m.Sd)(Me,ue,this.displayedColumns.concat("urn"),X.getDataForColumn),this.dataSource.sortData=(Me,ue)=>(0,m.pR)(Me,ue,X.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,X.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,X.canBeSelected)}updateMapAttributes(){for(const Me of this.items.toArray())"java.util.LinkedHashMap"===Me.attribute.type&&Me.updateMapAttribute()}onValueChange(Me){X.canBeSelected(Me)&&this.selection.select(Me)}getAttributeFullName(Me){return`${Me.namespace}:${Me.friendlyName}`}}return X.\u0275fac=function(Me){return new(Me||X)(w.Y36(M.x4),w.Y36(M.UA))},X.\u0275cmp=w.Xpm({type:X,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(Me,ue){if(1&Me&&(w.Gf(m.l9,7),w.Gf(e.YE,7),w.Gf(S.M,5)),2&Me){let Pe;w.iGM(Pe=w.CRH())&&(ue.child=Pe.first),w.iGM(Pe=w.CRH())&&(ue.matSort=Pe.first),w.iGM(Pe=w.CRH())&&(ue.items=Pe)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[w.TTD],decls:21,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","displayName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(Me,ue){1&Me&&(w.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),w.NdJ("exportDisplayedData",function(tt){return ue.exportDisplayedData(tt)})("exportAllData",function(tt){return ue.exportAllData(tt)}),w.TgZ(2,"table",2),w.YNc(3,v,3,0,"ng-container",3),w.ALo(4,"isAllSelected"),w.ynx(5,4),w.YNc(6,V,3,3,"th",5),w.YNc(7,W,2,1,"td",6),w.BQk(),w.ynx(8,7),w.YNc(9,te,3,3,"th",5),w.YNc(10,ne,4,5,"td",8),w.BQk(),w.ynx(11,9),w.YNc(12,ye,3,3,"th",10),w.YNc(13,ze,2,2,"td",8),w.BQk(),w.ynx(14,11),w.YNc(15,ke,3,3,"th",5),w.YNc(16,$e,2,1,"td",8),w.BQk(),w.YNc(17,Je,1,0,"tr",12),w.YNc(18,Fe,2,5,"tr",13),w.qZA()()(),w.YNc(19,Ve,3,3,"perun-web-apps-alert",14),w.YNc(20,le,3,3,"perun-web-apps-alert",14)),2&Me&&(w.Q6J("hidden",0===ue.dataSource.filteredData.length),w.xp6(1),w.Q6J("tableId",ue.tableId)("dataLength",ue.dataSource.filteredData.length)("pageSizeOptions",ue.pageSizeOptions),w.xp6(1),w.Q6J("dataSource",ue.dataSource),w.xp6(1),w.Q6J("ngIf",w.VKq(14,N,w.Dn7(4,10,ue.dataSource,ue.selection.selected.length,ue.canBeSelected))),w.xp6(14),w.Q6J("matHeaderRowDef",ue.displayedColumns),w.xp6(1),w.Q6J("matRowDefColumns",ue.displayedColumns),w.xp6(1),w.Q6J("ngIf",0===ue.dataSource.filteredData.length&&0!==ue.dataSource.data.length),w.xp6(1),w.Q6J("ngIf",0===ue.dataSource.data.length))},dependencies:[x.O5,I.oG,f.BZ,f.fO,f.as,f.w1,f.Dz,f.nj,f.ge,f.ev,f.XQ,f.Gk,e.YE,e.nU,F.w,T.gM,H.l,S.M,P.X$,J,fe.R,j.I,$.G,_e.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-mdc-row[_ngcontent-%COMP%]{height:auto}.mat-mdc-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),X})()},6967:(Qe,ae,p)=>{"use strict";p.d(ae,{e:()=>J});var e=p(94650),f=p(36895),A=p(82761),S=p(97392),m=p(4859),M=p(10266),w=p(34198),x=p(55660);const I=function(fe,j){return["/organizations",fe,"groups",j]};function F(fe,j){if(1&fe&&(e.TgZ(0,"div",4)(1,"a",5),e.NdJ("auxclick",function(_e){return _e.preventDefault()}),e._uU(2),e.qZA()()),2&fe){const $=j.$implicit,_e=e.oxw();e.xp6(1),e.ekj("cursor-pointer",!_e.disableRouting),e.Q6J("routerLink",_e.disableRouting?null:e.WLB(5,I,$.voId,$.id))("perunWebAppsMiddleClickRouterLink",_e.disableRouting?null:e.WLB(8,I,$.voId.toString(),$.id.toString())),e.xp6(1),e.Oqu(_e.authzVoNames.get($.voId)+" : "+$.name)}}function T(fe,j){1&fe&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function H(fe,j){1&fe&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function P(fe,j){if(1&fe){const $=e.EpF();e.TgZ(0,"button",6),e.NdJ("click",function(){e.CHM($);const ge=e.oxw();return e.KtG(ge.onShowChange())}),e.YNc(1,T,2,0,"mat-icon",7),e.YNc(2,H,2,0,"mat-icon",7),e.qZA()}if(2&fe){const $=e.oxw();e.xp6(1),e.Q6J("ngIf",!$.showMore),e.xp6(1),e.Q6J("ngIf",$.showMore)}}let J=(()=>{class fe{constructor(){this.disableRouting=!1,this.defaultItemsShown=3,this.itemsShown=this.defaultItemsShown,this.showMore=!1}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}setItemsShown(){this.itemsShown=this.showMore?this.groups.length:this.defaultItemsShown}}return fe.\u0275fac=function($){return new($||fe)},fe.\u0275cmp=e.Xpm({type:fe,selectors:[["perun-web-apps-authorized-groups-cell"]],inputs:{groups:"groups",authzVoNames:"authzVoNames",disableRouting:"disableRouting"},decls:5,vars:4,consts:[[1,"mt-1"],["class","mb-1",4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mb-1"],[1,"group-link",3,"routerLink","perunWebAppsMiddleClickRouterLink","auxclick"],["mat-icon-button","",3,"click"],[4,"ngIf"]],template:function($,_e){1&$&&(e.TgZ(0,"div",0),e.YNc(1,F,3,11,"div",1),e.qZA(),e.TgZ(2,"div")(3,"span",2),e.YNc(4,P,3,2,"button",3),e.qZA()()),2&$&&(e.xp6(1),e.Q6J("ngForOf",_e.groups.slice(0,_e.itemsShown)),e.xp6(2),e.Q6J("matTooltip",_e.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(1),e.Q6J("ngIf",_e.groups.length>_e.defaultItemsShown))},dependencies:[f.sg,f.O5,A.rH,S.Hw,m.RK,M.gM,w.Y,x.Q],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),fe})()},4235:(Qe,ae,p)=>{"use strict";p.d(ae,{W:()=>I});var e=p(80279),f=p(94650),A=p(36895),S=p(97392),m=p(4859),M=p(10266),w=p(89383);const x=function(F){return{color:F}};let I=(()=>{class F{constructor(H,P){this.location=H,this.storeService=P}ngOnInit(){this.backButtonColor=this.storeService.getProperty("theme").back_button_color}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return F.\u0275fac=function(H){return new(H||F)(f.Y36(A.Ye),f.Y36(e.d6))},F.\u0275cmp=f.Xpm({type:F,selectors:[["perun-web-apps-back-button"]],decls:4,vars:6,consts:[["mat-stroked-button","",1,"mb-2","mt-2",3,"ngStyle","matTooltip","click"],[1,"rotate"]],template:function(H,P){1&H&&(f.TgZ(0,"button",0),f.NdJ("click",function(){return P.goBack()}),f.ALo(1,"translate"),f.TgZ(2,"mat-icon",1),f._uU(3,"arrow_right_alt"),f.qZA()()),2&H&&(f.s9C("matTooltip",f.lcZ(1,2,"Back")),f.Q6J("ngStyle",f.VKq(4,x,P.backButtonColor)))},dependencies:[A.PC,S.Hw,m.lW,M.gM,w.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),F})()},91880:(Qe,ae,p)=>{"use strict";p.d(ae,{s:()=>be});var e=p(94650),f=p(9244),A=p(95017),S=p(80279),m=p(30671),M=p(96308),w=p(19516),x=p(36895),I=p(29926),F=p(56709),T=p(98380),H=p(97392),P=p(4859),J=p(18750),fe=p(89383),j=p(31359),$=p(9185),_e=p(8231),ge=p(14849);let pe=(()=>{class Ye{constructor(Re){this.authResolver=Re}transform(Re,He){return this.authResolver.isAuthorized(He,[Re])}}return Ye.\u0275fac=function(Re){return new(Re||Ye)(e.Y36(S.x4,16))},Ye.\u0275pipe=e.Yjl({name:"isAuthorized",type:Ye,pure:!0}),Ye})();function re(Ye,he){if(1&Ye){const Re=e.EpF();e.TgZ(0,"mat-checkbox",24),e.NdJ("change",function(ve){e.CHM(Re);const Oe=e.oxw(2).ngIf,r=e.oxw();return e.KtG(ve?r.masterToggle(Oe.all):null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&Ye){const Re=e.oxw(2).ngIf,He=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,Re.all)))("checked",He.selection.hasValue()&&Re.all)("indeterminate",He.selection.hasValue()&&!Re.all)}}function v(Ye,he){if(1&Ye&&(e.TgZ(0,"th",22),e.YNc(1,re,3,7,"mat-checkbox",23),e.qZA()),2&Ye){const Re=e.oxw(2);e.xp6(1),e.Q6J("ngIf",Re.selection.isMultipleSelection())}}const V=function(Ye){return{name:Ye}};function W(Ye,he){if(1&Ye){const Re=e.EpF();e.TgZ(0,"td",25)(1,"mat-checkbox",26),e.NdJ("change",function(){const Oe=e.CHM(Re).$implicit,r=e.oxw(2);return e.KtG(r.toggle(Oe))})("click",function(ve){return ve.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.qZA()()}if(2&Ye){const Re=he.$implicit,He=e.oxw(2);e.xp6(1),e.Q6J("aria-label",e.xi3(2,2,e.lcZ(3,5,He.selection.isSelected(Re)),e.VKq(7,V,Re.name)))("checked",He.selection.isSelected(Re))}}function te(Ye,he){1&Ye&&(e.ynx(0,19),e.YNc(1,v,2,1,"th",20),e.YNc(2,W,4,9,"td",21),e.BQk())}function ne(Ye,he){1&Ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.BAN_ID_HEADER")," "))}function ye(Ye,he){if(1&Ye&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&Ye){const Re=he.$implicit;e.xp6(1),e.Oqu(Re.ban.id)}}const ze=function(Ye){return{target:Ye}};function ke(Ye,he){if(1&Ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ye){const Re=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.TARGET_ID_HEADER",e.VKq(4,ze,Re.target))," ")}}function $e(Ye,he){if(1&Ye&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&Ye){const Re=he.$implicit;e.xp6(1),e.Oqu(Re.ban.targetId)}}function Je(Ye,he){if(1&Ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ye){const Re=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.TARGET_NAME_HEADER",e.VKq(4,ze,Re.target))," ")}}function Fe(Ye,he){if(1&Ye&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&Ye){const Re=he.$implicit;let He;e.xp6(1),e.hij(" ",null!==(He=null!==(He=null==Re||null==Re.vo?null:Re.vo.name)&&void 0!==He?He:null==Re||null==Re.facility?null:Re.facility.name)&&void 0!==He?He:null==Re||null==Re.resource?null:Re.resource.name," ")}}const Ve=function(Ye){return{subject:Ye}};function le(Ye,he){if(1&Ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ye){const Re=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.SUBJECT_ID_HEADER",e.VKq(4,Ve,Re.subject))," ")}}function N(Ye,he){if(1&Ye&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&Ye){const Re=he.$implicit;e.xp6(1),e.Oqu(Re.ban.subjectId)}}function U(Ye,he){if(1&Ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ye){const Re=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.SUBJECT_NAME_HEADER",e.VKq(4,Ve,Re.subject))," ")}}function X(Ye,he){if(1&Ye&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&Ye){const Re=he.$implicit;let He;e.xp6(1),e.hij(" ",e.lcZ(2,1,null!==(He=Re.user)&&void 0!==He?He:Re.member.user)," ")}}function ce(Ye,he){1&Ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.DESCRIPTION_HEADER")," "))}function Me(Ye,he){if(1&Ye&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&Ye){const Re=he.$implicit;e.xp6(1),e.Oqu(Re.ban.description)}}function ue(Ye,he){1&Ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.EXPIRATION_HEADER")," "))}function Pe(Ye,he){if(1&Ye&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"date"),e.qZA()),2&Ye){const Re=he.$implicit,He=e.oxw();e.xp6(1),e.hij(" ",Re.ban.validityTo===He.EXPIRE_NEVER?"never":e.xi3(2,1,Re.ban.validityTo,"dd-MM-yyyy")," ")}}function tt(Ye,he){1&Ye&&e._UZ(0,"th",30)}function Ce(Ye,he){if(1&Ye){const Re=e.EpF();e.TgZ(0,"button",32),e.NdJ("click",function(){e.CHM(Re);const ve=e.oxw().$implicit,Oe=e.oxw();return e.KtG(Oe.updateBan.emit(ve))}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function at(Ye,he){if(1&Ye&&(e.TgZ(0,"td",29),e.YNc(1,Ce,3,0,"button",31),e.ALo(2,"isAuthorized"),e.qZA()),2&Ye){const Re=he.$implicit,He=e.oxw();let ve;e.xp6(1),e.Q6J("ngIf",e.xi3(2,1,null!==(ve=null!==(ve=Re.vo)&&void 0!==ve?ve:Re.resource)&&void 0!==ve?ve:Re.facility,He.updatePolicy))}}function Ue(Ye,he){1&Ye&&e._UZ(0,"tr",33)}function pt(Ye,he){1&Ye&&e._UZ(0,"tr",34)}function z(Ye,he){1&Ye&&(e.TgZ(0,"perun-web-apps-alert",35),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.NO_BANS"),"\n"))}const st=function(Ye){return{all:Ye}};let be=(()=>{class Ye{constructor(Re,He,ve){this.tableCheckbox=Re,this.authResolver=He,this.userName=ve,this.selection=new A.Ov(!1,[]),this.pageSizeOptions=f.f7,this.columns=["select","banId","targetId","targetName","subjectId","subjectName","description","expiration","edit"],this.updateBan=new e.vpe,this.EXPIRE_NEVER=I.R,this.getDataForColumn=(Oe,r)=>{const u=this.isFacilityBan(Oe)?Oe.facility:this.isResourceBan(Oe)?Oe.resource:Oe.vo,_=this.isFacilityBan(Oe)?Oe.user:Oe.member,C=this.isFacilityBan(Oe)?Oe.user:Oe.member.user;switch(r){case"banId":return String(Oe.ban.id);case"targetId":return String(u.id);case"targetName":return u.name;case"subjectId":return String(_.id);case"subjectName":return this.userName.transform(C);case"description":return Oe.ban.description;case"expiration":return Number(Oe.ban.validityTo)===this.EXPIRE_NEVER?"never":(0,x.p6)(Oe.ban.validityTo,"dd-MM-yyy","en");default:return""}}}set bans(Re){this.dataSource||this.dataSourceInit(Re),0!==Re.length&&this.setHeaderLabels(Re[0]),this.dataSource.data=Re}set filter(Re){this.dataSource.filter=Re}set displayedColumns(Re){this.authResolver.isPerunAdminOrObserver()||(Re=Re.filter(He=>!He.endsWith("Id"))),this.columns=Re}exportAllData(Re){(0,f.O6)((0,f.Xn)(this.dataSource.filteredData,this.columns,this.getDataForColumn),Re)}exportDisplayedData(Re){const He=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,ve=He+this.dataSource.paginator.pageSize;(0,f.O6)((0,f.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(He,ve),this.columns,this.getDataForColumn),Re)}toggle(Re){this.selection.toggle(Re)}masterToggle(Re){this.tableCheckbox.masterToggle(Re,this.selection,this.dataSource.filter,this.dataSource,this.dataSource.sort,this.dataSource.paginator.pageSize,this.dataSource.paginator.pageIndex,!1)}dataSourceInit(Re){this.dataSource=new m.by(Re),this.dataSource.sort=this.sort,this.dataSource.paginator=this.tableWrapper.paginator,this.dataSource.filterPredicate=(He,ve)=>(0,f.Sd)(He,ve,this.columns,this.getDataForColumn,!0),this.dataSource.sortData=(He,ve)=>(0,f.pR)(He,ve,this.getDataForColumn)}isFacilityBan(Re){return"facility"in Re}isResourceBan(Re){return"resource"in Re}setHeaderLabels(Re){this.isFacilityBan(Re)?(this.target="Facility",this.subject="User"):this.isResourceBan(Re)?(this.target="Resource",this.subject="Member"):(this.target="Organization",this.subject="Member")}}return Ye.\u0275fac=function(Re){return new(Re||Ye)(e.Y36(S.UA),e.Y36(S.x4),e.Y36(w.dp))},Ye.\u0275cmp=e.Xpm({type:Ye,selectors:[["perun-web-apps-ban-on-entity-list"]],viewQuery:function(Re,He){if(1&Re&&(e.Gf(f.l9,7),e.Gf(M.YE,7)),2&Re){let ve;e.iGM(ve=e.CRH())&&(He.tableWrapper=ve.first),e.iGM(ve=e.CRH())&&(He.sort=ve.first)}},inputs:{selection:"selection",tableId:"tableId",updatePolicy:"updatePolicy",pageSizeOptions:"pageSizeOptions",columns:"columns",bans:"bans",filter:"filter",displayedColumns:"displayedColumns"},outputs:{updateBan:"updateBan"},features:[e._Bn([w.dp])],decls:32,vars:14,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","banId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","targetId"],["matColumnDef","targetName"],["mat-cell","",4,"matCellDef"],["matColumnDef","subjectId"],["matColumnDef","subjectName"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","edit"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(Re,He){1&Re&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(Oe){return He.exportDisplayedData(Oe)})("exportAllData",function(Oe){return He.exportAllData(Oe)}),e.TgZ(2,"table",2),e.YNc(3,te,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ne,3,3,"th",5),e.YNc(7,ye,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,ke,3,6,"th",5),e.YNc(10,$e,2,1,"td",6),e.BQk(),e.ynx(11,8),e.YNc(12,Je,3,6,"th",5),e.YNc(13,Fe,2,1,"td",9),e.BQk(),e.ynx(14,10),e.YNc(15,le,3,6,"th",5),e.YNc(16,N,2,1,"td",6),e.BQk(),e.ynx(17,11),e.YNc(18,U,3,6,"th",5),e.YNc(19,X,3,3,"td",9),e.BQk(),e.ynx(20,12),e.YNc(21,ce,3,3,"th",5),e.YNc(22,Me,2,1,"td",9),e.BQk(),e.ynx(23,13),e.YNc(24,ue,3,3,"th",5),e.YNc(25,Pe,3,4,"td",9),e.BQk(),e.ynx(26,14),e.YNc(27,tt,1,0,"th",15),e.YNc(28,at,3,4,"td",9),e.BQk(),e.YNc(29,Ue,1,0,"tr",16),e.YNc(30,pt,1,0,"tr",17),e.qZA()()(),e.YNc(31,z,3,3,"perun-web-apps-alert",18)),2&Re&&(e.Q6J("hidden",0===He.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",He.dataSource.filteredData.length)("tableId",He.tableId)("pageSizeOptions",He.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",He.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(12,st,e.xi3(4,9,He.dataSource,He.selection.selected.length))),e.xp6(26),e.Q6J("matHeaderRowDef",He.columns),e.xp6(1),e.Q6J("matRowDefColumns",He.columns),e.xp6(1),e.Q6J("ngIf",0===He.dataSource.filteredData.length))},dependencies:[x.O5,F.oG,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,M.YE,M.nU,T.w,H.Hw,P.RK,J.l,x.uU,fe.X$,j.d,$.I,_e.G,ge.r,pe]}),Ye})()},29926:(Qe,ae,p)=>{"use strict";p.d(ae,{C:()=>F,R:()=>I});var e=p(24006),f=p(36895),A=p(94650),S=p(59549),m=p(284),M=p(99602),w=p(71948),x=p(89383);const I=new Date(324721404e5).valueOf();let F=(()=>{class T{constructor(){this.minDate=new Date,this.validityControl=new e.NI(null),this.descriptionControl=new e.NI("")}set validity(P){this.newValidity=P&&Number(new Date(P))!==I?this.parseDate(P):"never",this.validityControl.setValue("never"!==this.newValidity?this.newValidity:this.parseDate(new Date))}set description(P){this.descriptionControl.setValue(P)}getDescription(){return this.descriptionControl.value}getValidity(){return"never"!==this.newValidity&&this.validityControl.value?this.parseDate(this.validityControl.value):null}parseDate(P){return(0,f.p6)(P,"yyyy-MM-dd","en")}}return T.\u0275fac=function(P){return new(P||T)},T.\u0275cmp=A.Xpm({type:T,selectors:[["perun-web-apps-ban-specification"]],inputs:{validity:"validity",description:"description"},decls:20,vars:18,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer","mt-2",3,"click"],["readonly","","matInput","",1,"disabl",3,"formControl","min","matDatepicker"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["value","never"],[1,"mt-3"],[1,"w-100","mt-2"],["matInput","","rows","5",3,"formControl"]],template:function(P,J){if(1&P){const fe=A.EpF();A.TgZ(0,"div")(1,"mat-radio-group",0),A.NdJ("ngModelChange",function($){return J.newValidity=$}),A.TgZ(2,"mat-radio-button",1)(3,"mat-form-field",2),A.NdJ("click",function(){A.CHM(fe);const $=A.MAs(10);return A.KtG($.open())}),A.TgZ(4,"mat-label"),A._uU(5),A.ALo(6,"translate"),A.qZA(),A._UZ(7,"input",3)(8,"mat-datepicker-toggle",4)(9,"mat-datepicker",5,6),A.qZA()(),A.TgZ(11,"mat-radio-button",7),A._uU(12),A.ALo(13,"translate"),A.qZA()()(),A.TgZ(14,"div",8)(15,"mat-form-field",9)(16,"mat-label"),A._uU(17),A.ALo(18,"translate"),A.qZA(),A._UZ(19,"textarea",10),A.qZA()()}if(2&P){const fe=A.MAs(10);A.xp6(1),A.Q6J("ngModel",J.newValidity),A.xp6(1),A.s9C("value",J.validityControl.value),A.xp6(3),A.hij(" ",A.lcZ(6,12,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.VALIDITY")," "),A.xp6(2),A.Q6J("formControl",J.validityControl)("min",J.minDate)("matDatepicker",fe),A.xp6(1),A.Q6J("for",fe)("disabled",!1),A.xp6(1),A.Q6J("disabled",!1),A.xp6(3),A.hij(" ",A.lcZ(13,14,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.NEVER")," "),A.xp6(5),A.hij(" ",A.lcZ(18,16,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.DESCRIPTION")," "),A.xp6(2),A.Q6J("formControl",J.descriptionControl)}},dependencies:[e.Fj,e.JJ,e.On,S.KE,S.hX,S.R9,e.oH,m.Nt,M.Mq,M.hl,M.nW,w.VQ,w.U0,x.X$]}),T})()},61880:(Qe,ae,p)=>{"use strict";p.d(ae,{z:()=>F});var e=p(7274),f=p(94650),A=p(36895),S=p(4859),m=p(12488),M=p(93057),w=p(89383);function x(T,H){if(1&T){const P=f.EpF();f.TgZ(0,"perun-web-apps-member-overview-membership",4),f.NdJ("statusChanged",function(fe){f.CHM(P);const j=f.oxw();return f.KtG(j.statusChanged=fe)}),f.qZA()}if(2&T){const P=f.oxw();f.Q6J("member",P.member)("voId",P.voId)("openedInDialog",!0)}}function I(T,H){if(1&T){const P=f.EpF();f.TgZ(0,"perun-web-apps-member-overview-groups",4),f.NdJ("statusChanged",function(fe){f.CHM(P);const j=f.oxw();return f.KtG(j.statusChanged=fe)}),f.qZA()}if(2&T){const P=f.oxw();f.Q6J("member",P.member)("voId",P.voId)("openedInDialog",!0)}}let F=(()=>{class T{constructor(P,J){this.dialogRef=P,this.data=J,this.statusChanged=!1}ngOnInit(){this.theme=this.data.groupId?"group-theme":"vo-theme",this.voId=this.data.voId,this.groupId=this.data.groupId,this.member=this.data.member}cancel(){this.statusChanged?this.dialogRef.close():this.dialogRef.close("closedWithoutChange")}}return T.\u0275fac=function(P){return new(P||T)(f.Y36(e.so),f.Y36(e.WI))},T.\u0275cmp=f.Xpm({type:T,selectors:[["perun-web-apps-change-member-status-or-expiration-dialog"]],decls:8,vars:8,consts:[["mat-dialog-content","",1,"dialog-container"],[3,"member","voId","openedInDialog","statusChanged",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],[3,"member","voId","openedInDialog","statusChanged"]],template:function(P,J){1&P&&(f.TgZ(0,"div")(1,"div",0),f.YNc(2,x,1,3,"perun-web-apps-member-overview-membership",1),f.YNc(3,I,1,3,"perun-web-apps-member-overview-groups",1),f.qZA(),f.TgZ(4,"div",2)(5,"button",3),f.NdJ("click",function(){return J.cancel()}),f._uU(6),f.ALo(7,"translate"),f.qZA()()()),2&P&&(f.Tol(J.theme),f.xp6(2),f.Q6J("ngIf",!J.groupId),f.xp6(1),f.Q6J("ngIf",J.groupId),f.xp6(3),f.hij(" ",f.lcZ(7,6,"DIALOGS.CHANGE_STATUS.CANCEL")," "))},dependencies:[A.O5,S.lW,e.xY,e.H8,m.b,M.z,w.X$]}),T})()},12502:(Qe,ae,p)=>{"use strict";p.d(ae,{N:()=>I});var e=p(94650),f=p(36895),A=p(97392),S=p(89383),m=p(34447);function M(F,T){1&F&&(e.TgZ(0,"span")(1,"mat-icon",1),e._uU(2,"priority_high"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.ALo(6,"customTranslate"),e.qZA()()),2&F&&(e.xp6(4),e.hij(" ",e.lcZ(5,1,e.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function w(F,T){1&F&&(e.TgZ(0,"span")(1,"mat-icon",1),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.ALo(6,"customTranslate"),e.qZA()()),2&F&&(e.xp6(4),e.hij(" ",e.lcZ(5,1,e.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function x(F,T){1&F&&(e.TgZ(0,"span")(1,"mat-icon",2),e._uU(2,"check"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.ALo(6,"customTranslate"),e.qZA()()),2&F&&(e.xp6(4),e.hij(" ",e.lcZ(5,1,e.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let I=(()=>{class F{}return F.\u0275fac=function(H){return new(H||F)},F.\u0275cmp=e.Xpm({type:F,selectors:[["perun-web-apps-consent-status"]],inputs:{consentStatus:"consentStatus"},decls:3,vars:3,consts:[[4,"ngIf"],["color","warn"],["color","accent"]],template:function(H,P){1&H&&(e.YNc(0,M,7,5,"span",0),e.YNc(1,w,7,5,"span",0),e.YNc(2,x,7,5,"span",0)),2&H&&(e.Q6J("ngIf","UNSIGNED"===P.consentStatus),e.xp6(1),e.Q6J("ngIf","REVOKED"===P.consentStatus),e.xp6(1),e.Q6J("ngIf","GRANTED"===P.consentStatus))},dependencies:[f.O5,A.Hw,S.X$,m.a],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),F})()},61150:(Qe,ae,p)=>{"use strict";p.d(ae,{r:()=>H});var e=p(94650),f=p(24006),A=p(80279),S=p(36895),m=p(56709),M=p(59549),w=p(284),x=p(82322),I=p(89383);function F(P,J){if(1&P){const fe=e.EpF();e.TgZ(0,"mat-checkbox",6),e.NdJ("change",function(){e.CHM(fe);const $=e.oxw();return e.KtG($.emitAsSubGroup())})("ngModelChange",function($){e.CHM(fe);const _e=e.oxw();return e.KtG(_e.asSubgroup=$)}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&P){const fe=e.oxw();e.Q6J("labelPosition","before")("ngModel",fe.asSubgroup),e.xp6(1),e.hij(" ",e.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function T(P,J){if(1&P){const fe=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",7),e.NdJ("groupSelected",function($){e.CHM(fe);const _e=e.oxw();return e.KtG(_e.emitParentGroup($))}),e.qZA()}if(2&P){const fe=e.oxw();e.Q6J("disableAutoSelect",!0)("groups",fe.voGroups)}}let H=(()=>{class P{constructor(fe){this.store=fe,this.parentGroup=null,this.voGroups=[],this.nameChanged=new e.vpe,this.descriptionChanged=new e.vpe,this.parentGroupChanged=new e.vpe,this.asSubgroupChanged=new e.vpe,this.asSubgroup=!1,this.invalidNameMessage=this.store.getProperty("group_name_error_message"),this.secondaryRegex=this.store.getProperty("group_name_secondary_regex")}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new f.p4("",[f.kI.required,f.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),f.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new f.p4("",[f.kI.required,f.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(fe=>"members"!==fe.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(fe){this.selectedParent=fe,this.parentGroupChanged.emit(fe)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return P.\u0275fac=function(fe){return new(fe||P)(e.Y36(A.d6))},P.\u0275cmp=e.Xpm({type:P,selectors:[["perun-web-apps-create-group-form"]],inputs:{parentGroup:"parentGroup",voGroups:"voGroups"},outputs:{nameChanged:"nameChanged",descriptionChanged:"descriptionChanged",parentGroupChanged:"parentGroupChanged",asSubgroupChanged:"asSubgroupChanged"},decls:19,vars:16,consts:[[1,"dialog-container"],[3,"keyup"],["matInput","","required","",3,"formControl"],[1,"mt-4",3,"keyup"],[3,"labelPosition","ngModel","change","ngModelChange",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],[3,"labelPosition","ngModel","change","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(fe,j){1&fe&&(e.TgZ(0,"div",0)(1,"mat-form-field",1),e.NdJ("keyup",function(){return j.emitName()}),e.TgZ(2,"mat-label"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e._UZ(5,"input",2),e.TgZ(6,"mat-error"),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"mat-form-field",3),e.NdJ("keyup",function(){return j.emitDescription()}),e.TgZ(10,"mat-label"),e._uU(11),e.ALo(12,"translate"),e.qZA(),e._UZ(13,"textarea",2),e.TgZ(14,"mat-error"),e._uU(15),e.ALo(16,"translate"),e.qZA()(),e.YNc(17,F,3,5,"mat-checkbox",4),e.YNc(18,T,1,2,"perun-web-apps-group-search-select",5),e.qZA()),2&fe&&(e.xp6(3),e.Oqu(e.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),e.xp6(2),e.Q6J("formControl",j.nameControl),e.xp6(2),e.hij(" ",j.invalidNameMessage.length?j.invalidNameMessage:e.lcZ(8,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),e.xp6(4),e.Oqu(e.lcZ(12,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),e.xp6(2),e.Q6J("formControl",j.descriptionControl),e.xp6(2),e.hij(" ",e.lcZ(16,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",j.isNotSubGroup),e.xp6(1),e.Q6J("ngIf",j.asSubgroup))},dependencies:[S.O5,m.oG,f.Fj,f.JJ,f.Q7,f.On,M.KE,M.hX,M.TO,f.oH,w.Nt,x.h,I.X$]}),P})()},39798:(Qe,ae,p)=>{"use strict";p.d(ae,{S:()=>M});var e=p(94650),f=p(24006),A=p(59549),S=p(99602),m=p(89383);let M=(()=>{class w{ngOnInit(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date}}return w.\u0275fac=function(I){return new(I||w)},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},decls:10,vars:9,consts:[["appearance","fill",1,"me-2",3,"click"],[3,"max","min","rangePicker"],["matStartDate","","readonly","",3,"formControl"],["matEndDate","","readonly","",3,"formControl"],["matSuffix","",3,"for"],["picker",""]],template:function(I,F){if(1&I){const T=e.EpF();e.TgZ(0,"mat-form-field",0),e.NdJ("click",function(){e.CHM(T);const P=e.MAs(9);return e.KtG(P.open())}),e.TgZ(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-date-range-input",1),e._UZ(5,"input",2)(6,"input",3),e.qZA(),e._UZ(7,"mat-datepicker-toggle",4)(8,"mat-date-range-picker",null,5),e.qZA()}if(2&I){const T=e.MAs(9);e.xp6(2),e.Oqu(e.lcZ(3,7,"VO_DETAIL.APPLICATION.DATE.LABEL")),e.xp6(2),e.Q6J("max",F.endMaxDate)("min",F.startMinDate)("rangePicker",T),e.xp6(1),e.Q6J("formControl",F.startDate),e.xp6(1),e.Q6J("formControl",F.endDate),e.xp6(1),e.Q6J("for",T)}},dependencies:[f.Fj,f.JJ,A.KE,A.hX,A.R9,f.oH,S.nW,S.wx,S.zY,S.By,S._g,m.X$]}),w})()},64901:(Qe,ae,p)=>{"use strict";p.d(ae,{P:()=>T});var e=p(94650),f=p(54968),A=p(54004),S=p(78372),m=p(71884),M=p(24006),w=p(59549),x=p(284),I=p(89383);const F=["input"];let T=(()=>{class H{constructor(){this.autoFocus=!1,this.control=new M.p4,this.filter=new e.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),(0,f.R)(this.input.nativeElement,"keyup").pipe((0,A.U)(J=>J.target.value),(0,S.b)(500),(0,m.x)()).subscribe(J=>{this.control.invalid||this.filter.emit(J)})}}return H.\u0275fac=function(J){return new(J||H)},H.\u0275cmp=e.Xpm({type:H,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(J,fe){if(1&J&&e.Gf(F,7),2&J){let j;e.iGM(j=e.CRH())&&(fe.input=j.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:8,vars:5,consts:[[1,"filter-field","me-2"],["matInput","","data-cy","filter-input",3,"formControl"],["input",""]],template:function(J,fe){1&J&&(e.TgZ(0,"mat-form-field",0)(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e._UZ(4,"input",1,2),e.TgZ(6,"mat-error"),e._uU(7),e.qZA()()),2&J&&(e.xp6(2),e.Oqu(e.lcZ(3,3,fe.placeholder)),e.xp6(2),e.Q6J("formControl",fe.control),e.xp6(3),e.hij(" ",fe.error," "))},dependencies:[M.Fj,M.JJ,w.KE,w.hX,w.TO,M.oH,x.Nt,I.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),H})()},89593:(Qe,ae,p)=>{"use strict";p.d(ae,{i:()=>V});var e=p(94650),f=p(24006),A=p(4707),S=p(77579),m=p(82722),M=p(36895),w=p(59549),x=p(3238),I=p(84385),F=p(33231),T=p(67376),H=p(97392),P=p(4859),J=p(89383);let fe=(()=>{class W{constructor(){this.deselect=new e.vpe}onClickButton(ne){this.deselect.emit(ne)}}return W.\u0275fac=function(ne){return new(ne||W)},W.\u0275cmp=e.Xpm({type:W,selectors:[["perun-web-apps-deselect-button"]],outputs:{deselect:"deselect"},decls:5,vars:3,consts:[["mat-stroked-button","","data-cy","deselect-button",1,"me-2","button-main",3,"click"]],template:function(ne,ye){1&ne&&(e.TgZ(0,"button",0),e.NdJ("click",function(ke){return ye.onClickButton(ke)}),e.TgZ(1,"mat-icon"),e._uU(2,"filter_list_off"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.qZA()),2&ne&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},dependencies:[H.Hw,P.lW,J.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor!important}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),W})();const j=["scrollViewport"];function $(W,te){if(1&W&&(e.TgZ(0,"mat-select-trigger"),e._uU(1),e.qZA()),2&W){const ne=e.oxw();e.xp6(1),e.hij(" ",ne.multipleSelectedText()," ")}}function _e(W,te){if(1&W&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&W){const ne=e.oxw(2);e.Tol(ne.colorByStatus(null==ne.entitiesCtrl?null:ne.entitiesCtrl.value)),e.xp6(1),e.hij(" ",ne.statusTextFunction(null==ne.entitiesCtrl?null:ne.entitiesCtrl.value)?"("+ne.statusTextFunction(null==ne.entitiesCtrl?null:ne.entitiesCtrl.value)+")":""," ")}}function ge(W,te){if(1&W){const ne=e.EpF();e.TgZ(0,"mat-option",10),e.NdJ("onSelectionChange",function(ze){e.CHM(ne);const ke=e.oxw();return e.KtG(ke.onChange(ze))}),e._uU(1),e.TgZ(2,"span",11),e._uU(3),e.qZA(),e.YNc(4,_e,2,4,"span",12),e.qZA()}if(2&W){const ne=e.oxw();e.Q6J("value",null==ne.entitiesCtrl?null:ne.entitiesCtrl.value),e.xp6(1),e.hij(" ",ne.mainTextFunction(null==ne.entitiesCtrl?null:ne.entitiesCtrl.value)," "),e.xp6(2),e.Oqu(ne.secondaryTextFunction(null==ne.entitiesCtrl?null:ne.entitiesCtrl.value)),e.xp6(1),e.Q6J("ngIf",ne.displayStatus)}}function pe(W,te){if(1&W&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&W){const ne=e.oxw().$implicit,ye=e.oxw();e.Tol(ye.colorByStatus(ne)),e.xp6(1),e.hij(" ",ye.statusTextFunction(ne)?"("+ye.statusTextFunction(ne)+")":""," ")}}function re(W,te){if(1&W){const ne=e.EpF();e.TgZ(0,"mat-option",13),e.NdJ("onSelectionChange",function(ze){e.CHM(ne);const ke=e.oxw();return e.KtG(ke.onChange(ze))}),e._uU(1),e.TgZ(2,"span",11),e._uU(3),e.qZA(),e.YNc(4,pe,2,4,"span",12),e.qZA()}if(2&W){const ne=te.$implicit,ye=e.oxw();e.Tol(ye.theme),e.Q6J("value",ne),e.xp6(1),e.hij(" ",ye.mainTextFunction(ne)," "),e.xp6(2),e.Oqu(ye.secondaryTextFunction(ne)),e.xp6(1),e.Q6J("ngIf",ye.displayStatus)}}function v(W,te){if(1&W){const ne=e.EpF();e.TgZ(0,"perun-web-apps-deselect-button",14),e.NdJ("deselect",function(){e.CHM(ne);const ze=e.oxw();return e.KtG(ze.deselectEvent())}),e.qZA()}}let V=(()=>{class W{constructor(ne){this.cd=ne,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.displayStatus=!1,this.multiple=!1,this.theme="",this.required=!1,this.entitySelected=new e.vpe,this.selectClosed=new e.vpe,this.visibleDeselectButton=!1,this.selectedEntities=[],this.entitiesCtrl=new f.p4,this.entityFilterCtrl=new f.p4,this.filteredEntities=new A.t(1),this.entitiesLen=0,this._onDestroy=new S.x,this.mainTextFunction=ye=>JSON.stringify(ye),this.secondaryTextFunction=ye=>"#".concat(String(ye.id),ye.description?" ".concat(ye.description):""),this.statusTextFunction=ye=>ye.status}ngOnInit(){!this.disableAutoSelect&&null===this.entity&&this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(ne=>this.entitiesLen=ne.length),this.entityFilterCtrl.valueChanges.pipe((0,m.R)(this._onDestroy)).subscribe(()=>{this.filterEntities()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(ne){switch(ne.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(ne){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),ne.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}normalize(ne){return ne.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}onChange(ne){if(ne.isUserInput){const ye=ne.source.value;if(this.multiple){if(this.selectedEntities.includes(ye)){const ze=this.selectedEntities.indexOf(ye);this.selectedEntities.splice(ze,1)}else this.selectedEntities.push(ye);this.entitiesCtrl.setValue(this.selectedEntities),this.entitySelected.emit(this.selectedEntities)}else this.entitySelected.emit(ye)}this.visibleDeselectButton=0!==this.selectedEntities.length}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}closeChange(){this.selectClosed.emit(!0)}getViewportHeight(){let ne=48*this.entitiesLen;return ne>192&&(ne=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),ne}multipleSelectedText(){const ne=this.entitiesCtrl.value;if(ne&&0!==ne.length)return ne.length===this.entities.length?"ALL":ne.length>1?this.mainTextFunction(ne[0])+` + ${ne.length-1} other(s)`:this.mainTextFunction(ne[0])+" "+this.secondaryTextFunction(ne[0])}filterEntities(){if(!this.entities)return;let ne=this.entityFilterCtrl.value;if(!ne)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();ne=this.normalize(ne),this.filteredEntities.next(this.entities.filter(ye=>this.normalize(this.searchFunction(ye)).includes(ne))),this.cd.detectChanges()}deselectEvent(){this.visibleDeselectButton=!1,this.selectedEntities=[],this.entitiesCtrl.setValue([]),this.entitySelected.emit([]),this.selectClosed.emit(!0)}}return W.\u0275fac=function(ne){return new(ne||W)(e.Y36(e.sBO))},W.\u0275cmp=e.Xpm({type:W,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(ne,ye){if(1&ne&&e.Gf(j,5),2&ne){let ze;e.iGM(ze=e.CRH())&&(ye.scrollViewport=ze.first)}},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",displayStatus:"displayStatus",multiple:"multiple",theme:"theme",required:"required",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected",selectClosed:"selectClosed"},features:[e.TTD],decls:14,vars:18,consts:[[1,"d-flex","flex-row","align-items-center","gap-4"],[1,"w-100","pb-0"],["data-cy","search-select-input",3,"required","formControl","multiple","openedChange","closed"],[4,"ngIf"],["data-cy","find-input",3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value","onSelectionChange",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"class","value","onSelectionChange",4,"cdkVirtualFor","cdkVirtualForOf"],["class","ms-2",3,"deselect",4,"ngIf"],[1,"selected-options-bottom",3,"value","onSelectionChange"],[1,"text-muted"],[3,"class",4,"ngIf"],[3,"value","onSelectionChange"],[1,"ms-2",3,"deselect"]],template:function(ne,ye){1&ne&&(e.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),e._uU(3),e.qZA(),e.TgZ(4,"mat-select",2),e.NdJ("openedChange",function(){return ye.openChange()})("closed",function(){return ye.closeChange()}),e.YNc(5,$,2,1,"mat-select-trigger",3),e.TgZ(6,"mat-option"),e._UZ(7,"ngx-mat-select-search",4),e.qZA(),e.YNc(8,ge,5,4,"mat-option",5),e.TgZ(9,"cdk-virtual-scroll-viewport",6,7),e.YNc(11,re,5,7,"mat-option",8),e.ALo(12,"async"),e.qZA()()(),e.YNc(13,v,1,0,"perun-web-apps-deselect-button",9),e.qZA()),2&ne&&(e.xp6(3),e.Oqu(ye.selectPlaceholder),e.xp6(1),e.Q6J("required",ye.required)("formControl",ye.entitiesCtrl)("multiple",ye.multiple),e.xp6(1),e.Q6J("ngIf",ye.multiple),e.xp6(2),e.s9C("placeholderLabel",ye.findPlaceholder),e.s9C("noEntriesFoundLabel",ye.noEntriesText),e.Q6J("clearSearchInput",!1)("formControl",ye.entityFilterCtrl),e.xp6(1),e.Q6J("ngIf",null==ye.entitiesCtrl?null:ye.entitiesCtrl.value),e.xp6(1),e.Udp("height",ye.getViewportHeight(),"px"),e.Q6J("minBufferPx",240)("maxBufferPx",480),e.xp6(2),e.Q6J("cdkVirtualForOf",e.lcZ(12,16,ye.filteredEntities)),e.xp6(2),e.Q6J("ngIf",ye.visibleDeselectButton))},dependencies:[M.O5,f.JJ,f.Q7,w.KE,w.hX,f.oH,x.ey,I.gD,I.$L,F.nu,T.xd,T.x0,T.N7,fe,M.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}.green[_ngcontent-%COMP%]{color:green}.grey[_ngcontent-%COMP%]{color:gray}.red[_ngcontent-%COMP%]{color:red}.black[_ngcontent-%COMP%]{color:#000}"]}),W})()},74010:(Qe,ae,p)=>{"use strict";p.d(ae,{X:()=>Re});var e=p(96308),f=p(30671),A=p(9244),S=p(80279),m=p(94650),M=p(36895),w=p(56709),x=p(82761),I=p(98380),F=p(18750),T=p(34198),H=p(55660),P=p(10441),J=p(24006),fe=p(97392),j=p(4859),$=p(10266);function _e(He,ve){if(1&He&&(m.TgZ(0,"div",6),m._uU(1),m.qZA()),2&He){const Oe=ve.$implicit,r=m.oxw();m.xp6(1),m.hij(" ",Oe[r.paramName]," ")}}function ge(He,ve){1&He&&(m.TgZ(0,"mat-icon"),m._uU(1,"more_horiz"),m.qZA())}function pe(He,ve){1&He&&(m.TgZ(0,"mat-icon"),m._uU(1,"keyboard_arrow_up"),m.qZA())}function re(He,ve){if(1&He){const Oe=m.EpF();m.TgZ(0,"button",7),m.NdJ("click",function(){m.CHM(Oe);const u=m.oxw();return m.KtG(u.onShowChange())}),m.YNc(1,ge,2,0,"mat-icon",8),m.YNc(2,pe,2,0,"mat-icon",8),m.qZA()}if(2&He){const Oe=m.oxw();m.xp6(1),m.Q6J("ngIf",!Oe.showMore),m.xp6(1),m.Q6J("ngIf",Oe.showMore)}}let v=(()=>{class He{constructor(){this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}ngOnInit(){this.itemsShown=this.defaultItemsShown}ngOnChanges(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}onShowChange(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}return He.\u0275fac=function(Oe){return new(Oe||He)},He.\u0275cmp=m.Xpm({type:He,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[m.TTD],decls:7,vars:4,consts:[[1,"d-flex","w-100"],[1,"w-100"],[1,"me-5"],["class","d-flex mb-1",4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"d-flex","mb-1"],["mat-icon-button","",3,"click"],[4,"ngIf"]],template:function(Oe,r){1&Oe&&(m.TgZ(0,"form",0)(1,"div",1)(2,"div",2),m.YNc(3,_e,2,1,"div",3),m.qZA(),m.TgZ(4,"div")(5,"span",4),m.YNc(6,re,3,2,"button",5),m.qZA()()()()),2&Oe&&(m.xp6(3),m.Q6J("ngForOf",r.objects.slice(0,r.itemsShown)),m.xp6(2),m.Q6J("matTooltip",r.showMore?"Show less":"Show more")("matTooltipPosition","above"),m.xp6(1),m.Q6J("ngIf",r.objects.length>r.defaultItemsShown))},dependencies:[M.sg,M.O5,J._Y,J.JL,J.F,fe.Hw,j.RK,$.gM]}),He})();var V=p(6967),W=p(89383),te=p(53561);let ne=(()=>{class He{transform(Oe,r,u){return Oe.filter(_=>_[u].includes(r)).filter((_,C,h)=>h.findIndex(o=>o[u]===_[u])===C)}}return He.\u0275fac=function(Oe){return new(Oe||He)},He.\u0275pipe=m.Yjl({name:"filterUniqueObjects",type:He,pure:!0}),He})();var ye=p(8231);function ze(He,ve){1&He&&m._UZ(0,"th",22)}const ke=function(He){return{name:He}};function $e(He,ve){if(1&He){const Oe=m.EpF();m.TgZ(0,"td",23)(1,"mat-checkbox",24),m.NdJ("change",function(u){const C=m.CHM(Oe).$implicit,h=m.oxw();return m.KtG(u?h.selection.toggle(C):null)})("click",function(u){return u.stopPropagation()}),m.ALo(2,"translate"),m.ALo(3,"checkboxLabel"),m.qZA()()}if(2&He){const Oe=ve.$implicit,r=m.oxw();m.xp6(1),m.Q2q("data-cy","",Oe.facility.name,"-checkbox"),m.Q6J("aria-label",m.xi3(2,3,m.lcZ(3,6,r.selection.isSelected(Oe)),m.VKq(8,ke,Oe.facility.name)))("checked",r.selection.isSelected(Oe))}}function Je(He,ve){1&He&&(m.TgZ(0,"th",25),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&He&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function Fe(He,ve){if(1&He&&(m.TgZ(0,"td",26),m._uU(1),m.qZA()),2&He){const Oe=ve.$implicit;m.xp6(1),m.hij(" ",Oe.facility.id," ")}}function Ve(He,ve){1&He&&m._UZ(0,"th",27)}function le(He,ve){if(1&He&&(m.TgZ(0,"td",28),m._UZ(1,"perun-web-apps-recently-viewed-icon",29),m.qZA()),2&He){const Oe=ve.$implicit,r=m.oxw();m.xp6(1),m.Q6J("id",Oe.facility.id)("recentIds",r.recentIds)}}function N(He,ve){1&He&&(m.TgZ(0,"th",25),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&He&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function U(He,ve){if(1&He&&(m.TgZ(0,"td",28),m._uU(1),m.qZA()),2&He){const Oe=ve.$implicit;m.uIk("data-cy",Oe.facility.name),m.xp6(1),m.hij(" ",Oe.facility.name," ")}}function X(He,ve){1&He&&(m.TgZ(0,"th",27),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&He&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.AUTHZ_GROUP")," "))}function ce(He,ve){if(1&He){const Oe=m.EpF();m.TgZ(0,"td",30),m.NdJ("mouseenter",function(){m.CHM(Oe);const u=m.oxw();return m.KtG(u.localDisableRouting=!0)})("mouseleave",function(){m.CHM(Oe);const u=m.oxw();return m.KtG(u.localDisableRouting=u.disableRouting)}),m._UZ(1,"perun-web-apps-authorized-groups-cell",31),m.qZA()}if(2&He){const Oe=ve.$implicit,r=m.oxw();m.xp6(1),m.Q6J("groups",r.facilityWithAuthzGroupPairs.get(Oe.facility.id))("disableRouting",r.disableRouting)("authzVoNames",r.authzVoNames)}}function Me(He,ve){1&He&&(m.TgZ(0,"th",27),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&He&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function ue(He,ve){if(1&He&&(m.TgZ(0,"td",28),m._uU(1),m.qZA()),2&He){const Oe=ve.$implicit;m.xp6(1),m.Oqu(Oe.facility.description)}}function Pe(He,ve){1&He&&(m.TgZ(0,"th",27),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&He&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function tt(He,ve){if(1&He&&(m.TgZ(0,"td",28),m._uU(1),m.ALo(2,"technicalOwners"),m.qZA()),2&He){const Oe=ve.$implicit;m.xp6(1),m.Oqu(m.lcZ(2,1,Oe.owners))}}function Ce(He,ve){1&He&&(m.TgZ(0,"th",27),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&He&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function at(He,ve){if(1&He){const Oe=m.EpF();m.TgZ(0,"td",28)(1,"perun-web-apps-object-list-values",32),m.NdJ("mouseenter",function(){m.CHM(Oe);const u=m.oxw();return m.KtG(u.localDisableRouting=!0)})("mouseleave",function(){m.CHM(Oe);const u=m.oxw();return m.KtG(u.localDisableRouting=!1)}),m.ALo(2,"filterUniqueObjects"),m.qZA()()}if(2&He){const Oe=ve.$implicit,r=m.oxw();m.xp6(1),m.Q6J("objects",m.Dn7(2,2,Oe.destinations,r.filterValue,"destination"))("paramName","destination")}}function Ue(He,ve){1&He&&(m.TgZ(0,"th",27),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&He&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function pt(He,ve){if(1&He){const Oe=m.EpF();m.TgZ(0,"td",28)(1,"perun-web-apps-object-list-values",32),m.NdJ("mouseenter",function(){m.CHM(Oe);const u=m.oxw();return m.KtG(u.localDisableRouting=!0)})("mouseleave",function(){m.CHM(Oe);const u=m.oxw();return m.KtG(u.localDisableRouting=!1)}),m.ALo(2,"filterUniqueObjects"),m.qZA()()}if(2&He){const Oe=ve.$implicit,r=m.oxw();m.xp6(1),m.Q6J("objects",m.Dn7(2,2,Oe.hosts,r.filterValue,"hostname"))("paramName","hostname")}}function z(He,ve){1&He&&m._UZ(0,"tr",33)}const st=function(He){return["/facilities",He]};function be(He,ve){if(1&He&&m._UZ(0,"tr",34),2&He){const Oe=ve.$implicit,r=m.oxw();m.ekj("cursor-pointer",!r.disableRouting)("disable-outline",r.disableRouting),m.Q6J("perunWebAppsMiddleClickRouterLink",r.disableRouting||r.localDisableRouting?null:m.VKq(6,st,Oe.facility.id))("routerLink",r.disableRouting||r.localDisableRouting?null:m.VKq(8,st,Oe.facility.id))}}function Ye(He,ve){1&He&&(m.TgZ(0,"perun-web-apps-alert",35),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&He&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function he(He,ve){1&He&&(m.TgZ(0,"perun-web-apps-alert",35),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&He&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let Re=(()=>{class He{constructor(Oe){this.authResolver=Oe,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=A.f7,this.disableRouting=!1,this.getDataForColumnFun=(r,u)=>He.getDataForColumn(r,u,this.recentIds)}set matSort(Oe){this.sort=Oe}static getDataForColumn(Oe,r,u){switch(r){case"id":return Oe.facility.id.toString();case"name":return Oe.facility.name;case"description":return Oe.facility.description;case"technicalOwners":return(0,A.te)(Oe.owners);case"recent":return u&&u.includes(Oe.facility.id)?"#".repeat(u.indexOf(Oe.facility.id)):Oe.name;case"destinations":return Oe.destinations.map(_=>_.destination).join(" ; ");case"hosts":return Oe.hosts.map(_=>_.hostname).join(" ; ");default:return Oe[r]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Oe=>"id"!==Oe)),this.setDataSource()}exportAllData(Oe){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),Oe)}exportDisplayedData(Oe){const r=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,u=r+this.dataSource.paginator.pageSize;(0,A.O6)((0,A.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(r,u),this.displayedColumns,this.getDataForColumnFun),Oe)}setDataSource(){this.dataSource||(this.dataSource=new f.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Oe,r)=>(0,A.Sd)(Oe,r,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(Oe,r)=>(0,A.pR)(Oe,r,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(Oe=>this.selection.select(Oe))}}return He.\u0275fac=function(Oe){return new(Oe||He)(m.Y36(S.x4))},He.\u0275cmp=m.Xpm({type:He,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(Oe,r){if(1&Oe&&(m.Gf(A.l9,7),m.Gf(e.YE,7)),2&Oe){let u;m.iGM(u=m.CRH())&&(r.child=u.first),m.iGM(u=m.CRH())&&(r.matSort=u.first)}},inputs:{facilities:"facilities",facilityWithAuthzGroupPairs:"facilityWithAuthzGroupPairs",authzVoNames:"authzVoNames",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions",disableRouting:"disableRouting"},features:[m.TTD],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","authzGroup"],["mat-cell","","style","cursor: default",3,"mouseenter","mouseleave",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"id","recentIds"],["mat-cell","",2,"cursor","default",3,"mouseenter","mouseleave"],[3,"groups","disableRouting","authzVoNames"],[3,"objects","paramName","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Oe,r){1&Oe&&(m.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),m.NdJ("exportDisplayedData",function(_){return r.exportDisplayedData(_)})("exportAllData",function(_){return r.exportAllData(_)}),m.TgZ(2,"table",2),m.ynx(3,3),m.YNc(4,ze,1,0,"th",4),m.YNc(5,$e,4,10,"td",5),m.BQk(),m.ynx(6,6),m.YNc(7,Je,3,3,"th",7),m.YNc(8,Fe,2,1,"td",8),m.BQk(),m.ynx(9,9),m.YNc(10,Ve,1,0,"th",10),m.YNc(11,le,2,2,"td",11),m.BQk(),m.ynx(12,12),m.YNc(13,N,3,3,"th",7),m.YNc(14,U,2,2,"td",11),m.BQk(),m.ynx(15,13),m.YNc(16,X,3,3,"th",10),m.YNc(17,ce,2,3,"td",14),m.BQk(),m.ynx(18,15),m.YNc(19,Me,3,3,"th",10),m.YNc(20,ue,2,1,"td",11),m.BQk(),m.ynx(21,16),m.YNc(22,Pe,3,3,"th",10),m.YNc(23,tt,3,3,"td",11),m.BQk(),m.ynx(24,17),m.YNc(25,Ce,3,3,"th",10),m.YNc(26,at,3,6,"td",11),m.BQk(),m.ynx(27,18),m.YNc(28,Ue,3,3,"th",10),m.YNc(29,pt,3,6,"td",11),m.BQk(),m.YNc(30,z,1,0,"tr",19),m.YNc(31,be,1,10,"tr",20),m.qZA()()(),m.YNc(32,Ye,3,3,"perun-web-apps-alert",21),m.YNc(33,he,3,3,"perun-web-apps-alert",21)),2&Oe&&(m.Q6J("hidden",!r.dataSource||0===r.dataSource.filteredData.length||0===r.facilities.length),m.xp6(1),m.Q6J("tableId",r.tableId)("dataLength",r.dataSource.filteredData.length)("pageSizeOptions",r.pageSizeOptions),m.xp6(1),m.Q6J("dataSource",r.dataSource),m.xp6(28),m.Q6J("matHeaderRowDef",r.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",r.displayedColumns),m.xp6(1),m.Q6J("ngIf",0===r.dataSource.filteredData.length&&0!==r.facilities.length),m.xp6(1),m.Q6J("ngIf",0===r.facilities.length))},dependencies:[M.O5,w.oG,f.BZ,f.fO,f.as,f.w1,f.Dz,f.nj,f.ge,f.ev,f.XQ,f.Gk,x.rH,e.YE,e.nU,I.w,F.l,T.Y,P.W,v,H.Q,V.e,W.X$,te.J,ne,ye.G],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),He})()},13449:(Qe,ae,p)=>{"use strict";p.d(ae,{i:()=>re});var e=p(94650),f=p(80279),A=p(36895),S=p(97392),m=p(28255),M=p(4859),w=p(10266),x=p(64425),I=p(89383),F=p(29218),T=p(45942),H=p(28764);function P(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.ALo(2,"groupSyncToolTip"),e.TgZ(3,"button",6),e.NdJ("click",function(){e.CHM(W);const ne=e.oxw(2);return e.KtG(ne.onSyncDetail())}),e.ALo(4,"groupSyncIcon"),e.TgZ(5,"mat-icon"),e.ALo(6,"groupSyncIconColor"),e._uU(7),e.ALo(8,"groupSyncIcon"),e.qZA()()()}if(2&v){const W=e.oxw(2);e.Q6J("matTooltipPosition","above")("matTooltip",e.lcZ(1,7,e.lcZ(2,9,W.group))),e.xp6(3),e.Q6J("disabled","sync_disabled"===e.lcZ(4,11,W.group)),e.xp6(2),e.Tol(e.lcZ(6,13,W.group)),e.xp6(2),e.hij(" ",e.lcZ(8,15,W.group)," ")}}function J(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(W);const ne=e.oxw(2);return e.KtG(ne.onMoveGroup())}),e.TgZ(3,"mat-icon"),e._uU(4,"arrow_right_alt"),e.qZA()()()}if(2&v){const W=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",W.disabled)}}function fe(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(W);const ne=e.oxw(2);return e.KtG(ne.onChangeNameDescription())}),e.TgZ(3,"mat-icon"),e._uU(4,"text_format"),e.qZA()()()}if(2&v){const W=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",W.disabled)}}function j(v,V){if(1&v&&(e.TgZ(0,"div",2)(1,"button",3),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4," file_copy "),e.qZA()(),e.YNc(5,P,9,17,"span",4),e.YNc(6,J,5,5,"span",4),e.YNc(7,fe,5,5,"span",4),e.qZA()),2&v){const W=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.Q6J("cdkCopyToClipboard",W.group.name)("matTooltipPosition","above"),e.xp6(4),e.Q6J("ngIf",W.syncAuth),e.xp6(1),e.Q6J("ngIf",W.moveAuth),e.xp6(1),e.Q6J("ngIf",W.editAuth)}}function $(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const ne=e.oxw(2);return e.KtG(ne.onSyncDetail())}),e.ALo(1,"groupSyncIcon"),e.TgZ(2,"mat-icon"),e.ALo(3,"groupSyncIconColor"),e._uU(4),e.ALo(5,"groupSyncIcon"),e.qZA(),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"groupSyncToolTip"),e.qZA()()}if(2&v){const W=e.oxw(2);e.Q6J("disabled","sync_disabled"===e.lcZ(1,6,W.group)),e.xp6(2),e.Tol(e.lcZ(3,8,W.group)),e.xp6(2),e.hij(" ",e.lcZ(5,10,W.group)," "),e.xp6(3),e.Oqu(e.lcZ(8,12,e.lcZ(9,14,W.group)))}}function _e(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const ne=e.oxw(2);return e.KtG(ne.onMoveGroup())}),e.TgZ(1,"mat-icon"),e._uU(2,"arrow_right_alt"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&v){const W=e.oxw(2);e.Q6J("disabled",W.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function ge(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const ne=e.oxw(2);return e.KtG(ne.onChangeNameDescription())}),e.TgZ(1,"mat-icon"),e._uU(2,"text_format"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&v){const W=e.oxw(2);e.Q6J("disabled",W.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function pe(v,V){if(1&v&&(e.TgZ(0,"div")(1,"button",7)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,8)(6,"button",9)(7,"mat-icon"),e._uU(8," file_copy "),e.qZA(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA()(),e.YNc(12,$,10,16,"button",10),e.YNc(13,_e,6,4,"button",10),e.YNc(14,ge,6,4,"button",10),e.qZA()()),2&v){const W=e.MAs(5),te=e.oxw();e.xp6(1),e.Q6J("mat-menu-trigger-for",W),e.xp6(5),e.Q6J("cdkCopyToClipboard",te.group.name),e.xp6(4),e.Oqu(e.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.xp6(2),e.Q6J("ngIf",te.syncAuth),e.xp6(1),e.Q6J("ngIf",te.moveAuth),e.xp6(1),e.Q6J("ngIf",te.editAuth)}}let re=(()=>{class v{constructor(W){this.authResolver=W,this.disabled=!1,this.moveGroup=new e.vpe,this.syncGroup=new e.vpe,this.changeNameDescription=new e.vpe}ngOnInit(){this.syncAuth=this.authResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group]),this.editAuth=this.authResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.moveAuth=this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.group])||this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.group])}onMoveGroup(){this.moveGroup.emit()}onSyncDetail(){this.syncGroup.emit()}onChangeNameDescription(){this.changeNameDescription.emit()}}return v.\u0275fac=function(W){return new(W||v)(e.Y36(f.x4))},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-group-menu"]],inputs:{group:"group",disabled:"disabled",displayButtons:"displayButtons"},outputs:{moveGroup:"moveGroup",syncGroup:"syncGroup",changeNameDescription:"changeNameDescription"},decls:2,vars:2,consts:[["class","buttons-container",4,"ngIf"],[4,"ngIf"],[1,"buttons-container"],["mat-icon-button","",1,"ms-auto","horiz_right",3,"cdkCopyToClipboard","matTooltipPosition","matTooltip"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click"],["mat-icon-button","",3,"mat-menu-trigger-for"],["groupMenu","matMenu"],["mat-menu-item","",3,"cdkCopyToClipboard"],["mat-menu-item","",3,"disabled","click",4,"ngIf"],["mat-menu-item","",3,"disabled","click"]],template:function(W,te){1&W&&(e.YNc(0,j,8,8,"div",0),e.YNc(1,pe,15,8,"div",1)),2&W&&(e.Q6J("ngIf",te.displayButtons),e.xp6(1),e.Q6J("ngIf",!te.displayButtons))},dependencies:[A.O5,S.Hw,m.VK,m.OP,m.p6,M.RK,w.gM,x.i3,I.X$,F.J,T.r,H.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),v})()},8223:(Qe,ae,p)=>{"use strict";p.d(ae,{x:()=>P});var e=p(94650),f=p(9244),A=p(21029),S=p(7274),m=p(36895),M=p(97392),w=p(10266),x=p(89383);function I(J,fe){if(1&J){const j=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(j);const _e=e.oxw();return e.KtG(_e.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",4),e._uU(3,"check_circle_outline"),e.qZA()()}if(2&J){const j=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),e.Q2q("data-cy","",j.groupName,"-active")}}function F(J,fe){if(1&J){const j=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(j);const _e=e.oxw();return e.KtG(_e.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",5),e._uU(3,"block"),e.qZA()()}if(2&J){const j=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),e.Q2q("data-cy","",j.groupName,"-inactive")}}function T(J,fe){if(1&J){const j=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(j);const _e=e.oxw();return e.KtG(_e.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",6),e._uU(3,"report"),e.qZA()()}if(2&J){const j=e.oxw();e.hYB("matTooltip","",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",j.failureCause,"")}}function H(J,fe){1&J&&(e.TgZ(0,"span",7),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",8),e._uU(3,"autorenew"),e.qZA()()),2&J&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let P=(()=>{class J{constructor(j){this.dialog=j,this.status="",this.groupName="",this.statusChange=new e.vpe}changeStatus(){const j=(0,f.kZ)();j.width="500px",j.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(A.Qu,j).afterClosed().subscribe(_e=>{_e&&this.statusChange.emit()})}}return J.\u0275fac=function(j){return new(j||J)(e.Y36(S.uw))},J.\u0275cmp=e.Xpm({type:J,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(j,$){1&j&&(e.TgZ(0,"div",0),e.YNc(1,I,4,4,"span",1),e.YNc(2,F,4,4,"span",1),e.YNc(3,T,4,4,"span",1),e.YNc(4,H,4,3,"span",2),e.qZA()),2&j&&(e.xp6(1),e.Q6J("ngIf","ACTIVE"===$.status),e.xp6(1),e.Q6J("ngIf","INACTIVE"===$.status),e.xp6(1),e.Q6J("ngIf","FAILED"===$.status),e.xp6(1),e.Q6J("ngIf","PROCESSING"===$.status))},dependencies:[m.O5,M.Hw,w.gM,x.X$]}),J})()},82322:(Qe,ae,p)=>{"use strict";p.d(ae,{h:()=>m});var e=p(94650),f=p(9244),A=p(89593),S=p(89383);let m=(()=>{class M{constructor(){this.disableAutoSelect=!1,this.displayStatus=!1,this.groupSelected=new e.vpe,this.nameFunction=x=>x.name}ngOnInit(){this.groups=this.groups.sort(f.aC)}}return M.\u0275fac=function(x){return new(x||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup",displayStatus:"displayStatus"},outputs:{groupSelected:"groupSelected"},decls:4,vars:15,consts:[[1,"long-input",3,"entities","entity","displayStatus","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(x,I){if(1&x&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(T){return I.groupSelected.emit(T)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&x){let F;e.Q6J("entities",I.groups)("entity",null!==(F=I.firstSelectedGroup)&&void 0!==F?F:null)("displayStatus",I.displayStatus)("disableAutoSelect",I.disableAutoSelect)("mainTextFunction",I.nameFunction)("searchFunction",I.nameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},dependencies:[A.i,S.X$]}),M})()},25788:(Qe,ae,p)=>{"use strict";p.d(ae,{W:()=>_t});var e=p(94650),f=p(21029),A=p(61744),S=p(80279),m=p(9244),M=p(91479),w=p(96308),x=p(30671),I=p(95017),F=p(19516),T=p(7274),H=p(36895),P=p(56709),J=p(82761),fe=p(98380),j=p(97392),$=p(4859),_e=p(10266),ge=p(18750),pe=p(13449),re=p(34198),v=p(55660),V=p(10441),W=p(8223),te=p(6967),ne=p(89383),ye=p(21757);let ze=(()=>{class Ee{transform(de){return de.attributes.find(Te=>"groupMembershipExpiration"===Te.baseFriendlyName)?.value??"Never"}}return Ee.\u0275fac=function(de){return new(de||Ee)},Ee.\u0275pipe=e.Yjl({name:"groupExpiration",type:Ee,pure:!0}),Ee})();var ke=p(82514),$e=p(62383),Je=p(9185);let Fe=(()=>{class Ee{transform(de,Ae){return(0,m.cT)(de,Ae)}}return Ee.\u0275fac=function(de){return new(de||Ee)},Ee.\u0275pipe=e.Yjl({name:"findAttribute",type:Ee,pure:!0}),Ee})(),Ve=(()=>{class Ee{constructor(de){this.authResolver=de}transform(de){return this.authResolver.isThisGroupAdmin(de.id)||this.authResolver.isThisVoAdmin(de.voId)}}return Ee.\u0275fac=function(de){return new(de||Ee)(e.Y36(S.x4,16))},Ee.\u0275pipe=e.Yjl({name:"canManageGroup",type:Ee,pure:!0}),Ee})();var le=p(22908);let N=(()=>{class Ee{transform(de,Ae,Te){return Ae?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":(0,m.bx)(de)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":de.sourceGroupId?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP":"members"===de.name?"":Te?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP":"MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"}}return Ee.\u0275fac=function(de){return new(de||Ee)},Ee.\u0275pipe=e.Yjl({name:"groupCheckboxTooltip",type:Ee,pure:!0}),Ee})();var U=p(8231),X=p(14849);function ce(Ee,we){if(1&Ee){const de=e.EpF();e.TgZ(0,"mat-checkbox",29),e.NdJ("change",function(Te){e.CHM(de);const ut=e.oxw(3);return e.KtG(Te?ut.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&Ee){const de=e.oxw(2).ngIf,Ae=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,de.all)))("checked",Ae.selection.hasValue()&&de.all)("indeterminate",Ae.selection.hasValue()&&!de.all)}}function Me(Ee,we){if(1&Ee&&(e.TgZ(0,"th",27),e.YNc(1,ce,3,7,"mat-checkbox",28),e.qZA()),2&Ee){const de=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!de.disableHeadCheckbox&&de.selection.isMultipleSelection())}}const ue=function(Ee){return{name:Ee}};function Pe(Ee,we){if(1&Ee){const de=e.EpF();e.TgZ(0,"span",32),e.ALo(1,"translate"),e.ALo(2,"groupCheckboxTooltip"),e.TgZ(3,"mat-checkbox",33),e.NdJ("change",function(Te){e.CHM(de);const ut=e.oxw().$implicit,bt=e.oxw(2);return e.KtG(Te?bt.itemSelectionToggle(ut):null)})("click",function(Te){return Te.stopPropagation()}),e.ALo(4,"translate"),e.ALo(5,"checkboxLabel"),e.qZA()()}if(2&Ee){const de=we.ngIf,Ae=e.oxw().$implicit,Te=e.oxw(2);e.Q6J("matTooltip",e.lcZ(1,7,e.Dn7(2,9,Ae,!1,Te.canBeSelected(Ae))))("matTooltipPosition","above")("matTooltipDisabled",!de.disable&&Te.canBeSelected(Ae)),e.xp6(3),e.Q2q("data-cy","",Ae.name,"-checkbox"),e.Q6J("aria-label",e.xi3(4,13,e.lcZ(5,16,Te.selection.isSelected(Ae)),e.VKq(18,ue,Ae.name)))("checked",Te.selection.isSelected(Ae))("disabled",de.disable||!Te.canBeSelected(Ae))}}const tt=function(Ee){return{disable:Ee}};function Ce(Ee,we){if(1&Ee){const de=e.EpF();e.TgZ(0,"td",30),e.NdJ("mouseenter",function(){e.CHM(de);const Te=e.oxw(2);return e.KtG(Te.disabledRouting=!0)})("mouseleave",function(){e.CHM(de);const Te=e.oxw(2);return e.KtG(Te.disabledRouting=Te.disableRouting)}),e.ALo(1,"disableGroupSelect"),e.YNc(2,Pe,6,20,"span",31),e.ALo(3,"disableGroupSelect"),e.qZA()}if(2&Ee){const de=we.$implicit,Ae=e.oxw(2);e.ekj("cursor-default",e.gM2(1,3,de,Ae.disableMembers,Ae.disableGroups,Ae.groupsToDisableCheckbox)||!Ae.canBeSelected(de)),e.xp6(2),e.Q6J("ngIf",e.VKq(13,tt,e.gM2(3,8,de,Ae.disableMembers,Ae.disableGroups,Ae.groupsToDisableCheckbox)))}}function at(Ee,we){1&Ee&&(e.ynx(0,24),e.YNc(1,Me,2,1,"th",25),e.YNc(2,Ce,4,15,"td",26),e.BQk())}function Ue(Ee,we){1&Ee&&(e.TgZ(0,"th",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function pt(Ee,we){if(1&Ee&&(e.TgZ(0,"td",35),e._uU(1),e.qZA()),2&Ee){const de=we.$implicit;e.xp6(1),e.Oqu(de.id)}}function z(Ee,we){1&Ee&&e._UZ(0,"th",36)}function st(Ee,we){if(1&Ee&&(e.TgZ(0,"td",37),e._UZ(1,"perun-web-apps-recently-viewed-icon",38),e.qZA()),2&Ee){const de=we.$implicit,Ae=e.oxw();e.xp6(1),e.Q6J("recentIds",Ae.recentIds)("id",de.id)}}function be(Ee,we){1&Ee&&(e.TgZ(0,"th",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function Ye(Ee,we){if(1&Ee&&(e.TgZ(0,"td",35),e._uU(1),e.qZA()),2&Ee){const de=we.$implicit,Ae=e.oxw();e.xp6(1),e.hij(" ",Ae.voNames.get(de.voId)," ")}}function he(Ee,we){1&Ee&&e._UZ(0,"th",36)}function Re(Ee,we){1&Ee&&(e.TgZ(0,"mat-icon",40),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&Ee&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function He(Ee,we){1&Ee&&(e.TgZ(0,"mat-icon",40),e.ALo(1,"translate"),e._uU(2,"alt_route"),e.qZA()),2&Ee&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function ve(Ee,we){if(1&Ee&&(e.TgZ(0,"td",37),e.YNc(1,Re,3,3,"mat-icon",39),e.YNc(2,He,3,3,"mat-icon",39),e.qZA()),2&Ee){const de=we.$implicit;e.xp6(1),e.Q6J("ngIf",de.sourceGroupId&&!de.moreTypesOfAssignment),e.xp6(1),e.Q6J("ngIf",de.moreTypesOfAssignment)}}function Oe(Ee,we){1&Ee&&(e.TgZ(0,"th",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function r(Ee,we){if(1&Ee&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&Ee){const de=we.$implicit;e.uIk("data-cy",de.name),e.xp6(1),e.hij(" ",de.name," ")}}function u(Ee,we){1&Ee&&(e.TgZ(0,"th",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.AUTHZ_GROUP")," "))}function _(Ee,we){if(1&Ee){const de=e.EpF();e.TgZ(0,"td",41),e.NdJ("mouseenter",function(){e.CHM(de);const Te=e.oxw();return e.KtG(Te.disabledRouting=!0)})("mouseleave",function(){e.CHM(de);const Te=e.oxw();return e.KtG(Te.disabledRouting=Te.disableRouting)}),e._UZ(1,"perun-web-apps-authorized-groups-cell",42),e.qZA()}if(2&Ee){const de=we.$implicit,Ae=e.oxw();e.xp6(1),e.Q6J("groups",Ae.groupWithAuthzGroupPairs.get(de.id))("disableRouting",Ae.disableRouting)("authzVoNames",Ae.authzVoNames)}}function C(Ee,we){1&Ee&&(e.TgZ(0,"th",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function h(Ee,we){if(1&Ee){const de=e.EpF();e.TgZ(0,"td",43)(1,"perun-web-apps-group-resource-status",44),e.NdJ("mouseenter",function(){e.CHM(de);const Te=e.oxw();return e.KtG(Te.disabledRouting=!0)})("mouseleave",function(){e.CHM(de);const Te=e.oxw();return e.KtG(Te.disabledRouting=Te.disableRouting)})("statusChange",function(){e.CHM(de);const Te=e.oxw();return e.KtG(Te.refreshTable.emit())}),e.qZA()()}if(2&Ee){const de=we.$implicit,Ae=e.oxw();e.xp6(1),e.Q6J("theme","resource-theme")("groupId",de.id)("groupName",de.name)("resourceId",Ae.resourceId)("failureCause",de.failureCause)("status",de.status)}}function o(Ee,we){1&Ee&&(e.TgZ(0,"th",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function n(Ee,we){if(1&Ee&&(e.TgZ(0,"i",46),e.NdJ("click",function(Ae){return Ae.stopPropagation()}),e.ALo(1,"groupStatusIconColor"),e.TgZ(2,"span"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA()()),2&Ee){const de=we.ngIf;e.Gre("material-icons ",e.lcZ(1,5,de.status)," cursor-default"),e.s9C("matTooltip",de.status),e.xp6(3),e.hij(" ",e.lcZ(4,7,de.status)," ")}}const t=function(Ee){return{status:Ee}};function i(Ee,we){if(1&Ee&&(e.TgZ(0,"td",37),e.YNc(1,n,5,9,"i",45),e.ALo(2,"findAttribute"),e.qZA()),2&Ee){const de=we.$implicit;e.xp6(1),e.Q6J("ngIf",e.VKq(4,t,e.xi3(2,1,de.attributes,"groupStatus")))}}function a(Ee,we){1&Ee&&(e.TgZ(0,"th",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function c(Ee,we){if(1&Ee&&(e.TgZ(0,"td",43),e._uU(1),e.qZA()),2&Ee){const de=we.$implicit;e.xp6(1),e.Oqu(de.description)}}function l(Ee,we){1&Ee&&(e.TgZ(0,"th",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function d(Ee,we){if(1&Ee){const de=e.EpF();e.TgZ(0,"button",48),e.NdJ("click",function(){e.CHM(de);const Te=e.oxw().$implicit,ut=e.oxw();return e.KtG(ut.changeExpiration(Te))})("mouseenter",function(){e.CHM(de);const Te=e.oxw(2);return e.KtG(Te.disabledRouting=!0)})("mouseleave",function(){e.CHM(de);const Te=e.oxw(2);return e.KtG(Te.disabledRouting=Te.disableRouting)}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function s(Ee,we){if(1&Ee&&(e.TgZ(0,"td",43),e._uU(1),e.ALo(2,"parseDate"),e.ALo(3,"groupExpiration"),e.YNc(4,d,3,0,"button",47),e.ALo(5,"canManageGroup"),e.qZA()),2&Ee){const de=we.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,de))," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(5,6,de))}}function E(Ee,we){1&Ee&&e._UZ(0,"th",36)}function B(Ee,we){if(1&Ee){const de=e.EpF();e.TgZ(0,"td",37)(1,"perun-web-apps-group-menu",49),e.NdJ("mouseenter",function(){e.CHM(de);const Te=e.oxw();return e.KtG(Te.disabledRouting=!0)})("mouseleave",function(){e.CHM(de);const Te=e.oxw();return e.KtG(Te.disabledRouting=Te.disableRouting)})("moveGroup",function(){const ut=e.CHM(de).$implicit,bt=e.oxw();return e.KtG(bt.moveGroup(ut))})("changeNameDescription",function(){const ut=e.CHM(de).$implicit,bt=e.oxw();return e.KtG(bt.editGroup(ut))})("syncGroup",function(){const ut=e.CHM(de).$implicit,bt=e.oxw();return e.KtG(bt.openSyncDetail(ut))}),e.qZA()()}if(2&Ee){const de=we.$implicit,Ae=e.oxw();e.xp6(1),e.Q6J("disabled","members"===de.name)("displayButtons",Ae.displayButtons)("group",de)}}function q(Ee,we){1&Ee&&e._UZ(0,"tr",50)}const qe=function(Ee,we){return["/organizations",Ee,"groups",we]};function it(Ee,we){if(1&Ee&&e._UZ(0,"tr",51),2&Ee){const de=we.$implicit,Ae=e.oxw();e.ekj("cursor-pointer",!Ae.disableRouting&&!Ae.groupsToDisableRouting.has(de.id))("disable-outline",Ae.disableRouting||Ae.disabledRouting||Ae.groupsToDisableRouting.has(de.id)),e.Q6J("perunWebAppsMiddleClickRouterLink",Ae.disableRouting||Ae.disabledRouting||Ae.groupsToDisableRouting.has(de.id)?null:e.WLB(6,qe,de.voId,de.id))("routerLink",Ae.disableRouting||Ae.disabledRouting||Ae.groupsToDisableRouting.has(de.id)?null:e.WLB(9,qe,de.voId,de.id))}}function xt(Ee,we){if(1&Ee&&(e.TgZ(0,"perun-web-apps-alert",52),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee){const de=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,de.noGroupsAlert),"\n")}}const ht=function(Ee){return{all:Ee}};let _t=(()=>{class Ee{constructor(de,Ae,Te,ut,bt,Ht){this.dialog=de,this.authResolver=Ae,this.voService=Te,this.tableCheckbox=ut,this.disableGroupSelect=bt,this.groupUtils=Ht,this.theme="group-theme",this.selection=new I.Ov(!0,[]),this.groupsToDisableCheckbox=new Set,this.groupsToDisableRouting=new Set,this.disableRouting=!1,this.pageSizeOptions=m.f7,this.recentIds=[],this.resourceId=null,this.relation=!1,this.noGroupsAlert="SHARED_LIB.UI.ALERTS.NO_GROUPS",this.groupMoved=new e.vpe,this.refreshTable=new e.vpe,this.queryChanged=new e.vpe,this.downloadAll=new e.vpe,this.displayButtons=window.innerWidth>800,this.disabledRouting=!1,this.voNames=new Map,this.columns=["select","id","recent","vo","indirectGroupAssigment","name","status","groupStatus","description","expiration","menu"],this.getDataForColumnFun=(Mt,It)=>this.groupUtils.getDataForColumn(Mt,It,this.voNames),this.getSortDataForColumnFun=(Mt,It)=>this.groupUtils.getSortDataForColumn(Mt,It,this.voNames,this.recentIds),this.canBeSelected=Mt=>{const It=Mt.attributes?.find(ai=>"groupStatusIndirect"===ai.friendlyName);return It?.value?!It.value:!this.disableGroupSelect.transform(Mt,this.disableMembers,this.disableGroups,this.groupsToDisableCheckbox)}}set groups(de){this.dataSource||this.dataSourceInit(de);const Ae=this.isPaginated(de);(0,M.o)(this.dataSource)&&Ae?(this.dataSource.data=de.data,this.dataSource.count=de.totalCount):!(0,M.o)(this.dataSource)&&!Ae&&(this.dataSource.data=de),this.updateVoNames()}set filter(de){this.dataSource.filter=de}set displayedColumns(de){this.authResolver.isPerunAdminOrObserver()||(de=de.filter(Ae=>"id"!==Ae)),this.columns=de}shouldHideButtons(){this.displayButtons=window.innerWidth>800}isPaginated(de){return"data"in de}exportAllData(de){(0,M.o)(this.dataSource)?this.downloadAll.emit({format:de,length:this.dataSource.paginator.length}):(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.columns,this.getDataForColumnFun),de)}exportDisplayedData(de){if((0,M.o)(this.dataSource))(0,m.O6)((0,m.Xn)(this.dataSource.data,this.columns,this.getDataForColumnFun),de);else{const Ae=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Te=Ae+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ae,Te),this.columns,this.getDataForColumnFun),de)}}isAllSelected(){return(0,M.o)(this.dataSource)?this.tableCheckbox.isAllSelectedPaginated(this.dataSource,this.selection.selected.length,this.canBeSelected):this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){(0,M.o)(this.dataSource)?this.tableCheckbox.masterTogglePaginated(this.dataSource,this.selection,!this.isAllSelected(),this.canBeSelected):this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.dataSource.filter,this.dataSource,this.dataSource.sort,this.dataSource.paginator.pageSize,this.dataSource.paginator.pageIndex,!0,this.canBeSelected)}moveGroup(de){this.groupMoved.emit(de)}openSyncDetail(de){const Ae=(0,m.kZ)();Ae.width="450px",Ae.data={groupId:de.id,theme:this.theme},this.dialog.open(f.Bp,Ae)}editGroup(de){const Ae=(0,m.kZ)();Ae.data={theme:"group-theme",group:de,dialogType:f.Eg.GROUP},this.dialog.open(f.rd,Ae).afterClosed().subscribe(ut=>{ut&&this.refreshTable.emit()})}changeExpiration(de){const Ae=de.attributes.find(bt=>"groupMembershipExpiration"===bt.baseFriendlyName),Te=(0,m.kZ)();Te.width="400px",Te.data={memberId:this.memberId,groupId:de.id,expirationAttr:Ae,status:(0,m.cT)(de.attributes,"groupStatus")},this.dialog.open(f.u3,Te).afterClosed().subscribe(bt=>{bt.success&&this.refreshTable.emit()})}itemSelectionToggle(de){this.selection.toggle(de)}dataSourceInit(de){const Ae=this.isPaginated(de);this.dataSource=Ae?new M.H(de.data,de.totalCount,this.sort,this.tableWrapper.paginator):new x.by(de),(0,M.o)(this.dataSource)?this.dataSource.pageQuery$.subscribe(Te=>this.queryChanged.emit(Te)):(this.dataSource.sort=this.sort,this.dataSource.paginator=this.tableWrapper.paginator,this.dataSource.filterPredicate=(Te,ut)=>(0,m.Sd)(Te,ut,this.columns,this.getDataForColumnFun,!0),this.dataSource.sortData=(Te,ut)=>(0,m.pR)(Te,ut,this.getSortDataForColumnFun))}updateVoNames(){if(this.columns.includes("vo")){const de=new Set;this.dataSource.filteredData.forEach(Ae=>{!de.has(Ae.voId)&&!this.voNames.has(Ae.voId)&&de.add(Ae.voId)}),de.size>0&&this.voService.getVosByIds([...de]).subscribe(Ae=>{Ae.forEach(Te=>{this.voNames.set(Te.id,Te.name)})})}}}return Ee.\u0275fac=function(de){return new(de||Ee)(e.Y36(T.uw),e.Y36(S.x4),e.Y36(A.YF),e.Y36(S.UA),e.Y36(F.yo),e.Y36(S.K1))},Ee.\u0275cmp=e.Xpm({type:Ee,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(de,Ae){if(1&de&&(e.Gf(m.l9,7),e.Gf(w.YE,7)),2&de){let Te;e.iGM(Te=e.CRH())&&(Ae.tableWrapper=Te.first),e.iGM(Te=e.CRH())&&(Ae.sort=Te.first)}},hostBindings:function(de,Ae){1&de&&e.NdJ("resize",function(ut){return Ae.shouldHideButtons(ut)},!1,e.Jf7)},inputs:{theme:"theme",selection:"selection",groupWithAuthzGroupPairs:"groupWithAuthzGroupPairs",authzVoNames:"authzVoNames",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisableCheckbox:"groupsToDisableCheckbox",groupsToDisableRouting:"groupsToDisableRouting",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId",tableId:"tableId",relation:"relation",noGroupsAlert:"noGroupsAlert",groups:"groups",filter:"filter",displayedColumns:"displayedColumns"},outputs:{groupMoved:"groupMoved",refreshTable:"refreshTable",queryChanged:"queryChanged",downloadAll:"downloadAll"},features:[e._Bn([F.yo])],decls:41,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","indirectGroupAssigment"],["matColumnDef","name"],["matColumnDef","authzGroup"],["mat-cell","","style","cursor: default",3,"mouseenter","mouseleave",4,"matCellDef"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","groupStatus"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",3,"cursor-default","mouseenter","mouseleave",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox",3,"mouseenter","mouseleave"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],["mat-cell","",2,"cursor","default",3,"mouseenter","mouseleave"],[3,"groups","disableRouting","authzVoNames"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","groupName","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"class","matTooltip","click",4,"ngIf"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-icon-button","",3,"click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"click","mouseenter","mouseleave"],[3,"disabled","displayButtons","group","mouseenter","mouseleave","moveGroup","changeNameDescription","syncGroup"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(de,Ae){if(1&de&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(ut){return Ae.exportDisplayedData(ut)})("exportAllData",function(ut){return Ae.exportAllData(ut)}),e.TgZ(2,"table",2),e.YNc(3,at,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,Ue,3,3,"th",5),e.YNc(7,pt,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,z,1,0,"th",8),e.YNc(10,st,2,2,"td",9),e.BQk(),e.ynx(11,10),e.YNc(12,be,3,3,"th",5),e.YNc(13,Ye,2,1,"td",6),e.BQk(),e.ynx(14,11),e.YNc(15,he,1,0,"th",8),e.YNc(16,ve,3,2,"td",9),e.BQk(),e.ynx(17,12),e.YNc(18,Oe,3,3,"th",5),e.YNc(19,r,2,2,"td",9),e.BQk(),e.ynx(20,13),e.YNc(21,u,3,3,"th",8),e.YNc(22,_,2,3,"td",14),e.BQk(),e.ynx(23,15),e.YNc(24,C,3,3,"th",5),e.YNc(25,h,2,6,"td",16),e.BQk(),e.ynx(26,17),e.YNc(27,o,3,3,"th",5),e.YNc(28,i,3,6,"td",9),e.BQk(),e.ynx(29,18),e.YNc(30,a,3,3,"th",5),e.YNc(31,c,2,1,"td",16),e.BQk(),e.ynx(32,19),e.YNc(33,l,3,3,"th",5),e.YNc(34,s,6,8,"td",16),e.BQk(),e.ynx(35,20),e.YNc(36,E,1,0,"th",8),e.YNc(37,B,2,3,"td",9),e.BQk(),e.YNc(38,q,1,0,"tr",21),e.YNc(39,it,1,12,"tr",22),e.qZA()()(),e.YNc(40,xt,3,3,"perun-web-apps-alert",23)),2&de){let Te;e.Q6J("hidden",0===Ae.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",null!==(Te=Ae.dataSource.count)&&void 0!==Te?Te:Ae.dataSource.filteredData.length)("pageSizeOptions",Ae.pageSizeOptions)("tableId",Ae.tableId),e.xp6(1),e.Q6J("dataSource",Ae.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,ht,e.Dn7(4,9,Ae.dataSource,Ae.selection.selected.length,Ae.canBeSelected))),e.xp6(35),e.Q6J("matHeaderRowDef",Ae.columns),e.xp6(1),e.Q6J("matRowDefColumns",Ae.columns),e.xp6(1),e.Q6J("ngIf",0===Ae.dataSource.filteredData.length)}},dependencies:[H.O5,P.oG,x.BZ,x.fO,x.as,x.w1,x.Dz,x.nj,x.ge,x.ev,x.XQ,x.Gk,J.rH,w.YE,w.nU,fe.w,j.Hw,$.RK,_e.gM,ge.l,pe.i,re.Y,V.W,W.x,v.Q,te.e,ne.X$,ye.f,ze,ke.F,$e.M,Je.I,Fe,Ve,le.y,N,U.G,X.r],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.cursor-default[_ngcontent-%COMP%], .mat-mdc-checkbox-disabled[_ngcontent-%COMP%]{cursor:default}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),Ee})()},58956:(Qe,ae,p)=>{"use strict";p.d(ae,{I:()=>Je});var e=p(94650),f=p(35423),A=p(57851),S=p(95017);class m{constructor(Ve){this.id=Ve.id,this.name=Ve.name,this.parentGroupId=Ve.parentGroupId,this.voId=Ve.voId,this.shortName=Ve.shortName,this.description=Ve.description,this.attributes=Ve.attributes,this.beanName=Ve.beanName}addChild(Ve){null==this.children?this.children=[Ve]:this.children.push(Ve)}}var M=p(9244),w=p(21029),x=p(80279),I=p(7274),F=p(36895),T=p(56709),H=p(82761),P=p(98380),J=p(97392),fe=p(4859),j=p(10266),$=p(67376),_e=p(13449),ge=p(34198),pe=p(55660),re=p(89383);const v=["scrollViewport"];function V(Fe,Ve){if(1&Fe){const le=e.EpF();e.TgZ(0,"mat-checkbox",19),e.NdJ("change",function(){e.CHM(le);const U=e.oxw().$implicit,X=e.oxw(2);return e.KtG(X.itemSelectionToggle(U))}),e.qZA()}if(2&Fe){const le=e.oxw().$implicit,N=e.oxw(2);e.Q2q("data-cy","",le.name,"-checkbox"),e.Q6J("disabled","members"===le.fullName)("checked",N.selection.isSelected(le))("indeterminate",N.descendantsPartiallySelected(le))}}function W(Fe,Ve){if(1&Fe&&(e.TgZ(0,"mat-icon",20),e._uU(1),e.qZA()),2&Fe){const le=e.oxw().$implicit,N=e.oxw(2);e.xp6(1),e.hij(" ",N.treeControl.isExpanded(le)?"expand_more":"chevron_right"," ")}}function te(Fe,Ve){if(1&Fe&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&Fe){const le=e.oxw().$implicit;e.xp6(1),e.hij(" #",le.id," ")}}const ne=function(Fe,Ve){return["/organizations",Fe,"groups",Ve]};function ye(Fe,Ve){if(1&Fe){const le=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,V,1,4,"mat-checkbox",7),e.TgZ(3,"a",8),e.NdJ("auxclick",function(U){return U.preventDefault()}),e.TgZ(4,"button",9),e.NdJ("mouseenter",function(){e.CHM(le);const U=e.oxw(2);return e.KtG(U.disableRouting=!0)})("mouseleave",function(){e.CHM(le);const U=e.oxw(2);return e.KtG(U.disableRouting=!1)})("click",function(){const X=e.CHM(le).$implicit,ce=e.oxw(2);return e.KtG(ce.treeControl.toggle(X))}),e.YNc(5,W,2,1,"mat-icon",10),e.qZA(),e.TgZ(6,"div",11)(7,"span",12),e._uU(8),e.qZA(),e.YNc(9,te,2,1,"span",13),e.qZA(),e.TgZ(10,"div",14,15)(12,"span",16),e._uU(13),e.qZA()()(),e.TgZ(14,"div",17)(15,"perun-web-apps-group-menu",18),e.NdJ("moveGroup",function(){const X=e.CHM(le).$implicit,ce=e.oxw(2);return e.KtG(ce.onMoveGroup(X))})("syncGroup",function(){const X=e.CHM(le).$implicit,ce=e.oxw(2);return e.KtG(ce.onSyncDetail(X))})("changeNameDescription",function(){const X=e.CHM(le).$implicit,ce=e.oxw(2);return e.KtG(ce.onChangeNameDescription(X))}),e.qZA()()(),e.BQk()}if(2&Fe){const le=Ve.$implicit,N=e.oxw(2);e.xp6(1),e.Udp("padding-left",24*le.level+"px"),e.xp6(1),e.Q6J("ngIf",!N.hideCheckbox),e.xp6(1),e.Q6J("perunWebAppsMiddleClickRouterLink",N.disableRouting?null:e.WLB(16,ne,le.voId.toString(),le.id.toString()))("routerLink",N.disableRouting?null:e.WLB(19,ne,le.voId,le.id)),e.xp6(1),e.Q6J("disabled",!le.expandable),e.uIk("aria-label","toggle "+le.name),e.xp6(1),e.Q6J("ngIf",le.expandable),e.xp6(2),e.uIk("data-cy",le.name),e.xp6(1),e.hij(" ",le.name," "),e.xp6(1),e.Q6J("ngIf",N.authResolver.isPerunAdminOrObserver()),e.xp6(3),e.s9C("matTooltip",le.description),e.xp6(1),e.hij(" ",le.description," "),e.xp6(2),e.Q6J("disabled","members"===le.fullName)("displayButtons",N.displayButtons)("group",le)}}const ze=function(Fe){return{height:Fe}};function ke(Fe,Ve){if(1&Fe&&(e.TgZ(0,"div",2)(1,"cdk-virtual-scroll-viewport",3,4),e.YNc(3,ye,16,22,"ng-container",5),e.qZA()()),2&Fe){const le=e.oxw();e.xp6(1),e.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",e.VKq(4,ze,le.getTreeViewHeight())),e.xp6(2),e.Q6J("cdkVirtualForOf",le.dataSource)}}function $e(Fe,Ve){1&Fe&&(e.TgZ(0,"perun-web-apps-alert",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Fe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let Je=(()=>{class Fe{constructor(le,N,U){this.cd=le,this.dialog=N,this.authResolver=U,this.theme="group-theme",this.moveGroup=new e.vpe,this.refreshTable=new e.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new S.Ov(!0,[]),this.hideCheckbox=!1,this.displayButtons=window.innerWidth>600,this.treeControl=new A.C2(X=>X.level,X=>X.expandable),this.hasChild=(X,ce)=>ce.expandable,this.getLevel=X=>X.level,this.transformer=(X,ce)=>({expandable:!!X.children&&X.children.length>0,name:X.shortName,fullName:X.name,parentGroupId:X.parentGroupId,level:ce,id:X.id,voId:X.voId,attributes:X.attributes,beanName:X.beanName,description:X.description}),this.treeFlattener=new f.JZ(this.transformer,X=>X.level,X=>X.expandable,X=>X.children),this.dataSource=new f.kc(this.treeControl,this.treeFlattener)}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(le=>le.name?.toLowerCase().includes(this.filterValue.toLowerCase())||le.description?.toLowerCase().includes(this.filterValue.toLowerCase())||le.id.toString().includes(this.filterValue.toLowerCase())||le.uuid.toLowerCase().includes(this.filterValue.toLowerCase()));for(const le of this.filteredGroups)le.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,M.oU)(le.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(le){const N=(0,M.kZ)();N.width="450px",N.data={groupId:le.id,theme:this.theme},this.dialog.open(w.Bp,N)}onChangeNameDescription(le){const N=(0,M.kZ)();N.data={theme:"group-theme",group:le,dialogType:w.Eg.GROUP},this.dialog.open(w.rd,N).afterClosed().subscribe(X=>{X&&this.refreshTable.emit()})}createGroupTrees(le){const N=new Map;for(const ce of le)N.set(ce.id,new m(ce));const U=new Set;N.forEach((ce,Me,ue)=>{const Pe=ue.get(ce.parentGroupId);void 0!==Pe&&(Pe.addChild(ce),ue.set(ce.parentGroupId,Pe)),null!==ce.parentGroupId&&void 0===Pe&&U.add(ce.id)});const X=[];N.forEach(ce=>{(null===ce.parentGroupId||U.has(ce.id))&&X.push(ce)}),this.dataSource.data=X,this.cd.detectChanges()}getParentNode(le){const N=this.getLevel(le);if(N<1)return null;for(let X=this.treeControl.dataNodes.indexOf(le)-1;X>=0;X--){const ce=this.treeControl.dataNodes[X];if(this.getLevel(ce)this.selection.isSelected(ce));N&&!X&&this.selection.deselect(le)}checkAllParentsSelection(le){let N=this.getParentNode(le);for(;N;)this.checkRootNodeSelection(N),N=this.getParentNode(N);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(le){return this.treeControl.getDescendants(le).some(X=>this.selection.isSelected(X))&&!this.selection.isSelected(le)}itemSelectionToggle(le){this.selection.toggle(le);const N=this.treeControl.getDescendants(le);this.selection.isSelected(le)?this.selection.select(...N):this.selection.deselect(...N),N.every(U=>this.selection.isSelected(U)),this.checkAllParentsSelection(le)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(le,N)=>le&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,N]):(le,N)=>le&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[N]),!0)}onMoveGroup(le){this.moveGroup.emit(le)}getTreeViewHeight(){let le=0;this.scrollViewport&&(le=this.scrollViewport.getDataLength());let N=48*le;return N>672&&(N=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),String(N)+"px"}}return Fe.\u0275fac=function(le){return new(le||Fe)(e.Y36(e.sBO),e.Y36(I.uw),e.Y36(x.x4))},Fe.\u0275cmp=e.Xpm({type:Fe,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(le,N){if(1&le&&e.Gf(v,5),2&le){let U;e.iGM(U=e.CRH())&&(N.scrollViewport=U.first)}},hostBindings:function(le,N){1&le&&e.NdJ("resize",function(X){return N.shouldHideButtons(X)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:2,vars:2,consts:[["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"card","mt-2"],["itemSize","48",1,"virtual-scroll-container",3,"minBufferPx","maxBufferPx","ngStyle"],["scrollViewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"node"],["color","primary","class","no-label-margin-bottom ms-4",3,"disabled","checked","indeterminate","change",4,"ngIf"],[1,"group-item-content","text-format",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],["mat-icon-button","",3,"disabled","mouseenter","mouseleave","click"],["class","mat-icon-rtl-mirror",4,"ngIf"],[1,"w-50"],[1,"me-2"],["class","text-muted",4,"ngIf"],[1,"w-50","text-muted","description-text"],["rootDescription",""],["matTooltipPosition","before",3,"matTooltip"],[1,"group-buttons"],[3,"disabled","displayButtons","group","moveGroup","syncGroup","changeNameDescription"],["color","primary",1,"no-label-margin-bottom","ms-4",3,"disabled","checked","indeterminate","change"],[1,"mat-icon-rtl-mirror"],[1,"text-muted"],["alert_type","warn"]],template:function(le,N){1&le&&(e.YNc(0,ke,4,6,"div",0),e.YNc(1,$e,3,3,"perun-web-apps-alert",1)),2&le&&(e.Q6J("ngIf",0!==N.filteredGroups.length),e.xp6(1),e.Q6J("ngIf",0===N.filteredGroups.length))},dependencies:[F.O5,F.PC,T.oG,H.rH,P.w,J.Hw,fe.RK,j.gM,$.xd,$.x0,$.N7,_e.i,ge.Y,pe.Q,re.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.group-item-content[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;overflow:hidden;word-wrap:break-word;cursor:pointer}mat-tree-node[_ngcontent-%COMP%]{cursor:pointer}.description-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.virtual-scroll-container[_ngcontent-%COMP%]{overflow:auto}cdk-tree-node[_ngcontent-%COMP%]{display:block}.node[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;word-wrap:break-word}.node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),Fe})()},52314:(Qe,ae,p)=>{"use strict";p.d(ae,{X:()=>fe});var e=p(80279),f=p(94650),A=p(36895),S=p(97392),m=p(28255),M=p(4859),w=p(10266),x=p(89383),I=p(31359);const F=function(j){return{color:j}};function T(j,$){if(1&j&&(f.TgZ(0,"button",9),f.ALo(1,"translate"),f.TgZ(2,"mat-icon",10),f._uU(3," apps "),f.qZA()()),2&j){const _e=f.oxw(),ge=f.MAs(3);f.Q6J("matMenuTriggerFor",ge)("matTooltip",f.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),f.xp6(2),f.Q6J("ngStyle",f.VKq(5,F,_e.iconColor))}}function H(j,$){if(1&j&&(f.TgZ(0,"span",11),f._uU(1),f.ALo(2,"userFullName"),f.qZA()),2&j){const _e=f.oxw();f.Q6J("ngStyle",f.VKq(4,F,_e.textColor)),f.xp6(1),f.hij(" ",f.lcZ(2,2,_e.user)," ")}}function P(j,$){if(1&j){const _e=f.EpF();f.TgZ(0,"button",12),f.NdJ("click",function(){f.CHM(_e);const pe=f.oxw();return f.KtG(pe.onLogOut())}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&j&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"NAV.LOGOUT")," "))}const J=function(j){return{color:j,"font-size":"24px"}};let fe=(()=>{class j{constructor(_e){this.authService=_e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return j.\u0275fac=function(_e){return new(_e||j)(f.Y36(e.e8))},j.\u0275cmp=f.Xpm({type:j,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:8,consts:[[1,"align-elements"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[1,"mb-1","me-3",3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(_e,ge){if(1&_e&&(f.TgZ(0,"div",0),f.YNc(1,T,4,7,"button",1),f.TgZ(2,"mat-menu",null,2)(4,"button",3),f.NdJ("click",function(){return ge.redirectToUrl()})("auxclick",function(){return ge.redirectToUrl()}),f.TgZ(5,"span"),f._uU(6),f.qZA()()(),f.TgZ(7,"button",4)(8,"mat-icon",5),f._uU(9," person "),f.qZA(),f.YNc(10,H,3,6,"span",6),f.qZA(),f.TgZ(11,"mat-menu",null,7),f.YNc(13,P,3,3,"button",8),f.qZA()()),2&_e){const pe=f.MAs(12);f.xp6(1),f.Q6J("ngIf",ge.url),f.xp6(5),f.Oqu(ge.label),f.xp6(1),f.Q6J("matMenuTriggerFor",pe),f.xp6(1),f.Q6J("ngStyle",f.VKq(6,J,ge.iconColor)),f.xp6(2),f.Q6J("ngIf",null!==ge.user),f.xp6(3),f.Q6J("ngIf",ge.logoutEnabled)}},dependencies:[A.O5,A.PC,S.Hw,m.VK,m.OP,m.p6,M.lW,M.RK,w.gM,x.X$,I.d],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}"]}),j})()},7434:(Qe,ae,p)=>{"use strict";p.d(ae,{L:()=>F});var e=p(94650),f=p(24006),A=p(36895),S=p(59549),m=p(284),M=p(22308),w=p(89383);function x(T,H){if(1&T&&e._UZ(0,"input",3),2&T){const P=e.oxw();e.Q6J("formControl",P.formControl)}}function I(T,H){if(1&T&&e._UZ(0,"input",4),2&T){const P=e.oxw();e.Q6J("formControl",P.formControl)}}let F=(()=>{class T{constructor(){this.filter=new e.vpe,this.autoFocus=!1,this.formControl=new f.p4}ngOnInit(){this.formControl.valueChanges.subscribe(P=>{let J=P.trim();J=J.toLowerCase(),this.filter.emit(J)})}}return T.\u0275fac=function(P){return new(P||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","me-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl"],["matInput","","data-cy","unfocused-filter",3,"formControl"]],template:function(P,J){1&P&&(e.TgZ(0,"mat-form-field",0)(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,x,1,1,"input",1),e.YNc(5,I,1,1,"input",2),e.qZA()),2&P&&(e.xp6(2),e.Oqu(e.lcZ(3,3,J.placeholder)),e.xp6(2),e.Q6J("ngIf",J.autoFocus),e.xp6(1),e.Q6J("ngIf",!J.autoFocus))},dependencies:[A.O5,f.Fj,f.JJ,S.KE,S.hX,f.oH,m.Nt,M.h,w.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),T})()},93057:(Qe,ae,p)=>{"use strict";p.d(ae,{z:()=>U});var e=p(94650),f=p(61744),A=p(9244),S=p(64080),m=p(30671),M=p(80279),w=p(21029),x=p(89383),I=p(7274),F=p(36895),T=p(51572),H=p(98380),P=p(97392),J=p(4859),fe=p(73546),j=p(82322),$=p(21757),_e=p(82514),ge=p(62383),pe=p(49206);function re(X,ce){1&X&&(e.TgZ(0,"mat-card-header")(1,"mat-card-title")(2,"h1",6),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&X&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")))}function v(X,ce){1&X&&(e.TgZ(0,"h1",7),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&X&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP"),"\n"))}function V(X,ce){if(1&X){const Me=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(Pe){e.CHM(Me);const tt=e.oxw();return e.KtG(tt.groupIsSelected(Pe))}),e.qZA()}if(2&X){const Me=e.oxw();e.Q6J("firstSelectedGroup",Me.selectedGroup)("groups",Me.groups)}}function W(X,ce){1&X&&e._UZ(0,"mat-spinner",9)}function te(X,ce){1&X&&(e.TgZ(0,"perun-web-apps-alert",10),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&X&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function ne(X,ce){1&X&&e._UZ(0,"th",18)}function ye(X,ce){if(1&X&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&X){const Me=ce.$implicit;e.xp6(1),e.hij("",Me,":")}}function ze(X,ce){1&X&&e._UZ(0,"th",18)}function ke(X,ce){if(1&X){const Me=e.EpF();e.TgZ(0,"button",25),e.NdJ("click",function(){e.CHM(Me);const Pe=e.oxw(4);return e.KtG(Pe.changeStatus())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function $e(X,ce){if(1&X&&(e.TgZ(0,"div",22)(1,"i"),e.ALo(2,"groupStatusIconColor"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA(),e.TgZ(5,"b",23),e._uU(6),e.ALo(7,"transformMemberStatus"),e.qZA(),e.YNc(8,ke,3,0,"button",24),e.qZA()),2&X){const Me=e.oxw(3);e.xp6(1),e.Gre("material-icons vert-center me-1 ",e.lcZ(2,6,Me.selectedMember.groupStatus),""),e.xp6(2),e.hij(" ",e.lcZ(4,8,Me.selectedMember.groupStatus)," "),e.xp6(3),e.hij(" ",e.lcZ(7,10,Me.selectedMember.groupStatus)," "),e.xp6(2),e.Q6J("ngIf",Me.authResolver.isThisVoAdmin(Me.voId)||Me.authResolver.isThisGroupAdmin(Me.selectedGroup.id))}}function Je(X,ce){if(1&X){const Me=e.EpF();e.TgZ(0,"button",25),e.NdJ("click",function(){e.CHM(Me);const Pe=e.oxw(4);return e.KtG(Pe.changeExpiration())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function Fe(X,ce){if(1&X&&(e.TgZ(0,"div",22)(1,"i",2),e._uU(2),e.ALo(3,"parseDate"),e.qZA(),e.YNc(4,Je,3,0,"button",24),e.qZA()),2&X){const Me=e.oxw(3);e.xp6(2),e.hij(" ",e.lcZ(3,2,Me.expiration)," "),e.xp6(2),e.Q6J("ngIf",Me.authResolver.isThisVoAdmin(Me.voId)||Me.authResolver.isThisGroupAdmin(Me.selectedGroup.id))}}function Ve(X,ce){if(1&X&&(e.TgZ(0,"td",20),e.YNc(1,$e,9,12,"div",21),e.YNc(2,Fe,5,4,"div",21),e.qZA()),2&X){const Me=ce.$implicit;e.xp6(1),e.Q6J("ngIf","Status"===Me),e.xp6(1),e.Q6J("ngIf","Expiration"===Me)}}function le(X,ce){1&X&&e._UZ(0,"tr",26)}function N(X,ce){if(1&X&&(e.TgZ(0,"div")(1,"table",11),e.ynx(2,12),e.YNc(3,ne,1,0,"th",13),e.YNc(4,ye,2,1,"td",14),e.BQk(),e.ynx(5,15),e.YNc(6,ze,1,0,"th",13),e.YNc(7,Ve,3,2,"td",16),e.BQk(),e.YNc(8,le,1,0,"tr",17),e.qZA()()),2&X){const Me=e.oxw();e.xp6(1),e.Tol(Me.openedInDialog?"me-auto":"ms-auto me-auto"),e.Q6J("dataSource",Me.groupMembershipDataSource),e.xp6(7),e.Q6J("matRowDefColumns",Me.displayedColumns)}}let U=(()=>{class X{constructor(Me,ue,Pe,tt){this.groupsManager=Me,this.authResolver=ue,this.translate=Pe,this.dialog=tt,this.openedInDialog=!1,this.statusChanged=new e.vpe,this.noGroups=!1,this.groupMembershipDataSource=new m.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new m.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(Me=>{if(this.groups=Me,0===this.groups.length)return void(this.noGroups=!0);const ue=this.findInitiallySelectedGroupId();this.groupIsSelected(ue),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,A.vL)("groups"),this.recentIds){const Me=this.groups.find(ue=>ue.id===this.recentIds[0]);if(Me)return Me}return this.groups[0]}groupIsSelected(Me){this.loading=!0,this.selectedGroup=Me,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[S.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(ue=>{this.selectedMember=ue[0],this.expirationAtt=this.selectedMember.memberAttributes.find(Pe=>"groupMembershipExpiration"===Pe.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new m.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new m.by(["Status"]),this.loading=!1})}changeExpiration(){const Me=(0,A.kZ)();Me.width="400px",Me.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,backButton:this.openedInDialog},this.dialog.open(w.u3,Me).afterClosed().subscribe(Pe=>{Pe.success&&(this.groupIsSelected(this.selectedGroup),this.dialog.closeAll())})}changeStatus(){const Me=(0,A.kZ)();Me.width="600px",Me.data={member:this.selectedMember,voId:this.voId,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,backButton:this.openedInDialog},this.dialog.open(w.pf,Me).afterClosed().subscribe(Pe=>{Pe&&(this.selectedMember=Pe,this.groupIsSelected(this.selectedGroup),this.dialog.closeAll(),this.statusChanged.emit(!0))})}}return X.\u0275fac=function(Me){return new(Me||X)(e.Y36(f.ff),e.Y36(M.x4),e.Y36(x.sK),e.Y36(I.uw))},X.\u0275cmp=e.Xpm({type:X,selectors:[["perun-web-apps-member-overview-groups"]],inputs:{voId:"voId",member:"member",openedInDialog:"openedInDialog"},outputs:{statusChanged:"statusChanged"},features:[e.TTD],decls:7,vars:6,consts:[[4,"ngIf"],["mat-dialog-title","",4,"ngIf"],[1,"column-center"],[3,"firstSelectedGroup","groups","groupSelected",4,"ngIf"],["class","me-auto ms-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"page-subtitle"],["mat-dialog-title",""],[3,"firstSelectedGroup","groups","groupSelected"],[1,"me-auto","ms-auto"],["alert_type","warn"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","fw-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"fw-bold"],["mat-cell","",1,"column-center"],["class","d-flex align-items-center",4,"ngIf"],[1,"d-flex","align-items-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-row",""]],template:function(Me,ue){1&Me&&(e.YNc(0,re,5,3,"mat-card-header",0),e.YNc(1,v,3,3,"h1",1),e.TgZ(2,"mat-card-content",2),e.YNc(3,V,1,2,"perun-web-apps-group-search-select",3),e.YNc(4,W,1,0,"mat-spinner",4),e.YNc(5,te,3,3,"perun-web-apps-alert",5),e.YNc(6,N,9,4,"div",0),e.qZA()),2&Me&&(e.Q6J("ngIf",!ue.openedInDialog),e.xp6(1),e.Q6J("ngIf",ue.openedInDialog),e.xp6(2),e.Q6J("ngIf",!ue.initLoading&&!ue.openedInDialog),e.xp6(1),e.Q6J("ngIf",(ue.loading||ue.initLoading)&&!ue.noGroups),e.xp6(1),e.Q6J("ngIf",ue.noGroups),e.xp6(1),e.Q6J("ngIf",!ue.loading))},dependencies:[F.O5,m.BZ,m.fO,m.w1,m.Dz,m.nj,m.ge,m.ev,m.Gk,T.Ou,H.w,P.Hw,J.RK,I.uh,fe.dn,fe.dk,fe.n5,j.h,x.X$,$.f,_e.F,ge.M,pe.r],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),X})()},12488:(Qe,ae,p)=>{"use strict";p.d(ae,{b:()=>Ve});var e=p(94650),f=p(61744),A=p(9244),S=p(21029),m=p(30671),M=p(80279),w=p(64080),x=p(7274),I=p(89383),F=p(36895),T=p(51572),H=p(97392),P=p(4859),J=p(73546),fe=p(69773),j=p(21757),$=p(38993),_e=p(62383),ge=p(49206);function pe(le,N){1&le&&(e.TgZ(0,"mat-card-header")(1,"mat-card-title")(2,"h1",3),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&le&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "))}function re(le,N){1&le&&(e.TgZ(0,"h1",4),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&le&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP"),"\n"))}function v(le,N){1&le&&e._UZ(0,"mat-spinner",5)}function V(le,N){1&le&&e._UZ(0,"th",13)}function W(le,N){if(1&le&&(e.TgZ(0,"td",14),e._uU(1),e.qZA()),2&le){const U=N.$implicit;e.xp6(1),e.hij("",U,":")}}function te(le,N){1&le&&e._UZ(0,"th",13)}function ne(le,N){if(1&le){const U=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(U);const ce=e.oxw(4);return e.KtG(ce.changeStatus())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function ye(le,N){if(1&le&&(e.TgZ(0,"div",17)(1,"i"),e.ALo(2,"memberStatusIconColor"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA(),e.TgZ(5,"b",18),e._uU(6),e.ALo(7,"transformMemberStatus"),e.qZA(),e.YNc(8,ne,3,0,"button",19),e.ALo(9,"memberStatusDisabled"),e.qZA()),2&le){const U=e.oxw(3);e.xp6(1),e.Gre("material-icons vert-center me-1 ",e.lcZ(2,6,U.member),""),e.xp6(2),e.hij(" ",e.lcZ(4,8,U.member.status)," "),e.xp6(3),e.hij(" ",e.lcZ(7,10,U.member.status)," "),e.xp6(2),e.Q6J("ngIf",U.authResolver.isThisVoAdmin(U.voId)&&!e.lcZ(9,12,U.member))}}function ze(le,N){if(1&le){const U=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(U);const ce=e.oxw(4);return e.KtG(ce.changeVoExpiration())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function ke(le,N){if(1&le&&(e.TgZ(0,"div",17)(1,"i",21),e._uU(2),e.ALo(3,"parseDate"),e.qZA(),e.YNc(4,ze,3,0,"button",19),e.ALo(5,"memberStatusDisabled"),e.qZA()),2&le){const U=e.oxw(3);e.xp6(2),e.hij(" ",e.lcZ(3,2,U.voExpiration)," "),e.xp6(2),e.Q6J("ngIf",U.authResolver.isThisVoAdmin(U.voId)&&!e.lcZ(5,4,U.member))}}function $e(le,N){if(1&le&&(e.TgZ(0,"td",15),e.YNc(1,ye,10,14,"div",16),e.YNc(2,ke,6,6,"div",16),e.qZA()),2&le){const U=N.$implicit;e.xp6(1),e.Q6J("ngIf","Status"===U),e.xp6(1),e.Q6J("ngIf","Expiration"===U)}}function Je(le,N){1&le&&e._UZ(0,"tr",22)}function Fe(le,N){if(1&le&&(e.TgZ(0,"div")(1,"table",6),e.ynx(2,7),e.YNc(3,V,1,0,"th",8),e.YNc(4,W,2,1,"td",9),e.BQk(),e.ynx(5,10),e.YNc(6,te,1,0,"th",8),e.YNc(7,$e,3,2,"td",11),e.BQk(),e.YNc(8,Je,1,0,"tr",12),e.qZA()()),2&le){const U=e.oxw();e.xp6(1),e.Tol(U.openedInDialog?"me-auto":"ms-auto me-auto"),e.Q6J("dataSource",U.voMembershipDataSource),e.xp6(7),e.Q6J("matRowDefColumns",U.displayedColumns)}}let Ve=(()=>{class le{constructor(U,X,ce,Me,ue,Pe){this.dialog=U,this.authResolver=X,this.apiRequest=ce,this.attributesManager=Me,this.translate=ue,this.notificator=Pe,this.openedInDialog=!1,this.statusChanged=new e.vpe,this.voMembershipDataSource=new m.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new m.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const U=(0,A.kZ)();U.width="600px",U.data={member:this.member,voId:this.voId,backButton:this.openedInDialog,expirationAttr:this.voExpirationAtt},this.dialog.open(S.pf,U).afterClosed().subscribe(ce=>{ce&&(this.member=ce,this.dialog.closeAll(),this.refreshVoExpiration())})}changeVoExpiration(){const U=(0,A.kZ)();U.width="400px",U.data={voId:this.voId,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,backButton:this.openedInDialog},this.dialog.open(S.kZ,U).afterClosed().subscribe(ce=>{ce.success&&(ce.member&&(this.member=ce.member),this.refreshVoExpiration(),this.dialog.closeAll())})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,w.r.MEMBER_DEF_EXPIRATION).subscribe({next:U=>{this.voExpirationAtt=U,this.voExpiration=U.value?U.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},error:U=>{"PrivilegeException"!==U.name?this.notificator.showError(U.name):this.voMembershipDataSource=new m.by(["Status"]),this.loading=!1}})}}return le.\u0275fac=function(U){return new(U||le)(e.Y36(x.uw),e.Y36(M.x4),e.Y36(M.F5),e.Y36(f.H8),e.Y36(I.sK),e.Y36(M.V6))},le.\u0275cmp=e.Xpm({type:le,selectors:[["perun-web-apps-member-overview-membership"]],inputs:{member:"member",voId:"voId",openedInDialog:"openedInDialog"},outputs:{statusChanged:"statusChanged"},features:[e.TTD],decls:5,vars:4,consts:[[4,"ngIf"],["mat-dialog-title","",4,"ngIf"],["class","me-auto ms-auto",4,"ngIf"],[1,"page-subtitle"],["mat-dialog-title",""],[1,"me-auto","ms-auto"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","fw-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"fw-bold"],["mat-cell","",1,"column-center"],["class","d-flex align-items-center",4,"ngIf"],[1,"d-flex","align-items-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"column-center"],["mat-row",""]],template:function(U,X){1&U&&(e.YNc(0,pe,5,3,"mat-card-header",0),e.YNc(1,re,3,3,"h1",1),e.TgZ(2,"mat-card-content"),e.YNc(3,v,1,0,"mat-spinner",2),e.YNc(4,Fe,9,4,"div",0),e.qZA()),2&U&&(e.Q6J("ngIf",!X.openedInDialog),e.xp6(1),e.Q6J("ngIf",X.openedInDialog),e.xp6(2),e.Q6J("ngIf",X.loading),e.xp6(1),e.Q6J("ngIf",!X.loading))},dependencies:[F.O5,m.BZ,m.fO,m.w1,m.Dz,m.nj,m.ge,m.ev,m.Gk,T.Ou,H.Hw,P.RK,x.uh,J.dn,J.dk,J.n5,I.X$,fe.u,j.f,$.n,_e.M,ge.r],styles:[".vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),le})()},4811:(Qe,ae,p)=>{"use strict";p.d(ae,{m:()=>n});var e=p(94650),f=p(21029),A=p(80279),S=p(9244),m=p(96308),M=p(56451),w=p(18505),x=p(61880),I=p(7274),F=p(10036),T=p(36895),H=p(56709),P=p(30671),J=p(82761),fe=p(98380),j=p(97392),$=p(10266),_e=p(18750),ge=p(34198),pe=p(55660),re=p(89383),v=p(31359),V=p(69773),W=p(21757),te=p(12856),ne=p(20919),ye=p(5865),ze=p(82514),ke=p(96974),$e=p(38993),Je=p(86349),Fe=p(9185),Ve=p(8231),le=p(14849);function N(t,i){if(1&t){const a=e.EpF();e.TgZ(0,"mat-checkbox",24),e.NdJ("change",function(l){e.CHM(a);const d=e.oxw(3);return e.KtG(l?d.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&t){const a=e.oxw(2).ngIf,c=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,a.all)))("checked",c.selection.hasValue()&&a.all)("indeterminate",c.selection.hasValue()&&!a.all)}}function U(t,i){if(1&t&&(e.TgZ(0,"th",22),e.YNc(1,N,3,7,"mat-checkbox",23),e.qZA()),2&t){const a=e.oxw(2);e.xp6(1),e.Q6J("ngIf",a.selection.isMultipleSelection())}}const X=function(t){return{name:t}};function ce(t,i){if(1&t){const a=e.EpF();e.TgZ(0,"td",25)(1,"mat-checkbox",26),e.NdJ("change",function(l){const s=e.CHM(a).$implicit,E=e.oxw(2);return e.KtG(l?E.selection.toggle(s):null)})("click",function(l){return l.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.ALo(4,"userFullName"),e.ALo(5,"lowercase"),e.ALo(6,"memberStatusDisabled"),e.ALo(7,"memberCheckboxLabel"),e.qZA()()}if(2&t){const a=i.$implicit,c=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",e.lcZ(5,12,a.user.firstName),"-checkbox"),e.Q6J("aria-label",e.xi3(2,5,e.lcZ(3,8,c.selection.isSelected(a)),e.VKq(20,X,e.lcZ(4,10,a.user))))("checked",c.selection.isSelected(a))("disabled",e.xi3(6,14,a,c.groupId))("matTooltip",e.xi3(7,17,a,c.groupId))}}function Me(t,i){1&t&&(e.ynx(0,19),e.YNc(1,U,2,1,"th",20),e.YNc(2,ce,8,22,"td",21),e.BQk())}function ue(t,i){1&t&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function Pe(t,i){if(1&t&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&t){const a=i.$implicit;e.xp6(1),e.Oqu(a.id)}}function tt(t,i){1&t&&e._UZ(0,"th",27)}function Ce(t,i){if(1&t){const a=e.EpF();e.TgZ(0,"mat-icon",31),e.NdJ("click",function(l){e.CHM(a);const d=e.oxw().$implicit,s=e.oxw();return e.KtG(s.viewMemberGroupTree(l,d))}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&t&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function at(t,i){if(1&t&&(e.TgZ(0,"td",29),e.YNc(1,Ce,3,3,"mat-icon",30),e.qZA()),2&t){const a=i.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==a.membershipType)}}function Ue(t,i){1&t&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function pt(t,i){if(1&t&&(e.TgZ(0,"td",29),e.ALo(1,"lowercase"),e._uU(2),e.ALo(3,"userFullName"),e.qZA()),2&t){const a=i.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,a.user.firstName),"-firstName-td"),e.xp6(2),e.hij(" ",e.lcZ(3,4,a.user)," ")}}function z(t,i){1&t&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function st(t,i){if(1&t){const a=e.EpF();e.TgZ(0,"td",29)(1,"i",32),e.NdJ("click",function(l){const s=e.CHM(a).$implicit,E=e.oxw();return e.KtG(E.openMembershipDialog(l,s))}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&t){const a=i.$implicit,c=e.oxw();e.xp6(1),e.Gre("material-icons ",e.lcZ(2,7,a),""),e.ekj("cursor-default",!c.expireVoAuth),e.s9C("matTooltip",e.xi3(3,9,a,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,12,a.status)," ")}}function be(t,i){1&t&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function Ye(t,i){if(1&t){const a=e.EpF();e.TgZ(0,"td",29)(1,"i",32),e.NdJ("click",function(l){const s=e.CHM(a).$implicit,E=e.oxw();return e.KtG(E.openMembershipDialog(l,s,E.groupId))}),e.ALo(2,"groupStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&t){const a=i.$implicit,c=e.oxw();e.xp6(1),e.Gre("material-icons ",e.Dn7(2,7,a.groupStatus,"INDIRECT"===a.membershipType,c.isMembersGroup),""),e.ekj("cursor-default",!c.expireGroupAuth),e.s9C("matTooltip",e.Dn7(3,11,a,!0,c.isMembersGroup)),e.xp6(4),e.hij(" ",e.lcZ(6,15,a.groupStatus)," ")}}function he(t,i){1&t&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function Re(t,i){if(1&t&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&t){const a=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,a))}}function He(t,i){1&t&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function ve(t,i){if(1&t&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&t){const a=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,a))}}function Oe(t,i){1&t&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function r(t,i){if(1&t&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&t){const a=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,a))}}function u(t,i){1&t&&e._UZ(0,"tr",34)}const _=function(t,i){return["/organizations",t,"members",i]};function C(t,i){if(1&t&&e._UZ(0,"tr",35),2&t){const a=i.$implicit,c=e.oxw();e.ekj("cursor-pointer",c.dataSource.routeAuth)("italic_font","INDIRECT"===a.membershipType)("disable-outline",c.disableRouting||!c.dataSource.routeAuth),e.Q6J("perunWebAppsMiddleClickRouterLink",c.disableRouting||!c.dataSource.routeAuth?null:e.WLB(8,_,a.voId,a.id))("routerLink",c.disableRouting||!c.dataSource.routeAuth?null:e.WLB(11,_,a.voId,a.id))}}function h(t,i){1&t&&(e.TgZ(0,"perun-web-apps-alert",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}const o=function(t){return{all:t}};let n=(()=>{class t{constructor(a,c,l,d,s,E){this.dialog=a,this.authResolver=c,this.tableCheckbox=l,this.tableConfigService=d,this.dynamicPaginatingService=s,this.entityStorage=E,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.disableRouting=!1,this.loading$=new e.vpe,this.pageSizeOptions=S.f7,this.canBeSelected=B=>!(0,S.im)(B)}static getExportDataForColumn(a,c){switch(c){case"id":return a.id.toString();case"fullName":return a.user?(0,S.bD)(a.user):"";case"status":return a.status;case"groupStatus":return a.groupStatus;case"organization":return(0,S.Gw)(a);case"email":return(0,S.g$)(a);case"logins":return(0,S.lt)(a);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,M.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,w.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.expireGroupAuth=this.authResolver.isAuthorized("setMemberGroupStatus_Member_Group_MemberGroupStatus_policy",[this.entityStorage.getEntity()]),this.expireVoAuth=this.authResolver.isAuthorized("setStatus_Member_Status_policy",[this.entityStorage.getEntity()]),this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(a=>"id"!==a)),this.dataSource=new A.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.tableConfigService.getTablePageSize(this.tableId),"NAME",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses),this.loading$.emit(this.dataSource.loading$)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadMembersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(a=>{this.canBeSelected(a)&&this.selection.select(a)})}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().filter(l=>this.canBeSelected(l)).length}openMembershipDialog(a,c,l){a.stopPropagation();const d=(0,S.zr)(c);if(l){if(!this.expireGroupAuth||this.isMembersGroup||"INDIRECT"===d)return}else if(!this.expireVoAuth||"UNALTERABLE"===d)return;const s=(0,S.kZ)();s.minWidth="280px",s.data={member:c,voId:this.voId,groupId:l},this.dialog.open(x.z,s).afterClosed().subscribe(B=>{B||this.loadMembersPage()})}loadMembersPage(){const a="asc"===this.sort.direction?"ASCENDING":"DESCENDING",c=this.getSortColumn(this.sort.active);this.dataSource.loadMembers(this.voId,this.attrNames,a,this.child.paginator.pageIndex,this.child.paginator.pageSize,c,this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}exportDisplayedData(a){(0,S.O6)((0,S.Xn)(this.dataSource.getData(),this.displayedColumns,t.getExportDataForColumn),a)}exportAllData(a){const c="asc"===this.sort.direction?"ASCENDING":"DESCENDING",l=this.getSortColumn(this.sort.active),d=(0,S.kZ)();d.width="300px";const s=this.dialog.open(f.QQ,d);this.dataSource.getAllMembers(this.voId,this.attrNames,c,this.child.paginator.length,l,this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses).subscribe(E=>{s.close(),(0,S.O6)((0,S.Xn)(E,this.displayedColumns,t.getExportDataForColumn),a)})}viewMemberGroupTree(a,c){a.stopPropagation();const l=(0,S.kZ)();l.width="800px",l.data={member:c,groupId:this.groupId},this.dialog.open(f.jd,l)}getSortColumn(a){switch(a){case"fullName":return"NAME";case"organization":return"ORGANIZATION";case"email":return"EMAIL";case"status":return"STATUS";case"groupStatus":return"GROUP_STATUS";default:return"ID"}}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(I.uw),e.Y36(A.x4),e.Y36(A.UA),e.Y36(F.dB),e.Y36(A.ly),e.Y36(A.fb))},t.\u0275cmp=e.Xpm({type:t,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(a,c){if(1&a&&(e.Gf(S.l9,7),e.Gf(m.YE,5)),2&a){let l;e.iGM(l=e.CRH())&&(c.child=l.first),e.iGM(l=e.CRH())&&(c.sort=l.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable",isMembersGroup:"isMembersGroup",disableRouting:"disableRouting"},outputs:{loading$:"loading$"},features:[e.TTD],decls:32,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","italic_font","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click",4,"ngIf"],[3,"matTooltip","click"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(a,c){1&a&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(d){return c.exportDisplayedData(d)})("exportAllData",function(d){return c.exportAllData(d)}),e.TgZ(2,"table",2),e.YNc(3,Me,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ue,3,3,"th",5),e.YNc(7,Pe,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,tt,1,0,"th",5),e.YNc(10,at,2,1,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,Ue,3,3,"th",5),e.YNc(13,pt,4,6,"td",8),e.BQk(),e.ynx(14,10),e.YNc(15,z,3,3,"th",5),e.YNc(16,st,7,14,"td",8),e.BQk(),e.ynx(17,11),e.YNc(18,be,3,3,"th",5),e.YNc(19,Ye,7,17,"td",8),e.BQk(),e.ynx(20,12),e.YNc(21,he,3,3,"th",5),e.YNc(22,Re,3,3,"td",8),e.BQk(),e.ynx(23,13),e.YNc(24,He,3,3,"th",5),e.YNc(25,ve,3,3,"td",8),e.BQk(),e.ynx(26,14),e.YNc(27,Oe,3,3,"th",15),e.YNc(28,r,3,3,"td",8),e.BQk(),e.YNc(29,u,1,0,"tr",16),e.YNc(30,C,1,14,"tr",17),e.qZA()()(),e.YNc(31,h,3,3,"perun-web-apps-alert",18)),2&a&&(e.Q6J("hidden",0===c.dataSource.allObjectCount),e.xp6(1),e.Q6J("tableId",c.tableId)("dataLength",c.dataSource.allObjectCount)("pageSizeOptions",c.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",c.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,o,e.Dn7(4,9,c.dataSource,c.selection.selected.length,c.canBeSelected))),e.xp6(26),e.Q6J("matHeaderRowDef",c.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",c.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===c.dataSource.allObjectCount))},dependencies:[T.O5,H.oG,P.BZ,P.fO,P.as,P.w1,P.Dz,P.nj,P.ge,P.ev,P.XQ,P.Gk,J.rH,m.YE,m.nU,fe.w,j.Hw,$.gM,_e.l,ge.Y,pe.Q,T.i8,re.X$,v.d,V.u,W.f,te.i,ne.D,ye.p,ze.F,ke.M,$e.n,Je.A,Fe.I,Ve.G,le.r],styles:[".italic_font{font-style:italic}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.status-tooltip{white-space:pre-line}\n"],encapsulation:2}),t})()},38383:(Qe,ae,p)=>{"use strict";p.d(ae,{O:()=>d});var e=p(94650),f=p(96308),A=p(30671),S=p(95017),m=p(9244),M=p(21029),w=p(80279),x=p(7274),I=p(82761),F=p(36895),T=p(56709),H=p(98380),P=p(97392),J=p(10266),fe=p(18750),j=p(34198),$=p(55660),_e=p(12502),ge=p(89383),pe=p(31359),re=p(69773),v=p(21757),V=p(12856),W=p(20919),te=p(5865),ne=p(82514),ye=p(96974),ze=p(9185),ke=p(8231),$e=p(14849);function Je(s,E){if(1&s){const B=e.EpF();e.TgZ(0,"mat-checkbox",30),e.NdJ("change",function(qe){e.CHM(B);const it=e.oxw(3);return e.KtG(qe?it.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&s){const B=e.oxw(2).ngIf,q=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,B.all)))("checked",q.selection.hasValue()&&B.all)("indeterminate",q.selection.hasValue()&&!B.all)}}function Fe(s,E){if(1&s&&(e.TgZ(0,"th",28),e.YNc(1,Je,3,7,"mat-checkbox",29),e.qZA()),2&s){const B=e.oxw(2);e.xp6(1),e.Q6J("ngIf",B.selection.isMultipleSelection())}}const Ve=function(s){return{name:s}};function le(s,E){if(1&s){const B=e.EpF();e.TgZ(0,"td",31)(1,"mat-checkbox",32),e.NdJ("change",function(qe){const xt=e.CHM(B).$implicit,ht=e.oxw(2);return e.KtG(qe?ht.selection.toggle(xt):null)})("click",function(qe){return qe.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.ALo(4,"userFullName"),e.ALo(5,"translate"),e.qZA()()}if(2&s){const B=E.$implicit,q=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",B.user.firstName,"-checkbox"),e.Q6J("aria-label",e.xi3(2,5,e.lcZ(3,8,q.selection.isSelected(B)),e.VKq(14,Ve,e.lcZ(4,10,B))))("checked",q.selection.isSelected(B))("disabled",q.allowCheckboxDisabled&&"DIRECT"!==B.membershipType)("matTooltip",q.allowCheckboxDisabled&&"DIRECT"!==B.membershipType?e.lcZ(5,12,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function N(s,E){1&s&&(e.ynx(0,25),e.YNc(1,Fe,2,1,"th",26),e.YNc(2,le,6,16,"td",27),e.BQk())}function U(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function X(s,E){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&s){const B=E.$implicit;e.xp6(1),e.Oqu(B.id)}}function ce(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.VO_ID")," "))}function Me(s,E){if(1&s&&(e.TgZ(0,"td",35),e._uU(1),e.qZA()),2&s){const B=E.$implicit;e.xp6(1),e.Oqu(B.voId)}}function ue(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.USER_ID")," "))}function Pe(s,E){if(1&s&&(e.TgZ(0,"td",35),e._uU(1),e.qZA()),2&s){const B=E.$implicit;e.xp6(1),e.Oqu(B.userId)}}function tt(s,E){1&s&&e._UZ(0,"th",33)}function Ce(s,E){if(1&s){const B=e.EpF();e.TgZ(0,"mat-icon",37),e.NdJ("click",function(){e.CHM(B);const qe=e.oxw().$implicit,it=e.oxw();return e.KtG(it.viewMemberGroupTree(qe))})("mouseenter",function(){e.CHM(B);const qe=e.oxw(2);return e.KtG(qe.disableRouting=!0)})("mouseleave",function(){e.CHM(B);const qe=e.oxw(2);return e.KtG(qe.disableRouting=qe.disabledRouting)}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&s&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function at(s,E){if(1&s&&(e.TgZ(0,"td",35),e.YNc(1,Ce,3,3,"mat-icon",36),e.qZA()),2&s){const B=E.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==B.membershipType)}}function Ue(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function pt(s,E){if(1&s&&(e.TgZ(0,"td",35),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&s){const B=E.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,B.user))}}function z(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function st(s,E){if(1&s){const B=e.EpF();e.TgZ(0,"td",35)(1,"i",38),e.NdJ("click",function(qe){const xt=e.CHM(B).$implicit,ht=e.oxw();return e.KtG(ht.changeStatus(qe,xt))}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&s){const B=E.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,B),""),e.s9C("matTooltip",e.xi3(3,7,B,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,10,B.status)," ")}}function be(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function Ye(s,E){if(1&s){const B=e.EpF();e.TgZ(0,"td",35)(1,"i",38),e.NdJ("click",function(qe){const xt=e.CHM(B).$implicit,ht=e.oxw();return e.KtG(ht.changeStatus(qe,xt))}),e.ALo(2,"groupStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&s){const B=E.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,B.groupStatus),""),e.s9C("matTooltip",e.xi3(3,7,B,!0)),e.xp6(4),e.hij(" ",e.lcZ(6,10,B.groupStatus)," ")}}function he(s,E){1&s&&(e.TgZ(0,"th",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function Re(s,E){1&s&&(e.TgZ(0,"mat-icon"),e._uU(1,"check_circle_outline"),e.qZA())}function He(s,E){if(1&s&&(e.TgZ(0,"td",40),e.YNc(1,Re,2,0,"mat-icon",41),e.qZA()),2&s){const B=E.$implicit;e.xp6(1),e.Q6J("ngIf",B.sponsored)}}function ve(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function Oe(s,E){if(1&s&&(e.TgZ(0,"td",35),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&s){const B=E.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,B))}}function r(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function u(s,E){if(1&s&&(e.TgZ(0,"td",35),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&s){const B=E.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,B))}}function _(s,E){1&s&&(e.TgZ(0,"th",42),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function C(s,E){if(1&s&&(e.TgZ(0,"td",35),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&s){const B=E.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,B))}}function h(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CONSENTS.STATUS")," "))}function o(s,E){if(1&s&&(e.TgZ(0,"td",35),e._UZ(1,"perun-web-apps-consent-status",43),e.qZA()),2&s){const B=E.$implicit;e.xp6(1),e.Q6J("consentStatus",B.consent)}}function n(s,E){1&s&&e._UZ(0,"tr",44)}const t=function(s,E){return["/organizations",s,"members",E]};function i(s,E){if(1&s&&e._UZ(0,"tr",45),2&s){const B=E.$implicit,q=e.oxw();e.ekj("cursor-pointer",!q.disabledRouting)("disable-outline",q.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",q.disableRouting?null:e.WLB(6,t,B.voId,B.id))("routerLink",q.disableRouting?null:e.WLB(9,t,B.voId,B.id))}}function a(s,E){1&s&&(e.TgZ(0,"perun-web-apps-alert",46),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function c(s,E){1&s&&(e.TgZ(0,"perun-web-apps-alert",46),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}const l=function(s){return{all:s}};let d=(()=>{class s{constructor(B,q,qe,it,xt){this.dialog=B,this.authResolver=q,this.tableCheckbox=qe,this.route=it,this.translateService=xt,this.members=[],this.selection=new S.Ov,this.displayedColumns=["checkbox","id","voId","userId","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableStatusChange=!1,this.disableExpirationChange=!1,this.allowCheckboxDisabled=!0,this.disableRouting=!1,this.filter="",this.updateTable=new e.vpe,this.pageSizeOptions=m.f7,this.getExportDataForColumnFun=(ht,_t)=>this.getExportDataForColumn(ht,_t,this.showGroupStatuses),this.getSortDataForColumnFun=(ht,_t)=>s.getSortDataForColumn(ht,_t,this.showGroupStatuses),this.canBeSelected=ht=>"DIRECT"===ht.membershipType}set matSort(B){this.sort=B}static getFilterDataForColumn(B,q){switch(q){case"fullName":return B.user?(0,m.bD)(B.user):"";case"email":return(0,m.g$)(B);case"logins":return(0,m.lt)(B);default:return""}}static getSortDataForColumn(B,q,qe){switch(q){case"id":return B.id.toString();case"fullName":return B.user?B.user.lastName?B.user.lastName:B.user.firstName??"":"";case"status":return qe?B.groupStatus:B.status;case"organization":return(0,m.Gw)(B);case"email":return(0,m.g$)(B);case"consentStatus":return B.consent;default:return""}}getExportDataForColumn(B,q,qe){switch(q){case"id":return B.id.toString();case"fullName":return B.user?(0,m.bD)(B.user):"";case"status":return qe?B.groupStatus:B.status;case"organization":return(0,m.Gw)(B);case"email":return(0,m.g$)(B);case"logins":return(0,m.lt)(B);case"consentStatus":return this.translateService.instant(`CONSENTS.STATUS_${B.consent}`);default:return""}}exportDisplayedData(B){const q=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,qe=q+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(q,qe),this.displayedColumns,this.getExportDataForColumnFun),B)}exportAllData(B){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),B)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(B,q)=>(0,m.Sd)(B,q,this.displayedColumns,s.getFilterDataForColumn),this.dataSource.sortData=(B,q)=>(0,m.pR)(B,q,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(B=>"id"!==B))}ngOnChanges(){this.setDataSource(),this.disabledRouting=this.disableRouting,this.route.parent?.params.subscribe(B=>{B.groupId&&(this.groupId=Number(B.groupId))})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}changeStatus(B,q){if(B.stopPropagation(),!this.disableStatusChange){const qe=(0,m.kZ)();qe.width="500px",qe.data={member:q,disableChangeExpiration:this.disableExpirationChange},this.dialog.open(M.pf,qe).afterClosed().subscribe(xt=>{xt&&this.updateTable.emit(!0)})}}viewMemberGroupTree(B){const q=(0,m.kZ)();q.width="800px",q.data={member:B,groupId:this.groupId},this.dialog.open(M.jd,q)}}return s.\u0275fac=function(B){return new(B||s)(e.Y36(x.uw),e.Y36(w.x4),e.Y36(w.UA),e.Y36(I.gz),e.Y36(w.Te))},s.\u0275cmp=e.Xpm({type:s,selectors:[["perun-web-apps-members-list"]],viewQuery:function(B,q){if(1&B&&(e.Gf(m.l9,7),e.Gf(f.YE,7)),2&B){let qe;e.iGM(qe=e.CRH())&&(q.child=qe.first),e.iGM(qe=e.CRH())&&(q.matSort=qe.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",disableStatusChange:"disableStatusChange",disableExpirationChange:"disableExpirationChange",allowCheckboxDisabled:"allowCheckboxDisabled",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[e.TTD],decls:45,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["matColumnDef","type"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","sponsored"],["class","center new-line","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","consentStatus"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],[3,"matTooltip","click","mouseenter","mouseleave"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell","",1,"center","new-line"],["mat-cell","",1,"center"],[4,"ngIf"],["mat-header-cell",""],[3,"consentStatus"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(B,q){1&B&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(it){return q.exportDisplayedData(it)})("exportAllData",function(it){return q.exportAllData(it)}),e.TgZ(2,"table",2),e.YNc(3,N,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,U,3,3,"th",5),e.YNc(7,X,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,ce,3,3,"th",5),e.YNc(10,Me,2,1,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,ue,3,3,"th",5),e.YNc(13,Pe,2,1,"td",8),e.BQk(),e.ynx(14,10),e.YNc(15,tt,1,0,"th",5),e.YNc(16,at,2,1,"td",8),e.BQk(),e.ynx(17,11),e.YNc(18,Ue,3,3,"th",5),e.YNc(19,pt,3,3,"td",8),e.BQk(),e.ynx(20,12),e.YNc(21,z,3,3,"th",5),e.YNc(22,st,7,12,"td",8),e.BQk(),e.ynx(23,13),e.YNc(24,be,3,3,"th",5),e.YNc(25,Ye,7,12,"td",8),e.BQk(),e.ynx(26,14),e.YNc(27,he,3,3,"th",15),e.YNc(28,He,2,1,"td",16),e.BQk(),e.ynx(29,17),e.YNc(30,ve,3,3,"th",5),e.YNc(31,Oe,3,3,"td",8),e.BQk(),e.ynx(32,18),e.YNc(33,r,3,3,"th",5),e.YNc(34,u,3,3,"td",8),e.BQk(),e.ynx(35,19),e.YNc(36,_,3,3,"th",20),e.YNc(37,C,3,3,"td",8),e.BQk(),e.ynx(38,21),e.YNc(39,h,3,3,"th",5),e.YNc(40,o,2,1,"td",8),e.BQk(),e.YNc(41,n,1,0,"tr",22),e.YNc(42,i,1,12,"tr",23),e.qZA()()(),e.YNc(43,a,3,3,"perun-web-apps-alert",24),e.YNc(44,c,3,3,"perun-web-apps-alert",24)),2&B&&(e.Q6J("hidden",!q.members||0===q.members.length||!q.dataSource||0===q.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",q.dataSource.filteredData.length)("tableId",q.tableId)("pageSizeOptions",q.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",q.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,l,e.Dn7(4,10,q.dataSource,q.selection.selected.length,q.canBeSelected))),e.xp6(38),e.Q6J("matHeaderRowDef",q.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",q.displayedColumns),e.xp6(1),e.Q6J("ngIf",q.members&&0!==q.members.length&&0===q.dataSource.filteredData.length),e.xp6(1),e.Q6J("ngIf",!q.members||0===q.members.length))},dependencies:[F.O5,T.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,I.rH,f.YE,f.nU,H.w,P.Hw,J.gM,fe.l,j.Y,_e.N,$.Q,ge.X$,pe.d,re.u,v.f,V.i,W.D,te.p,ne.F,ye.M,ze.I,ke.G,$e.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .status-tooltip{white-space:pre-line}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.center[_ngcontent-%COMP%]{text-align:center}.new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),s})()},22465:(Qe,ae,p)=>{"use strict";p.d(ae,{c:()=>T});var e=p(94650),f=p(80279),A=p(9244),S=p(21029),m=p(7274),M=p(36895),w=p(97392),x=p(89383);function I(H,P){if(1&H&&(e.TgZ(0,"div",5)(1,"mat-icon"),e._uU(2),e.qZA()()),2&H){const J=e.oxw();e.xp6(2),e.Oqu(J.data.icon)}}function F(H,P){if(1&H&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&H){const J=e.oxw();e.xp6(1),e.hij(" ",J.showTimestamp()," ")}}let T=(()=>{class H{constructor(J,fe){this.dialog=J,this.notificationStorageService=fe,this.newNotification=!1,this.closeNotification=new e.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const J=(0,A.kZ)();J.width="550px",J.data=this.data,J.autoFocus=!1,this.dialog.open(S.FM,J).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,A.ys)(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[J,fe]=this.data.timeStamp.split(":");return fe.length<2?J+":0"+fe:this.data.timeStamp}}return H.\u0275fac=function(J){return new(J||H)(e.Y36(m.uw),e.Y36(f.SZ))},H.\u0275cmp=e.Xpm({type:H,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ms-auto me-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ms-auto","me-5","mt-auto","mb-auto"]],template:function(J,fe){1&J&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("click",function(){return fe.alreadyClosed||fe.waiting?"":fe.closeSelf()}),e.YNc(2,I,3,1,"div",1),e.TgZ(3,"div",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,F,2,1,"div",3),e.TgZ(7,"div",4),e.NdJ("click",function(){return fe.waiting=!0,fe.doAction()}),e._uU(8),e.qZA()()()),2&J&&(e.Gre("notification ",fe.inDialog?"":"mat-elevation-z7",""),e.ekj("error","error"===fe.data.type)("success","success"===fe.data.type),e.xp6(2),e.Q6J("ngIf",null!==fe.data.icon),e.xp6(2),e.hij(" ",e.lcZ(5,12,fe.data.title)," "),e.xp6(2),e.Q6J("ngIf",fe.inDialog),e.xp6(1),e.Q6J("hidden",fe.alreadyPressed),e.xp6(1),e.hij(" ",fe.data.actionText," "))},dependencies:[M.O5,w.Hw,x.X$],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),H})()},53599:(Qe,ae,p)=>{"use strict";p.d(ae,{N:()=>ye});var e=p(94650),f=p(61744),A=p(80279),S=p(30671),m=p(9244),M=p(21029),w=p(40034),x=p(7274),I=p(82761),F=p(36895),T=p(96308),H=p(98380),P=p(4859),J=p(89383),fe=p(34447);function j(ze,ke){1&ze&&(e.TgZ(0,"perun-web-apps-alert"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ze&&(e.xp6(1),e.Oqu(e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function $(ze,ke){1&ze&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function _e(ze,ke){if(1&ze&&(e.TgZ(0,"td",17),e._uU(1),e.qZA()),2&ze){const $e=ke.$implicit;e.xp6(1),e.Oqu($e.friendlyNameParameter)}}function ge(ze,ke){1&ze&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function pe(ze,ke){if(1&ze&&(e.TgZ(0,"td",18),e._uU(1),e.qZA()),2&ze){const $e=ke.$implicit;e.xp6(1),e.Oqu($e.value)}}function re(ze,ke){1&ze&&e._UZ(0,"th",16)}function v(ze,ke){if(1&ze){const $e=e.EpF();e.TgZ(0,"td",19)(1,"button",20),e.NdJ("click",function(){const Ve=e.CHM($e).$implicit,le=e.oxw();return e.KtG(le.resetPassword(Ve.friendlyNameParameter))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&ze){const $e=ke.$implicit,Je=e.oxw();e.xp6(1),e.Q6J("disabled",!Je.logins.includes($e)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function V(ze,ke){1&ze&&e._UZ(0,"th",16)}function W(ze,ke){if(1&ze){const $e=e.EpF();e.TgZ(0,"td",19)(1,"button",21),e.NdJ("click",function(){const Ve=e.CHM($e).$implicit,le=e.oxw();return e.KtG(le.changePassword(Ve))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&ze){const $e=ke.$implicit,Je=e.oxw();e.xp6(1),e.Q6J("disabled",!Je.logins.includes($e)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function te(ze,ke){1&ze&&e._UZ(0,"tr",22)}function ne(ze,ke){1&ze&&e._UZ(0,"tr",23)}let ye=(()=>{class ze{constructor($e,Je,Fe,Ve,le,N,U){this.attributesManagerService=$e,this.store=Je,this.dialog=Fe,this.route=Ve,this.router=le,this.otherApplicationService=N,this.entityStorageService=U,this.authenticationPage=!1,this.filteredNamespaces=new e.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.getProperty("password_namespace_attributes").map($e=>{const Je=$e.split(":");return Je[Je.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe($e=>{if(this.logins=$e.filter(Je=>this.nameSpaces.includes(Je.friendlyNameParameter)),this.filteredNamespaces.emit($e.map(Je=>Je.friendlyNameParameter)),this.dataSource=new S.by($e),!this.authenticationPage){const Fe=this.route.snapshot.queryParamMap.get("namespace");if(Fe){const Ve=this.logins.find(le=>le.friendlyNameParameter===Fe);Ve&&this.changePassword(Ve)}}})}resetPassword($e){window.open(this.otherApplicationService.getUrlForOtherApplication(w.p.PwdReset,$e),"_blank")}changePassword($e){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:$e.friendlyNameParameter},queryParamsHandling:"merge"});const Je=(0,m.kZ)();Je.width="600px",Je.data={login:String($e.value),namespace:$e.friendlyName.split(":")[1]},this.dialog.open(M.xF,Je).afterClosed().subscribe(Ve=>{void 0===Ve?this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"}):window.history.back()})}}return ze.\u0275fac=function($e){return new($e||ze)(e.Y36(f.H8),e.Y36(A.d6),e.Y36(x.uw),e.Y36(I.gz),e.Y36(I.F0),e.Y36(A.jq),e.Y36(A.fb))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function($e,Je){1&$e&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA(),e.YNc(4,j,4,5,"perun-web-apps-alert",1),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),e.ynx(9,6),e.YNc(10,$,4,5,"th",7),e.YNc(11,_e,2,1,"td",8),e.BQk(),e.ynx(12,9),e.YNc(13,ge,4,5,"th",7),e.YNc(14,pe,2,1,"td",10),e.BQk(),e.ynx(15,11),e.YNc(16,re,1,0,"th",7),e.YNc(17,v,5,6,"td",12),e.BQk(),e.ynx(18,13),e.YNc(19,V,1,0,"th",7),e.YNc(20,W,5,6,"td",12),e.BQk(),e.YNc(21,te,1,0,"tr",14),e.YNc(22,ne,1,0,"tr",15),e.qZA()()()()),2&$e&&(e.xp6(1),e.hij(" ",Je.authenticationPage?"":e.lcZ(2,5,e.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),e.xp6(3),e.Q6J("ngIf",!Je.logins.length&&!Je.authenticationPage),e.xp6(4),e.Q6J("dataSource",Je.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",Je.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Je.displayedColumns))},dependencies:[F.O5,S.BZ,S.fO,S.as,S.w1,S.Dz,S.nj,S.ge,S.ev,S.XQ,S.Gk,T.YE,H.w,P.lW,J.X$,fe.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),ze})()},41619:(Qe,ae,p)=>{"use strict";p.d(ae,{$:()=>Ve});var e=p(80279),f=p(61744),A=p(94650),S=p(7274),m=p(89383),M=p(36895),w=p(24006),x=p(4859),I=p(59549),F=p(284);function T(le,N){1&le&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&le&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let H=(()=>{class le{constructor(U,X,ce,Me,ue){this.dialogRef=U,this.translate=X,this.notificator=ce,this.rtMessages=Me,this.storeService=ue,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(U=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(U.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",p(4147).i8)}close(){this.dialogRef.close()}}return le.\u0275fac=function(U){return new(U||le)(A.Y36(S.so),A.Y36(m.sK),A.Y36(e.V6),A.Y36(f.Hr),A.Y36(e.d6))},le.\u0275cmp=A.Xpm({type:le,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ms-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ms-2",3,"disabled","click"]],template:function(U,X){if(1&U&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),A._uU(6),A.ALo(7,"translate"),A.qZA(),A.TgZ(8,"input",2,3),A.NdJ("ngModelChange",function(Me){return X.subject=Me}),A.qZA(),A.YNc(10,T,3,3,"mat-error",4),A.qZA(),A.TgZ(11,"mat-form-field")(12,"mat-label"),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"textarea",5),A.NdJ("ngModelChange",function(Me){return X.message=Me}),A.ALo(16,"translate"),A._uU(17," "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.ALo(20,"translate"),A.qZA()()(),A.TgZ(21,"div",6)(22,"div",7)(23,"button",8),A.NdJ("click",function(){return X.close()}),A._uU(24),A.ALo(25,"translate"),A.qZA(),A.TgZ(26,"button",9),A.NdJ("click",function(){return X.sendBugReport()}),A._uU(27),A.ALo(28,"translate"),A.qZA()()()),2&U){const ce=A.MAs(9);A.xp6(1),A.Oqu(A.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),A.xp6(5),A.Oqu(A.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),A.xp6(2),A.Q6J("ngModel",X.subject),A.xp6(2),A.Q6J("ngIf",ce.invalid),A.xp6(3),A.Oqu(A.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),A.xp6(2),A.s9C("placeholder",A.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),A.Q6J("ngModel",X.message),A.xp6(4),A.Oqu(A.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),A.xp6(5),A.hij(" ",A.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),A.xp6(2),A.Q6J("disabled",ce.invalid),A.xp6(1),A.hij(" ",A.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[M.O5,w.Fj,w.JJ,w.Q7,w.On,x.lW,I.KE,I.hX,I.bx,I.TO,F.Nt,S.uh,S.xY,S.H8,m.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),le})();var P=p(9244);let J=(()=>{class le{transform(U,X,ce){return U[`${ce}_${X}`]}}return le.\u0275fac=function(U){return new(U||le)},le.\u0275pipe=A.Yjl({name:"localisedText",type:le,pure:!0}),le})(),fe=(()=>{class le{transform(U,X){return U["link_"+X]||U.link_en}}return le.\u0275fac=function(U){return new(U||le)},le.\u0275pipe=A.Yjl({name:"localisedLink",type:le,pure:!0}),le})(),j=(()=>{class le{transform(U){return U.includes("/")?U:"/assets/config/"+U}}return le.\u0275fac=function(U){return new(U||le)},le.\u0275pipe=A.Yjl({name:"footerLogoPath",type:le,pure:!0}),le})();function $(le,N){if(1&le&&(A.TgZ(0,"a",13),A.ALo(1,"localisedLink"),A._UZ(2,"img",14),A.ALo(3,"footerLogoPath"),A.qZA()),2&le){const U=A.oxw().$implicit,X=A.oxw(3);A.Q6J("href",A.xi3(1,2,U,X.language),A.LSH),A.xp6(2),A.s9C("src",A.lcZ(3,5,U.logo),A.LSH)}}function _e(le,N){if(1&le&&(A.TgZ(0,"span"),A._UZ(1,"img",14),A.ALo(2,"footerLogoPath"),A.qZA()),2&le){const U=A.oxw().$implicit;A.xp6(1),A.s9C("src",A.lcZ(2,1,U.logo),A.LSH)}}function ge(le,N){if(1&le&&(A.TgZ(0,"div"),A.YNc(1,$,4,7,"a",11),A.ALo(2,"localisedLink"),A.YNc(3,_e,3,3,"span",12),A.ALo(4,"localisedLink"),A.qZA()),2&le){const U=N.$implicit,X=A.oxw(3);A.xp6(1),A.Q6J("ngIf",A.xi3(2,2,U,X.language)),A.xp6(2),A.Q6J("ngIf",!A.xi3(4,5,U,X.language))}}const pe=function(le){return{"min-height":le}};function re(le,N){if(1&le&&(A.TgZ(0,"div",10),A.YNc(1,ge,5,8,"div",5),A.qZA()),2&le){const U=A.oxw().$implicit,X=A.oxw();A.Q6J("ngStyle",A.VKq(2,pe,X.columnContentHeight+"px")),A.xp6(1),A.Q6J("ngForOf",U.elements)}}const v=function(le){return{color:le}};function V(le,N){if(1&le&&(A.TgZ(0,"i",20),A._uU(1),A.qZA()),2&le){const U=A.oxw().$implicit,X=A.oxw(3);A.Q6J("ngStyle",A.VKq(2,v,X.linksTextColor)),A.xp6(1),A.hij(" ",U.icon," ")}}function W(le,N){if(1&le){const U=A.EpF();A.TgZ(0,"span",21),A.NdJ("click",function(){A.CHM(U);const ce=A.oxw().$implicit,Me=A.oxw(3);return A.KtG(Me.openDialog(ce.dialog))}),A._uU(1),A.ALo(2,"localisedText"),A.qZA()}if(2&le){const U=A.oxw().$implicit,X=A.oxw(3);A.Q6J("ngStyle",A.VKq(6,v,X.linksTextColor)),A.xp6(1),A.hij("",A.Dn7(2,2,U,X.language,"label")," ")}}function te(le,N){if(1&le&&(A.TgZ(0,"a",22),A.ALo(1,"localisedLink"),A._uU(2),A.ALo(3,"localisedText"),A.qZA()),2&le){const U=A.oxw().$implicit,X=A.oxw(3);A.Q6J("href",A.xi3(1,3,U,X.language),A.LSH)("ngStyle",A.VKq(10,v,X.linksTextColor)),A.xp6(2),A.Oqu(A.Dn7(3,6,U,X.language,"label"))}}function ne(le,N){if(1&le&&(A.TgZ(0,"span",10),A._uU(1),A.ALo(2,"localisedText"),A.qZA()),2&le){const U=A.oxw().$implicit,X=A.oxw(3);A.Q6J("ngStyle",A.VKq(6,v,X.linksTextColor)),A.xp6(1),A.Oqu(A.Dn7(2,2,U,X.language,"label"))}}function ye(le,N){if(1&le&&(A.TgZ(0,"div",16),A.YNc(1,V,2,4,"i",17),A.YNc(2,W,3,8,"span",18),A.YNc(3,te,4,12,"a",19),A.ALo(4,"localisedLink"),A.YNc(5,ne,3,8,"span",9),A.ALo(6,"localisedLink"),A.qZA()),2&le){const U=N.$implicit,X=A.oxw(3);A.xp6(1),A.Q6J("ngIf",U.icon),A.xp6(1),A.Q6J("ngIf",U.dialog),A.xp6(1),A.Q6J("ngIf",A.xi3(4,4,U,X.language)&&!U.dialog),A.xp6(2),A.Q6J("ngIf",!A.xi3(6,7,U,X.language)&&!U.dialog)}}const ze=function(le){return{height:le}};function ke(le,N){if(1&le&&(A.TgZ(0,"div",10),A.YNc(1,ye,7,10,"div",15),A.qZA()),2&le){const U=A.oxw().$implicit,X=A.oxw();A.Q6J("ngStyle",A.VKq(2,ze,X.columnContentHeight+"px")),A.xp6(1),A.Q6J("ngForOf",U.elements)}}function $e(le,N){if(1&le&&(A.TgZ(0,"div",7)(1,"h6",8),A._uU(2),A.ALo(3,"localisedText"),A.qZA(),A.YNc(4,re,2,4,"div",9),A.YNc(5,ke,2,4,"div",9),A.qZA()),2&le){const U=N.$implicit,X=A.oxw();A.ekj("my-auto",X.containsLogos),A.xp6(1),A.Q6J("ngStyle",A.VKq(10,v,X.headersTextColor)),A.xp6(1),A.hij(" ",A.Dn7(3,6,U,X.language,"title")," "),A.xp6(2),A.Q6J("ngIf",U.logos),A.xp6(1),A.Q6J("ngIf",U.elements&&!U.logos)}}function Je(le,N){if(1&le&&(A.TgZ(0,"span")(1,"a",6),A._uU(2),A.qZA()()),2&le){const U=N.$implicit,X=N.index,ce=A.oxw();A.xp6(1),A.Q6J("href",U.url,A.LSH)("ngStyle",A.VKq(3,v,ce.copyrightTextColor)),A.xp6(1),A.Oqu(X?", "+U.name:U.name)}}const Fe=function(le){return{background:le}};let Ve=(()=>{class le{constructor(U,X,ce,Me){this.storeService=U,this.translateService=X,this.utilsService=ce,this.dialog=Me,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="N/A",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(U=>{this.language=U.lang}),this.version=p(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=p(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(U=>{const X=U.match("\\bVersion:\\s*([^,\\s]+)");null!==X&&(this.backendVersion=X[1])}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const U of this.footerColumns)U.logos?this.containsLogos=!0:25*U.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*U.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(U){const X=(0,P.kZ)();"reportIssue"===U&&(X.width="550px",this.dialog.open(H,X))}}return le.\u0275fac=function(U){return new(U||le)(A.Y36(e.d6),A.Y36(m.sK),A.Y36(f.FW),A.Y36(S.uw))},le.\u0275cmp=A.Xpm({type:le,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"fw-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom me-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","me-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(U,X){1&U&&(A.TgZ(0,"footer",0)(1,"div",1),A.YNc(2,$e,6,12,"div",2),A.qZA(),A._UZ(3,"hr",3),A.TgZ(4,"div",4),A._uU(5),A.YNc(6,Je,3,5,"span",5),A._uU(7,", web application: "),A.TgZ(8,"a",6),A._uU(9),A.qZA(),A._uU(10,", server: "),A.TgZ(11,"a",6),A._uU(12),A.qZA()()()),2&U&&(A.Q6J("ngStyle",A.VKq(11,Fe,X.bgColor)),A.xp6(2),A.Q6J("ngForOf",X.footerColumns),A.xp6(2),A.Q6J("ngStyle",A.VKq(13,v,X.copyrightTextColor)),A.xp6(1),A.hij(" \xa9 ",X.currentYear," Copyright: "),A.xp6(1),A.Q6J("ngForOf",X.copyrightItems),A.xp6(2),A.Q6J("href",X.githubRepository,A.LSH)("ngStyle",A.VKq(15,v,X.copyrightTextColor)),A.xp6(1),A.Oqu(X.guiVersion),A.xp6(2),A.Q6J("href",X.githubBackendRepository,A.LSH)("ngStyle",A.VKq(17,v,X.copyrightTextColor)),A.xp6(1),A.Oqu(X.backendVersion))},dependencies:[M.sg,M.O5,M.PC,J,fe,j],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),le})()},46453:(Qe,ae,p)=>{"use strict";p.d(ae,{Y:()=>ye});var e=p(94650),f=p(80279),A=p(9244),S=p(21029),m=p(40034),M=p(11481),w=p(89383),x=p(7274),I=p(82761),F=p(36895),T=p(97392),H=p(28255),P=p(4859),J=p(10266),fe=p(83683),j=p(42673),$=p(52314),_e=p(55660);const ge=function(ze){return{color:ze}};function pe(ze,ke){if(1&ze){const $e=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM($e);const Fe=e.oxw();return e.KtG(Fe.onToggleSidenav())}),e.TgZ(1,"mat-icon"),e._uU(2,"menu"),e.qZA()()}if(2&ze){const $e=e.oxw();e.Q6J("ngStyle",e.VKq(1,ge,$e.iconColor))}}function re(ze,ke){if(1&ze){const $e=e.EpF();e.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),e._uU(3," language "),e.qZA()(),e.TgZ(4,"mat-menu",null,13)(6,"button",14),e.NdJ("click",function(){e.CHM($e);const Fe=e.oxw();return e.KtG(Fe.changeLanguage())}),e._uU(7),e.ALo(8,"translate"),e.qZA()()()}if(2&ze){const $e=e.MAs(5),Je=e.oxw();e.Q6J("ngStyle",e.VKq(6,ge,Je.textColor)),e.xp6(1),e.Q6J("matMenuTriggerFor",$e),e.xp6(1),e.Q6J("ngStyle",e.VKq(8,ge,Je.iconColor)),e.xp6(5),e.hij(" ",e.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function v(ze,ke){if(1&ze){const $e=e.EpF();e.TgZ(0,"button",15),e.NdJ("click",function(){e.CHM($e);const Fe=e.oxw();return e.KtG(Fe.showNotificationHistory())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",16),e._uU(3),e.qZA()()}if(2&ze){const $e=e.oxw();e.Q6J("matTooltip",e.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),e.xp6(2),e.s9C("matBadge",$e.getNewNotificationsCount()>5?"5+":$e.getNewNotificationsCount()),e.Q6J("ngStyle",e.VKq(7,ge,$e.iconColor))("matBadgeHidden",0===$e.getNewNotificationsCount()),e.xp6(1),e.hij(" ",$e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function V(ze,ke){if(1&ze&&e._UZ(0,"perun-web-apps-header-menu",17),2&ze){const $e=e.oxw();e.Q6J("url",$e.otherAppUrl)("label",$e.otherAppLabel)("user",$e.principal.user)("logoutEnabled",$e.logoutEnabled)("iconColor",$e.iconColor)("textColor",$e.textColor)}}const W=function(ze){return{background:ze}},te=function(){return[]},ne=function(){return["/"]};let ye=(()=>{class ze{constructor($e,Je,Fe,Ve,le,N,U){this.storeService=$e,this.sanitizer=Je,this.translateService=Fe,this.otherApplicationService=Ve,this.notificationStorageService=le,this.dialog=N,this.route=U,this.sidenavToggle=new e.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe($e=>{this.label=this.storeService.getProperty("en"===$e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel($e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel($e="en"){return this.storeService.getProperty(this.otherApp===m.p.Profile?"profile_label_en":"en"===$e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===m.p.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const $e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes($e)&&(this.activeLink=!0)}(this.otherApp!==m.p.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const $e=(0,A.kZ)();$e.width="520px",this.dialog.open(S.Us,$e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return ze.\u0275fac=function($e){return new($e||ze)(e.Y36(f.d6),e.Y36(M.H7),e.Y36(w.sK),e.Y36(f.jq),e.Y36(f.SZ),e.Y36(x.uw),e.Y36(I.gz))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["class","d-flex align-items-center",3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[1,"d-flex","align-items-center",3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function($e,Je){1&$e&&(e.TgZ(0,"mat-toolbar",0)(1,"div",1),e.YNc(2,pe,3,3,"button",2),e._UZ(3,"a",3),e.TgZ(4,"p",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5),e.YNc(7,re,9,10,"div",6),e.YNc(8,v,4,9,"button",7),e.YNc(9,V,1,6,"perun-web-apps-header-menu",8),e.qZA()()),2&$e&&(e.Q6J("ngStyle",e.VKq(11,W,Je.bgColor)),e.xp6(2),e.Q6J("ngIf",Je.showToggle),e.xp6(1),e.Q6J("innerHTML",Je.logo,e.oJD)("routerLink",Je.disableLogo?e.DdM(13,te):e.DdM(14,ne))("queryParams",Je.route.snapshot.queryParams),e.xp6(1),e.Q6J("ngStyle",e.VKq(15,ge,Je.textColor)),e.xp6(1),e.hij(" ",Je.label," "),e.xp6(1),e.Q6J("ngStyle",e.VKq(17,ge,Je.navTextColor)),e.xp6(1),e.Q6J("ngIf",Je.showLanguageMenu),e.xp6(1),e.Q6J("ngIf",Je.showNotifications),e.xp6(1),e.Q6J("ngIf",Je.showHeaderMenu))},dependencies:[F.O5,F.PC,I.rH,T.Hw,H.VK,H.OP,H.p6,P.lW,P.RK,J.gM,fe.Ye,j.k,$.X,_e.Q,w.X$],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),ze})()},10441:(Qe,ae,p)=>{"use strict";p.d(ae,{W:()=>w});var e=p(94650),f=p(36895),A=p(97392),S=p(10266),m=p(89383);function M(x,I){1&x&&(e.TgZ(0,"mat-icon",1),e.ALo(1,"translate"),e._uU(2," visibility\n"),e.qZA()),2&x&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let w=(()=>{class x{constructor(){this.recentIds=[]}}return x.\u0275fac=function(F){return new(F||x)},x.\u0275cmp=e.Xpm({type:x,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(F,T){1&F&&e.YNc(0,M,3,3,"mat-icon",0),2&F&&e.Q6J("ngIf",T.recentIds.indexOf(T.id)>-1)},dependencies:[f.O5,A.Hw,S.gM,m.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),x})()},96214:(Qe,ae,p)=>{"use strict";p.d(ae,{t:()=>M});var e=p(94650),f=p(97392),A=p(4859),S=p(10266),m=p(89383);let M=(()=>{class w{constructor(){this.refresh=new e.vpe}onClickbutton(I){this.refresh.emit(I)}}return w.\u0275fac=function(I){return new(I||w)},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"me-2",3,"disabled","matTooltip","click"],[1,"ms-auto","perun-icon","d-inline-flex","align-items-center",3,"svgIcon"]],template:function(I,F){1&I&&(e.TgZ(0,"button",0),e.NdJ("click",function(H){return F.onClickbutton(H)}),e.ALo(1,"translate"),e._UZ(2,"mat-icon",1),e.qZA()),2&I&&(e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),e.Q6J("disabled",F.disabled),e.xp6(2),e.s9C("svgIcon",F.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[f.Hw,A.lW,S.gM,m.X$],styles:[".perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor!important}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),w})()},45703:(Qe,ae,p)=>{"use strict";p.d(ae,{L:()=>m});var e=p(94650),f=p(9244),A=p(89593),S=p(89383);let m=(()=>{class M{constructor(){this.resource=null,this.displayStatus=!0,this.disableAutoSelect=!1,this.required=!1,this.resourceSelected=new e.vpe,this.nameFunction=x=>x.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(f.aC)}}return M.\u0275fac=function(x){return new(x||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resource:"resource",resources:"resources",displayStatus:"displayStatus",disableAutoSelect:"disableAutoSelect",required:"required"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:17,consts:[[3,"entity","entities","required","disableAutoSelect","displayStatus","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(x,I){1&x&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(T){return I.resourceSelected.emit(T)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&x&&e.Q6J("entity",I.resource)("entities",I.resources)("required",I.required)("disableAutoSelect",I.disableAutoSelect)("displayStatus",I.displayStatus)("searchFunction",I.nameFunction)("mainTextFunction",I.nameFunction)("secondaryTextFunction",I.secondaryFunction)("selectPlaceholder",e.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",e.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",e.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},dependencies:[A.i,S.X$]}),M})()},62109:(Qe,ae,p)=>{"use strict";p.d(ae,{C:()=>o});var e=p(94650),f=p(96308),A=p(30671),S=p(95017),m=p(9244),M=p(80279),w=p(36895),x=p(56709),I=p(82761),F=p(98380),T=p(97392),H=p(10266),P=p(18750),J=p(34198),fe=p(55660),j=p(10441),$=p(8223),_e=p(6967),ge=p(89383);let pe=(()=>{class n{transform(i){if(null==i)return null;let c="";return i.forEach(function(l){c=c.concat(l.tagName)}),c}}return n.\u0275fac=function(i){return new(i||n)},n.\u0275pipe=e.Yjl({name:"resourceTagsToString",type:n,pure:!0}),n})();var re=p(82895),v=p(9185),V=p(8231),W=p(14849);function te(n,t){if(1&n){const i=e.EpF();e.TgZ(0,"mat-checkbox",29),e.NdJ("change",function(c){e.CHM(i);const l=e.oxw(3);return e.KtG(c?l.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&n){const i=e.oxw(2).ngIf,a=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,i.all)))("checked",a.selection.hasValue()&&i.all)("indeterminate",a.selection.hasValue()&&!i.all)}}function ne(n,t){if(1&n&&(e.TgZ(0,"th",27),e.YNc(1,te,3,7,"mat-checkbox",28),e.qZA()),2&n){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",i.selection.isMultipleSelection())}}const ye=function(n){return{name:n}};function ze(n,t){if(1&n){const i=e.EpF();e.TgZ(0,"td",30)(1,"span",31),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",32),e.NdJ("change",function(c){const d=e.CHM(i).$implicit,s=e.oxw(2);return e.KtG(c?s.itemSelectionToggle(d):null)})("click",function(c){return c.stopPropagation()}),e.ALo(4,"translate"),e.ALo(5,"checkboxLabel"),e.qZA()()()}if(2&n){const i=t.$implicit,a=e.oxw(2);e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!a.disableSelect(i)),e.xp6(2),e.Q2q("data-cy","",i.name,"-checkbox"),e.Q6J("aria-label",e.xi3(4,9,e.lcZ(5,12,a.selection.isSelected(i)),e.VKq(14,ye,i.name)))("checked",a.selection.isSelected(i))("disabled",a.disableSelect(i))}}function ke(n,t){1&n&&(e.ynx(0,24),e.YNc(1,ne,2,1,"th",25),e.YNc(2,ze,6,16,"td",26),e.BQk())}function $e(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function Je(n,t){if(1&n&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.Oqu(i.id)}}function Fe(n,t){1&n&&e._UZ(0,"th",35)}function Ve(n,t){if(1&n&&(e.TgZ(0,"td",36),e._UZ(1,"perun-web-apps-recently-viewed-icon",37),e.qZA()),2&n){const i=t.$implicit,a=e.oxw();e.xp6(1),e.Q6J("recentIds",a.recentIds)("id",i.id)}}function le(n,t){1&n&&e._UZ(0,"th",35)}function N(n,t){1&n&&(e.TgZ(0,"mat-icon",39),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&n&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function U(n,t){if(1&n&&(e.TgZ(0,"td",36),e.YNc(1,N,3,3,"mat-icon",38),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.Q6J("ngIf",i.sourceGroupId)}}function X(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function ce(n,t){if(1&n&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&n){const i=t.$implicit;e.uIk("data-cy",i.name),e.xp6(1),e.hij(" ",i.name," ")}}function Me(n,t){1&n&&(e.TgZ(0,"th",35),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.AUTHZ_GROUP")," "))}function ue(n,t){if(1&n){const i=e.EpF();e.TgZ(0,"td",40),e.NdJ("mouseenter",function(){e.CHM(i);const c=e.oxw();return e.KtG(c.disabledRouting=!0)})("mouseleave",function(){e.CHM(i);const c=e.oxw();return e.KtG(c.disabledRouting=c.disableRouting)}),e._UZ(1,"perun-web-apps-authorized-groups-cell",41),e.qZA()}if(2&n){const i=t.$implicit,a=e.oxw();e.xp6(1),e.Q6J("groups",a.resourceWithAuthzGroupPairs.get(i.id))("disableRouting",a.disableRouting)("authzVoNames",a.authzVoNames)}}function Pe(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function tt(n,t){if(1&n&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.Oqu(i.vo.name)}}function Ce(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function at(n,t){if(1&n&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.Oqu(i.voId)}}function Ue(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function pt(n,t){if(1&n){const i=e.EpF();e.TgZ(0,"td",36)(1,"perun-web-apps-group-resource-status",42),e.NdJ("mouseenter",function(){e.CHM(i);const c=e.oxw();return e.KtG(c.disabledRouting=!0)})("mouseleave",function(){e.CHM(i);const c=e.oxw();return e.KtG(c.disabledRouting=c.disableRouting)})("statusChange",function(){e.CHM(i);const c=e.oxw();return e.KtG(c.refreshTable.emit())}),e.qZA()()}if(2&n){const i=t.$implicit,a=e.oxw();e.xp6(1),e.Q6J("theme","group-theme")("resourceId",i.id)("groupId",a.groupId)("failureCause",i.failureCause)("status",i.status)}}function z(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function st(n,t){if(1&n&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.Oqu(i.facility.name)}}function be(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function Ye(n,t){if(1&n&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.Oqu(i.facilityId)}}function he(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function Re(n,t){if(1&n&&(e.TgZ(0,"td",36),e._uU(1),e.ALo(2,"resourceTagsToString"),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,i.resourceTags)," ")}}function He(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function ve(n,t){if(1&n&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.Oqu(i.description)}}function Oe(n,t){1&n&&e._UZ(0,"tr",43)}const r=function(n){return[n]};function u(n,t){if(1&n&&(e._UZ(0,"tr",44),e.ALo(1,"getResourceRoute"),e.ALo(2,"getResourceRoute")),2&n){const i=t.$implicit,a=e.oxw();e.ekj("cursor-pointer",!a.disableRouting)("disable-outline",a.disabledRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",a.disabledRouting||a.disableRouting?null:e.VKq(12,r,e.xi3(1,6,i,a.routingVo)))("routerLink",a.disabledRouting||a.disableRouting?null:e.xi3(2,9,i,a.routingVo))}}function _(n,t){1&n&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function C(n,t){1&n&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}const h=function(n){return{all:n}};let o=(()=>{class n{constructor(i,a){this.guiAuthResolver=i,this.tableCheckbox=a,this.resources=[],this.selection=new S.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=m.f7,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new e.vpe,this.allSelected=new e.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(c,l)=>n.getDataForColumn(c,l,this.recentIds),this.canBeSelected=c=>!this.disableSelect(c)}set matSort(i){this.sort=i}static getDataForColumn(i,a,c){switch(a){case"id":return i.id.toString();case"vo":return i.vo.name;case"name":return i.name;case"facility":return i.facility.name;case"description":return i.description;case"recent":return c&&c.includes(i.id)?"#".repeat(c.indexOf(i.id)):i.name;case"tags":{if(!i.resourceTags)return i[a];let d="";return i.resourceTags.forEach(function(s){d=d.concat(s.tagName)}),d}case"status":return i.status;case"uuid":return i.uuid;default:return i[a]}}ngOnChanges(){this.disabledRouting=this.disableRouting,this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(i=>"id"!==i)),this.setDataSource(),this.setAuth()}exportAllData(i){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),i)}exportDisplayedData(i){const a=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,c=a+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(a,c),this.displayedColumns,this.getDataForColumnFun),i)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(i,a)=>(0,m.Sd)(i,a,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(i,a)=>(0,m.pR)(i,a,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const i=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected);return this.allSelected.emit(i),i}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}setAuth(){const i=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((a,c)=>a&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",i.concat([c])),!0),this.addAuth=this.selection.selected.reduce((a,c)=>a&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",i.concat([c])),!0)}itemSelectionToggle(i){this.selection.toggle(i),this.setAuth()}disableSelect(i){return this.resourcesToDisableCheckbox.has(i.id)}}return n.\u0275fac=function(i){return new(i||n)(e.Y36(M.x4),e.Y36(M.UA))},n.\u0275cmp=e.Xpm({type:n,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(i,a){if(1&i&&(e.Gf(m.l9,7),e.Gf(f.YE,7)),2&i){let c;e.iGM(c=e.CRH())&&(a.child=c.first),e.iGM(c=e.CRH())&&(a.matSort=c.first)}},inputs:{resources:"resources",resourceWithAuthzGroupPairs:"resourceWithAuthzGroupPairs",authzVoNames:"authzVoNames",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[e.TTD],decls:45,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","authzGroup"],["mat-cell","","style","cursor: default",3,"mouseenter","mouseleave",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],["mat-cell","",2,"cursor","default",3,"mouseenter","mouseleave"],[3,"groups","disableRouting","authzVoNames"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(i,a){1&i&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(l){return a.exportDisplayedData(l)})("exportAllData",function(l){return a.exportAllData(l)}),e.TgZ(2,"table",2),e.YNc(3,ke,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,$e,3,3,"th",5),e.YNc(7,Je,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,Fe,1,0,"th",8),e.YNc(10,Ve,2,2,"td",9),e.BQk(),e.ynx(11,10),e.YNc(12,le,1,0,"th",8),e.YNc(13,U,2,1,"td",9),e.BQk(),e.ynx(14,11),e.YNc(15,X,3,3,"th",5),e.YNc(16,ce,2,2,"td",9),e.BQk(),e.ynx(17,12),e.YNc(18,Me,3,3,"th",8),e.YNc(19,ue,2,3,"td",13),e.BQk(),e.ynx(20,14),e.YNc(21,Pe,3,3,"th",5),e.YNc(22,tt,2,1,"td",9),e.BQk(),e.ynx(23,15),e.YNc(24,Ce,3,3,"th",5),e.YNc(25,at,2,1,"td",9),e.BQk(),e.ynx(26,16),e.YNc(27,Ue,3,3,"th",5),e.YNc(28,pt,2,5,"td",9),e.BQk(),e.ynx(29,17),e.YNc(30,z,3,3,"th",5),e.YNc(31,st,2,1,"td",9),e.BQk(),e.ynx(32,18),e.YNc(33,be,3,3,"th",5),e.YNc(34,Ye,2,1,"td",9),e.BQk(),e.ynx(35,19),e.YNc(36,he,3,3,"th",5),e.YNc(37,Re,3,3,"td",9),e.BQk(),e.ynx(38,20),e.YNc(39,He,3,3,"th",5),e.YNc(40,ve,2,1,"td",9),e.BQk(),e.YNc(41,Oe,1,0,"tr",21),e.YNc(42,u,3,14,"tr",22),e.qZA()()(),e.YNc(43,_,3,3,"perun-web-apps-alert",23),e.YNc(44,C,3,3,"perun-web-apps-alert",23)),2&i&&(e.Q6J("hidden",0===a.dataSource.filteredData.length||0===a.resources.length),e.xp6(1),e.Q6J("dataLength",a.dataSource.filteredData.length)("tableId",a.tableId)("pageSizeOptions",a.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",a.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,h,e.Dn7(4,10,a.dataSource,a.selection.selected.length,a.canBeSelected))),e.xp6(38),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===a.dataSource.filteredData.length&&0!==a.resources.length),e.xp6(1),e.Q6J("ngIf",0===a.resources.length))},dependencies:[w.O5,x.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,I.rH,f.YE,f.nU,F.w,T.Hw,H.gM,P.l,J.Y,j.W,$.x,fe.Q,_e.e,ge.X$,pe,re.r,v.I,V.G,W.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-mdc-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),n})()},52170:(Qe,ae,p)=>{"use strict";p.d(ae,{$x:()=>M,qG:()=>m});var e=p(94650),f=p(89383),A=p(89593);class S{constructor(x,I){this.value=I,this.displayName=x}}var m=(()=>{return(w=m||(m={}))[w.SOURCE=0]="SOURCE",w[w.DESTINATION=1]="DESTINATION",w[w.FEDERATION=2]="FEDERATION",m;var w})();let M=(()=>{class w{constructor(I){this.translateService=I,this.attributes=[],this.asGroup=!1,this.itemSelected=new e.vpe,this.items=[],this.nameFunction=F=>F.displayName,this.shortNameFunction=()=>null,this.searchFunction=F=>F.displayName}static getDefinition(I){const F=I.namespace.split(":");return null===F[4]?"null":F[4]}ngOnInit(){this.type===m.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}createSelectionItems(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(I=>{const F=new S(I,"");this.items.push(F),this.item=F});for(const I of this.attributes){const F=new S(I.friendlyName+" ("+I.entity+" / "+w.getDefinition(I)+")",I.namespace+":"+I.friendlyName);F.value===this.selectedAttribute&&(this.item=F),("user"===I.entity.toLowerCase()||"member"===I.entity.toLowerCase()||"vo"===I.entity.toLowerCase()&&this.type===m.SOURCE||"group"===I.entity.toLowerCase()&&this.asGroup&&this.type===m.SOURCE)&&this.items.push(F)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(I=>{this.items.push(new S(I,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(F=>{this.items.push(new S(F,"custom")),this.items.push(new S("Display name","displayName")),this.items.push(new S("Common name","cn")),this.items.push(new S("Mail","mail")),this.items.push(new S("Organization","o")),this.items.push(new S("Level of Assurance (LoA)","loa")),this.items.push(new S("First name","givenName")),this.items.push(new S("Surname","sn")),this.items.push(new S("EPPN","eppn")),this.items.push(new S("IdP Category","md_entityCategory")),this.items.push(new S("IdP Affiliation","affiliation")),this.items.push(new S("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.items.push(new S("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.items.push(new S("schacHomeOrganization","schacHomeOrganization")),this.items.push(new S("Login","uid")),this.items.push(new S("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){for(const I of this.items)if(I.value===this.selectedAttribute)return void(this.item=I);this.item=this.items[1],this.item.value=this.selectedAttribute}sortAttributes(I){I.sort((F,T)=>""===F.value?-1:""===T.value?1:F.displayName.localeCompare(T.displayName))}}return w.\u0275fac=function(I){return new(I||w)(e.Y36(f.sK))},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-selection-item-search-select"]],inputs:{attributes:"attributes",selectedAttribute:"selectedAttribute",type:"type",asGroup:"asGroup"},outputs:{itemSelected:"itemSelected"},decls:4,vars:14,consts:[[3,"entities","entity","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(I,F){1&I&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(H){return F.itemSelected.emit(H)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&I&&e.Q6J("entities",F.items)("entity",F.item)("searchFunction",F.searchFunction)("mainTextFunction",F.nameFunction)("secondaryTextFunction",F.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[A.i,f.X$]}),w})()},30540:(Qe,ae,p)=>{"use strict";p.d(ae,{J:()=>S});var e=p(94650),f=p(89593),A=p(89383);let S=(()=>{class m{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new e.vpe,this.nameFunction=w=>w.name,this.secondaryFunction=()=>"",this.searchFunction=w=>w.name}}return m.\u0275fac=function(w){return new(w||m)},m.\u0275cmp=e.Xpm({type:m,selectors:[["perun-web-apps-service-search-select"]],inputs:{service:"service",services:"services",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{serviceSelected:"serviceSelected"},decls:4,vars:17,consts:[[3,"entity","entities","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(w,x){1&w&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(F){return x.serviceSelected.emit(F)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&w&&e.Q6J("entity",x.service)("entities",x.services)("multiple",x.multiple)("disableAutoSelect",x.disableAutoSelect)("searchFunction",x.searchFunction)("mainTextFunction",x.nameFunction)("secondaryTextFunction",x.secondaryFunction)("selectPlaceholder",e.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.SELECT_SERVICE"))("findPlaceholder",e.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.FIND_SERVICE"))("noEntriesText",e.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.NO_SERVICE_FOUND"))("theme",x.theme)},dependencies:[f.i,A.X$]}),m})()},2541:(Qe,ae,p)=>{"use strict";p.d(ae,{m:()=>V});var e=p(80279),f=p(61744),A=p(21029),S=p(9244),m=p(94650),M=p(7274),w=p(36895),x=p(51572),I=p(98380),F=p(4859),T=p(37084),H=p(7434),P=p(89383),J=p(34447);function fe(W,te){1&W&&m._UZ(0,"mat-spinner",8)}function j(W,te){1&W&&(m.TgZ(0,"perun-web-apps-alert",9),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"customTranslate"),m.qZA()),2&W&&(m.xp6(1),m.Oqu(m.lcZ(2,1,m.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))))}function $(W,te){if(1&W){const ne=m.EpF();m.TgZ(0,"div")(1,"p")(2,"strong"),m._uU(3),m.ALo(4,"translate"),m.ALo(5,"customTranslate"),m.qZA(),m._uU(6),m.qZA(),m.TgZ(7,"p",10),m._uU(8),m.ALo(9,"translate"),m.ALo(10,"customTranslate"),m.qZA(),m.TgZ(11,"button",11),m.NdJ("click",function(){m.CHM(ne);const ze=m.oxw().$implicit,ke=m.oxw(3).$implicit,$e=m.oxw();return m.KtG($e.requestChangeQuota(ke,ze))}),m._uU(12),m.ALo(13,"translate"),m.ALo(14,"customTranslate"),m.qZA()()}if(2&W){const ne=m.oxw(5);m.xp6(3),m.Oqu(m.lcZ(4,4,m.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA"))),m.xp6(3),m.hij(" ",ne.quotasMarkup," "),m.xp6(2),m.hij(" ",m.lcZ(9,8,m.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA_INFO"))," "),m.xp6(4),m.hij(" ",m.lcZ(13,12,m.lcZ(14,14,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.CHANGE"))," ")}}function _e(W,te){1&W&&(m.TgZ(0,"p"),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"customTranslate"),m.qZA()),2&W&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,m.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))," "))}function ge(W,te){if(1&W){const ne=m.EpF();m.TgZ(0,"mat-expansion-panel",3),m.NdJ("opened",function(){const ke=m.CHM(ne).$implicit,$e=m.oxw(4);return m.KtG($e.getResAttributes(ke.id))}),m.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),m._uU(3),m.qZA()(),m.YNc(4,$,15,16,"div",7),m.YNc(5,_e,4,5,"p",7),m.qZA()}if(2&W){const ne=te.$implicit,ye=m.oxw(4);m.xp6(3),m.hij(" ",ne.name," "),m.xp6(1),m.Q6J("ngIf",ye.defaultQuota),m.xp6(1),m.Q6J("ngIf",!ye.defaultQuota)}}function pe(W,te){if(1&W&&(m.TgZ(0,"mat-accordion"),m.YNc(1,ge,6,3,"mat-expansion-panel",2),m.qZA()),2&W){const ne=m.oxw(3);m.xp6(1),m.Q6J("ngForOf",ne.resources)}}function re(W,te){if(1&W&&(m.YNc(0,fe,1,0,"mat-spinner",5),m.YNc(1,j,4,5,"perun-web-apps-alert",6),m.YNc(2,pe,2,1,"mat-accordion",7)),2&W){const ne=m.oxw(2);m.Q6J("ngIf",ne.loading),m.xp6(1),m.Q6J("ngIf",0===ne.resources.length&&!ne.loading),m.xp6(1),m.Q6J("ngIf",ne.resources.length&&!ne.loading)}}function v(W,te){if(1&W){const ne=m.EpF();m.TgZ(0,"mat-expansion-panel",3),m.NdJ("opened",function(){const ke=m.CHM(ne).$implicit,$e=m.oxw();return m.KtG($e.getMembersResources(ke))}),m.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),m._uU(3),m.qZA()(),m.YNc(4,re,3,3,"ng-template",4),m.qZA()}if(2&W){const ne=te.$implicit;m.xp6(3),m.hij(" ",ne.name," ")}}let V=(()=>{class W{constructor(ne,ye,ze,ke,$e,Je,Fe){this.store=ne,this.usersManagerService=ye,this.membersService=ze,this.resourcesManagerService=ke,this.attributesManagerService=$e,this.dialog=Je,this.entityStorageService=Fe,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(ne=>{this.vos=ne,this.filteredVos=ne})}getMembersResources(ne){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(ne.id,this.user.id).subscribe(ye=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(ye.id).subscribe(ze=>{let ke=ze.length;ke||(this.loading=!1),ze.forEach($e=>{this.attributesManagerService.getResourceAttributes($e.id).subscribe(Je=>{ke--,Je.find(Fe=>"defaultDataQuotas"===Fe.friendlyName)&&this.resources.push($e),this.loading=0!==ke})})})})}getResAttributes(ne){this.attributesManagerService.getResourceAttributes(ne).subscribe(ye=>{let ze=ye.find(ke=>"dataQuotas"===ke.friendlyName);if(ze?.value){const ke=Object.entries(ze.value).map($e=>String($e[1]));this.currentQuota=ke[0]}else this.currentQuota="";if(ze=ye.find(ke=>"defaultDataQuotas"===ke.friendlyName),ze?.value){const ke=Object.entries(ze.value).map($e=>String($e[1]));this.defaultQuota=ke[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(ne,ye){const ze=(0,S.kZ)();ze.width="400px",ze.data={vo:ne,resource:ye,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(A.h4,ze)}applyFilter(ne){this.filteredVos=this.vos.filter(ye=>ye.name.toLowerCase().includes(ne.toLowerCase()))}parseMarkup(){let ne="";ne+=this.currentQuota,ne+=` (default: ${this.defaultQuota})`,ne=ne.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=ne}}return W.\u0275fac=function(ne){return new(ne||W)(m.Y36(e.d6),m.Y36(f.Fv),m.Y36(f.uq),m.Y36(f.xk),m.Y36(f.H8),m.Y36(M.uw),m.Y36(e.fb))},W.\u0275cmp=m.Xpm({type:W,selectors:[["perun-web-apps-data-quotas"]],inputs:{user:"user"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ms-auto me-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ms-auto","me-auto"],["alert_type","warn"],[1,"color-gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(ne,ye){1&ne&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"customTranslate"),m.qZA(),m.TgZ(4,"perun-web-apps-immediate-filter",1),m.NdJ("filter",function(ke){return ye.applyFilter(ke)}),m.ALo(5,"translate"),m.ALo(6,"customTranslate"),m.qZA(),m.TgZ(7,"mat-accordion"),m.YNc(8,v,5,1,"mat-expansion-panel",2),m.qZA()),2&ne&&(m.xp6(1),m.hij(" ",m.lcZ(2,3,m.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.TITLE")),"\n"),m.xp6(3),m.Q6J("placeholder",m.lcZ(5,7,m.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.FILTER"))),m.xp6(4),m.Q6J("ngForOf",ye.filteredVos))},dependencies:[w.sg,w.O5,x.Ou,I.w,F.lW,T.pp,T.ib,T.yz,T.yK,T.HS,H.L,P.X$,J.a],styles:[".color-gray[_ngcontent-%COMP%]{color:gray}"]}),W})()},74006:(Qe,ae,p)=>{"use strict";p.d(ae,{E:()=>pe});var e=p(61744),f=p(80279),A=p(9244),S=p(94650),m=p(82761),M=p(89383),w=p(36895),x=p(56709),I=p(51572),F=p(98380),T=p(37084),H=p(7434),P=p(34447);function J(re,v){1&re&&S._UZ(0,"mat-spinner",8)}function fe(re,v){1&re&&(S.TgZ(0,"perun-web-apps-alert",9),S._uU(1),S.ALo(2,"translate"),S.ALo(3,"customTranslate"),S.qZA()),2&re&&(S.xp6(1),S.Oqu(S.lcZ(2,1,S.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function j(re,v){if(1&re){const V=S.EpF();S.TgZ(0,"mat-expansion-panel",3),S.NdJ("closed",function(){S.CHM(V);const te=S.oxw(4);return S.KtG(te.deselectResource())})("afterExpand",function(){const ne=S.CHM(V).$implicit,ye=S.oxw(4);return S.KtG(ye.changeSelectedResource(ne))}),S.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),S._uU(3),S.qZA()(),S.TgZ(4,"div",10)(5,"mat-checkbox",11),S.NdJ("change",function(){S.CHM(V);const te=S.oxw(4);return S.KtG(te.setOptOut())}),S._uU(6),S.ALo(7,"translate"),S.ALo(8,"customTranslate"),S.qZA()()()}if(2&re){const V=v.$implicit,W=S.oxw(4);S.Q6J("expanded",V.name===W.selectedResource),S.xp6(3),S.hij(" ",V.name," "),S.xp6(2),S.Q6J("checked",W.optOutAttribute&&null!==W.optOutAttribute.value),S.xp6(1),S.hij(" ",S.lcZ(7,4,S.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))," ")}}function $(re,v){if(1&re&&(S.TgZ(0,"mat-accordion"),S.YNc(1,j,9,8,"mat-expansion-panel",2),S.qZA()),2&re){const V=S.oxw(3);S.xp6(1),S.Q6J("ngForOf",V.resources)}}function _e(re,v){if(1&re&&(S.YNc(0,J,1,0,"mat-spinner",5),S.YNc(1,fe,4,5,"perun-web-apps-alert",6),S.YNc(2,$,2,1,"mat-accordion",7)),2&re){const V=S.oxw(2);S.Q6J("ngIf",V.loading),S.xp6(1),S.Q6J("ngIf",0===V.resources.length&&!V.loading),S.xp6(1),S.Q6J("ngIf",V.resources.length&&!V.loading)}}function ge(re,v){if(1&re){const V=S.EpF();S.TgZ(0,"mat-expansion-panel",3),S.NdJ("closed",function(){S.CHM(V);const te=S.oxw();return S.KtG(te.deselectVo())})("afterExpand",function(){const ne=S.CHM(V).$implicit,ye=S.oxw();return S.KtG(ye.changeSelectedVo(ne))}),S.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),S._uU(3),S.qZA()(),S.YNc(4,_e,3,3,"ng-template",4),S.qZA()}if(2&re){const V=v.$implicit,W=S.oxw();S.Q6J("expanded",V.shortName===W.selectedVo),S.xp6(3),S.hij(" ",V.name," ")}}let pe=(()=>{class re{constructor(V,W,te,ne,ye,ze,ke,$e,Je){this.store=V,this.usersManagerService=W,this.membersService=te,this.resourcesManagerService=ne,this.attributesManagerService=ye,this.route=ze,this.router=ke,this.notificator=$e,this.translate=Je,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0,queryParamsHandling:"merge"})}ngOnInit(){this.route.queryParams.subscribe(V=>{this.selectedVo=String(V.vo),this.selectedResource=String(V.resource),this.changeOptOut=String(V.action),this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(W=>{if(this.vos=W.sort(A.aC),this.filteredVos=W,void 0!==this.selectedResource){const te=this.vos.find(ne=>ne.shortName===this.selectedVo);te&&this.getMailingLists(te)}else if(void 0!==this.selectedVo){const te=this.vos.find(ne=>ne.shortName===this.selectedVo);te&&(this.getMailingLists(te),this.changeSelectedVo(te))}})}).unsubscribe()}changeSelectedResource(V){this.selectedResource!==V.name&&this.getOptOutAttribute(V),this.isService||(this.changeOptOut&&("subscribe"===this.changeOptOut?this.subscribe():"unsubscribe"===this.changeOptOut&&this.unsubscribe(),this.changeOptOut=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource,action:null},queryParamsHandling:"merge"}))}changeSelectedVo(V){this.selectedVo!==V.shortName&&(this.getMailingLists(V),this.selectedResource=null),this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}getMailingLists(V){this.selectedVo=V.shortName,this.loading=!0,this.resources=[],this.membersService.getMemberByUser(V.id,this.user.id).subscribe(W=>{this.resourcesManagerService.getMailingServiceRichResourcesWithMember(W.id).subscribe(te=>{let ne=te.length;ne||(this.loading=!1),te.forEach(ye=>{this.attributesManagerService.getRequiredAttributesMemberResource(W.id,ye.id).subscribe(ze=>{this.attributesManagerService.getResourceAttributeByName(ye.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(ke=>{ne--;const $e=ze.find(Je=>"optOutMailingList"===Je.friendlyName);$e&&"true"!==ke?.value&&(this.optOuts.push({resource:ye.id,member:W.id,attribute:$e}),this.resources.push(ye),this.selectedResource===ye.name&&(this.getOptOutAttribute(ye),this.changeSelectedResource(ye))),this.loading=0!==ne})})})}),this.resources.sort(A.aC)})}getOptOutAttribute(V){this.selectedResource=V.name,this.index=this.resources.indexOf(V),this.optOutAttribute=this.optOuts[this.index].attribute}unsubscribe(){const V=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value="true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.UNSUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=V})}subscribe(){const V=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value=null,this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.SUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=V})}setOptOut(){this.optOutAttribute.value?this.subscribe():this.unsubscribe()}applyFilter(V){this.filteredVos=this.vos.filter(W=>W.name.toLowerCase().includes(V.toLowerCase()))}deselectVo(){this.loading=!0,this.selectedVo=null,this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return re.\u0275fac=function(V){return new(V||re)(S.Y36(f.d6),S.Y36(e.Fv),S.Y36(e.uq),S.Y36(e.xk),S.Y36(e.H8),S.Y36(m.gz),S.Y36(m.F0),S.Y36(f.V6),S.Y36(M.sK))},re.\u0275cmp=S.Xpm({type:re,selectors:[["perun-web-apps-mailing-lists"]],inputs:{user:"user",isService:"isService"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"expanded","closed","afterExpand",4,"ngFor","ngForOf"],[3,"expanded","closed","afterExpand"],["matExpansionPanelContent",""],["class","ms-auto me-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ms-auto","me-auto"],["alert_type","warn"],[1,"row"],[3,"checked","change"]],template:function(V,W){1&V&&(S.TgZ(0,"h1",0),S._uU(1),S.ALo(2,"translate"),S.ALo(3,"customTranslate"),S.qZA(),S.TgZ(4,"perun-web-apps-immediate-filter",1),S.NdJ("filter",function(ne){return W.applyFilter(ne)}),S.ALo(5,"translate"),S.ALo(6,"customTranslate"),S.qZA(),S.TgZ(7,"mat-accordion"),S.YNc(8,ge,5,2,"mat-expansion-panel",2),S.qZA()),2&V&&(S.xp6(1),S.hij(" ",S.lcZ(2,3,S.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.TITLE")),"\n"),S.xp6(3),S.Q6J("placeholder",S.lcZ(5,7,S.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.FILTER"))),S.xp6(4),S.Q6J("ngForOf",W.filteredVos))},dependencies:[w.sg,w.O5,x.oG,I.Ou,F.w,T.pp,T.ib,T.yz,T.yK,T.HS,H.L,M.X$,P.a]}),re})()},80275:(Qe,ae,p)=>{"use strict";p.d(ae,{j:()=>X});var e=p(95017),f=p(96308),A=p(30671),S=p(80279),m=p(9244),M=p(94650),w=p(82761),x=p(36895),I=p(56709),F=p(98380),T=p(10266),H=p(18750),P=p(34198),J=p(55660),fe=p(89383);let j=(()=>{class ce{transform(ue){return ue.find(tt=>"mail"===tt.friendlyName)?.value??""}}return ce.\u0275fac=function(ue){return new(ue||ce)},ce.\u0275pipe=M.Yjl({name:"getMailFromAttributes",type:ce,pure:!0}),ce})();var $=p(34447),_e=p(8231);function ge(ce,Me){1&ce&&M._UZ(0,"th",18)}const pe=function(ce){return{name:ce}};function re(ce,Me){if(1&ce){const ue=M.EpF();M.TgZ(0,"td",19)(1,"span",20),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.TgZ(4,"mat-checkbox",21),M.NdJ("change",function(tt){const at=M.CHM(ue).$implicit,Ue=M.oxw();return M.KtG(tt?Ue.selection.toggle(at):null)})("click",function(tt){return tt.stopPropagation()}),M.ALo(5,"translate"),M.ALo(6,"checkboxLabel"),M.qZA()()()}if(2&ce){const ue=Me.$implicit,Pe=M.oxw();M.xp6(1),M.s9C("matTooltip",M.lcZ(2,6,M.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),M.Q6J("matTooltipPosition","above")("matTooltipDisabled",!ue.userExtSource.persistent),M.xp6(3),M.Q6J("aria-label",M.xi3(5,10,M.lcZ(6,13,Pe.selection.isSelected(ue)),M.VKq(15,pe,ue.userExtSource.extSource.name)))("checked",Pe.selection.isSelected(ue))("disabled",ue.userExtSource.persistent)}}function v(ce,Me){1&ce&&(M.TgZ(0,"th",22),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&ce&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,M.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function V(ce,Me){if(1&ce&&(M.TgZ(0,"td",23),M._uU(1),M.qZA()),2&ce){const ue=Me.$implicit;M.xp6(1),M.hij(" ",ue.userExtSource.id," ")}}function W(ce,Me){1&ce&&(M.TgZ(0,"th",24),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&ce&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,M.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function te(ce,Me){if(1&ce&&(M.TgZ(0,"td",23),M._uU(1),M.ALo(2,"getMailFromAttributes"),M.qZA()),2&ce){const ue=Me.$implicit;M.xp6(1),M.hij(" ",M.lcZ(2,1,ue.attributes)," ")}}function ne(ce,Me){if(1&ce&&(M.TgZ(0,"th",22),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&ce){const ue=M.oxw();M.xp6(1),M.hij(" ",M.lcZ(2,1,M.lcZ(3,3,ue.extSourceNameHeader?ue.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function ye(ce,Me){if(1&ce&&(M.TgZ(0,"td",23),M._uU(1),M.qZA()),2&ce){const ue=Me.$implicit;M.xp6(1),M.hij(" ",ue.userExtSource.extSource.name," ")}}function ze(ce,Me){if(1&ce&&(M.TgZ(0,"th",22),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&ce){const ue=M.oxw();M.xp6(1),M.hij(" ",M.lcZ(2,1,M.lcZ(3,3,ue.loginHeader?ue.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function ke(ce,Me){if(1&ce&&(M.TgZ(0,"td",23),M._uU(1),M.qZA()),2&ce){const ue=Me.$implicit;M.xp6(1),M.hij(" ",ue.userExtSource.login," ")}}function $e(ce,Me){1&ce&&(M.TgZ(0,"th",22),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&ce&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,M.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function Je(ce,Me){if(1&ce&&(M.TgZ(0,"td",25),M._uU(1),M.ALo(2,"date"),M.qZA()),2&ce){const ue=Me.$implicit;M.xp6(1),M.hij(" ",M.xi3(2,1,ue.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function Fe(ce,Me){1&ce&&M._UZ(0,"tr",26)}const Ve=function(ce,Me){return["/admin","users",ce,"identities",Me]};function le(ce,Me){if(1&ce&&M._UZ(0,"tr",27),2&ce){const ue=Me.$implicit,Pe=M.oxw();M.ekj("cursor-pointer",!Pe.disableRouting)("disable-outline",Pe.disableRouting),M.Q6J("perunWebAppsMiddleClickRouterLink",Pe.disableRouting?null:M.WLB(6,Ve,Pe.userId.toString(),ue.userExtSource.id.toString()))("routerLink",Pe.disableRouting?null:M.WLB(9,Ve,Pe.userId,ue.userExtSource.id))}}function N(ce,Me){1&ce&&(M.TgZ(0,"perun-web-apps-alert",28),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&ce&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function U(ce,Me){1&ce&&(M.TgZ(0,"perun-web-apps-alert",28),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&ce&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,M.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let X=(()=>{class ce{constructor(ue,Pe){this.route=ue,this.authResolver=Pe,this.selection=new e.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=m.f7}set matSort(ue){this.sort=ue,this.setDataSource()}static getDataForColumn(ue,Pe){switch(Pe){case"id":return ue.userExtSource.id.toString();case"mail":{const tt=ue.attributes.find(Ce=>"mail"===Ce.friendlyName);return tt?tt.value:"N/A"}case"extSourceName":return ue.userExtSource.extSource.name;case"login":return ue.userExtSource.login;case"lastAccess":return ue.userExtSource.lastAccess.split(".")[0];default:return ue[Pe]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(ue=>{this.userId=Number(ue.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ue=>"id"!==ue)),this.dataSource=new A.by(this.userExtSources),this.setDataSource()}exportAllData(ue){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,ce.getDataForColumn),ue)}exportDisplayedData(ue){const Pe=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,tt=Pe+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Pe,tt),this.displayedColumns,ce.getDataForColumn),ue)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(ue,Pe)=>(0,m.Sd)(ue,Pe,this.displayedColumns,ce.getDataForColumn),this.dataSource.sortData=(ue,Pe)=>(0,m.pR)(ue,Pe,ce.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}}return ce.\u0275fac=function(ue){return new(ue||ce)(M.Y36(w.gz),M.Y36(S.x4))},ce.\u0275cmp=M.Xpm({type:ce,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(ue,Pe){if(1&ue&&(M.Gf(m.l9,7),M.Gf(f.YE,7)),2&ue){let tt;M.iGM(tt=M.CRH())&&(Pe.child=tt.first),M.iGM(tt=M.CRH())&&(Pe.matSort=tt.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[M.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"ps-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(ue,Pe){1&ue&&(M.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),M.NdJ("exportDisplayedData",function(Ce){return Pe.exportDisplayedData(Ce)})("exportAllData",function(Ce){return Pe.exportAllData(Ce)}),M.TgZ(2,"table",2),M.ynx(3,3),M.YNc(4,ge,1,0,"th",4),M.YNc(5,re,7,17,"td",5),M.BQk(),M.ynx(6,6),M.YNc(7,v,4,5,"th",7),M.YNc(8,V,2,1,"td",8),M.BQk(),M.ynx(9,9),M.YNc(10,W,4,5,"th",10),M.YNc(11,te,3,3,"td",8),M.BQk(),M.ynx(12,11),M.YNc(13,ne,4,5,"th",7),M.YNc(14,ye,2,1,"td",8),M.BQk(),M.ynx(15,12),M.YNc(16,ze,4,5,"th",7),M.YNc(17,ke,2,1,"td",8),M.BQk(),M.ynx(18,13),M.YNc(19,$e,4,5,"th",7),M.YNc(20,Je,3,4,"td",14),M.BQk(),M.YNc(21,Fe,1,0,"tr",15),M.YNc(22,le,1,12,"tr",16),M.qZA()()(),M.YNc(23,N,3,3,"perun-web-apps-alert",17),M.YNc(24,U,4,5,"perun-web-apps-alert",17)),2&ue&&(M.Q6J("hidden",0===Pe.userExtSources.length||0===Pe.dataSource.filteredData.length),M.xp6(1),M.Q6J("tableId",Pe.tableId)("dataLength",Pe.dataSource.filteredData.length)("pageSizeOptions",Pe.pageSizeOptions),M.xp6(1),M.Q6J("dataSource",Pe.dataSource),M.xp6(19),M.Q6J("matHeaderRowDef",Pe.displayedColumns),M.xp6(1),M.Q6J("matRowDefColumns",Pe.displayedColumns),M.xp6(1),M.Q6J("ngIf",0===Pe.dataSource.filteredData.length&&0!==Pe.userExtSources.length),M.xp6(1),M.Q6J("ngIf",0===Pe.userExtSources.length))},dependencies:[x.O5,I.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,w.rH,f.YE,f.nU,F.w,T.gM,H.l,P.Y,J.Q,x.uU,fe.X$,j,$.a,_e.G],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),ce})()},74250:(Qe,ae,p)=>{"use strict";p.d(ae,{S:()=>m});var e=p(94650),f=p(9244),A=p(89593),S=p(89383);let m=(()=>{class M{constructor(){this.disableAutoSelect=!1,this.userSelected=new e.vpe,this.userFullNameFunction=f.bD}ngOnInit(){this.users=this.users.sort(f.fx)}}return M.\u0275fac=function(x){return new(x||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(x,I){1&x&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(T){return I.userSelected.emit(T)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&x&&e.Q6J("entities",I.users)("disableAutoSelect",I.disableAutoSelect)("searchFunction",I.userFullNameFunction)("mainTextFunction",I.userFullNameFunction)("selectPlaceholder",e.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",e.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",e.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},dependencies:[A.i,S.X$]}),M})()},88561:(Qe,ae,p)=>{"use strict";p.d(ae,{M:()=>C});var e=p(94650),f=p(61744),A=p(95017),S=p(9244),m=p(96308),M=p(80279),w=p(56451),x=p(18505),I=p(21029),F=p(19516),T=p(10036),H=p(7274),P=p(89383),J=p(36895),fe=p(56709),j=p(30671),$=p(82761),_e=p(98380),ge=p(97392),pe=p(10266),re=p(18750),v=p(34198),V=p(55660),W=p(12502),te=p(31359),ne=p(16119),ye=p(7598),ze=p(9954),ke=p(9185),$e=p(8231),Je=p(14849),Fe=p(10293);function Ve(h,o){if(1&h){const n=e.EpF();e.TgZ(0,"mat-checkbox",23),e.NdJ("change",function(i){e.CHM(n);const a=e.oxw(3);return e.KtG(i?a.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&h){const n=e.oxw(2).ngIf,t=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,n.all)))("checked",t.selection.hasValue()&&n.all)("indeterminate",t.selection.hasValue()&&!n.all)}}function le(h,o){if(1&h&&(e.TgZ(0,"th",21),e.YNc(1,Ve,3,7,"mat-checkbox",22),e.qZA()),2&h){const n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",n.selection.isMultipleSelection())}}const N=function(h){return{name:h}};function U(h,o){if(1&h){const n=e.EpF();e.TgZ(0,"td",24)(1,"mat-checkbox",25),e.NdJ("change",function(i){const c=e.CHM(n).$implicit,l=e.oxw(2);return e.KtG(i?l.selection.toggle(c):null)})("click",function(i){return i.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.ALo(4,"userFullName"),e.qZA()()}if(2&h){const n=o.$implicit,t=e.oxw(2);e.xp6(1),e.Q6J("aria-label",e.xi3(2,2,e.lcZ(3,5,t.selection.isSelected(n)),e.VKq(9,N,e.lcZ(4,7,n))))("checked",t.selection.isSelected(n))}}function X(h,o){1&h&&(e.ynx(0,18),e.YNc(1,le,2,1,"th",19),e.YNc(2,U,5,11,"td",20),e.BQk())}function ce(h,o){1&h&&e._UZ(0,"th",26)}function Me(h,o){1&h&&(e.TgZ(0,"mat-icon",30),e.ALo(1,"translate"),e._uU(2," account_circle "),e.qZA()),2&h&&e.s9C("matTooltip",e.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function ue(h,o){if(1&h&&(e._UZ(0,"mat-icon",31),e.ALo(1,"translate")),2&h){const n=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,2,"MANAGERS_LIST.SERVICE")),e.Q6J("svgIcon",n.svgIcon)}}function Pe(h,o){if(1&h&&(e.TgZ(0,"td",27),e.YNc(1,Me,3,3,"mat-icon",28),e.YNc(2,ue,2,4,"mat-icon",29),e.qZA()),2&h){const n=o.$implicit;e.xp6(1),e.Q6J("ngIf",!n.serviceUser),e.xp6(1),e.Q6J("ngIf",n.serviceUser)}}function tt(h,o){1&h&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function Ce(h,o){if(1&h&&(e.TgZ(0,"td",27),e._uU(1),e.qZA()),2&h){const n=o.$implicit;e.xp6(1),e.hij(" ",n.id," ")}}function at(h,o){1&h&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function Ue(h,o){if(1&h&&(e.TgZ(0,"td",33),e.ALo(1,"lowercase"),e._uU(2),e.ALo(3,"userFullName"),e.qZA()),2&h){const n=o.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,n.firstName),"-td"),e.xp6(2),e.hij(" ",e.lcZ(3,4,n)," ")}}function pt(h,o){1&h&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function z(h,o){if(1&h&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"userVo"),e.qZA()),2&h){const n=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,n))}}function st(h,o){1&h&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function be(h,o){if(1&h&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"userEmail"),e.qZA()),2&h){const n=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,n))}}function Ye(h,o){1&h&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function he(h,o){if(1&h&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"userLogins"),e.qZA()),2&h){const n=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,n))}}function Re(h,o){1&h&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CONSENTS.STATUS")," "))}function He(h,o){if(1&h&&(e.TgZ(0,"td",33),e._UZ(1,"perun-web-apps-consent-status",34),e.ALo(2,"consentStatusIcon"),e.qZA()),2&h){const n=o.$implicit,t=e.oxw();e.xp6(1),e.Q6J("consentStatus",e.xi3(2,1,n.id,t.consents))}}function ve(h,o){1&h&&e._UZ(0,"tr",35)}const Oe=function(h){return["/admin/users",h]};function r(h,o){if(1&h&&e._UZ(0,"tr",36),2&h){const n=o.$implicit,t=e.oxw();e.ekj("cursor-pointer",!t.disableRouting),e.Q6J("routerLink",t.disableRouting?null:e.VKq(4,Oe,n.id))("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:e.VKq(6,Oe,n.id))}}function u(h,o){1&h&&(e.TgZ(0,"perun-web-apps-alert",37),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.Q6J("alert_type","warn"),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}const _=function(h){return{all:h}};let C=(()=>{class h{constructor(n,t,i,a,c,l,d,s){this.authResolver=n,this.consentService=t,this.tableCheckbox=i,this.tableConfigService=a,this.dynamicPaginatingService=c,this.dialog=l,this.consentPipe=d,this.translate=s,this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.loading$=new e.vpe,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=S.f7}static getExportDataForColumn(n,t){switch(t){case"id":return n.id.toString();case"user":return n.serviceUser?"service-user":"user";case"name":return n?(0,S.bD)(n):"";case"organization":return(0,S.OV)(n);case"email":return(0,S.kN)(n);case"logins":return(0,S.lt)(n);case"consentStatus":return n.consent;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,w.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,x.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(n=>"id"!==n)),this.dataSource=new M.Hy(this.dynamicPaginatingService,this.authResolver),this.loadConsents(),this.dataSource.loadUsers(this.attrNames,this.tableConfigService.getTablePageSize(this.tableId),0,"ASCENDING","NAME",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses),this.loading$.emit(this.dataSource.loading$)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadUsersPage(),this.loadConsents())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(n=>this.selection.select(n))}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().length}loadUsersPage(){this.dataSource.loadUsers(this.attrNames,this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING","name"===this.sort.active?"NAME":"ID",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses)}loadConsents(){this.displayedColumns.includes("consentStatus")&&this.consentService.getConsentHubByFacility(this.facilityId).subscribe(n=>this.consentService.getConsentsForConsentHub(n.id).subscribe(t=>this.consents=t))}exportDisplayedData(n){(0,S.O6)((0,S.Xn)(this.getConsentsForUsers(this.dataSource.getData()),this.displayedColumns,h.getExportDataForColumn),n)}exportAllData(n){const t="asc"===this.sort.direction?"ASCENDING":"DESCENDING",i="name"===this.sort.active?"NAME":"ID",a=(0,S.kZ)();a.width="300px";const c=this.dialog.open(I.QQ,a);this.dataSource.getAllUsers(this.attrNames,t,this.child.paginator.length,i,this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses).subscribe(l=>{c.close(),(0,S.O6)((0,S.Xn)(this.getConsentsForUsers(l),this.displayedColumns,h.getExportDataForColumn),n)})}getConsentsForUsers(n){const t=[];return this.displayedColumns.includes("consentStatus")?(n.forEach(i=>{const a=i;a.consent=this.translate.instant("CONSENTS.STATUS_"+this.consentPipe.transform(i.id,this.consents)),t.push(a)}),t):n}}return h.\u0275fac=function(n){return new(n||h)(e.Y36(M.x4),e.Y36(f.WY),e.Y36(M.UA),e.Y36(T.dB),e.Y36(M.ly),e.Y36(H.uw),e.Y36(F.m2),e.Y36(P.sK))},h.\u0275cmp=e.Xpm({type:h,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(n,t){if(1&n&&(e.Gf(S.l9,7),e.Gf(m.YE,5)),2&n){let i;e.iGM(i=e.CRH())&&(t.child=i.first),e.iGM(i=e.CRH())&&(t.sort=i.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",attrNames:"attrNames",withoutVo:"withoutVo",updateTable:"updateTable",facilityId:"facilityId",voId:"voId",resourceId:"resourceId",serviceId:"serviceId",onlyAllowed:"onlyAllowed",consentStatuses:"consentStatuses"},outputs:{loading$:"loading$"},features:[e._Bn([F.m2]),e.TTD],decls:29,vars:14,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","consentStatus"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"matTooltip","svgIcon",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"matTooltip","svgIcon"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(n,t){1&n&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(a){return t.exportDisplayedData(a)})("exportAllData",function(a){return t.exportAllData(a)}),e.TgZ(2,"table",2),e.YNc(3,X,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ce,1,0,"th",5),e.YNc(7,Pe,3,2,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,tt,3,3,"th",8),e.YNc(10,Ce,2,1,"td",6),e.BQk(),e.ynx(11,9),e.YNc(12,at,3,3,"th",8),e.YNc(13,Ue,4,6,"td",10),e.BQk(),e.ynx(14,11),e.YNc(15,pt,3,3,"th",5),e.YNc(16,z,3,3,"td",10),e.BQk(),e.ynx(17,12),e.YNc(18,st,3,3,"th",5),e.YNc(19,be,3,3,"td",10),e.BQk(),e.ynx(20,13),e.YNc(21,Ye,3,3,"th",5),e.YNc(22,he,3,3,"td",10),e.BQk(),e.ynx(23,14),e.YNc(24,Re,3,3,"th",5),e.YNc(25,He,3,4,"td",10),e.BQk(),e.YNc(26,ve,1,0,"tr",15),e.YNc(27,r,1,8,"tr",16),e.qZA()()(),e.YNc(28,u,3,4,"perun-web-apps-alert",17)),2&n&&(e.Q6J("hidden",0===t.dataSource.allObjectCount),e.xp6(1),e.Q6J("tableId",t.tableId)("dataLength",t.dataSource.allObjectCount)("pageSizeOptions",t.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",t.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(12,_,e.xi3(4,9,t.dataSource,t.selection.selected.length))),e.xp6(23),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===t.dataSource.allObjectCount))},dependencies:[J.O5,fe.oG,j.BZ,j.fO,j.as,j.w1,j.Dz,j.nj,j.ge,j.ev,j.XQ,j.Gk,$.rH,m.YE,m.nU,_e.w,ge.Hw,pe.gM,re.l,v.Y,W.N,V.Q,J.i8,P.X$,te.d,ne.S,ye.g,ze.Z,ke.I,$e.G,Je.r,Fe.m],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),h})()},62707:(Qe,ae,p)=>{"use strict";p.d(ae,{M:()=>m});var e=p(94650),f=p(9244),A=p(89593),S=p(89383);let m=(()=>{class M{constructor(){this.disableAutoSelect=!1,this.voSelected=new e.vpe,this.nameFunction=x=>x.name,this.shortNameFunction=x=>x.shortName,this.searchFunction=x=>x.name+x.shortName+String(x.id)}ngOnChanges(){this.vos.sort(f.aC),!this.vo&&!this.disableAutoSelect&&(this.vo=this.vos[0])}}return M.\u0275fac=function(x){return new(x||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos",disableAutoSelect:"disableAutoSelect"},outputs:{voSelected:"voSelected"},features:[e.TTD],decls:4,vars:15,consts:[[3,"entity","entities","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(x,I){1&x&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(T){return I.voSelected.emit(T)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&x&&e.Q6J("entity",I.vo)("entities",I.vos)("disableAutoSelect",I.disableAutoSelect)("searchFunction",I.searchFunction)("mainTextFunction",I.nameFunction)("secondaryTextFunction",I.shortNameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},dependencies:[A.i,S.X$]}),M})()},87831:(Qe,ae,p)=>{"use strict";p.d(ae,{Z:()=>Me});var e=p(96308),f=p(30671),A=p(9244),S=p(80279),m=p(94650),M=p(36895),w=p(56709),x=p(82761),I=p(98380),F=p(97392),T=p(18750),H=p(34198),P=p(55660),J=p(10441),fe=p(6967),j=p(89383),$=p(8231);function _e(ue,Pe){1&ue&&m._UZ(0,"th",21)}const ge=function(ue){return{name:ue}};function pe(ue,Pe){if(1&ue){const tt=m.EpF();m.TgZ(0,"td",22)(1,"mat-checkbox",23),m.NdJ("change",function(at){const pt=m.CHM(tt).$implicit,z=m.oxw();return m.KtG(at?z.selection.toggle(pt):null)})("click",function(at){return at.stopPropagation()}),m.ALo(2,"translate"),m.ALo(3,"checkboxLabel"),m.qZA()()}if(2&ue){const tt=Pe.$implicit,Ce=m.oxw();let at;m.xp6(1),m.Q6J("aria-label",m.xi3(2,2,m.lcZ(3,5,Ce.selection.isSelected(tt)),m.VKq(7,ge,null!==(at=tt.name)&&void 0!==at?at:tt.vo.name)))("checked",Ce.selection.isSelected(tt))}}function re(ue,Pe){1&ue&&(m.TgZ(0,"th",24),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&ue&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function v(ue,Pe){if(1&ue&&(m.TgZ(0,"td",25),m._uU(1),m.qZA()),2&ue){const tt=Pe.$implicit;let Ce;m.xp6(1),m.Oqu(null!==(Ce=tt.id)&&void 0!==Ce?Ce:tt.vo.id)}}function V(ue,Pe){1&ue&&m._UZ(0,"th",26)}function W(ue,Pe){if(1&ue&&(m.TgZ(0,"td",27),m._UZ(1,"perun-web-apps-recently-viewed-icon",28),m.qZA()),2&ue){const tt=Pe.$implicit,Ce=m.oxw();let at;m.xp6(1),m.Q6J("recentIds",Ce.recentIds)("id",null!==(at=tt.id)&&void 0!==at?at:tt.vo.id)}}function te(ue,Pe){1&ue&&m._UZ(0,"th",26)}function ne(ue,Pe){1&ue&&m._UZ(0,"mat-icon",30),2&ue&&m.Q6J("svgIcon","perun-hierarchical-vo")}function ye(ue,Pe){if(1&ue&&(m.TgZ(0,"td",27),m.YNc(1,ne,1,1,"mat-icon",29),m.qZA()),2&ue){const tt=Pe.$implicit;m.xp6(1),m.Q6J("ngIf",0!==(null==tt||null==tt.memberVos?null:tt.memberVos.length))}}function ze(ue,Pe){1&ue&&(m.TgZ(0,"th",24),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&ue&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function ke(ue,Pe){if(1&ue&&(m.TgZ(0,"td",27),m._uU(1),m.qZA()),2&ue){const tt=Pe.$implicit;let Ce,at;m.uIk("data-cy",null!==(Ce=tt.shortName)&&void 0!==Ce?Ce:tt.vo.shortName),m.xp6(1),m.hij(" ",null!==(at=tt.shortName)&&void 0!==at?at:tt.vo.shortName," ")}}function $e(ue,Pe){1&ue&&(m.TgZ(0,"th",24),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&ue&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function Je(ue,Pe){if(1&ue&&(m.TgZ(0,"td",27),m._uU(1),m.qZA()),2&ue){const tt=Pe.$implicit;let Ce;m.xp6(1),m.Oqu(null!==(Ce=tt.name)&&void 0!==Ce?Ce:tt.vo.name)}}function Fe(ue,Pe){1&ue&&(m.TgZ(0,"th",26),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&ue&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.AUTHZ_GROUP")," "))}function Ve(ue,Pe){if(1&ue){const tt=m.EpF();m.TgZ(0,"td",31),m.NdJ("mouseenter",function(){m.CHM(tt);const at=m.oxw();return m.KtG(at.disabledRouting=!0)})("mouseleave",function(){m.CHM(tt);const at=m.oxw();return m.KtG(at.disabledRouting=at.disableRouting)}),m._UZ(1,"perun-web-apps-authorized-groups-cell",32),m.qZA()}if(2&ue){const tt=Pe.$implicit,Ce=m.oxw();m.xp6(1),m.Q6J("groups",Ce.voWithAuthzGroupPairs.get(tt.id))("disableRouting",Ce.disableRouting)("authzVoNames",Ce.authzVoNames)}}function le(ue,Pe){1&ue&&m._UZ(0,"tr",33)}const N=function(ue){return["/organizations",ue]};function U(ue,Pe){if(1&ue&&m._UZ(0,"tr",34),2&ue){const tt=Pe.$implicit,Ce=m.oxw();let at,Ue;m.ekj("disable-outline",Ce.disableRouting)("cursor-pointer",!Ce.disableRouting),m.Q6J("perunWebAppsMiddleClickRouterLink",Ce.disableRouting||Ce.disabledRouting?null:m.VKq(6,N,null!==(at=tt.id)&&void 0!==at?at:tt.vo.id))("routerLink",Ce.disableRouting||Ce.disabledRouting?null:m.VKq(8,N,null!==(Ue=tt.id)&&void 0!==Ue?Ue:tt.vo.id))}}function X(ue,Pe){1&ue&&(m.TgZ(0,"perun-web-apps-alert",35),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&ue&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ce(ue,Pe){1&ue&&(m.TgZ(0,"perun-web-apps-alert",36),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&ue&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let Me=(()=>{class ue{constructor(tt){this.authResolver=tt,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=A.f7,this.disabledRouting=!1,this.getDataForColumnFun=(Ce,at)=>ue.getDataForColumn(Ce,at,this.recentIds)}set matSort(tt){this.sort=tt}static getDataForColumn(tt,Ce,at){switch(ue.isEnrichedVo(tt)&&(tt=tt.vo),Ce){case"id":return tt.id.toString();case"shortName":return tt.shortName;case"name":return tt.name;case"recent":return at&&at.includes(tt.id)?"#".repeat(at.indexOf(tt.id)):tt.name;default:return tt[Ce]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(tt=>"id"!==tt)),this.setDataSource()}exportAllData(tt){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),tt)}exportDisplayedData(tt){const Ce=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,at=Ce+this.dataSource.paginator.pageSize;(0,A.O6)((0,A.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ce,at),this.displayedColumns,this.getDataForColumnFun),tt)}setDataSource(){this.dataSource||(this.dataSource=new f.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(tt,Ce)=>(0,A.Sd)(tt,Ce,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(tt,Ce)=>(0,A.pR)(tt,Ce,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}}return ue.isEnrichedVo=Pe=>void 0!==Pe.vo,ue.\u0275fac=function(tt){return new(tt||ue)(m.Y36(S.x4))},ue.\u0275cmp=m.Xpm({type:ue,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(tt,Ce){if(1&tt&&(m.Gf(A.l9,7),m.Gf(e.YE,7)),2&tt){let at;m.iGM(at=m.CRH())&&(Ce.child=at.first),m.iGM(at=m.CRH())&&(Ce.matSort=at.first)}},inputs:{vos:"vos",voWithAuthzGroupPairs:"voWithAuthzGroupPairs",authzVoNames:"authzVoNames",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[m.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","hierarchy"],["matColumnDef","shortName"],["matColumnDef","name"],["matColumnDef","authzGroup"],["mat-cell","","style","cursor: default",3,"mouseenter","mouseleave",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn","data-cy","no-filter-result",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],[3,"svgIcon",4,"ngIf"],[3,"svgIcon"],["mat-cell","",2,"cursor","default",3,"mouseenter","mouseleave"],[3,"groups","disableRouting","authzVoNames"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(tt,Ce){1&tt&&(m.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),m.NdJ("exportDisplayedData",function(Ue){return Ce.exportDisplayedData(Ue)})("exportAllData",function(Ue){return Ce.exportAllData(Ue)}),m.TgZ(2,"table",2),m.ynx(3,3),m.YNc(4,_e,1,0,"th",4),m.YNc(5,pe,4,9,"td",5),m.BQk(),m.ynx(6,6),m.YNc(7,re,3,3,"th",7),m.YNc(8,v,2,1,"td",8),m.BQk(),m.ynx(9,9),m.YNc(10,V,1,0,"th",10),m.YNc(11,W,2,2,"td",11),m.BQk(),m.ynx(12,12),m.YNc(13,te,1,0,"th",10),m.YNc(14,ye,2,1,"td",11),m.BQk(),m.ynx(15,13),m.YNc(16,ze,3,3,"th",7),m.YNc(17,ke,2,2,"td",11),m.BQk(),m.ynx(18,14),m.YNc(19,$e,3,3,"th",7),m.YNc(20,Je,2,1,"td",11),m.BQk(),m.ynx(21,15),m.YNc(22,Fe,3,3,"th",10),m.YNc(23,Ve,2,3,"td",16),m.BQk(),m.YNc(24,le,1,0,"tr",17),m.YNc(25,U,1,10,"tr",18),m.qZA()()(),m.YNc(26,X,3,3,"perun-web-apps-alert",19),m.YNc(27,ce,3,3,"perun-web-apps-alert",20)),2&tt&&(m.Q6J("hidden",0===Ce.dataSource.filteredData.length||0===Ce.vos.length),m.xp6(1),m.Q6J("dataLength",Ce.dataSource.filteredData.length)("tableId",Ce.tableId)("pageSizeOptions",Ce.pageSizeOptions),m.xp6(1),m.Q6J("dataSource",Ce.dataSource),m.xp6(22),m.Q6J("matHeaderRowDef",Ce.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",Ce.displayedColumns),m.xp6(1),m.Q6J("ngIf",0===Ce.dataSource.filteredData.length&&0!==Ce.vos.length),m.xp6(1),m.Q6J("ngIf",0===Ce.vos.length))},dependencies:[M.O5,w.oG,f.BZ,f.fO,f.as,f.w1,f.Dz,f.nj,f.ge,f.ev,f.XQ,f.Gk,x.rH,e.YE,e.nU,I.w,F.Hw,T.l,H.Y,J.W,P.Q,fe.e,j.X$,$.G],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),ue})()},21029:(Qe,ae,p)=>{"use strict";p.d(ae,{FJ:()=>lt,GI:()=>ar,Wr:()=>Ee,r2:()=>_t,gr:()=>Te,u3:()=>ci,Qu:()=>mn,pf:()=>X,xF:()=>on,hd:()=>Cr,kZ:()=>Qn,wA:()=>ht,rd:()=>st,Eg:()=>z,QQ:()=>Gn,Bp:()=>r,qD:()=>Ai,jd:()=>di,FM:()=>n,jD:()=>V,eK:()=>Dr,Lc:()=>E,h4:()=>St,Us:()=>Pa,iI:()=>zn,mk:()=>B,Ts:()=>Se});var e=p(36895),f=p(89383),A=p(30671),S=p(7274),m=p(4859),M=p(59549),w=p(24006),x=p(284),I=p(51572),F=p(71948),T=p(99602),H=p(64425),P=p(97392),J=p(19516),fe=p(63189),j=p(46860),$=p(82761),_e=p(35423),ge=p(84385),pe=p(28499),re=p(60900),v=p(94650);let V=(()=>{class ct{}return ct.\u0275fac=function(Ge){return new(Ge||ct)},ct.\u0275mod=v.oAB({type:ct}),ct.\u0275inj=v.cJS({imports:[e.ez,f.aw,A.p0,S.Is,m.ot,M.lN,w.u5,x.c,I.Cq,F.Fk,T.FA,w.UX,H.Iq,P.Ps,J.d4,fe.r,j.A,$.Bz,_e.dp,ge.LD,pe.E3,re.C]}),ct})();var W=p(61744),te=p(80279),ne=p(97403),ye=p(73358),ze=p(3238),ke=p(75162),$e=p(20551);function Je(ct,Yt){1&ct&&v._UZ(0,"perun-web-apps-loading-dialog")}function Fe(ct,Yt){if(1&ct&&(v.TgZ(0,"mat-option",18),v._uU(1),v.ALo(2,"memberStatus"),v.qZA()),2&ct){const Ge=Yt.$implicit;v.Q6J("value",Ge),v.xp6(1),v.hij(" ",v.lcZ(2,2,Ge)," ")}}function Ve(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"mat-select",16),v.NdJ("selectionChange",function(zt){v.CHM(Ge);const _i=v.oxw(2);return v.KtG(_i.changeStatus(zt))}),v.YNc(1,Fe,3,4,"mat-option",17),v.qZA()}if(2&ct){const Ge=v.oxw(2);v.xp6(1),v.Q6J("ngForOf",Ge.statuses)}}function le(ct,Yt){if(1&ct&&(v._UZ(0,"input",5),v.ALo(1,"memberStatus")),2&ct){const Ge=v.oxw(2);v.Q6J("readonly",!0)("value",v.lcZ(1,2,Ge.statuses[0]))}}function N(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"perun-web-apps-expiration-select",19),v.NdJ("datePicker",function(zt){v.CHM(Ge);const _i=v.oxw(2);return v.KtG(_i.setExpiration(zt))}),v.qZA()}if(2&ct){const Ge=v.oxw(2);v.Q6J("allowNever","VALID"===Ge.newStatus)("expiration",Ge.expiration)("maxDate",Ge.maxDate)("minDate",Ge.minDate)}}function U(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"div")(1,"h1",2),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),v._uU(7),v.ALo(8,"translate"),v.qZA(),v._UZ(9,"input",5),v.ALo(10,"memberStatus"),v.qZA(),v.TgZ(11,"div",6),v._uU(12),v.qZA(),v.TgZ(13,"mat-form-field",7)(14,"mat-label"),v._uU(15),v.ALo(16,"translate"),v.qZA(),v.YNc(17,Ve,2,1,"mat-select",8),v.YNc(18,le,2,4,"input",9),v.qZA(),v.TgZ(19,"div",10),v._UZ(20,"i",11),v.qZA(),v.YNc(21,N,1,4,"perun-web-apps-expiration-select",12),v.qZA(),v.TgZ(22,"div",13)(23,"button",14),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.cancel())}),v._uU(24),v.ALo(25,"translate"),v.qZA(),v.TgZ(26,"button",15),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.submit())}),v._uU(27),v.ALo(28,"translate"),v.qZA()()()}if(2&ct){const Ge=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,13,"DIALOGS.CHANGE_STATUS.TITLE")),v.xp6(5),v.Oqu(v.lcZ(8,15,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")),v.xp6(2),v.Q6J("readonly",!0)("value",v.lcZ(10,17,Ge.currentStatus)),v.xp6(3),v.Oqu(Ge.currentStatusDescription),v.xp6(3),v.Oqu(v.lcZ(16,19,"DIALOGS.CHANGE_STATUS.NEW_STATUS")),v.xp6(2),v.Q6J("ngIf",Ge.statuses.length>1),v.xp6(1),v.Q6J("ngIf",1===Ge.statuses.length),v.xp6(2),v.Q6J("innerHTML",Ge.changeDescription,v.oJD),v.xp6(1),v.Q6J("ngIf",Ge.expirationRequired),v.xp6(3),v.hij(" ",v.lcZ(25,21,"DIALOGS.CHANGE_STATUS.CANCEL")," "),v.xp6(2),v.Q6J("disabled",Ge.loading||!Ge.newStatus||Ge.expirationRequired&&!Ge.expiration),v.xp6(1),v.hij(" ",v.lcZ(28,23,"DIALOGS.CHANGE_STATUS.CHANGE_STATUS")," ")}}let X=(()=>{class ct{constructor(Ge,Rt,zt,_i,Ti,rn,tn){this.dialogRef=Ge,this.data=Rt,this.memberManager=zt,this.groupsManager=_i,this.attributeService=Ti,this.notificatorService=rn,this.translate=tn,this.loading=!1,this.statuses=["VALID","INVALID","EXPIRED","DISABLED"],this.maxDate=new Date,this.minDate=new Date,this.descriptionTranslations=new Map([["VALID","DIALOGS.CHANGE_STATUS.VALID_DESCRIPTION"],["INVALID","DIALOGS.CHANGE_STATUS.INVALID_DESCRIPTION"],["EXPIRED","DIALOGS.CHANGE_STATUS.EXPIRED_DESCRIPTION"],["DISABLED","DIALOGS.CHANGE_STATUS.DISABLED_DESCRIPTION"],["VALIDINVALID","DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_INVALID"],["VALIDEXPIRED","DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_EXPIRED"],["VALIDDISABLED","DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_DISABLED"],["NOVALIDVALID","DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_VALID"],["NOVALIDINVALID","DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_INVALID"],["NOVALIDEXPIRED","DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_EXPIRED"],["NOVALIDDISABLED","DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_DISABLED"]])}ngOnInit(){this.data.groupId?(this.theme="group-theme",this.currentStatus=this.data.member.groupStatus,this.statuses=["VALID","EXPIRED"]):(this.theme="vo-theme",this.currentStatus=this.data.member.status,"INVALID"===this.currentStatus&&(this.statuses=["VALID","EXPIRED"])),this.statuses=this.statuses.filter(Ge=>Ge!==this.currentStatus),1===this.statuses.length&&(this.newStatus=this.statuses[0],this.changeStatusMessage()),this.resetExpiration(),this.setDateBounds(),this.currentStatusDescription=this.translate.instant(this.descriptionTranslations.get(this.currentStatus))}changeStatus(Ge){this.newStatus=Ge.value,this.setDateBounds(),this.resetExpiration(),this.changeStatusMessage()}setExpiration(Ge){this.expiration="never"===Ge?"never":(0,e.p6)(Ge,"yyyy-MM-dd","en-GB")}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.expirationAttr.value="never"===this.expiration?null:this.expiration,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.newStatus).subscribe({next:Ge=>{this.attributeService.setMemberGroupAttributes({member:this.data.member.id,group:this.data.groupId,attributes:[this.data.expirationAttr]}).subscribe({next:()=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Rt=>{this.notificatorService.showSuccess(Rt),this.dialogRef.close(Ge)})},error:()=>this.loading=!1})},error:()=>this.loading=!1}):this.memberManager.setStatus(this.data.member.id,this.newStatus).subscribe({next:Ge=>{this.attributeService.setMemberAttributes({member:this.data.member.id,attributes:[this.data.expirationAttr]}).subscribe({next:()=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Rt=>{this.notificatorService.showSuccess(Rt),this.dialogRef.close(Ge)})},error:()=>this.loading=!1})},error:()=>this.loading=!1})}changeStatusMessage(){let Ge=this.currentStatus;"VALID"!==this.currentStatus&&(Ge="NOVALID"),this.changeDescription=this.translate.instant(this.descriptionTranslations.get(Ge+this.newStatus))}setDateBounds(){"VALID"===this.newStatus?(this.minDate=new Date,this.maxDate=null):"EXPIRED"===this.newStatus&&(this.minDate=null,this.maxDate=new Date)}resetExpiration(){this.expirationRequired="VALID"===this.newStatus||"EXPIRED"===this.newStatus,this.expiration="EXPIRED"===this.newStatus?(0,e.p6)(new Date,"yyyy-MM-dd","en-GB"):"never"}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.uq),v.Y36(W.ff),v.Y36(W.H8),v.Y36(te.V6),v.Y36(te.Te))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-change-member-status-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","",3,"readonly","value"],[1,"text-muted"],[1,"w-100","mt-2"],[3,"selectionChange",4,"ngIf"],["matInput","",3,"readonly","value",4,"ngIf"],[1,"text-muted","new-line","mb-3"],[3,"innerHTML"],[3,"allowNever","expiration","maxDate","minDate","datePicker",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto","me-2",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],[3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[3,"allowNever","expiration","maxDate","minDate","datePicker"]],template:function(Ge,Rt){if(1&Ge&&(v.YNc(0,Je,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div"),v.YNc(3,U,29,25,"div",1),v.qZA()),2&Ge){const zt=v.MAs(1);v.xp6(2),v.Gre("",Rt.theme," position-relative"),v.xp6(1),v.Q6J("perunWebAppsLoader",Rt.loading)("perunWebAppsLoaderIndicator",zt)}},dependencies:[e.sg,e.O5,S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,x.Nt,ne.b,ye.e,ge.gD,ze.ey,ke.c,f.X$,$e.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),ct})();var ce=p(39349);function Me(ct,Yt){1&ct&&v._UZ(0,"perun-web-apps-loading-dialog")}function ue(ct,Yt){1&ct&&(v.TgZ(0,"h1",10),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function Pe(ct,Yt){1&ct&&(v.TgZ(0,"h1",10),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function tt(ct,Yt){1&ct&&(v.TgZ(0,"h1",10),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function Ce(ct,Yt){1&ct&&(v.TgZ(0,"h1",10),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function at(ct,Yt){if(1&ct&&(v.TgZ(0,"mat-form-field")(1,"mat-label"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v._UZ(4,"input",11),v.qZA()),2&ct){const Ge=v.oxw(2);v.xp6(2),v.hij("",v.lcZ(3,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),v.xp6(2),v.Q6J("value",Ge.shortName)}}function Ue(ct,Yt){if(1&ct&&(v.TgZ(0,"mat-form-field",12)(1,"mat-label"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v._UZ(4,"textarea",13),v.qZA()),2&ct){const Ge=v.oxw(2);v.xp6(2),v.hij(" ",v.lcZ(3,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),": "),v.xp6(2),v.Q6J("formControl",Ge.descriptionCtrl)}}function pt(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"div"),v.YNc(1,ue,3,3,"h1",2),v.YNc(2,Pe,3,3,"h1",2),v.YNc(3,tt,3,3,"h1",2),v.YNc(4,Ce,3,3,"h1",2),v.TgZ(5,"div",3),v.YNc(6,at,5,4,"mat-form-field",4),v.TgZ(7,"mat-form-field")(8,"mat-label"),v._uU(9),v.ALo(10,"translate"),v.qZA(),v._UZ(11,"input",5),v.TgZ(12,"mat-error"),v._uU(13),v.ALo(14,"translate"),v.qZA()(),v.YNc(15,Ue,5,4,"mat-form-field",6),v.qZA(),v.TgZ(16,"div",7)(17,"button",8),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.cancel())}),v._uU(18),v.ALo(19,"translate"),v.qZA(),v.TgZ(20,"button",9),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.submit())}),v._uU(21),v.ALo(22,"translate"),v.qZA()()()}if(2&ct){const Ge=v.oxw();v.xp6(1),v.Q6J("ngIf",0===Ge.dialogType),v.xp6(1),v.Q6J("ngIf",1===Ge.dialogType),v.xp6(1),v.Q6J("ngIf",2===Ge.dialogType),v.xp6(1),v.Q6J("ngIf",3===Ge.dialogType),v.xp6(2),v.Q6J("ngIf",2===Ge.dialogType),v.xp6(3),v.hij("",v.lcZ(10,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),v.xp6(2),v.Q6J("formControl",Ge.nameCtrl),v.xp6(2),v.hij(" ",Ge.invalidNameMessage.length?Ge.invalidNameMessage:v.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),v.xp6(2),v.Q6J("ngIf",2!==Ge.dialogType),v.xp6(3),v.hij(" ",v.lcZ(19,16,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),v.xp6(2),v.Q6J("disabled",Ge.loading||Ge.nameCtrl.invalid||Ge.descriptionCtrl.invalid),v.xp6(1),v.hij(" ",v.lcZ(22,18,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," ")}}var z=(()=>{return(ct=z||(z={}))[ct.FACILITY=0]="FACILITY",ct[ct.RESOURCE=1]="RESOURCE",ct[ct.VO=2]="VO",ct[ct.GROUP=3]="GROUP",z;var ct})();let st=(()=>{class ct{constructor(Ge,Rt,zt,_i,Ti,rn,tn,En,or){this.dialogRef=Ge,this.data=Rt,this.notificator=zt,this.translateService=_i,this.facilitiesManager=Ti,this.resourcesManager=rn,this.groupsManager=tn,this.vosManager=En,this.store=or,this.invalidNameMessage=this.data.dialogType===z.GROUP?this.store.getProperty("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===z.GROUP?this.store.getProperty("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case z.FACILITY:this.nameCtrl=new w.p4(this.data.facility.name,[w.kI.required,w.kI.pattern(".*[\\S]+.*"),w.kI.maxLength(129)]),this.descriptionCtrl=new w.p4(this.data.facility.description);break;case z.RESOURCE:this.nameCtrl=new w.p4(this.data.resource.name,[w.kI.required,w.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new w.p4(this.data.resource.description);break;case z.GROUP:{const Ge=this.data.group.name.split(":");this.nameCtrl=new w.p4(Ge[Ge.length-1],[w.kI.required,w.kI.pattern(".*[\\S]+.*"),w.kI.pattern(this.secondaryRegex),w.kI.maxLength(129)]),this.descriptionCtrl=new w.p4(this.data.group.description);break}case z.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new w.p4(this.data.vo.name,[w.kI.required,w.kI.pattern(".*[\\S]+.*"),w.kI.maxLength(129)]),this.descriptionCtrl=new w.p4}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case z.FACILITY:this.editFacility();break;case z.RESOURCE:this.editResource();break;case z.GROUP:this.editGroup();break;case z.VO:this.editVo()}}editResource(){this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe(Ge=>{this.notificator.showSuccess(Ge),this.dialogRef.close(!0)})},()=>this.loading=!1)}editFacility(){this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe(Ge=>{this.notificator.showSuccess(Ge),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(Ge=>{const Rt=Ge;Rt.name=this.nameCtrl.value,Rt.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:Rt}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(zt=>{this.notificator.showSuccess(zt),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}editVo(){this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe(Ge=>{this.notificator.showSuccess(Ge),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(te.V6),v.Y36(f.sK),v.Y36(W.IQ),v.Y36(W.xk),v.Y36(W.ff),v.Y36(W.YF),v.Y36(te.d6))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-edit-facility-resource-group-vo-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title","",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],["mat-dialog-title",""],["disabled","","matInput","","required","",3,"value"],[1,"mt-3"],["cdkTextareaAutosize","","matInput","",1,"overflow-hidden",3,"formControl"]],template:function(Ge,Rt){if(1&Ge&&(v.YNc(0,Me,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div"),v.YNc(3,pt,23,20,"div",1),v.qZA()),2&Ge){const zt=v.MAs(1);v.xp6(2),v.Gre("",Rt.theme," position-relative"),v.xp6(1),v.Q6J("perunWebAppsLoader",Rt.loading)("perunWebAppsLoaderIndicator",zt)}},dependencies:[e.O5,S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,M.TO,w.Fj,w.JJ,w.Q7,x.Nt,ce.IC,w.oH,ne.b,ye.e,f.X$]}),ct})();var be=p(64080),Ye=p(9244);function he(ct,Yt){1&ct&&v._UZ(0,"perun-web-apps-loading-dialog")}const Re=function(ct){return{interval:ct}};function He(ct,Yt){if(1&ct&&(v.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),v._uU(3),v.ALo(4,"translate"),v.qZA(),v._UZ(5,"input",9),v.qZA(),v.TgZ(6,"mat-form-field")(7,"mat-label"),v._uU(8),v.ALo(9,"translate"),v.qZA(),v._UZ(10,"input",9),v.ALo(11,"translate"),v.qZA(),v.TgZ(12,"mat-form-field")(13,"mat-label"),v._uU(14),v.ALo(15,"translate"),v.qZA(),v._UZ(16,"input",9),v.qZA(),v.TgZ(17,"mat-form-field")(18,"mat-label"),v._uU(19),v.ALo(20,"translate"),v.qZA(),v._UZ(21,"input",9),v.ALo(22,"translate"),v.qZA(),v.TgZ(23,"mat-form-field")(24,"mat-label"),v._uU(25),v.ALo(26,"translate"),v.qZA(),v._UZ(27,"input",9),v.ALo(28,"translate"),v.qZA()()),2&ct){const Ge=v.oxw(2);v.xp6(3),v.Oqu(v.lcZ(4,10,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")),v.xp6(2),v.Q6J("value",Ge.group.name),v.xp6(3),v.Oqu(v.lcZ(9,12,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")),v.xp6(2),v.Q6J("value",v.lcZ(11,14,Ge.syncType)),v.xp6(4),v.Oqu(v.lcZ(15,16,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")),v.xp6(2),v.Q6J("value",Ge.syncState),v.xp6(3),v.Oqu(v.lcZ(20,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")),v.xp6(2),v.Q6J("value",v.lcZ(22,20,Ge.syncTime)),v.xp6(4),v.Oqu(v.lcZ(26,22,"DIALOGS.GROUP_SYNC_DETAIL.SYNC_INTERVAL")),v.xp6(2),v.Q6J("value",v.xi3(28,24,"DIALOGS.GROUP_SYNC_DETAIL.SYNC_INTERVAL_MINUTES",v.VKq(27,Re,Ge.syncInterval)))}}function ve(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw(2);return v.KtG(zt.onForce())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&ct){const Ge=v.oxw(2);v.Q6J("disabled",Ge.loading),v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}function Oe(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"div")(1,"h1",2),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,He,29,29,"div",3),v.TgZ(5,"div",4)(6,"div",5)(7,"button",6),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.onCancel())}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.YNc(10,ve,3,4,"button",7),v.qZA()()()}if(2&ct){const Ge=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,4,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),v.xp6(2),v.Q6J("ngIf",Ge.group),v.xp6(4),v.hij(" ",v.lcZ(9,6,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "),v.xp6(2),v.Q6J("ngIf","BASIC"===Ge.type||"STRUCTURED"===Ge.type)}}let r=(()=>{class ct{constructor(Ge,Rt,zt,_i){this.dialogRef=Ge,this.data=Rt,this.groupService=zt,this.notificator=_i,this.loading=!0,this.syncInterval="",this.syncState="",this.syncTime="",this.syncType=""}ngOnInit(){this.theme=this.data.theme,this.loadGroup()}onCancel(){this.dialogRef.close(null)}onForce(){this.loading=!0,"BASIC"===this.type?this.groupService.forceGroupSynchronization(this.group.id).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},error:()=>this.loading=!1}):this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},error:()=>this.loading=!1})}refresh(){this.loadGroup()}loadGroup(){this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[be.r.GROUP_SYNC_ENABLED,be.r.GROUP_LAST_SYNC_STATE,be.r.GROUP_LAST_SYNC_TIMESTAMP,be.r.GROUP_STRUCTURE_SYNC_ENABLED,be.r.GROUP_LAST_STRUCTURE_SYNC_STATE,be.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,be.r.GROUP_SYNC_INTERVAL]).subscribe(Ge=>{this.group=Ge;const Rt=(0,Ye.IL)(this.group.attributes,be.r.GROUP_SYNC_ENABLED).value,zt=(0,Ye.IL)(this.group.attributes,be.r.GROUP_LAST_SYNC_STATE).value,_i=(0,Ye.IL)(this.group.attributes,be.r.GROUP_LAST_SYNC_TIMESTAMP).value,Ti=(0,Ye.IL)(this.group.attributes,be.r.GROUP_STRUCTURE_SYNC_ENABLED).value,rn=(0,Ye.IL)(this.group.attributes,be.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,tn=(0,Ye.IL)(this.group.attributes,be.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,En=(0,Ye.IL)(this.group.attributes,be.r.GROUP_SYNC_INTERVAL).value;this.syncInterval=null===En?"N/A":(5*+En).toString(),null!==Rt&&"true"===Rt&&(this.type="BASIC",this.syncType="DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC",this.syncState=""!==zt?zt:"OK",this.syncTime=(0,e.p6)(_i,"YYYY-MM-dd H:mm:ss","en")),null!==Ti&&Ti&&(this.type="STRUCTURED",this.syncType="DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC",this.syncState=""!==rn?rn:"OK",this.syncTime=(0,e.p6)(tn,"YYYY-MM-dd H:mm:ss","en")),this.loading=!1})}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.ff),v.Y36(te.V6))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-group-sync-detail-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ms-auto"],["mat-flat-button","",1,"ms-2",3,"click"],["class","ms-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],["matInput","","readonly","",3,"value"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(Ge,Rt){if(1&Ge&&(v.YNc(0,he,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div"),v.YNc(3,Oe,11,8,"div",1),v.qZA()),2&Ge){const zt=v.MAs(1);v.xp6(2),v.Gre("",Rt.theme," position-relative"),v.xp6(1),v.Q6J("perunWebAppsLoader",Rt.loading)("perunWebAppsLoaderIndicator",zt)}},dependencies:[e.O5,S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,x.Nt,ne.b,ye.e,f.X$]}),ct})();function u(ct,Yt){1&ct&&v._UZ(0,"perun-web-apps-loading-dialog")}function _(ct,Yt){1&ct&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function C(ct,Yt){1&ct&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function h(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"div")(1,"h1",3),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",4)(5,"mat-form-field")(6,"mat-label"),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.TgZ(9,"input",5,6),v.NdJ("ngModelChange",function(zt){v.CHM(Ge);const _i=v.oxw();return v.KtG(_i.subject=zt)}),v.qZA(),v.YNc(11,_,3,3,"mat-error",7),v.qZA(),v.TgZ(12,"mat-form-field")(13,"mat-label"),v._uU(14),v.ALo(15,"translate"),v.qZA(),v.TgZ(16,"textarea",8,9),v.NdJ("ngModelChange",function(zt){v.CHM(Ge);const _i=v.oxw();return v.KtG(_i.message=zt)}),v.ALo(18,"translate"),v._uU(19," "),v.qZA(),v.YNc(20,C,3,3,"mat-error",7),v.qZA()(),v.TgZ(21,"div",10)(22,"div",11)(23,"button",12),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.dialogRef.close())}),v._uU(24),v.ALo(25,"translate"),v.qZA(),v.TgZ(26,"button",13),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.sendBugReport())}),v._uU(27),v.ALo(28,"translate"),v.qZA()()()()}if(2&ct){const Ge=v.MAs(10),Rt=v.MAs(17),zt=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),v.xp6(5),v.Oqu(v.lcZ(8,13,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),v.xp6(2),v.Q6J("ngModel",zt.subject),v.xp6(2),v.Q6J("ngIf",Ge.invalid),v.xp6(3),v.Oqu(v.lcZ(15,15,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),v.xp6(2),v.s9C("placeholder",v.lcZ(18,17,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),v.Q6J("ngModel",zt.message),v.xp6(4),v.Q6J("ngIf",Rt.invalid),v.xp6(4),v.hij(" ",v.lcZ(25,19,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),v.xp6(2),v.Q6J("disabled",""===zt.message||""===zt.subject||zt.loading),v.xp6(1),v.hij(" ",v.lcZ(28,21,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," ")}}let o=(()=>{class ct{constructor(Ge,Rt,zt,_i,Ti,rn){this.dialogRef=Ge,this.translate=Rt,this.notificator=zt,this.rtMessages=_i,this.data=Ti,this.storeService=rn,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(Ge=>{this.dialogRef.afterClosed().subscribe(()=>{const Rt="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),Ge.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(Rt)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const Ge=this.storeService.getProperty("config");let Rt=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(Rt=Rt.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),Rt=Rt.concat(this.data.error.message,"\n","Perun instance: ",Ge,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const zt=/"password":".+?"/;let _i=JSON.stringify(this.data.error.payload);_i=_i.replace(zt,'"password":"####"'),Rt=Rt.concat("Payload:\n"+_i+"\n\n")}return Rt=Rt.concat("Sent from new Perun Gui, version: ",p(4147).i8),Rt.split("\n").join("\n ")}parseMethod(Ge){return Ge&&this.methodRegexp.exec(Ge)[1]}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(f.sK),v.Y36(te.V6),v.Y36(W.Hr),v.Y36(S.WI),v.Y36(te.d6))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-bug-report-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"],["mat-dialog-actions",""],[1,"ms-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(Ge,Rt){if(1&Ge&&(v.YNc(0,u,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div",1),v.YNc(3,h,29,23,"div",2),v.qZA()),2&Ge){const zt=v.MAs(1);v.xp6(3),v.Q6J("perunWebAppsLoader",Rt.loading)("perunWebAppsLoaderIndicator",zt)}},dependencies:[e.O5,S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,M.TO,w.Fj,w.JJ,w.Q7,w.On,x.Nt,ne.b,ye.e,f.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),ct})(),n=(()=>{class ct{constructor(Ge,Rt,zt){this.dialogRef=Ge,this.dialog=Rt,this.data=zt}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const Ge=(0,Ye.kZ)();Ge.width="550px",Ge.data={error:this.data.error},Ge.autoFocus=!1,this.dialog.open(o,Ge)}),this.dialogRef.close()}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.uw),v.Y36(S.WI))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ms-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ms-2",3,"click"]],template:function(Ge,Rt){1&Ge&&(v.TgZ(0,"h1",0),v._uU(1),v.qZA(),v.TgZ(2,"div",1),v._uU(3),v.qZA(),v.TgZ(4,"div",2)(5,"div",3)(6,"button",4),v.NdJ("click",function(){return Rt.onBugReportClick()}),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.TgZ(9,"button",5),v.NdJ("click",function(){return Rt.onCloseClick()}),v._uU(10),v.ALo(11,"translate"),v.qZA()()()),2&Ge&&(v.xp6(1),v.Oqu(Rt.data.title),v.xp6(2),v.hij(" ",Rt.data.description,"\n"),v.xp6(3),v.Q6J("hidden","error"!==Rt.data.type),v.xp6(1),v.hij(" ",v.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),v.xp6(3),v.hij(" ",v.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[S.uh,S.xY,S.H8,m.lW,f.X$]}),ct})();var t=p(34447);function i(ct,Yt){1&ct&&v._UZ(0,"perun-web-apps-loading-dialog")}function a(ct,Yt){1&ct&&v._UZ(0,"th",14)}function c(ct,Yt){if(1&ct&&(v.TgZ(0,"td",15),v._uU(1),v.qZA()),2&ct){const Ge=Yt.$implicit;v.xp6(1),v.hij(" ",Ge.userExtSource.extSource.name," ")}}function l(ct,Yt){1&ct&&v._UZ(0,"tr",16)}function d(ct,Yt){1&ct&&v._UZ(0,"tr",17)}function s(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"div")(1,"h1",2),v._uU(2),v.ALo(3,"translate"),v.ALo(4,"customTranslate"),v.qZA(),v.TgZ(5,"div",3)(6,"p"),v._uU(7),v.ALo(8,"translate"),v.ALo(9,"customTranslate"),v.qZA(),v.TgZ(10,"div",4),v._uU(11),v.ALo(12,"translate"),v.ALo(13,"customTranslate"),v.qZA(),v.TgZ(14,"table",5),v.ynx(15,6),v.YNc(16,a,1,0,"th",7),v.YNc(17,c,2,1,"td",8),v.BQk(),v.YNc(18,l,1,0,"tr",9),v.YNc(19,d,1,0,"tr",10),v.qZA()(),v.TgZ(20,"div",11)(21,"button",12),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.onCancel())}),v._uU(22),v.ALo(23,"translate"),v.ALo(24,"customTranslate"),v.qZA(),v.TgZ(25,"button",13),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.onSubmit())}),v._uU(26),v.ALo(27,"translate"),v.ALo(28,"customTranslate"),v.qZA()()()}if(2&ct){const Ge=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,8,v.lcZ(4,10,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))," "),v.xp6(5),v.hij(" ",v.lcZ(8,12,v.lcZ(9,14,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),v.xp6(4),v.hij(" ",v.lcZ(12,16,v.lcZ(13,18,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),v.xp6(3),v.Q6J("dataSource",Ge.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",Ge.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Ge.displayedColumns),v.xp6(3),v.hij(" ",v.lcZ(23,20,v.lcZ(24,22,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),v.xp6(4),v.hij(" ",v.lcZ(27,24,v.lcZ(28,26,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let E=(()=>{class ct{constructor(Ge,Rt,zt,_i,Ti){this.dialogRef=Ge,this.data=Rt,this.usersManagerService=zt,this.translate=_i,this.notificator=Ti,this.force=!1,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const Ge=this.data.extSources.map(Rt=>Rt.userExtSource.id);this.usersManagerService.removeUserExtSources(this.data.userId,Ge,this.force).subscribe({next:()=>{this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.Fv),v.Y36(te.Te),v.Y36(te.V6))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"fw-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","warn","mat-flat-button","",1,"ms-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Ge,Rt){if(1&Ge&&(v.YNc(0,i,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div"),v.YNc(3,s,29,28,"div",1),v.qZA()),2&Ge){const zt=v.MAs(1);v.xp6(2),v.Gre("",Rt.theme," position-relative"),v.xp6(1),v.Q6J("perunWebAppsLoader",Rt.loading)("perunWebAppsLoaderIndicator",zt)}},dependencies:[A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,S.uh,S.xY,S.H8,m.lW,ne.b,ye.e,f.X$,t.a]}),ct})(),B=(()=>{class ct{constructor(Ge,Rt){this.dialogRef=Ge,this.data=Rt}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"cdkCopyToClipboard"]],template:function(Ge,Rt){1&Ge&&(v.TgZ(0,"h1",0),v._uU(1),v.qZA(),v.TgZ(2,"div",1)(3,"textarea",2),v._uU(4),v.qZA()(),v.TgZ(5,"div",3)(6,"button",4),v.NdJ("click",function(){return Rt.onCancel()}),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.TgZ(9,"button",5),v._uU(10),v.ALo(11,"translate"),v.qZA()()),2&Ge&&(v.xp6(1),v.Oqu(Rt.title),v.xp6(3),v.Oqu(Rt.value),v.xp6(3),v.hij(" ",v.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),v.xp6(2),v.Q6J("cdkCopyToClipboard",Rt.value),v.xp6(1),v.hij(" ",v.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[S.uh,S.xY,S.H8,m.lW,x.Nt,ce.IC,H.i3,f.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),ct})();function q(ct,Yt){1&ct&&v._UZ(0,"th",12)}function qe(ct,Yt){if(1&ct&&(v.TgZ(0,"td",13),v._uU(1),v.qZA()),2&ct){const Ge=Yt.$implicit;v.xp6(1),v.Oqu(Ge.displayName)}}function it(ct,Yt){1&ct&&v._UZ(0,"tr",14)}function xt(ct,Yt){1&ct&&v._UZ(0,"tr",15)}let ht=(()=>{class ct{constructor(Ge,Rt,zt,_i,Ti){this.dialogRef=Ge,this.data=Rt,this.notificator=zt,this.translate=_i,this.attributesManager=Ti,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new A.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){switch(this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"facility":"user"===this.data.secondEntity?this.attributesManager.setFacilityUserAttributes({facility:this.data.entityId,user:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"resource":switch(this.data.secondEntity){case"member":this.attributesManager.setMemberResourceAttributes({resource:this.data.entityId,member:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setResourceGroupAttributes({resource:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess())}}}onSuccess(){this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe(Ge=>{this.notificator.showSuccess(Ge),this.dialogRef.close(!0)})}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(te.V6),v.Y36(f.sK),v.Y36(W.H8))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-edit-attribute-dialog"]],decls:23,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"fw-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","fw-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"fw-bolder"],["mat-row",""]],template:function(Ge,Rt){1&Ge&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"div"),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"div",2),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"table",3),v.ynx(11,4),v.YNc(12,q,1,0,"th",5),v.YNc(13,qe,2,1,"td",6),v.BQk(),v.YNc(14,it,1,0,"tr",7),v.YNc(15,xt,1,0,"tr",8),v.qZA()(),v.TgZ(16,"div",9)(17,"button",10),v.NdJ("click",function(){return Rt.onCancel()}),v._uU(18),v.ALo(19,"translate"),v.qZA(),v.TgZ(20,"button",11),v.NdJ("click",function(){return Rt.onSubmit()}),v._uU(21),v.ALo(22,"translate"),v.qZA()()),2&Ge&&(v.xp6(1),v.Oqu(v.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),v.xp6(4),v.hij(" ",v.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),v.xp6(3),v.hij(" ",v.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),v.xp6(2),v.Q6J("dataSource",Rt.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",Rt.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Rt.displayedColumns),v.xp6(3),v.hij(" ",v.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),v.xp6(3),v.hij(" ",v.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},dependencies:[A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,S.uh,S.xY,S.H8,m.lW,f.X$]}),ct})(),_t=(()=>{class ct{constructor(Ge,Rt){this.dialogRef=Ge,this.data=Rt,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"click"]],template:function(Ge,Rt){1&Ge&&(v.TgZ(0,"h5",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),v._uU(6),v.ALo(7,"translate"),v.qZA(),v.TgZ(8,"textarea",2),v.NdJ("ngModelChange",function(_i){return Rt.attributeValue=_i}),v.qZA()()(),v.TgZ(9,"div",3)(10,"button",4),v.NdJ("click",function(){return Rt.cancel()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.TgZ(13,"button",5),v.NdJ("click",function(){return Rt.submit()}),v._uU(14),v.ALo(15,"translate"),v.qZA()()),2&Ge&&(v.xp6(1),v.hij(" ",v.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),v.xp6(5),v.hij(" ",v.lcZ(7,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.VALUE_LABEL")," "),v.xp6(2),v.Q6J("ngModel",Rt.attributeValue),v.xp6(3),v.hij(" ",v.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),v.xp6(3),v.hij(" ",v.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,w.Fj,w.JJ,w.On,x.Nt,ce.IC,f.X$]}),ct})(),Ee=(()=>{class ct{constructor(Ge,Rt){this.dialogRef=Ge,this.data=Rt}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","fw-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ms-auto",3,"click"],["mat-flat-button","","color","warn",1,"ms-2",3,"click"]],template:function(Ge,Rt){1&Ge&&(v.TgZ(0,"h5",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"div"),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"div",2),v._uU(8),v.qZA()(),v.TgZ(9,"div",3)(10,"button",4),v.NdJ("click",function(){return Rt.cancel()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.TgZ(13,"button",5),v.NdJ("click",function(){return Rt.submit()}),v._uU(14),v.ALo(15,"translate"),v.qZA()()),2&Ge&&(v.xp6(1),v.hij(" ",v.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),v.xp6(4),v.hij(" ",v.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),v.xp6(3),v.hij(" ",Rt.data.name," "),v.xp6(3),v.hij(" ",v.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),v.xp6(3),v.hij(" ",v.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[S.uh,S.xY,S.H8,m.lW,f.X$]}),ct})();var we=p(98380);function de(ct,Yt){if(1&ct&&(v.TgZ(0,"perun-web-apps-alert",9),v._uU(1),v.qZA()),2&ct){const Ge=v.oxw();v.xp6(1),v.Oqu(Ge.pendingEmailsMessage)}}function Ae(ct,Yt){1&ct&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA()),2&ct&&(v.xp6(1),v.Oqu(v.lcZ(2,1,v.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let Te=(()=>{class ct{constructor(Ge,Rt,zt,_i,Ti,rn){this.dialogRef=Ge,this.data=Rt,this.translate=zt,this.notificator=_i,this.usersManagerService=Ti,this.authService=rn,this.pendingMails=[],zt.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(tn=>this.successMessage=tn),zt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(tn=>this.pendingEmailsMessageStart=tn),zt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(tn=>this.pendingEmailsMessageEnd=tn)}ngOnInit(){this.emailControl=new w.p4(null,[w.kI.required,w.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(Ge=>{this.pendingMails=Ge.filter((zt,_i,Ti)=>_i===Ti.indexOf(zt));let Rt="";this.pendingMails.forEach(zt=>Rt+=`${zt===this.pendingMails[0]?"":", "}${zt}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+Rt+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const Rt=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",Rt[0]+"//"+Rt[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(f.sK),v.Y36(te.V6),v.Y36(W.Fv),v.Y36(te.e8))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-change-email-dialog"]],decls:22,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],["alert_type","warn"]],template:function(Ge,Rt){1&Ge&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA(),v.TgZ(4,"div",1),v.YNc(5,de,2,1,"perun-web-apps-alert",2),v.TgZ(6,"mat-form-field",3)(7,"mat-label"),v._uU(8),v.ALo(9,"translate"),v.ALo(10,"customTranslate"),v.qZA(),v._UZ(11,"input",4),v.YNc(12,Ae,4,5,"mat-error",5),v.qZA()(),v.TgZ(13,"div",6)(14,"button",7),v.NdJ("click",function(){return Rt.onCancel()}),v._uU(15),v.ALo(16,"translate"),v.ALo(17,"customTranslate"),v.qZA(),v.TgZ(18,"button",8),v.NdJ("click",function(){return Rt.onSubmit()}),v._uU(19),v.ALo(20,"translate"),v.ALo(21,"customTranslate"),v.qZA()()),2&Ge&&(v.xp6(1),v.Oqu(v.lcZ(2,8,v.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),v.xp6(4),v.Q6J("ngIf",Rt.pendingMails.length),v.xp6(3),v.Oqu(v.lcZ(9,12,v.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),v.xp6(3),v.Q6J("formControl",Rt.emailControl),v.xp6(1),v.Q6J("ngIf",Rt.emailControl.invalid),v.xp6(3),v.hij(" ",v.lcZ(16,16,v.lcZ(17,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),v.xp6(3),v.Q6J("disabled",!Rt.emailControl.valid),v.xp6(1),v.hij(" ",v.lcZ(20,20,v.lcZ(21,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[e.O5,S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,M.TO,w.Fj,w.JJ,w.Q7,x.Nt,w.oH,we.w,f.X$,t.a]}),ct})();function ut(ct,Yt){1&ct&&(v.TgZ(0,"div",9),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function bt(ct,Yt){1&ct&&v._UZ(0,"th",16)}function Ht(ct,Yt){if(1&ct&&(v.TgZ(0,"td",17),v._uU(1),v.qZA()),2&ct){const Ge=Yt.$implicit;v.xp6(1),v.Oqu(Ge)}}function Mt(ct,Yt){1&ct&&v._UZ(0,"tr",18)}function It(ct,Yt){1&ct&&v._UZ(0,"tr",19)}function ai(ct,Yt){if(1&ct&&(v.TgZ(0,"table",10),v.ynx(1,11),v.YNc(2,bt,1,0,"th",12),v.YNc(3,Ht,2,1,"td",13),v.BQk(),v.YNc(4,Mt,1,0,"tr",14),v.YNc(5,It,1,0,"tr",15),v.qZA()),2&ct){const Ge=v.oxw();v.Q6J("dataSource",Ge.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",Ge.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Ge.displayedColumns)}}function pi(ct,Yt){if(1&ct&&(v.TgZ(0,"perun-web-apps-alert",20),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct){const Ge=v.oxw();v.Q6J("alert_type","warn"),v.xp6(1),v.hij(" ",v.lcZ(2,2,Ge.data.alert)," ")}}function Ut(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"button",21),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.onSubmit())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&ct&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," "))}function Tt(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"button",22),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.onSubmit())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&ct&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))}let Se=(()=>{class ct{constructor(Ge,Rt){this.dialogRef=Ge,this.data=Rt,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:17,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","fw-bold",4,"ngIf"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],[3,"alert_type",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["mat-flat-button","","class","ms-2","color","warn",3,"click",4,"ngIf"],["mat-flat-button","","class","ms-2","color","accent",3,"click",4,"ngIf"],[1,"fw-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ms-2",3,"click"],["mat-flat-button","","color","accent",1,"ms-2",3,"click"]],template:function(Ge,Rt){1&Ge&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",1)(5,"p"),v._uU(6),v.ALo(7,"translate"),v.qZA(),v.YNc(8,ut,3,3,"div",2),v.YNc(9,ai,6,3,"table",3),v.YNc(10,pi,3,4,"perun-web-apps-alert",4),v.qZA(),v.TgZ(11,"div",5)(12,"button",6),v.NdJ("click",function(){return Rt.onCancel()}),v._uU(13),v.ALo(14,"translate"),v.qZA(),v.YNc(15,Ut,3,3,"button",7),v.YNc(16,Tt,3,3,"button",8),v.qZA()()),2&Ge&&(v.Tol(Rt.theme),v.xp6(2),v.Oqu(v.lcZ(3,11,Rt.data.title)),v.xp6(4),v.hij(" ",v.lcZ(7,13,Rt.data.description)," "),v.xp6(2),v.Q6J("ngIf",Rt.data.showAsk),v.xp6(1),v.Q6J("ngIf",Rt.data.items.length),v.xp6(1),v.Q6J("ngIf",Rt.data.alert),v.xp6(3),v.hij(" ",v.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),v.xp6(2),v.Q6J("ngIf","remove"===Rt.data.type),v.xp6(1),v.Q6J("ngIf","confirmation"===Rt.data.type))},dependencies:[e.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,S.uh,S.xY,S.H8,m.lW,we.w,f.X$]}),ct})();var We=p(57851);let oe=(()=>{class ct{transform(Ge){const Rt=Ge.split(":");return Rt[Rt.length-1]}}return ct.\u0275fac=function(Ge){return new(Ge||ct)},ct.\u0275pipe=v.Yjl({name:"parseGroupName",type:ct,pure:!0}),ct})();function et(ct,Yt){1&ct&&v._UZ(0,"perun-web-apps-loading-dialog")}function rt(ct,Yt){1&ct&&(v.TgZ(0,"perun-web-apps-alert"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Ft(ct,Yt){1&ct&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function yt(ct,Yt){1&ct&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const Zt=function(ct){return{"min-width":ct}};function li(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"mat-tree-node",16)(1,"li",17)(2,"div",18),v.NdJ("click",function(){const _i=v.CHM(Ge).$implicit,Ti=v.oxw(4);return v.KtG(Ti.navigate(_i.id,_i.include))}),v._UZ(3,"button",19),v.TgZ(4,"div",20)(5,"span"),v._uU(6),v.ALo(7,"parseGroupName"),v.qZA(),v.YNc(8,Ft,3,3,"span",21),v.YNc(9,yt,3,3,"span",21),v.qZA(),v.TgZ(10,"span",22),v._uU(11),v.qZA()()()()}if(2&ct){const Ge=Yt.$implicit,Rt=v.oxw(4);v.xp6(2),v.ekj("cursor-pointer",Ge.direct||Ge.include)("act-disabled",!Ge.direct&&!Ge.include),v.xp6(2),v.Q6J("ngStyle",v.VKq(11,Zt,Rt.getMinWidth(Ge.level))),v.xp6(2),v.Oqu(v.lcZ(7,9,Ge.name)),v.xp6(2),v.Q6J("ngIf",Ge.direct),v.xp6(1),v.Q6J("ngIf",Ge.include),v.xp6(2),v.Oqu(Ge.description)}}function Di(ct,Yt){1&ct&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function At(ct,Yt){1&ct&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Nt(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"mat-nested-tree-node")(1,"li")(2,"div",17)(3,"button",24)(4,"mat-icon",25),v._uU(5),v.qZA()(),v.TgZ(6,"div",18),v.NdJ("click",function(){const _i=v.CHM(Ge).$implicit,Ti=v.oxw(4);return v.KtG(Ti.navigate(_i.id,_i.include))}),v.TgZ(7,"div",20)(8,"span"),v._uU(9),v.ALo(10,"parseGroupName"),v.qZA(),v.YNc(11,Di,3,3,"span",21),v.YNc(12,At,3,3,"span",21),v.qZA(),v.TgZ(13,"span",22),v._uU(14),v.qZA()()(),v.TgZ(15,"ul"),v.GkF(16,26),v.qZA()()()}if(2&ct){const Ge=Yt.$implicit,Rt=v.oxw(4);v.xp6(3),v.uIk("aria-label","Toggle "+Ge.name),v.xp6(2),v.hij(" ",Rt.treeControl.isExpanded(Ge)?"expand_more":"chevron_right"," "),v.xp6(1),v.ekj("cursor-pointer",Ge.direct||Ge.include)("act-disabled",!Ge.direct&&!Ge.include),v.xp6(1),v.Q6J("ngStyle",v.VKq(15,Zt,Rt.getMinWidth(Ge.level))),v.xp6(2),v.Oqu(v.lcZ(10,13,Ge.name)),v.xp6(2),v.Q6J("ngIf",Ge.direct),v.xp6(1),v.Q6J("ngIf",Ge.include),v.xp6(2),v.Oqu(Ge.description),v.xp6(1),v.ekj("example-tree-invisible",!Rt.treeControl.isExpanded(Ge))}}function ft(ct,Yt){if(1&ct&&(v.TgZ(0,"mat-tree",13),v.YNc(1,li,12,13,"mat-tree-node",14),v.YNc(2,Nt,17,17,"mat-nested-tree-node",15),v.qZA()),2&ct){const Ge=v.oxw(3);v.Q6J("dataSource",Ge.dataSource)("treeControl",Ge.treeControl),v.xp6(2),v.Q6J("matTreeNodeDefWhen",Ge.hasChild)}}function Bt(ct,Yt){if(1&ct&&(v.TgZ(0,"div",8)(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"mat-form-field",9)(5,"mat-label"),v._uU(6),v.ALo(7,"translate"),v.qZA(),v._UZ(8,"input",10),v.qZA(),v.YNc(9,rt,3,3,"perun-web-apps-alert",11),v.YNc(10,ft,3,3,"mat-tree",12),v.qZA()),2&ct){const Ge=v.oxw(2);v.xp6(2),v.Oqu(v.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),v.xp6(4),v.hij(" ",v.lcZ(7,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")," "),v.xp6(2),v.Q6J("formControl",Ge.formControl),v.xp6(1),v.Q6J("ngIf",!Ge.dataSource.data.length),v.xp6(1),v.Q6J("ngIf",Ge.dataSource.data.length)}}const Kt=function(ct){return{name:ct}};function ii(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"div")(1,"h1",3),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Bt,11,9,"div",4),v.TgZ(5,"div",5)(6,"div",6)(7,"button",7),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.onCancel())}),v._uU(8),v.ALo(9,"translate"),v.qZA()()()()}if(2&ct){const Ge=v.oxw();v.xp6(2),v.hij(" ",v.xi3(3,3,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",v.VKq(8,Kt,Ge.userName))," "),v.xp6(2),v.Q6J("ngIf",Ge.dataSource),v.xp6(4),v.hij(" ",v.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," ")}}let di=(()=>{class ct{constructor(Ge,Rt,zt){this.dialogRef=Ge,this.data=Rt,this.groupsManagerService=zt,this.treeControl=new We.VY(_i=>_i.children),this.dataSource=new _e.WX,this.formControl=new w.p4(""),this.userName="",this.groupTree=[],this.paths=[],this.hasChild=(_i,Ti)=>!!Ti.children&&Ti.children.length>0}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(Ge=>{this.paths=Ge,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(Ge=>{const Rt=Ge.trim().toLowerCase(),zt=this.paths.filter(_i=>_i.filter(Ti=>Ti.name.includes(Rt)).length);this.createGroupTree(zt),this.dataSource.data=this.groupTree}),this.userName=(0,Ye.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(Ge,Rt=!1){window.open(`/organizations/${this.data.member.voId}/groups/${Ge}${Rt?"/settings/relations":""}`,"_blank")}getMinWidth(Ge){return String(400-40*Ge)+"px"}recursiveSearch(Ge,Rt,zt){for(const Ti of Ge)if(Ti.name===Rt[zt].name)return Rt.length===zt+1?(Ti.direct=!0,Ge):(Ti.children=Rt[++zt].name.includes(Rt[zt-1].name)?this.recursiveSearch(Ti.children,Rt,zt):[{name:Rt[zt].name,id:Rt[zt-1].id,description:Rt[zt].description,direct:!1,include:!0,level:zt,children:[]}].concat(Ti.children),Ge);return Ge.push({name:Rt[zt].name,id:Rt[zt].id,description:Rt[zt].description,direct:!1,include:!1,level:zt,children:[]}),this.recursiveSearch(Ge,Rt,zt)}createGroupTree(Ge){this.groupTree=[],Ge.forEach(Rt=>{this.groupTree=this.recursiveSearch(this.groupTree,Rt,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.ff))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-member-tree-view-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"group-theme","position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","","class","me-0",4,"ngIf"],["mat-dialog-actions",""],[1,"ms-auto"],["mat-flat-button","",3,"click"],["mat-dialog-content","",1,"me-0"],[1,"filter-field","ms-2"],["matInput","",3,"formControl"],[4,"ngIf"],["class","example-tree",3,"dataSource","treeControl",4,"ngIf"],[1,"example-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],[1,"row","flex-nowrap",3,"click"],["mat-icon-button",""],[1,"mt-auto","mb-auto",3,"ngStyle"],["class","text-muted ms-2",4,"ngIf"],[1,"text-muted","ms-3"],[1,"text-muted","ms-2"],["mat-icon-button","","matTreeNodeToggle",""],[1,"me-3"],["matTreeNodeOutlet",""]],template:function(Ge,Rt){if(1&Ge&&(v.YNc(0,et,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div",1),v.YNc(3,ii,10,10,"div",2),v.qZA()),2&Ge){const zt=v.MAs(1);v.xp6(3),v.Q6J("perunWebAppsLoader",Rt.loading)("perunWebAppsLoaderIndicator",zt)}},dependencies:[e.O5,e.PC,S.uh,S.xY,S.H8,m.lW,m.RK,M.KE,M.hX,w.Fj,w.JJ,x.Nt,w.oH,P.Hw,we.w,ne.b,ye.e,_e.GZ,_e.fQ,_e.eu,_e.gi,_e.uo,_e.Ar,f.X$,oe],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.act-disabled[_ngcontent-%COMP%]{pointer-events:none}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),ct})(),Ai=(()=>{class ct{constructor(Ge,Rt){this.dialogRef=Ge,this.router=Rt}onClose(){this.router.navigate([],{queryParamsHandling:"preserve"}),this.dialogRef.close()}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36($.F0))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"]],template:function(Ge,Rt){1&Ge&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),v._uU(5),v.ALo(6,"translate"),v.qZA()(),v.TgZ(7,"div",3)(8,"button",4),v.NdJ("click",function(){return Rt.onClose()}),v._uU(9),v.ALo(10,"translate"),v.qZA()()),2&Ge&&(v.xp6(1),v.hij(" ",v.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),v.xp6(4),v.Oqu(v.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),v.xp6(4),v.hij(" ",v.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[S.uh,S.xY,S.H8,m.lW,we.w,f.X$]}),ct})();var Ri=p(62383);function Dt(ct,Yt){1&ct&&(v.TgZ(0,"mat-radio-button",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function Gt(ct,Yt){1&ct&&(v.TgZ(0,"mat-radio-button",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function Q(ct,Yt){1&ct&&(v.TgZ(0,"perun-web-apps-alert",19),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let Ie=(()=>{class ct{constructor(Ge){this.dialogRef=Ge,this.canExtendMembership=!1,this.expirationChanged=new v.vpe,this.statusChange=new v.vpe,this.expirationControl=new w.p4(null)}ngOnInit(){const Ge=new Date;this.currentDate=(0,e.p6)(new Date(Ge.getFullYear(),Ge.getMonth(),Ge.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate(Ge){return(0,e.p6)(Ge,"yyyy-MM-dd","en_US")}onChange(){"EXPIRED"===this.status&&("never"===this.newExpiration||this.parseDate(this.expirationControl.value)>this.currentDate)&&this.statusChange.emit(!0),this.expirationChanged.emit(this.newExpiration)}onCancel(){this.dialogRef.close({success:!1})}setExpiration(){this.newExpiration=(0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode",status:"status",backButton:"backButton"},outputs:{expirationChanged:"expirationChanged",statusChange:"statusChange"},decls:39,vars:39,consts:[[1,"member-theme"],["mat-dialog-content",""],[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer",3,"click"],["readonly","","matInput","",1,"disable",3,"min","max","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["class","bottom-padding","value","voRules",4,"ngIf"],["class","bottom-padding","value","groupRules",4,"ngIf"],["value","never"],[1,"cursor-pointer"],["alert_type","info",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],["value","voRules",1,"bottom-padding"],["value","groupRules",1,"bottom-padding"],["alert_type","info"]],template:function(Ge,Rt){if(1&Ge){const zt=v.EpF();v.TgZ(0,"div",0)(1,"div",1)(2,"p")(3,"strong"),v._uU(4),v.ALo(5,"translate"),v.qZA(),v._uU(6),v.ALo(7,"parseDate"),v.qZA(),v.TgZ(8,"p")(9,"strong"),v._uU(10),v.ALo(11,"translate"),v.qZA(),v._uU(12),v.ALo(13,"parseDate"),v.qZA(),v.TgZ(14,"mat-radio-group",2),v.NdJ("ngModelChange",function(Ti){return Rt.newExpiration=Ti}),v.TgZ(15,"mat-radio-button",3)(16,"mat-form-field",4),v.NdJ("click",function(){v.CHM(zt);const Ti=v.MAs(23);return v.KtG(Ti.open())}),v.TgZ(17,"mat-label"),v._uU(18),v.ALo(19,"translate"),v.qZA(),v.TgZ(20,"input",5),v.NdJ("dateChange",function(){return Rt.setExpiration()}),v.qZA(),v._UZ(21,"mat-datepicker-toggle",6)(22,"mat-datepicker",7,8),v.qZA()(),v.YNc(24,Dt,3,3,"mat-radio-button",9),v.YNc(25,Gt,3,3,"mat-radio-button",10),v.TgZ(26,"mat-radio-button",11)(27,"span",12),v._uU(28),v.ALo(29,"translate"),v.qZA()()(),v.YNc(30,Q,3,3,"perun-web-apps-alert",13),v.qZA(),v.TgZ(31,"div",14)(32,"button",15),v.NdJ("click",function(){return Rt.onCancel()}),v._uU(33),v.ALo(34,"translate"),v.ALo(35,"translate"),v.qZA(),v.TgZ(36,"button",16),v.NdJ("click",function(){return Rt.onChange()}),v._uU(37),v.ALo(38,"translate"),v.qZA()()()}if(2&Ge){const zt=v.MAs(23);v.xp6(4),v.Oqu(v.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),v.xp6(2),v.hij(" ",v.lcZ(7,23,Rt.currentExpiration)," "),v.xp6(4),v.Oqu(v.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),v.xp6(2),v.hij(" ",Rt.newExpiration?v.lcZ(13,27,Rt.newExpiration):"never"," "),v.xp6(2),v.Q6J("ngModel",Rt.newExpiration),v.xp6(1),v.s9C("value",Rt.expirationControl.value),v.xp6(3),v.Oqu(v.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),v.xp6(2),v.Q6J("min",Rt.minDate)("max",Rt.maxDate)("formControl",Rt.expirationControl)("matDatepicker",zt),v.xp6(1),v.Q6J("for",zt)("disabled",!1),v.xp6(1),v.Q6J("disabled",!1),v.xp6(2),v.Q6J("ngIf",Rt.canExtendMembership&&"vo"===Rt.mode),v.xp6(1),v.Q6J("ngIf",Rt.canExtendMembership&&"group"===Rt.mode),v.xp6(3),v.hij(" ",v.lcZ(29,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),v.xp6(2),v.Q6J("ngIf","EXPIRED"===Rt.status&&("never"===Rt.newExpiration||Rt.parseDate(Rt.expirationControl.value)>Rt.currentDate)),v.xp6(3),v.hij(" ",Rt.backButton?v.lcZ(34,33,"DIALOGS.CHANGE_EXPIRATION.BACK"):v.lcZ(35,35,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),v.xp6(3),v.Q6J("disabled",Rt.expirationControl.invalid),v.xp6(1),v.hij(" ",v.lcZ(38,37,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},dependencies:[e.O5,S.xY,S.H8,m.lW,M.KE,M.hX,M.R9,w.Fj,w.JJ,w.On,x.Nt,F.VQ,F.U0,T.Mq,T.hl,T.nW,w.oH,we.w,f.X$,Ri.M],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bottom-padding[_ngcontent-%COMP%]{padding-bottom:20px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),ct})();function gt(ct,Yt){1&ct&&v._UZ(0,"perun-web-apps-loading-dialog")}function Pt(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"div")(1,"h1",3),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-change-expiration-dialog",4),v.NdJ("statusChange",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.changeStatus=!0)})("expirationChanged",function(zt){v.CHM(Ge);const _i=v.oxw();return v.KtG(_i.onExpirationChanged(zt))}),v.qZA()()}if(2&ct){const Ge=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("minDate",Ge.minDate)("maxDate",Ge.maxDate)("currentExpiration",Ge.currentExpiration)("newExpiration",Ge.newExpiration)("canExtendMembership",Ge.canExtendMembership)("mode","group")("status",Ge.status)("backButton",Ge.backButton)}}let ci=(()=>{class ct{constructor(Ge,Rt,zt,_i,Ti,rn,tn){this.dialogRef=Ge,this.data=Rt,this.attributesManagerService=zt,this.memberManager=_i,this.groupManager=Ti,this.translate=rn,this.notificator=tn,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,rn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(En=>this.successMessage=En)}ngOnInit(){this.status=this.data.status,this.backButton=this.data.backButton,this.loading=!0;const Ge=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(Ge.getFullYear(),Ge.getMonth(),Ge.getDate()):this.minDate=new Date(Ge.getFullYear(),Ge.getMonth(),Ge.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,be.r.GROUP_DEF_EXPIRATION_RULES).subscribe({next:Rt=>{null!==Rt.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe({next:zt=>{this.canExtendMembership=!!zt,this.loading=!1},error:()=>this.loading=!1}):this.loading=!1},error:()=>this.loading=!1}):this.loading=!1}onExpirationChanged(Ge){this.loading=!0,"groupRules"===Ge?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},error:()=>this.loading=!1}):(this.expirationAttr.value="never"===Ge?null:Ge,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe({next:()=>{this.changeStatus&&"EXPIRED"===this.status?this.groupManager.setGroupsMemberStatus(this.data.memberId,this.data.groupId,"VALID").subscribe({next:Rt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(zt=>{this.notificator.showSuccess(zt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Rt})})},error:()=>this.loading=!1}):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},error:()=>this.loading=!1}))}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.H8),v.Y36(W.uq),v.Y36(W.ff),v.Y36(f.sK),v.Y36(te.V6))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-change-group-expiration-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"member-theme","position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged"]],template:function(Ge,Rt){if(1&Ge&&(v.YNc(0,gt,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div",1),v.YNc(3,Pt,5,11,"div",2),v.qZA()),2&Ge){const zt=v.MAs(1);v.xp6(3),v.Q6J("perunWebAppsLoader",Rt.loading)("perunWebAppsLoaderIndicator",zt)}},dependencies:[S.uh,ne.b,ye.e,Ie,f.X$]}),ct})();var bi=p(13469);function Vi(ct,Yt){1&ct&&v._UZ(0,"perun-web-apps-loading-dialog")}function en(ct,Yt){1&ct&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY"),""))}function ji(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"div")(1,"h1",3),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",4)(5,"form",5)(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),v._uU(9),v.ALo(10,"translate"),v.qZA(),v._UZ(11,"input",8),v.TgZ(12,"mat-icon",9),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.showOldPassword=!zt.showOldPassword)}),v._uU(13),v.qZA(),v.YNc(14,en,3,3,"mat-error",10),v.qZA(),v._UZ(15,"perun-web-apps-password-form",11),v.qZA()()(),v.TgZ(16,"div",12)(17,"div",13)(18,"button",14),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.close())}),v._uU(19),v.ALo(20,"translate"),v.qZA(),v.TgZ(21,"button",15),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.changePassword())}),v._uU(22),v.ALo(23,"translate"),v.qZA()()()()}if(2&ct){const Ge=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")," "),v.xp6(3),v.Q6J("formGroup",Ge.formGroup),v.xp6(4),v.hij(" ",v.lcZ(10,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")," "),v.xp6(2),v.Q6J("type",Ge.showOldPassword?"text":"password"),v.xp6(2),v.hij(" ",Ge.showOldPassword?"visibility_off":"visibility"," "),v.xp6(1),v.Q6J("ngIf",Ge.oldPwd.hasError("required")),v.xp6(1),v.Q6J("formGroup",Ge.formGroup)("namespace",Ge.data.namespace),v.xp6(4),v.hij(" ",v.lcZ(20,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),v.xp6(2),v.Q6J("disabled",Ge.formGroup.invalid||Ge.formGroup.pending||Ge.loading),v.xp6(1),v.hij(" ",v.lcZ(23,17,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let on=(()=>{class ct{constructor(Ge,Rt,zt,_i,Ti,rn,tn){this.dialogRef=Ge,this.data=Rt,this._formBuilder=zt,this.usersManagerService=_i,this.apiRequestConfiguration=Ti,this.notificator=rn,this.translate=tn,this.showOldPassword=!1,tn.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(En=>this.successMessage=En)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",w.kI.required],passwordCtrl:["",w.kI.required,[(0,pe.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:Ye.dN.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(w.QS),v.Y36(W.Fv),v.Y36(te.F5),v.Y36(te.V6),v.Y36(f.sK))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-change-password-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"user-theme","position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"formGroup"],[1,"display-flex"],["subscriptSizing","dynamic"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],["mat-dialog-actions",""],[1,"ms-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(Ge,Rt){if(1&Ge&&(v.YNc(0,Vi,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div",1),v.YNc(3,ji,24,19,"div",2),v.qZA()),2&Ge){const zt=v.MAs(1);v.xp6(3),v.Q6J("perunWebAppsLoader",Rt.loading)("perunWebAppsLoaderIndicator",zt)}},dependencies:[e.O5,S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,M.TO,M.R9,w._Y,w.Fj,w.JJ,w.JL,w.Q7,x.Nt,w.sg,w.u,P.Hw,ne.b,ye.e,bi.G,f.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),ct})();function wn(ct,Yt){1&ct&&v._UZ(0,"perun-web-apps-loading-dialog")}function Hi(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"div")(1,"h1",3),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-change-expiration-dialog",4),v.NdJ("statusChange",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.changeStatus=!0)})("expirationChanged",function(zt){v.CHM(Ge);const _i=v.oxw();return v.KtG(_i.onExpirationChanged(zt))}),v.qZA()()}if(2&ct){const Ge=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("minDate",Ge.minDate)("maxDate",Ge.maxDate)("currentExpiration",Ge.currentExpiration)("newExpiration",Ge.newExpiration)("canExtendMembership",Ge.canExtendMembership)("mode","vo")("status",Ge.status)("backButton",Ge.backButton)}}let Qn=(()=>{class ct{constructor(Ge,Rt,zt,_i,Ti,rn){this.dialogRef=Ge,this.data=Rt,this.attributesManagerService=zt,this.memberManager=_i,this.translate=Ti,this.notificator=rn,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,Ti.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(tn=>this.successMessage=tn)}ngOnInit(){this.status=this.data.status,this.backButton=this.data.backButton,this.loading=!0;const Ge=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(Ge.getFullYear(),Ge.getMonth(),Ge.getDate()):this.minDate=new Date(Ge.getFullYear(),Ge.getMonth(),Ge.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,be.r.VO_DEF_EXPIRATION_RULES).subscribe({next:Rt=>{null!==Rt.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe({next:zt=>{this.canExtendMembership=!!zt,this.loading=!1},error:()=>this.loading=!1}):this.loading=!1},error:()=>this.loading=!1}):this.loading=!1}onExpirationChanged(Ge){this.loading=!0,"voRules"===Ge?this.memberManager.extendMembership(this.data.memberId).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},error:()=>this.loading=!1}):(this.expirationAttr.value="never"===Ge?null:Ge,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe({next:()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe({next:Rt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(zt=>{this.notificator.showSuccess(zt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Rt})})},error:()=>this.loading=!1}):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},error:()=>this.loading=!1}))}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.H8),v.Y36(W.uq),v.Y36(f.sK),v.Y36(te.V6))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-change-vo-expiration-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"member-theme","position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged"]],template:function(Ge,Rt){if(1&Ge&&(v.YNc(0,wn,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div",1),v.YNc(3,Hi,5,11,"div",2),v.qZA()),2&Ge){const zt=v.MAs(1);v.xp6(3),v.Q6J("perunWebAppsLoader",Rt.loading)("perunWebAppsLoaderIndicator",zt)}},dependencies:[S.uh,ne.b,ye.e,Ie,f.X$]}),ct})();function cr(ct,Yt){1&ct&&v._UZ(0,"perun-web-apps-loading-dialog")}function Ur(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"div")(1,"h1",3),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-change-expiration-dialog",4),v.NdJ("expirationChanged",function(zt){v.CHM(Ge);const _i=v.oxw();return v.KtG(_i.onExpirationChanged(zt))}),v.qZA()()}if(2&ct){const Ge=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,5,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("minDate",Ge.minDate)("currentExpiration",Ge.currentExpiration)("newExpiration",Ge.newExpiration)("mode","sponsor")}}let Cr=(()=>{class ct{constructor(Ge,Rt,zt,_i,Ti,rn,tn){this.dialogRef=Ge,this.data=Rt,this.attributesManagerService=zt,this.memberManager=_i,this.groupManager=Ti,this.translate=rn,this.notificator=tn,this.loading=!1,rn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(En=>this.successMessage=En)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const Ge=new Date;this.minDate=new Date(Ge.getFullYear(),Ge.getMonth(),Ge.getDate()),this.loading=!1}onExpirationChanged(Ge){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===Ge?null:Ge).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.H8),v.Y36(W.uq),v.Y36(W.ff),v.Y36(f.sK),v.Y36(te.V6))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-change-sponsorship-expiration-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"member-theme","position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged"]],template:function(Ge,Rt){if(1&Ge&&(v.YNc(0,cr,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div",1),v.YNc(3,Ur,5,7,"div",2),v.qZA()),2&Ge){const zt=v.MAs(1);v.xp6(3),v.Q6J("perunWebAppsLoader",Rt.loading)("perunWebAppsLoaderIndicator",zt)}},dependencies:[S.uh,ne.b,ye.e,Ie,f.X$]}),ct})();function bn(ct,Yt){1&ct&&v._UZ(0,"perun-web-apps-loading-dialog")}function dr(ct,Yt){if(1&ct&&(v.TgZ(0,"p",11),v._uU(1),v.TgZ(2,"span",12),v._uU(3),v.qZA(),v._uU(4),v.TgZ(5,"span",12),v._uU(6),v.qZA()()),2&ct){const Ge=v.oxw(2);v.xp6(1),v.hij(" ",Ge.group.name," "),v.xp6(2),v.hij("#",Ge.group.id,""),v.xp6(1),v.hij(" - ",Ge.resource.name," "),v.xp6(2),v.hij("#",Ge.resource.id,"")}}function On(ct,Yt){1&ct&&(v.TgZ(0,"span",13),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function hn(ct,Yt){1&ct&&(v.TgZ(0,"span",13),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function rr(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"mat-radio-group",14),v.NdJ("ngModelChange",function(zt){v.CHM(Ge);const _i=v.oxw(2);return v.KtG(_i.asyncValidation=zt)}),v.TgZ(1,"span",15),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"mat-radio-button",16),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"mat-radio-button",16),v._uU(8),v.ALo(9,"translate"),v.qZA()()}if(2&ct){const Ge=v.oxw(2);v.Q6J("ngModel",Ge.asyncValidation),v.xp6(2),v.hij(" ",v.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),v.xp6(2),v.Q6J("value",!1),v.xp6(1),v.hij(" ",v.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),v.xp6(2),v.Q6J("value",!0),v.xp6(1),v.hij(" ",v.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function fn(ct,Yt){1&ct&&(v.TgZ(0,"span",13),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function Ki(ct,Yt){1&ct&&(v.TgZ(0,"span",13),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ct&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function Yr(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"div")(1,"h1",2),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",3),v.YNc(5,dr,7,4,"p",4),v.TgZ(6,"p")(7,"strong",5),v._uU(8),v.ALo(9,"translate"),v.qZA(),v._uU(10),v.qZA(),v.TgZ(11,"p")(12,"strong",5),v._uU(13),v.ALo(14,"translate"),v.qZA(),v._uU(15),v.qZA(),v.YNc(16,On,3,3,"span",6),v.YNc(17,hn,3,3,"span",6),v.YNc(18,rr,10,12,"mat-radio-group",7),v.YNc(19,fn,3,3,"span",6),v.YNc(20,Ki,3,3,"span",6),v.qZA(),v.TgZ(21,"div",8)(22,"button",9),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.onCancel())}),v._uU(23),v.ALo(24,"translate"),v.qZA(),v.TgZ(25,"button",10),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.onSubmit())}),v._uU(26),v.ALo(27,"translate"),v.qZA()()()}if(2&ct){const Ge=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,14,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),v.xp6(3),v.Q6J("ngIf",Ge.group&&Ge.resource),v.xp6(3),v.hij(" ",v.lcZ(9,16,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),v.xp6(2),v.hij(" ",Ge.status," "),v.xp6(3),v.hij(" ",v.lcZ(14,18,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),v.xp6(2),v.hij(" ",Ge.getReversedStatus()," "),v.xp6(1),v.Q6J("ngIf","INACTIVE"===Ge.status||"FAILED"===Ge.status),v.xp6(1),v.Q6J("ngIf","ACTIVE"===Ge.status),v.xp6(1),v.Q6J("ngIf","INACTIVE"===Ge.status||"FAILED"===Ge.status),v.xp6(1),v.Q6J("ngIf",("INACTIVE"===Ge.status||"FAILED"===Ge.status)&&!1===Ge.asyncValidation),v.xp6(1),v.Q6J("ngIf",("INACTIVE"===Ge.status||"FAILED"===Ge.status)&&!0===Ge.asyncValidation),v.xp6(3),v.hij(" ",v.lcZ(24,20,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),v.xp6(2),v.Q6J("disabled",Ge.loading),v.xp6(1),v.hij(" ",v.lcZ(27,22,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===Ge.status?"DEACTIVATE":"ACTIVATE"))," ")}}let mn=(()=>{class ct{constructor(Ge,Rt,zt,_i){this.dialogRef=Ge,this.data=Rt,this.resourceService=zt,this.groupService=_i,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(Ge=>{this.resource=Ge,this.groupService.getGroupById(this.data.groupId).subscribe(Rt=>{this.group=Rt,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.xk),v.Y36(W.ff))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],["class","mb-4",4,"ngIf"],[1,"me-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto","me-2",3,"click"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"],[1,"mb-4"],[1,"text-muted","id-font"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"fw-bold"],[3,"value"]],template:function(Ge,Rt){if(1&Ge&&(v.YNc(0,bn,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div"),v.YNc(3,Yr,28,24,"div",1),v.qZA()),2&Ge){const zt=v.MAs(1);v.xp6(2),v.Gre("",Rt.theme," position-relative"),v.xp6(1),v.Q6J("perunWebAppsLoader",Rt.loading)("perunWebAppsLoaderIndicator",zt)}},dependencies:[e.O5,S.uh,S.xY,S.H8,m.lW,w.JJ,w.On,F.VQ,F.U0,ne.b,ye.e,f.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),ct})();var Nr=p(90995);let ar=(()=>{class ct{constructor(Ge,Rt,zt,_i,Ti){this.dialogRef=Ge,this.data=Rt,this.notificator=zt,this.usersService=_i,this.translate=Ti,this.force=!1,this.displayedColumns=["name"],this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by([this.data.user]),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.VO_RELATION"))}onCancel(){this.dialogRef.close(!1)}anonymizeUser(){this.loading=!0,this.usersService.anonymizeUser(this.data.user.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ANONYMIZE_USER.SUCCESS_NOTIFICATION")),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(Ge){this.force=Ge.force,Ge.deleted?this.anonymizeUser():this.onCancel()}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(te.V6),v.Y36(W.Fv),v.Y36(f.sK))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-anonymize-user-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","loading","anonymize","deleted"]],template:function(Ge,Rt){1&Ge&&(v.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),v.NdJ("deleted",function(_i){return Rt.onSubmit(_i)}),v.qZA()()),2&Ge&&(v.Tol(Rt.theme),v.xp6(1),v.Q6J("entityNames",Rt.dataSource)("entityType","user")("relations",Rt.relations)("loading",Rt.loading)("anonymize",!0))},dependencies:[Nr.e]}),ct})(),Gn=(()=>{class ct{constructor(Ge){this.dialogRef=Ge}close(){this.dialogRef.close()}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-export-data-dialog"]],decls:6,vars:4,consts:[[1,"loading-container"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"me-auto","ms-auto",3,"diameter"]],template:function(Ge,Rt){1&Ge&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",2),v._UZ(5,"mat-spinner",3),v.qZA()()),2&Ge&&(v.xp6(2),v.hij(" ",v.lcZ(3,2,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_LOADING")," "),v.xp6(3),v.Q6J("diameter",50))},dependencies:[S.uh,S.xY,I.Ou,f.X$],styles:[".loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}"]}),ct})();function Un(ct,Yt){if(1&ct&&(v.TgZ(0,"mat-option",13),v._uU(1),v.qZA()),2&ct){const Ge=Yt.$implicit,Rt=v.oxw();v.Q6J("value",Rt.selectedUnit),v.xp6(1),v.hij(" ",Ge," ")}}let St=(()=>{class ct{constructor(Ge,Rt,zt,_i,Ti){this.dialogRef=Ge,this.data=Rt,this.rtMessagesService=zt,this.notificator=_i,this.translate=Ti,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",Ti.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(rn=>this.successMessage=rn)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new w.p4(null,[w.kI.required]),this.newValueControl=new w.p4(null,[w.kI.required,w.kI.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const zt=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new J.dp).transform(this.data.user)} (user ID: ${this.data.user.id})\u21b5 VO: ${this.data.vo.shortName} / ${this.data.vo.name} (vo ID: ${this.data.vo.id})\u21b5 Resource: ${this.data.resource.name} (resource ID: ${this.data.resource.id})\u21b5 Data quota\u21b5 Requested quota: ${this.newValueControl.value}\u21b5 Reason: ${this.reasonControl.value}\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI`;this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",zt).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.Hr),v.Y36(te.V6),v.Y36(f.sK))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-request-change-data-quota-dialog"]],decls:45,vars:42,consts:[["mat-dialog-title","",1,"mb-3"],[1,"user-theme"],["mat-dialog-content",""],[1,"column-size"],[1,"flex-row","flex-self-center"],["matInput","","required","","type","number",3,"formControl"],[1,"select-width","mt-auto","mb-auto","ms-2",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"form-width"],["matInput","","required","","rows","4",3,"formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["mat-flat-button","","color","accent",1,"ms-2",3,"disabled","click"],[3,"value"]],template:function(Ge,Rt){1&Ge&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA(),v.TgZ(4,"div",1)(5,"div",2)(6,"div")(7,"p",3),v._uU(8),v.ALo(9,"translate"),v.ALo(10,"customTranslate"),v.qZA(),v.TgZ(11,"p"),v._uU(12),v.qZA()(),v.TgZ(13,"div")(14,"p",3),v._uU(15),v.ALo(16,"translate"),v.ALo(17,"customTranslate"),v.qZA(),v.TgZ(18,"p"),v._uU(19),v.qZA()(),v.TgZ(20,"div",4)(21,"mat-form-field")(22,"mat-label"),v._uU(23),v.ALo(24,"translate"),v.ALo(25,"customTranslate"),v.qZA(),v._UZ(26,"input",5),v.qZA(),v.TgZ(27,"mat-select",6),v.NdJ("valueChange",function(_i){return Rt.selectedUnit=_i}),v.YNc(28,Un,2,2,"mat-option",7),v.qZA()(),v.TgZ(29,"div")(30,"mat-form-field",8)(31,"mat-label"),v._uU(32),v.ALo(33,"translate"),v.ALo(34,"customTranslate"),v.qZA(),v._UZ(35,"textarea",9),v.qZA()()(),v.TgZ(36,"div",10)(37,"button",11),v.NdJ("click",function(){return Rt.onCancel()}),v._uU(38),v.ALo(39,"translate"),v.ALo(40,"customTranslate"),v.qZA(),v.TgZ(41,"button",12),v.NdJ("click",function(){return Rt.onSubmit()}),v._uU(42),v.ALo(43,"translate"),v.ALo(44,"customTranslate"),v.qZA()()()),2&Ge&&(v.xp6(1),v.hij(" ",v.lcZ(2,14,v.lcZ(3,16,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),v.xp6(7),v.hij(" ",v.lcZ(9,18,v.lcZ(10,20,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),v.xp6(4),v.Oqu(Rt.resource),v.xp6(3),v.hij(" ",v.lcZ(16,22,v.lcZ(17,24,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),v.xp6(4),v.Oqu(Rt.currentQuota),v.xp6(4),v.hij(" ",v.lcZ(24,26,v.lcZ(25,28,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))," "),v.xp6(3),v.Q6J("formControl",Rt.newValueControl),v.xp6(1),v.Q6J("value",Rt.selectedUnit),v.xp6(1),v.Q6J("ngForOf",Rt.units),v.xp6(4),v.hij(" ",v.lcZ(33,30,v.lcZ(34,32,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REASON"))," "),v.xp6(3),v.Q6J("formControl",Rt.reasonControl),v.xp6(3),v.hij(" ",v.lcZ(39,34,v.lcZ(40,36,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),v.xp6(3),v.Q6J("disabled",Rt.reasonControl.invalid),v.xp6(1),v.hij(" ",v.lcZ(43,38,v.lcZ(44,40,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},dependencies:[e.sg,S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,w.Fj,w.wV,w.JJ,w.Q7,x.Nt,w.oH,ge.gD,ze.ey,f.X$,t.a],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.form-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}.label-width[_ngcontent-%COMP%]{width:100%}.select-width[_ngcontent-%COMP%]{width:4rem}.flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-self-center[_ngcontent-%COMP%]{align-self:center}"]}),ct})();function ri(ct,Yt){1&ct&&(v.TgZ(0,"mat-error",8),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA()),2&ct&&(v.xp6(1),v.Oqu(v.lcZ(2,1,v.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class lt{constructor(Yt,Ge,Rt){this.dialogRef=Yt,this.data=Ge,this.attributesManagerService=Rt}ngOnInit(){this.sshControl=new w.p4(null,[w.kI.required,w.kI.pattern(lt.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const Yt=this.data.attribute?.value??[],Ge=this.sshControl.value;Yt.includes(Ge)||Yt.push(Ge),this.data.attribute.value=Yt,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{Yt.pop()})}}function jt(ct,Yt){1&ct&&v._UZ(0,"perun-web-apps-loading-dialog")}function Jt(ct,Yt){1&ct&&v._UZ(0,"th",16)}function ui(ct,Yt){if(1&ct&&(v.TgZ(0,"td",17),v._uU(1),v.qZA()),2&ct){const Ge=Yt.$implicit;v.xp6(1),v.Oqu(Ge)}}function Ii(ct,Yt){1&ct&&v._UZ(0,"tr",18)}function Li(ct,Yt){1&ct&&v._UZ(0,"tr",19)}function Qi(ct,Yt){if(1&ct&&(v.TgZ(0,"table",10),v.ynx(1,11),v.YNc(2,Jt,1,0,"th",12),v.YNc(3,ui,2,1,"td",13),v.BQk(),v.YNc(4,Ii,1,0,"tr",14),v.YNc(5,Li,1,0,"tr",15),v.qZA()),2&ct){const Ge=v.oxw(2);v.Q6J("dataSource",Ge.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",Ge.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Ge.displayedColumns)}}function Pn(ct,Yt){if(1&ct){const Ge=v.EpF();v.TgZ(0,"div")(1,"h1",3),v._uU(2),v.qZA(),v.TgZ(3,"div",4)(4,"p"),v._uU(5),v.qZA(),v.TgZ(6,"div",5),v._uU(7),v.ALo(8,"translate"),v.ALo(9,"customTranslate"),v.qZA(),v.YNc(10,Qi,6,3,"table",6),v.qZA(),v.TgZ(11,"div",7)(12,"button",8),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.onCancel())}),v._uU(13),v.ALo(14,"translate"),v.ALo(15,"customTranslate"),v.qZA(),v.TgZ(16,"button",9),v.NdJ("click",function(){v.CHM(Ge);const zt=v.oxw();return v.KtG(zt.onSubmit())}),v._uU(17),v.ALo(18,"translate"),v.ALo(19,"customTranslate"),v.qZA()()()}if(2&ct){const Ge=v.oxw();v.xp6(2),v.Oqu(Ge.title),v.xp6(3),v.hij(" ",Ge.description," "),v.xp6(2),v.hij(" ",v.lcZ(8,6,v.lcZ(9,8,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),v.xp6(3),v.Q6J("ngIf",Ge.dataSource.data.length),v.xp6(3),v.hij(" ",v.lcZ(14,10,v.lcZ(15,12,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),v.xp6(4),v.hij(" ",v.lcZ(18,14,v.lcZ(19,16,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}lt.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],lt.sshKeyPattern="^("+lt.allowedSshKeys.join("|")+").+$",lt.\u0275fac=function(Yt){return new(Yt||lt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.H8))},lt.\u0275cmp=v.Xpm({type:lt,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:21,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["subscriptSizing","dynamic",1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["mat-flat-button","","color","accent",1,"ms-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(Yt,Ge){1&Yt&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA(),v.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"mat-label"),v._uU(7),v.ALo(8,"translate"),v.ALo(9,"customTranslate"),v.qZA(),v._UZ(10,"textarea",3),v.YNc(11,ri,4,5,"mat-error",4),v.qZA()(),v.TgZ(12,"div",5)(13,"button",6),v.NdJ("click",function(){return Ge.onCancel()}),v._uU(14),v.ALo(15,"translate"),v.ALo(16,"customTranslate"),v.qZA(),v.TgZ(17,"button",7),v.NdJ("click",function(){return Ge.onSubmit()}),v._uU(18),v.ALo(19,"translate"),v.ALo(20,"customTranslate"),v.qZA()()),2&Yt&&(v.xp6(1),v.Oqu(v.lcZ(2,7,v.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),v.xp6(6),v.Oqu(v.lcZ(8,11,v.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),v.xp6(3),v.Q6J("formControl",Ge.sshControl),v.xp6(1),v.Q6J("ngIf",Ge.sshControl.invalid&&Ge.sshControl.dirty),v.xp6(3),v.hij(" ",v.lcZ(15,15,v.lcZ(16,17,"DIALOGS.ADD_SSH.CANCEL"))," "),v.xp6(3),v.Q6J("disabled",Ge.sshControl.invalid),v.xp6(1),v.hij(" ",v.lcZ(19,19,v.lcZ(20,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[e.O5,w.Fj,w.JJ,w.Q7,m.lW,M.KE,M.hX,M.TO,w.oH,x.Nt,ce.IC,S.uh,S.xY,S.H8,f.X$,t.a],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}\n"],encapsulation:2});let Dr=(()=>{class ct{constructor(Ge,Rt,zt){this.dialogRef=Ge,this.data=Rt,this.attributesManagerService=zt,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new A.by(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let Ge=this.data.attribute?.value??[];void 0!==this.data.valueIndex?Ge.splice(this.data.valueIndex,1):Ge=Ge.filter(Rt=>!this.data.values.find(zt=>zt===Rt)),this.data.attribute.value=Ge}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.H8))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-remove-string-value-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"user-theme","position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"fw-bold"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["mat-flat-button","","color","warn",1,"ms-2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Ge,Rt){if(1&Ge&&(v.YNc(0,jt,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div",1),v.YNc(3,Pn,20,18,"div",2),v.qZA()),2&Ge){const zt=v.MAs(1);v.xp6(3),v.Q6J("perunWebAppsLoader",Rt.loading)("perunWebAppsLoaderIndicator",zt)}},dependencies:[e.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,ne.b,ye.e,m.lW,S.uh,S.xY,S.H8,f.X$,t.a]}),ct})(),zn=(()=>{class ct{constructor(Ge,Rt){this.dialogRef=Ge,this.data=Rt}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(S.WI))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-show-ssh-dialog"]],decls:8,vars:6,consts:[["mat-dialog-content","",1,"user-theme"],["matInput","","cdkTextareaAutosize","","readonly","",1,"w-100","display-fix"],["mat-flat-button","","color","warn",1,"ms-auto",3,"click"]],template:function(Ge,Rt){1&Ge&&(v.TgZ(0,"div",0)(1,"textarea",1),v._uU(2),v.qZA()(),v.TgZ(3,"mat-dialog-actions")(4,"button",2),v.NdJ("click",function(){return Rt.onClose()}),v._uU(5),v.ALo(6,"translate"),v.ALo(7,"customTranslate"),v.qZA()()),2&Ge&&(v.xp6(2),v.Oqu(Rt.sshKey),v.xp6(3),v.hij(" ",v.lcZ(6,2,v.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},dependencies:[m.lW,x.Nt,ce.IC,S.xY,S.H8,f.X$,t.a],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),ct})();function $n(ct,Yt){if(1&ct&&(v.TgZ(0,"div",10),v._UZ(1,"perun-web-apps-notification",11),v.qZA()),2&ct){const Ge=Yt.$implicit;v.xp6(1),v.Q6J("data",Ge)("inDialog",!0)}}function wr(ct,Yt){if(1&ct&&(v.TgZ(0,"div",7)(1,"cdk-virtual-scroll-viewport",8),v.YNc(2,$n,2,2,"div",9),v.qZA()()),2&ct){const Ge=v.oxw();v.xp6(2),v.Q6J("cdkVirtualForOf",Ge.notifications)}}function Rr(ct,Yt){1&ct&&(v.TgZ(0,"perun-web-apps-alert",12),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA()),2&ct&&(v.xp6(1),v.Oqu(v.lcZ(2,1,v.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}let Pa=(()=>{class ct{constructor(Ge,Rt){this.dialogRef=Ge,this.notificationStorageService=Rt}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return ct.\u0275fac=function(Ge){return new(Ge||ct)(v.Y36(S.so),v.Y36(te.SZ))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:16,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["mat-flat-button","",1,"ms-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(Ge,Rt){1&Ge&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA(),v.TgZ(4,"div",1),v.YNc(5,wr,3,1,"div",2),v.YNc(6,Rr,4,5,"perun-web-apps-alert",3),v.qZA(),v.TgZ(7,"div",4)(8,"button",5),v.NdJ("click",function(){return Rt.onClear()}),v._uU(9),v.ALo(10,"translate"),v.ALo(11,"customTranslate"),v.qZA(),v.TgZ(12,"button",6),v.NdJ("click",function(){return Rt.onCancel()}),v._uU(13),v.ALo(14,"translate"),v.ALo(15,"customTranslate"),v.qZA()()),2&Ge&&(v.xp6(1),v.Oqu(v.lcZ(2,5,v.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),v.xp6(4),v.Q6J("ngIf",0!==Rt.notifications.length),v.xp6(1),v.Q6J("ngIf",0===Rt.notifications.length),v.xp6(3),v.hij(" ",v.lcZ(10,9,v.lcZ(11,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),v.xp6(4),v.hij(" ",v.lcZ(14,13,v.lcZ(15,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),ct})()},90995:(Qe,ae,p)=>{"use strict";p.d(ae,{e:()=>U});var e=p(94650),f=p(24006),A=p(30671),S=p(36895),m=p(7274),M=p(4859),w=p(59549),x=p(284),I=p(97392),F=p(98380),T=p(97403),H=p(73358),P=p(96338),J=p(89383),fe=p(31359);let j=(()=>{class X{constructor(Me){this.translate=Me}transform(Me){return this.translate.instant(Me?"DIALOGS.DELETE_ENTITY.TYPE_ANONYMIZE":"DIALOGS.DELETE_ENTITY.TYPE_DELETE")}}return X.\u0275fac=function(Me){return new(Me||X)(e.Y36(J.sK,16))},X.\u0275pipe=e.Yjl({name:"deleteDialogType",type:X,pure:!0}),X})();function $(X,ce){1&X&&e._UZ(0,"perun-web-apps-loading-dialog")}const _e=function(X){return{action:X}};function ge(X,ce){if(1&X&&(e.TgZ(0,"div",17),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.ALo(4,"translate"),e.TgZ(5,"span",18),e._uU(6),e.ALo(7,"translate"),e.qZA(),e._uU(8),e.ALo(9,"translate"),e.qZA()),2&X){const Me=e.oxw(3);e.xp6(1),e.lnq(" ",e.xi3(2,6,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(17,_e,e.lcZ(3,9,Me.anonymize)))," ",e.lcZ(4,11,"DIALOGS.DELETE_ENTITY.ONLY")," ",Me.entityType," "),e.xp6(5),e.Oqu(e.lcZ(7,13,"DIALOGS.DELETE_ENTITY.OR")),e.xp6(2),e.AsE(" ",Me.entityType," ",e.lcZ(9,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function pe(X,ce){if(1&X&&(e.TgZ(0,"div",17),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.qZA()),2&X){const Me=e.oxw(3);e.xp6(1),e.AsE(" ",e.xi3(2,2,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(7,_e,e.lcZ(3,5,Me.anonymize)))," ",Me.entityType," ? ")}}function re(X,ce){1&X&&e._UZ(0,"th",19)}function v(X,ce){if(1&X&&(e.TgZ(0,"td",20),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&X){const Me=ce.$implicit,ue=e.oxw(3);e.xp6(1),e.hij(" ",ue.anonymize?e.lcZ(2,1,Me):Me.name," ")}}function V(X,ce){1&X&&e._UZ(0,"tr",21)}function W(X,ce){1&X&&e._UZ(0,"tr",22)}function te(X,ce){if(1&X){const Me=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(Me);const Pe=e.oxw(3);return e.KtG(Pe.force=!0)}),e.TgZ(1,"mat-icon"),e._uU(2,"warning"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"titlecase"),e.ALo(6,"deleteDialogType"),e.ALo(7,"translate"),e.qZA()}if(2&X){const Me=e.oxw(3);e.xp6(3),e.AsE(" ",e.xi3(4,2,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(11,_e,e.lcZ(5,5,e.lcZ(6,7,Me.anonymize))))," ",e.lcZ(7,9,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}const ne=function(){return["name"]};function ye(X,ce){if(1&X){const Me=e.EpF();e.TgZ(0,"div")(1,"h1",4),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.qZA(),e.TgZ(6,"div",5),e.YNc(7,ge,10,19,"div",6),e.YNc(8,pe,4,9,"div",6),e.TgZ(9,"table",7),e.ynx(10,8),e.YNc(11,re,1,0,"th",9),e.YNc(12,v,3,3,"td",10),e.BQk(),e.YNc(13,V,1,0,"tr",11),e.YNc(14,W,1,0,"tr",12),e.qZA()(),e.TgZ(15,"div",13)(16,"button",14),e.NdJ("click",function(){e.CHM(Me);const Pe=e.oxw(2);return e.KtG(Pe.onCancel())}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"button",15),e.NdJ("click",function(){e.CHM(Me);const Pe=e.oxw(2);return e.KtG(Pe.onDelete())}),e._uU(20),e.ALo(21,"translate"),e.ALo(22,"titlecase"),e.ALo(23,"deleteDialogType"),e.qZA(),e.YNc(24,te,8,13,"button",16),e.qZA()()}if(2&X){const Me=e.oxw(2);e.xp6(2),e.AsE(" ",e.xi3(3,10,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(26,_e,e.lcZ(4,13,e.lcZ(5,15,Me.anonymize))))," ",Me.entityType," "),e.xp6(5),e.Q6J("ngIf",!Me.disableForce),e.xp6(1),e.Q6J("ngIf",Me.disableForce),e.xp6(1),e.Q6J("dataSource",Me.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(28,ne)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(29,ne)),e.xp6(3),e.hij(" ",e.lcZ(18,17,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.xi3(21,19,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(30,_e,e.lcZ(22,22,e.lcZ(23,24,Me.anonymize))))," "),e.xp6(4),e.Q6J("ngIf",!Me.disableForce)}}function ze(X,ce){if(1&X&&(e.TgZ(0,"mat-list-item")(1,"span")(2,"mat-icon",28),e._uU(3,"fiber_manual_record"),e.qZA(),e._uU(4),e.qZA()()),2&X){const Me=ce.$implicit;e.xp6(4),e.hij(" ",Me," ")}}function ke(X,ce){if(1&X&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&X){const Me=e.oxw(3);e.xp6(1),e.hij(" ",Me.anotherMessage," ")}}function $e(X,ce){1&X&&e._UZ(0,"th",19)}function Je(X,ce){if(1&X&&(e.TgZ(0,"td",20),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&X){const Me=ce.$implicit,ue=e.oxw(3);e.xp6(1),e.hij(" ",ue.anonymize?e.lcZ(2,1,Me):Me.name," ")}}function Fe(X,ce){1&X&&e._UZ(0,"tr",21)}function Ve(X,ce){1&X&&e._UZ(0,"tr",22)}function le(X,ce){if(1&X){const Me=e.EpF();e.TgZ(0,"div")(1,"h1",4),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",5)(8,"div",17),e._uU(9),e.ALo(10,"translate"),e.TgZ(11,"mat-list"),e.YNc(12,ze,5,1,"mat-list-item",24),e.qZA(),e.YNc(13,ke,2,1,"div",3),e.TgZ(14,"perun-web-apps-alert",25),e._uU(15),e.ALo(16,"translate"),e.ALo(17,"deleteDialogType"),e.qZA(),e.TgZ(18,"table",7),e.ynx(19,8),e.YNc(20,$e,1,0,"th",9),e.YNc(21,Je,3,3,"td",10),e.BQk(),e.YNc(22,Fe,1,0,"tr",11),e.YNc(23,Ve,1,0,"tr",12),e.qZA()(),e.TgZ(24,"mat-form-field")(25,"mat-label"),e._uU(26),e.ALo(27,"translate"),e.ALo(28,"uppercase"),e.ALo(29,"deleteDialogType"),e.qZA(),e._UZ(30,"input",26),e.qZA()(),e.TgZ(31,"div",13)(32,"button",14),e.NdJ("click",function(){e.CHM(Me);const Pe=e.oxw(2);return e.KtG(Pe.onCancel())}),e._uU(33),e.ALo(34,"translate"),e.qZA(),e.TgZ(35,"button",27),e.NdJ("click",function(){e.CHM(Me);const Pe=e.oxw(2);return e.KtG(Pe.onDelete())}),e.TgZ(36,"mat-icon"),e._uU(37,"warning"),e.qZA(),e._uU(38),e.ALo(39,"translate"),e.ALo(40,"titlecase"),e.ALo(41,"deleteDialogType"),e.ALo(42,"translate"),e.qZA()()()}if(2&X){const Me=e.oxw(2);e.xp6(2),e.lnq(" ",e.xi3(3,17,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(51,_e,e.lcZ(4,20,e.lcZ(5,22,Me.anonymize))))," ",Me.entityType," ",e.lcZ(6,24,"DIALOGS.DELETE_ENTITY.RELATIONS")," "),e.xp6(7),e.hij(" ",e.lcZ(10,26,"DIALOGS.DELETE_ENTITY.WARN"),": "),e.xp6(3),e.Q6J("ngForOf",Me.relations),e.xp6(1),e.Q6J("ngIf",Me.anotherMessage),e.xp6(2),e.AsE(" ",e.xi3(16,28,"DIALOGS.DELETE_ENTITY.ASK",e.VKq(53,_e,e.lcZ(17,31,Me.anonymize)))," ",Me.entityType," ? "),e.xp6(3),e.Q6J("dataSource",Me.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(55,ne)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(56,ne)),e.xp6(3),e.hij(" ",e.xi3(27,33,"DIALOGS.DELETE_ENTITY.CONTROL",e.VKq(57,_e,e.lcZ(28,36,e.lcZ(29,38,Me.anonymize))))," "),e.xp6(4),e.Q6J("formControl",Me.deleteControl),e.xp6(3),e.hij(" ",e.lcZ(34,40,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(2),e.Q6J("disabled",Me.deleteControl.invalid),e.xp6(3),e.AsE(" ",e.xi3(39,42,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(59,_e,e.lcZ(40,45,e.lcZ(41,47,Me.anonymize))))," ",e.lcZ(42,49,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}function N(X,ce){if(1&X&&(e.TgZ(0,"div"),e.YNc(1,ye,25,32,"div",3),e.YNc(2,le,43,61,"div",3),e.qZA()),2&X){const Me=e.oxw();e.xp6(1),e.Q6J("ngIf",!Me.force),e.xp6(1),e.Q6J("ngIf",Me.force)}}let U=(()=>{class X{constructor(){this.entityNames=new A.by,this.relations=[],this.disableForce=!1,this.loading=!1,this.anonymize=!1,this.deleted=new e.vpe,this.force=!1}ngOnInit(){this.deleteReg=this.anonymize?/^ANONYMIZE$/:/^DELETE$/,this.deleteControl=new f.p4("",[f.kI.required,f.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return X.\u0275fac=function(Me){return new(Me||X)},X.\u0275cmp=e.Xpm({type:X,selectors:[["perun-web-apps-delete-entity-dialog"]],inputs:{title:"title",entityNames:"entityNames",entityType:"entityType",relations:"relations",anotherMessage:"anotherMessage",disableForce:"disableForce",loading:"loading",anonymize:"anonymize"},outputs:{deleted:"deleted"},decls:4,vars:2,consts:[["spinner",""],[1,"position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["class","mb-4",4,"ngIf"],["mat-table","",1,"w-100","table-margin",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","delete-button-dialog","color","warn","mat-flat-button","",1,"ms-2",3,"click"],["class","ms-2","data-cy","force-delete","color","warn","mat-flat-button","",3,"click",4,"ngIf"],[1,"mb-4"],[1,"fw-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["data-cy","force-delete","color","warn","mat-flat-button","",1,"ms-2",3,"click"],[4,"ngFor","ngForOf"],["alert_type","warn"],["data-cy","force-delete-control","matInput","",3,"formControl"],["data-cy","force-delete-button","color","warn","mat-flat-button","",1,"ms-2",3,"disabled","click"],[1,"dot-icon"]],template:function(Me,ue){if(1&Me&&(e.YNc(0,$,1,0,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1),e.YNc(3,N,3,2,"div",2),e.qZA()),2&Me){const Pe=e.MAs(1);e.xp6(3),e.Q6J("perunWebAppsLoader",ue.loading)("perunWebAppsLoaderIndicator",Pe)}},dependencies:[S.sg,S.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,m.uh,m.xY,m.H8,M.lW,w.KE,w.hX,f.Fj,f.JJ,x.Nt,f.oH,I.Hw,F.w,T.b,H.e,P.i$,P.Tg,S.gd,S.rS,J.X$,fe.d,j],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),X})()},75162:(Qe,ae,p)=>{"use strict";p.d(ae,{c:()=>F});var e=p(94650),f=p(24006),A=p(36895),S=p(59549),m=p(284),M=p(71948),w=p(99602),x=p(89383);function I(T,H){1&T&&(e.TgZ(0,"mat-radio-button",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "))}let F=(()=>{class T{constructor(){this.expiration="never",this.allowNever=!0,this.minDate=null,this.maxDate=null,this.datePicker=new e.vpe,this.expirationControl=new f.NI(null)}ngOnInit(){this.expirationControl.setValue((0,A.p6)(this.maxDate?this.maxDate:this.minDate,"yyyy-MM-dd","en-GB"))}ngOnChanges(){const P=new Date(this.expirationControl.value);let J=P;this.minDate&&Pthis.maxDate&&(J=this.maxDate),this.expirationControl.setValue((0,A.p6)(J,"yyyy-MM-dd","en-GB"))}setExpiration(P){this.expiration=(0,A.p6)(P.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,A.p6)(P.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return T.\u0275fac=function(P){return new(P||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-expiration-select"]],inputs:{expiration:"expiration",allowNever:"allowNever",minDate:"minDate",maxDate:"maxDate"},outputs:{datePicker:"datePicker"},features:[e.TTD],decls:11,vars:13,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange","change"],["value","never",4,"ngIf"],[3,"value"],["color","primary",1,"cursor-pointer","me-3",3,"click"],["readonly","","matInput","",1,"disable",3,"min","max","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["value","never"]],template:function(P,J){if(1&P){const fe=e.EpF();e.TgZ(0,"mat-radio-group",0),e.NdJ("ngModelChange",function($){return J.expiration=$})("change",function(){return J.emitDate()}),e.YNc(1,I,3,3,"mat-radio-button",1),e.TgZ(2,"mat-radio-button",2)(3,"mat-form-field",3),e.NdJ("click",function(){e.CHM(fe);const $=e.MAs(10);return e.KtG($.open())}),e.TgZ(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"input",4),e.NdJ("dateChange",function($){return J.setExpiration($)}),e.qZA(),e._UZ(8,"mat-datepicker-toggle",5)(9,"mat-datepicker",6,7),e.qZA()()()}if(2&P){const fe=e.MAs(10);e.Q6J("ngModel",J.expiration),e.xp6(1),e.Q6J("ngIf",J.allowNever),e.xp6(1),e.s9C("value",J.expirationControl.value),e.xp6(3),e.Oqu(e.lcZ(6,11,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),e.xp6(2),e.Q6J("min",J.minDate)("max",J.maxDate)("formControl",J.expirationControl)("matDatepicker",fe),e.xp6(1),e.Q6J("for",fe)("disabled",!1),e.xp6(1),e.Q6J("disabled",!1)}},dependencies:[A.O5,S.KE,S.hX,S.R9,f.Fj,f.JJ,f.On,m.Nt,M.VQ,M.U0,w.Mq,w.hl,w.nW,f.oH,x.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),T})()},22308:(Qe,ae,p)=>{"use strict";p.d(ae,{h:()=>f});var e=p(94650);let f=(()=>{class A{constructor(m){this.elementRef=m}ngOnInit(){this.elementRef.nativeElement.focus()}}return A.\u0275fac=function(m){return new(m||A)(e.Y36(e.SBq))},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsAutoFocus",""]]}),A})()},73358:(Qe,ae,p)=>{"use strict";p.d(ae,{e:()=>f});var e=p(94650);let f=(()=>{class A{constructor(m,M){this.viewContainerRef=m,this.template=M,this.loading=!1,this.loadingIndicatorRef=null}ngOnInit(){this.viewContainerRef.createEmbeddedView(this.template)}ngOnChanges(){this.loading&&(this.loadingIndicatorRef=this.viewContainerRef.createEmbeddedView(this.loadingIndicator)),!this.loading&&this.loadingIndicatorRef&&this.loadingIndicatorRef.destroy()}}return A.\u0275fac=function(m){return new(m||A)(e.Y36(e.s_b),e.Y36(e.Rgc))},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsLoader",""]],inputs:{loading:["perunWebAppsLoader","loading"],loadingIndicator:["perunWebAppsLoaderIndicator","loadingIndicator"]},standalone:!0,features:[e.TTD]}),A})()},34198:(Qe,ae,p)=>{"use strict";p.d(ae,{Y:()=>f});var e=p(94650);let f=(()=>{class A{onClick(m){if(1===m.button&&null!=this.perunWebAppsMiddleClickRouterLink){const M=this.perunWebAppsMiddleClickRouterLink.join("/"),w=location.search;window.open(M+w)}}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(m,M){1&m&&e.NdJ("mouseup",function(x){return M.onClick(x)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),A})()},55660:(Qe,ae,p)=>{"use strict";p.d(ae,{Q:()=>A});var e=p(82761),f=p(94650);let A=(()=>{class S extends e.rH{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const M=Object.assign({},this.queryParams);delete M.applicationFormItems,this.queryParams=M}}}return S.\u0275fac=function(){let m;return function(w){return(m||(m=f.n5z(S)))(w||S)}}(),S.\u0275dir=f.lG2({type:S,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[f.qOj,f.TTD]}),S})()},40034:(Qe,ae,p)=>{"use strict";p.d(ae,{p:()=>e});var e=(()=>{return(f=e||(e={})).Admin="admin",f.Profile="profile",f.PwdReset="pwdReset",f.Consolidator="consolidator",f.Linker="linker",e;var f})()},91479:(Qe,ae,p)=>{"use strict";p.d(ae,{H:()=>w,o:()=>M});var e=p(61135),f=p(39841),A=p(39646),S=p(68675),m=p(63900);function M(x){return"_count"in x}class w{constructor(I,F,T,H){this.pageQuery$=new e.X({}),this.updateSubscription=null,this.data$=new e.X([]),this._filter=new e.X(""),this.data$.next(I),this._count=F,this._sort=T,this._paginator=H,this.update()}get data(){return this.data$.value}set data(I){this.data$.next(I)}get filteredData(){return this.data$.value}get count(){return this._count}set count(I){this._count=I}get sort(){return this._sort}set sort(I){this._sort=I,this.update()}get paginator(){return this._paginator}set paginator(I){this._paginator=I,this.update()}set filter(I){this._filter.next(I)}connect(){return this.data$.asObservable()}disconnect(){this.data$.complete(),this.updateSubscription?.unsubscribe()}sortData(I,F){return this.sort=F,I}update(){const I=this._sort.sortChange.pipe((0,S.O)({active:"NAME",direction:this._sort.direction})),F=this._paginator.page.pipe((0,S.O)({pageSize:5,pageIndex:this._paginator.pageIndex,length:this._paginator.length})),T=(0,f.a)([I,F,this._filter]).pipe((0,m.w)(([H,P,J])=>(0,A.of)({order:"asc"===H.direction?"ASCENDING":"DESCENDING",sortColumn:H.active.toUpperCase(),pageSize:P.pageSize,offset:P.pageIndex*P.pageSize,searchString:J})));this.updateSubscription?.unsubscribe(),this.updateSubscription=T.subscribe(H=>{this.pageQuery$.next(H)})}}},45323:(Qe,ae,p)=>{"use strict";p.d(ae,{u:()=>e});var e=(()=>{return(f=e||(e={})).PERUNADMIN="PERUNADMIN",f.PERUNOBSERVER="PERUNOBSERVER",f.VOADMIN="VOADMIN",f.GROUPADMIN="GROUPADMIN",f.GROUPOBSERVER="GROUPOBSERVER",f.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",f.SELF="SELF",f.FACILITYADMIN="FACILITYADMIN",f.FACILITIYOBSERVER="FACILITYOBSERVER",f.RESOURCEADMIN="RESOURCEADMIN",f.RESOURCESELFSERVICE="RESOURCESELFSERVICE",f.REGISTRAR="REGISTRAR",f.ENGINE="ENGINE",f.RPC="RPC",f.NOTIFICATIONS="NOTIFICATIONS",f.SERVICEUSER="SERVICEUSER",f.SPONSOR="SPONSOR",f.VOOBSERVER="VOOBSERVER",f.TOPGROUPCREATOR="TOPGROUPCREATOR",f.SECURITYADMIN="SECURITYADMIN",f.CABINETADMIN="CABINETADMIN",f.UNKNOWNROLENAME="UNKNOWNROLENAME",f.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",f.UNKNOWN="UNKNOWN",f.MEMBERSHIP="MEMBERSHIP",e;var f})()},28499:(Qe,ae,p)=>{"use strict";p.d(ae,{E3:()=>T,yT:()=>H.y});var e=p(36895),f=p(59549),A=p(10266),S=p(24006),m=p(284),M=p(89383),w=p(51572),x=p(97392),I=p(63189),F=p(94650);let T=(()=>{class J{}return J.\u0275fac=function(j){return new(j||J)},J.\u0275mod=F.oAB({type:J}),J.\u0275inj=F.cJS({imports:[e.ez,f.lN,A.AV,S.UX,m.c,M.aw,w.Cq,x.Ps,I.r]}),J})();var H=p(47549);p(13469)},13469:(Qe,ae,p)=>{"use strict";p.d(ae,{G:()=>pe});var e=p(47549),f=p(80279),A=p(61744),S=p(94650),m=p(89383),M=p(36895),w=p(59549),x=p(10266),I=p(24006),F=p(284),T=p(51572),H=p(97392),P=p(98380);function J(re,v){1&re&&S._UZ(0,"mat-spinner",12),2&re&&S.Q6J("diameter",18)}function fe(re,v){if(1&re&&(S.TgZ(0,"mat-icon",13),S._uU(1," error "),S.qZA()),2&re){const V=S.oxw();S.Q6J("matTooltip",V.getErrorTooltip())("matTooltipDisabled",!V.formGroup.get("passwordCtrl").hasError("backendError"))}}function j(re,v){1&re&&(S.TgZ(0,"mat-error"),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&re&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function $(re,v){if(1&re&&(S.TgZ(0,"mat-error",14),S._uU(1),S.qZA()),2&re){const V=S.oxw();S.Q6J("matTooltip",V.getErrorTooltip()),S.xp6(1),S.Oqu(V.getErrorTooltip())}}function _e(re,v){1&re&&(S.TgZ(0,"mat-error"),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&re&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function ge(re,v){1&re&&(S.TgZ(0,"mat-error"),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&re&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let pe=(()=>{class re{constructor(V,W,te){this.translator=V,this.usersManagerService=W,this.store=te,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new e.S,this.allPasswordRequirements=this.store.getProperty("password_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(V=>{const W=V.userAttributes.find(te=>"preferredLanguage"===te.friendlyName);this.language=W?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(null===this.namespace?"DIALOGS.CREATE_SPONSORED_MEMBER.NO_NAMESPACE_SELECTED":this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let V=this.formGroup.get("passwordCtrl").getError("backendError");return V&&(V=V.replace(":null","")),V}changeHelp(){this.passwordRequirement=this.allPasswordRequirements[this.namespace],this.passwordRequirement||(this.passwordRequirement=this.allPasswordRequirements.default)}}return re.\u0275fac=function(V){return new(V||re)(S.Y36(m.sK),S.Y36(A.Fv),S.Y36(f.d6))},re.\u0275cmp=S.Xpm({type:re,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",language:"language"},features:[S.TTD],decls:23,vars:23,consts:[[3,"formGroup"],["subscriptSizing","dynamic","matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],["subscriptSizing","dynamic",1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(V,W){1&V&&(S.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),S._uU(3),S.ALo(4,"translate"),S.qZA(),S._UZ(5,"input",2),S.YNc(6,J,1,1,"mat-spinner",3),S.TgZ(7,"mat-icon",4),S.NdJ("click",function(){return W.showNewPassword=!W.showNewPassword}),S._uU(8),S.qZA(),S.YNc(9,fe,2,2,"mat-icon",5),S.YNc(10,j,3,3,"mat-error",6),S.YNc(11,$,2,2,"mat-error",7),S.qZA(),S.TgZ(12,"mat-form-field",8)(13,"mat-label"),S._uU(14),S.ALo(15,"translate"),S.qZA(),S._UZ(16,"input",9),S.TgZ(17,"mat-icon",4),S.NdJ("click",function(){return W.showPasswordConfirm=!W.showPasswordConfirm}),S._uU(18),S.qZA(),S.YNc(19,_e,3,3,"mat-error",6),S.YNc(20,ge,3,3,"mat-error",6),S.qZA(),S.TgZ(21,"perun-web-apps-alert",10),S._UZ(22,"div",11),S.qZA()()),2&V&&(S.Q6J("formGroup",W.formGroup),S.xp6(1),S.Q6J("matTooltip",W.getPasswordDisabledTooltip())("matTooltipDisabled",W.formGroup.get("passwordCtrl").enabled||W.tooltipPwdDisabledForNamespace),S.xp6(2),S.hij(" ",S.lcZ(4,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")," "),S.xp6(2),S.Q6J("type",W.showNewPassword?"text":"password")("required",W.passwordRequired)("errorStateMatcher",W.passwordStateMatcher),S.xp6(1),S.Q6J("ngIf",W.formGroup.get("passwordCtrl").pending),S.xp6(2),S.hij(" ",W.showNewPassword?"visibility_off":"visibility"," "),S.xp6(1),S.Q6J("ngIf",W.formGroup.get("passwordCtrl").dirty&&null!==W.formGroup.get("passwordCtrl").errors),S.xp6(1),S.Q6J("ngIf",W.formGroup.get("passwordCtrl").hasError("required")),S.xp6(1),S.Q6J("ngIf",W.formGroup.get("passwordCtrl").hasError("backendError")),S.xp6(3),S.hij(" ",S.lcZ(15,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")," "),S.xp6(2),S.Q6J("type",W.showPasswordConfirm?"text":"password")("required",W.passwordRequired),S.xp6(2),S.hij(" ",W.showPasswordConfirm?"visibility_off":"visibility"," "),S.xp6(1),S.Q6J("ngIf",W.formGroup.get("passwordAgainCtrl").hasError("required")),S.xp6(1),S.Q6J("ngIf",W.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),S.xp6(2),S.Q6J("innerHTML",W.passwordRequirement,S.oJD))},dependencies:[M.O5,w.KE,w.hX,w.TO,w.R9,x.gM,I.Fj,I.JJ,I.JL,I.Q7,I.sg,I.u,F.Nt,T.Ou,H.Hw,P.w,m.X$],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),re})()},47549:(Qe,ae,p)=>{"use strict";p.d(ae,{S:()=>M,y:()=>w});var e=p(82805),f=p(39646),A=p(63900),S=p(54004),m=p(70262);class M{isErrorState(I){return!(!I?.invalid||!I?.dirty)}}const w=(x,I,F,T=!1,H=500)=>P=>(0,e.H)(H).pipe((0,A.w)(()=>(F.dontHandleErrorForNext(),x&&"No namespace"!==x?I.checkPasswordStrength({password:P.value,namespace:x},T):(0,f.of)(null))),(0,S.U)(()=>null),(0,m.K)(J=>{const fe={backendError:J.message.substring(J.message.indexOf(":")+1)};return(0,f.of)(fe)}))},61744:(Qe,ae,p)=>{"use strict";p.d(ae,{au:()=>He,sY:()=>Fe,oW:()=>Ve,H8:()=>w,jw:()=>x,Ct:()=>I,VK:()=>M,WY:()=>T,KG:()=>P,IQ:()=>J,ff:()=>fe,uq:()=>$,aC:()=>_e,Hr:()=>ge,tk:()=>pe,xk:()=>re,t7:()=>v,KK:()=>V,Ob:()=>W,Dy:()=>be,Fv:()=>te,FW:()=>ne,YF:()=>ye});var e=p(80529);class f{encodeKey(Oe){return encodeURIComponent(Oe)}encodeValue(Oe){return encodeURIComponent(Oe)}decodeKey(Oe){return decodeURIComponent(Oe)}decodeValue(Oe){return decodeURIComponent(Oe)}}var A=p(94650);const S=new A.OlP("basePath");class M{constructor(Oe={}){this.apiKeys=Oe.apiKeys,this.username=Oe.username,this.password=Oe.password,this.accessToken=Oe.accessToken,this.basePath=Oe.basePath,this.withCredentials=Oe.withCredentials,this.encoder=Oe.encoder,this.credentials=Oe.credentials?Oe.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(Oe){if(0===Oe.length)return;const r=Oe.find(u=>this.isJsonMime(u));return void 0===r?Oe[0]:r}selectHeaderAccept(Oe){if(0===Oe.length)return;const r=Oe.find(u=>this.isJsonMime(u));return void 0===r?Oe[0]:r}isJsonMime(Oe){const r=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==Oe&&(r.test(Oe)||"application/json-patch+json"===Oe.toLowerCase())}lookupCredential(Oe){const r=this.credentials[Oe];return"function"==typeof r?r():r}}let w=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}convertAttributeToNonunique(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}convertAttributeToUnique(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}createAttributeDefinition(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteAttributeDefinition(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteAttributeDefinitions(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"attributes[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllAttributeDefinitions(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAttribute(r,u,_,C,h,o,n,t,i,a,c,l=!1,d="body",s=!1,E){let B=new e.LE({encoder:this.encoder});null!=r&&(B=this.addToHttpParams(B,r,"attributeName")),null!=u&&(B=this.addToHttpParams(B,u,"attributeId")),null!=_&&(B=this.addToHttpParams(B,_,"facility")),null!=C&&(B=this.addToHttpParams(B,C,"user")),null!=h&&(B=this.addToHttpParams(B,h,"vo")),null!=o&&(B=this.addToHttpParams(B,o,"resource")),null!=n&&(B=this.addToHttpParams(B,n,"member")),null!=t&&(B=this.addToHttpParams(B,t,"group")),null!=i&&(B=this.addToHttpParams(B,i,"host")),null!=a&&(B=this.addToHttpParams(B,a,"userExtSource")),null!=c&&(B=this.addToHttpParams(B,c,"key"));let qe,q=this.defaultHeaders;qe=this.configuration.lookupCredential("BasicAuth"),qe&&(q=q.set("Authorization","Basic "+qe)),qe=this.configuration.lookupCredential("BearerAuth"),qe&&(q=q.set("Authorization","Bearer "+qe));let it=E&&E.httpHeaderAccept;void 0===it&&(it=this.configuration.selectHeaderAccept(["application/json"])),void 0!==it&&(q=q.set("Accept",it));let xt=E&&E.context;void 0===xt&&(xt=new e.qT);let ht="json";it&&(ht=it.startsWith("text")?"text":this.configuration.isJsonMime(it)?"json":"blob");let _t=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(l){let Ee=new URL(_t),we=Ee.pathname.split("/");we[1]="non",Ee.pathname=we.join("/"),_t=Ee.toString()}return this.httpClient.get(_t,{context:xt,params:B,responseType:ht,withCredentials:this.configuration.withCredentials,headers:q,observe:d,reportProgress:s})}getAttributeDefinitionById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAttributeDefinitionByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAttributeDefinitionsByNamespace(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"namespace"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAttributeModulesDependenciesForAttributeGraphText(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==u)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"format")),null!=u&&(n=this.addToHttpParams(n,u,"attrName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAttributeModulesDependenciesGraphText(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"format"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAttributePolicyCollections(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAttributeRights(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAttributeRules(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAttributesDefinitionWithRights(r,u,_,C,h,o,n,t,i=!1,a="body",c=!1,l){let d=new e.LE({encoder:this.encoder});null!=r&&(d=this.addToHttpParams(d,r,"member")),null!=u&&(d=this.addToHttpParams(d,u,"user")),null!=_&&(d=this.addToHttpParams(d,_,"vo")),null!=C&&(d=this.addToHttpParams(d,C,"group")),null!=h&&(d=this.addToHttpParams(d,h,"resource")),null!=o&&(d=this.addToHttpParams(d,o,"facility")),null!=n&&(d=this.addToHttpParams(d,n,"host")),null!=t&&(d=this.addToHttpParams(d,t,"userExtSource"));let E,s=this.defaultHeaders;E=this.configuration.lookupCredential("BasicAuth"),E&&(s=s.set("Authorization","Basic "+E)),E=this.configuration.lookupCredential("BearerAuth"),E&&(s=s.set("Authorization","Bearer "+E));let B=l&&l.httpHeaderAccept;void 0===B&&(B=this.configuration.selectHeaderAccept(["application/json"])),void 0!==B&&(s=s.set("Accept",B));let q=l&&l.context;void 0===q&&(q=new e.qT);let qe="json";B&&(qe=B.startsWith("text")?"text":this.configuration.isJsonMime(B)?"json":"blob");let it=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(i){let xt=new URL(it),ht=xt.pathname.split("/");ht[1]="non",xt.pathname=ht.join("/"),it=xt.toString()}return this.httpClient.get(it,{context:q,params:d,responseType:qe,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:c})}getEntitylessAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"key")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEntitylessAttributesByKey(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"key"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getEntitylessAttributesByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attrName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getEntitylessAttributesWithKeys(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attrName")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"keys[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEntitylessKeys(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilityAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilityAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilityResourceUserMemberAttributes(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==_)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==C)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"resource")),null!=_&&(i=this.addToHttpParams(i,_,"user")),null!=C&&(i=this.addToHttpParams(i,C,"member"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getFacilityUserAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupResourceAttributeById(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getGroupResourceAttributeByName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getGroupResourceAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getHostAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getHostAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getHostAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getHostAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getIdpAttributeDefinitions(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getLogins(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getLogins.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMemberAndUserAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"workWithUserAttributes"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMemberAndUserAttributesByNames(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMemberAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMemberAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMemberAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMemberGroupAndUserAttributesByNames(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==C)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group")),_&&_.forEach(B=>{i=this.addToHttpParams(i,B,"attrNames[]")}),null!=C&&(i=this.addToHttpParams(i,C,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getMemberGroupAttributeById(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberGroupAttributeByName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberGroupAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMemberGroupAttributesByNames(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberResourceAndUserFacilityAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberResourceAndUserFacilityAttributesByNames(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==C)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"resource")),_&&_.forEach(B=>{i=this.addToHttpParams(i,B,"attrNames[]")}),null!=C&&(i=this.addToHttpParams(i,C,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getMemberResourceAttributeById(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberResourceAttributeByName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberResourceAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesDefinition(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRequiredAttributesFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRequiredAttributesFacilityService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesFacilityServices(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"services[]")}),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesGroupResourceService(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getRequiredAttributesHostService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==u)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"host"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesMember(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"workWithUserAttributes"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesMemberGroup(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getRequiredAttributesMemberGroupResourceService(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==C)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service")),null!=u&&(a=this.addToHttpParams(a,u,"resource")),null!=_&&(a=this.addToHttpParams(a,_,"group")),null!=C&&(a=this.addToHttpParams(a,C,"member")),null!=h&&(a=this.addToHttpParams(a,h,"workWithUserAttributes"));let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let d=i&&i.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(c=c.set("Accept",d));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";d&&(E=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let B=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(o){let q=new URL(B),qe=q.pathname.split("/");qe[1]="non",q.pathname=qe.join("/"),B=q.toString()}return this.httpClient.get(B,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}getRequiredAttributesMemberGroupService(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"group")),null!=_&&(i=this.addToHttpParams(i,_,"member")),null!=C&&(i=this.addToHttpParams(i,C,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getRequiredAttributesMemberResource(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getRequiredAttributesMemberResourceService(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"resource")),null!=_&&(i=this.addToHttpParams(i,_,"member")),null!=C&&(i=this.addToHttpParams(i,C,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getRequiredAttributesResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRequiredAttributesResourceService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesResourceServices(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"services[]")}),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRequiredAttributesUserFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesVoService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourceAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourceAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourceAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getResourceAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourceGroupAndGroupAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==_)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"resource")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"workWithGroupAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getResourceGroupAndGroupAttributesByNames(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==C)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"group")),_&&_.forEach(B=>{i=this.addToHttpParams(i,B,"attrNames[]")}),null!=C&&(i=this.addToHttpParams(i,C,"workWithGroupAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getResourceGroupAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourceGroupMemberAttributesByNames(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==C)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"group")),null!=_&&(i=this.addToHttpParams(i,_,"member")),C&&C.forEach(B=>{i=this.addToHttpParams(i,B,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getUserAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserExtSourceAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserExtSourceAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserExtSourceAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserExtSourceAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserFacilityAttributeById(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getUserFacilityAttributeByName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getUserFacilityAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getVoAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getVoAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getVoAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeAttributesForFacilityResourceGroupUserMember(r,u,_,C,h,o,n=!1,t="body",i=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==_)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==C)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==h)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new e.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"facility")),null!=u&&(c=this.addToHttpParams(c,u,"resource")),null!=_&&(c=this.addToHttpParams(c,_,"group")),null!=C&&(c=this.addToHttpParams(c,C,"user")),null!=h&&(c=this.addToHttpParams(c,h,"member")),o&&o.forEach(qe=>{c=this.addToHttpParams(c,qe,"attributes[]")});let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let E=a&&a.context;void 0===E&&(E=new e.qT);let B="json";s&&(B=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let q=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(n){let qe=new URL(q),it=qe.pathname.split("/");it[1]="non",qe.pathname=it.join("/"),q=qe.toString()}return this.httpClient.post(q,null,{context:E,params:c,responseType:B,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:i})}removeAttributesForFacilityResourceUserMember(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==_)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==C)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==h)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility")),null!=u&&(a=this.addToHttpParams(a,u,"resource")),null!=_&&(a=this.addToHttpParams(a,_,"user")),null!=C&&(a=this.addToHttpParams(a,C,"member")),h&&h.forEach(q=>{a=this.addToHttpParams(a,q,"attributes[]")});let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let d=i&&i.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(c=c.set("Accept",d));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";d&&(E=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let B=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(o){let q=new URL(B),qe=q.pathname.split("/");qe[1]="non",q.pathname=qe.join("/"),B=q.toString()}return this.httpClient.post(B,null,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}removeEntitylessAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"key")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupResourceAttribute(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeGroupResourceAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeGroupResourceAttributesWorkWithGroupAttributes(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==C)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"resource")),_&&_.forEach(B=>{i=this.addToHttpParams(i,B,"attributes[]")}),null!=C&&(i=this.addToHttpParams(i,C,"workWithGroupAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.post(E,null,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}removeHostAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeHostAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeMemberAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeMemberAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeMemberAttributesWorkWithUserAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"attributes[]")}),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeMemberGroupAttribute(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeMemberGroupAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeMemberGroupAttributesWorkWithUserAttributes(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==C)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group")),_&&_.forEach(B=>{i=this.addToHttpParams(i,B,"attributes[]")}),null!=C&&(i=this.addToHttpParams(i,C,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.post(E,null,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}removeMemberResourceAttribute(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeMemberResourceAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeResourceAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeResourceAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeUesAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeUserAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeUserAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeUserExtSourceAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeUserFacilityAttribute(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeUserFacilityAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeVoAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeVoAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}setAttributeActionCriticality(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==u)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==_)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"attributeDefinition")),null!=u&&(t=this.addToHttpParams(t,u,"action")),null!=_&&(t=this.addToHttpParams(t,_,"critical"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}setAttributePolicyCollections(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setAttributeRights(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setEntitylessAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setFacilityAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setFacilityAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setFacilityResourceGroupUserMemberAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setFacilityResourceUserMemberAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setFacilityUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setGroupAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setGroupAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setGroupResourceAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setGroupResourceAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setHostAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setHostAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberGroupAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberGroupAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberGroupWithUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberResourceAndUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberResourceAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberResourceAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberWithUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setResourceAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setResourceAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setResourceGroupAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setResourceGroupWithGroupAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setUserAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setUserExtSourceAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setUserExtSourceAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setUserFacilityAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setUserFacilityAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setVoAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setVoAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateAttributeDefinition(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),x=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}auditMessagesManagerLog(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"msg"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}createAuditerConsumer(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"consumerName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}findAllPossibleEvents(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/auditMessagesManager/findAllPossibleEvents`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllAuditerConsumers(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAuditerMessagesCount(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getLastMessageId(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getMessages(r,u=!1,_="body",C=!1,h){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"count"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/auditMessagesManager/getMessages`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMessagesByCount(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"count"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMessagesByIdAndCount(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMessagesByIdAndCount.");if(null==u)throw new Error("Required parameter count was null or undefined when calling getMessagesByIdAndCount.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"id")),null!=u&&(n=this.addToHttpParams(n,u,"count"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByIdAndCount`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMessagesPage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetMessagesPage was null or undefined when calling getMessagesPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}pollConsumerMessages(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"consumerName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}setLastProcessedId(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==u)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"consumerName")),null!=u&&(n=this.addToHttpParams(n,u,"lastProcessedId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),I=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}getAllPolicies(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllRolesManagementRules(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAuthzAdminGroups(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==u)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==_)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"role")),null!=u&&(t=this.addToHttpParams(t,u,"complementaryObjectId")),null!=_&&(t=this.addToHttpParams(t,_,"complementaryObjectName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getAuthzRichAdmins(r,u,_,C,h,o,n=!1,t="body",i=!1,a){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==u)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==_)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==C)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new e.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"role")),null!=u&&(c=this.addToHttpParams(c,u,"complementaryObjectId")),null!=_&&(c=this.addToHttpParams(c,_,"complementaryObjectName")),C&&C.forEach(qe=>{c=this.addToHttpParams(c,qe,"specificAttributes")}),null!=h&&(c=this.addToHttpParams(c,h,"allUserAttributes")),null!=o&&(c=this.addToHttpParams(c,o,"onlyDirectAdmins"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let E=a&&a.context;void 0===E&&(E=new e.qT);let B="json";s&&(B=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let q=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(n){let qe=new URL(q),it=qe.pathname.split("/");it[1]="non",qe.pathname=it.join("/"),q=qe.toString()}return this.httpClient.get(q,{context:E,params:c,responseType:B,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:i})}getFacilitiesWhereUserIsInRoles(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=u&&(n=this.addToHttpParams(n,u,"user")),r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupRoleNames(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupRoles(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"groupId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupsWhereUserIsInRoles(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=u&&(n=this.addToHttpParams(n,u,"user")),r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getLoggedUser(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getMembersWhereUserIsInRoles(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=u&&(n=this.addToHttpParams(n,u,"user")),r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getPerunPrincipal(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPrincipalRoleNames(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getResourcesWhereUserIsInRoles(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=u&&(n=this.addToHttpParams(n,u,"user")),r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRoleComplementaryObjectsWithAuthorizedGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getRoleComplementaryObjectsWithAuthorizedGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getRoleComplementaryObjectsWithAuthorizedGroups`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getSecurityTeamsWhereUserIsInRoles(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=u&&(n=this.addToHttpParams(n,u,"user")),r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserDirectRoles(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getUserDirectRoles.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getUserDirectRoles`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserRoleNames(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserRoles(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserRolesObtainedFromAuthorizedGroupMemberships(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getUserRolesObtainedFromAuthorizedGroupMemberships.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getUserRolesObtainedFromAuthorizedGroupMemberships`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVosWhereUserIsInRoles(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=u&&(n=this.addToHttpParams(n,u,"user")),r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}isFacilityAdmin(r,u=!1,_="body",C=!1,h){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}isGroupAdmin(r,u=!1,_="body",C=!1,h){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}isPerunAdmin(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}isVoAdmin(r,u=!1,_="body",C=!1,h){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}keepAlive(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}loadAuthorizationComponents(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}refreshMfa(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}setRoleForGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setRoleForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setRoleWithGroupComplementaryObject(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setRoleWithGroupComplementaryObjects(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setRoleWithUserComplementaryObject(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setRoleWithUserComplementaryObjects(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}unsetRoleForGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}unsetRoleForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}unsetRoleWithGroupComplementaryObject(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}unsetRoleWithGroupComplementaryObjects(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}unsetRoleWithUserComplementaryObject(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}unsetRoleWithUserComplementaryObjects(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),T=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}changeConsentStatus(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"consent")),null!=u&&(n=this.addToHttpParams(n,u,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}evaluateConsentsForConsentHub(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"consentHub"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}evaluateConsentsForConsentHubs(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter consentHubs was null or undefined when calling evaluateConsentsForConsentHubs.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"consentHubs[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHubs`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}evaluateConsentsForService(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllConsentHubs(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllConsents(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/consentsManager/getAllConsents`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getConsentById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentForUserAndConsentHub(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==u)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==_)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"consentHub")),null!=_&&(t=this.addToHttpParams(t,_,"status"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getConsentHubByFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentHubByResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getConsentHubByResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentHubByResource`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentHubById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentHubById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentHubByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentsForConsentHub(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"consentHub"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentsForConsentHubByResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getConsentsForConsentHubByResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHubByResource`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentsForConsentHubWithStatus(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"consentHub")),null!=u&&(n=this.addToHttpParams(n,u,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getConsentsForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentsForUserAndConsentHub(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==u)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"consentHub"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getConsentsForUserWithStatus(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}updateConsentHub(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/updateConsentHub`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),P=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addExtSourceWithGroupSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addExtSourceWithVoSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addExtSourcesWithGroupSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling addExtSourcesWithGroupSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling addExtSourcesWithGroupSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"extSources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSources/g-s`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addExtSourcesWithVoSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addExtSourcesWithVoSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling addExtSourcesWithVoSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"extSources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSources/v-s`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}createExtSourceFromExtSourceObject(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ExtSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createExtSourceWithNameType(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==u)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=u&&(n=this.addToHttpParams(n,u,"type"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteExtSource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getExtSourceById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getExtSourceByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getExtSources(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/extSourcesManager/getExtSources`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getGroupExtSources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoExtSources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}loadExtSourcesDefinitions(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}removeExtSourceWithGroupSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeExtSourceWithVoSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeExtSourcesWithGroupSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeExtSourcesWithGroupSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling removeExtSourcesWithGroupSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"extSources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSources/g-s`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeExtSourcesWithVoSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeExtSourcesWithVoSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling removeExtSourcesWithVoSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"extSources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSources/v-s`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),J=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addFacilityAdminGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityAdminGroupByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityAdminUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityAdminUserByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwner(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwnerByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwnerByFacilityNameOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwnerByOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwners(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwners.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling addFacilityOwners.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"owners[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwnersByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByFacilityName.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling addFacilityOwnersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"owners[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwnersByFacilityNameOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling addFacilityOwnersByFacilityNameOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"ownerNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/f-o-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwnersByOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling addFacilityOwnersByOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"ownerNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/o-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addHost(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==u)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"hostname"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addHostByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==u)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"hostname"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addHosts(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==u)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"hostnames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addHostsByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==u)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"hostnames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}assignSecurityTeam(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}assignSecurityTeamByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=u&&(n=this.addToHttpParams(n,u,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyAttributesByDestinationName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=u&&(n=this.addToHttpParams(n,u,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyAttributesBySourceDestinationNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=u&&(n=this.addToHttpParams(n,u,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyAttributesBySourceName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=u&&(n=this.addToHttpParams(n,u,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyManagers(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=u&&(n=this.addToHttpParams(n,u,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyManagersByDestinationName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=u&&(n=this.addToHttpParams(n,u,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyManagersBySourceDestinationNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=u&&(n=this.addToHttpParams(n,u,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyManagersBySourceName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=u&&(n=this.addToHttpParams(n,u,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyOwners(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=u&&(n=this.addToHttpParams(n,u,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyOwnersByDestinationName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=u&&(n=this.addToHttpParams(n,u,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyOwnersBySourceDestinationNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=u&&(n=this.addToHttpParams(n,u,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyOwnersBySourceName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=u&&(n=this.addToHttpParams(n,u,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}createFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter name was null or undefined when calling createFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=u&&(n=this.addToHttpParams(n,u,"description"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteFacilityByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllFacilities(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/facilitiesManager/getFacilities`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllowedGroups(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getAllowedGroupsByFacilityName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getAllowedRichGroupsWithAttributes(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(B=>{i=this.addToHttpParams(i,B,"attrNames[]")}),null!=_&&(i=this.addToHttpParams(i,_,"vo")),null!=C&&(i=this.addToHttpParams(i,C,"service"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getAllowedRichGroupsWithAttributesByFacilityName(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(B=>{i=this.addToHttpParams(i,B,"attrNames[]")}),null!=_&&(i=this.addToHttpParams(i,_,"vo")),null!=C&&(i=this.addToHttpParams(i,C,"service"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getAllowedUsersOfFacility(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getAllowedUsersOfFacilityByFacilityName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getAllowedVos(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllowedVosByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedFacilitiesByGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedFacilitiesByMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedFacilitiesByService(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedFacilitiesByUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedResourcesByAssignedServiceForFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAssignedResourcesForFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedResourcesForFacilityByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedRichResourcesForFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedRichResourcesForFacilityAndService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-s`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAssignedRichResourcesForFacilityByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedSecurityTeams(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedSecurityTeamsByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedUsers(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAssignedUsersByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getBansForFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facilityId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getBansForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getEnricheFacilitydBansForUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnricheFacilitydBansForUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedBansForUser`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedBansForFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedBansForFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedBansForFacility`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedFacilities(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getEnrichedHosts(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilitiesByAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attributeName")),null!=u&&(n=this.addToHttpParams(n,u,"attributeValue"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilitiesByAttributeWithAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttributeWithAttributes.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttributeWithAttributes.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getFacilitiesByAttributeWithAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"attributeName")),null!=u&&(t=this.addToHttpParams(t,u,"attributeValue")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttributeWithAttributes`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getFacilitiesByDestination(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilitiesByHostName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilitiesByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilitiesCount(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getFacilitiesWhereUserIsAdmin(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityAdminGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityAdminGroupsByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups/f-name`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityAdminUsers(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"onlyDirectAdmins"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAdmins`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilityAdminUsersByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"onlyDirectAdmins"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilityBan(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getBan`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilityBanById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getBanById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityForHost(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityOwners(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getOwners`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityOwnersByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getHostById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getHostById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getHosts(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHosts`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getHostsByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getHostsByHostname(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getHostsCount(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getHostsCountByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getOwnerFacilities(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"owner"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichFacilities(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}removeBanByUserIdFacilityId(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityAdminGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityAdminGroupByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityAdminUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityAdminUserByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityBanById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeFacilityOwner(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityOwnerByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityOwnerByFacilityNameOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityOwnerByOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityOwners(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwners.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling removeFacilityOwners.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"owners[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityOwnersByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByFacilityName.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling removeFacilityOwnersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"owners[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityOwnersByFacilityNameOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling removeFacilityOwnersByFacilityNameOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"ownerNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/f-o-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityOwnersByOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling removeFacilityOwnersByOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"ownerNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/o-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeHost(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHost.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeHostByHostname(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeHosts(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==u)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"hosts[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeHostsByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==u)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"hosts[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeSecurityTeam(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeSecurityTeamByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}setFacilityBan(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/setBan`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFacility was null or undefined when calling updateFacility.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/updateFacility`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateFacilityBan(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/updateBan`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),fe=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addMember(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling addMember.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"groups[]")}),null!=u&&(n=this.addToHttpParams(n,u,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addMembers(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==u)throw new Error("Required parameter members was null or undefined when calling addMembers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"members[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}allowGroupToHierarchicalVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}allowGroupsToHierarchicalVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling allowGroupsToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"groups[]")}),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupsToHierarchicalVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}canExtendMembershipInGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyMembers(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter sourceGroup was null or undefined when calling copyMembers.");if(null==u)throw new Error("Required parameter destinationGroups was null or undefined when calling copyMembers.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"sourceGroup")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"destinationGroups")}),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"members")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/groupsManager/copyMembers`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}createGroupUnion(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==u)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resultGroup")),null!=u&&(n=this.addToHttpParams(n,u,"operandGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}createGroupWithParentGroupNameDescription(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==u)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==_)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"parentGroup")),null!=u&&(t=this.addToHttpParams(t,u,"name")),null!=_&&(t=this.addToHttpParams(t,_,"description"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}createGroupWithVoNameDescription(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==u)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==_)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"name")),null!=_&&(t=this.addToHttpParams(t,_,"description"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}deleteGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/deleteGroups`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}disallowGroupToHierarchicalVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}disallowGroupsToHierarchicalVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling disallowGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling disallowGroupsToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"groups[]")}),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupsToHierarchicalVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}extendMembershipInGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}forceAllSubGroupsSynchronization(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}forceGroupStructureSynchronization(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}forceGroupSynchronization(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllAllowedGroupsToHierarchicalVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllGroups`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllGroupsFromAllVos(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllMemberGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllRichGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"attrNames[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllRichGroupsWithAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAllRichSubGroupsWithGroupAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==u)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"name"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupByName`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupDirectMembersCount(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupDirectMembersCount.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupDirectMembersCount`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupMemberById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembers`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupMembersCount(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupMembersCountsByGroupStatus(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupMembersCountsByVoStatus(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupRichMembersByIds(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==u)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"members[]")}),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getGroupUnions(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==u)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"reverseDirection"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupUnions`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupsByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupsPage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupsPage`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getGroupsWhereMemberIsActive(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getIndirectMembershipPaths(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMemberGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getMemberGroups`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMemberRichGroupsWithAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getParentGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getParentGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getParentGroup`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichGroupByIdWithAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"groupId")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getSubgroupsPage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getVoAllAllowedGroupsToHierarchicalVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"memberVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}isAllowedGroupToHierarchicalVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}isGroupMember(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==u)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/isGroupMember`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}moveGroupWithDestinationGroupMovingGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let n=new e.LE({encoder:this.encoder});null!=u&&(n=this.addToHttpParams(n,u,"destinationGroup")),null!=r&&(n=this.addToHttpParams(n,r,"movingGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupUnion(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==u)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resultGroup")),null!=u&&(n=this.addToHttpParams(n,u,"operandGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeMember(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeMember.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"groups[]")}),null!=u&&(n=this.addToHttpParams(n,u,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeMembers(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==u)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"members[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}setGroupsMemberStatus(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==u)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==_)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"status"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}updateGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/updateGroup`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),$=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addMemberCandidates(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAddMemberCandidates was null or undefined when calling addMemberCandidates.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/addMemberCandidates`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}canExtendMembership(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/canExtendMembership`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}createMemberForCandidate(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createMember/c`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createMemberForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createMember/u`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createMemberFromExtSource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createMember/extSource`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createSpecificMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSpecificMember`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createSponsoredMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createSponsoredMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createSponsoredMembersFromCSV(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"members[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}extendMembership(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}findCompleteRichMembersByAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(E=>{t=this.addToHttpParams(t,E,"attrsNames[]")}),null!=u&&(t=this.addToHttpParams(t,u,"searchString")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"allowedStatuses[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}findCompleteRichMembersForGroup(r,u,_,C,h,o,n=!1,t="body",i=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==C)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new e.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"group")),u&&u.forEach(qe=>{c=this.addToHttpParams(c,qe,"attrsNames[]")}),h&&h.forEach(qe=>{c=this.addToHttpParams(c,qe,"allowedStatuses[]")}),o&&o.forEach(qe=>{c=this.addToHttpParams(c,qe,"allowedGroupStatuses[]")}),null!=_&&(c=this.addToHttpParams(c,_,"searchString")),null!=C&&(c=this.addToHttpParams(c,C,"lookingInParentGroup"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let E=a&&a.context;void 0===E&&(E=new e.qT);let B="json";s&&(B=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let q=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`;if(n){let qe=new URL(q),it=qe.pathname.split("/");it[1]="non",qe.pathname=it.join("/"),q=qe.toString()}return this.httpClient.get(q,{context:E,params:c,responseType:B,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:i})}findCompleteRichMembersForVo(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(B=>{i=this.addToHttpParams(i,B,"attrsNames[]")}),C&&C.forEach(B=>{i=this.addToHttpParams(i,B,"allowedStatuses[]")}),null!=_&&(i=this.addToHttpParams(i,_,"searchString"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}findMembersInVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"searchString"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/findMembersInVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}findSponsoredCompleteRichMembersForVo(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==C)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(B=>{i=this.addToHttpParams(i,B,"attrsNames[]")}),null!=_&&(i=this.addToHttpParams(i,_,"searchString")),null!=C&&(i=this.addToHttpParams(i,C,"onlySponsored"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getAllMembers(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/membersManager/getAllMembers`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllNamespacesRules(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllSponsoredMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllSponsoredMembersAndTheirSponsors(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getCompleteRichMembersForGroup(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==u)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group")),_&&_.forEach(q=>{a=this.addToHttpParams(a,q,"allowedStatuses[]")}),C&&C.forEach(q=>{a=this.addToHttpParams(a,q,"allowedGroupStatuses[]")}),null!=u&&(a=this.addToHttpParams(a,u,"lookingInParentGroup")),h&&h.forEach(q=>{a=this.addToHttpParams(a,q,"attrsNames[]")});let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let d=i&&i.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(c=c.set("Accept",d));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";d&&(E=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let B=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`;if(o){let q=new URL(B),qe=q.pathname.split("/");qe[1]="non",q.pathname=qe.join("/"),B=q.toString()}return this.httpClient.get(B,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}getCompleteRichMembersForGroupResource(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==_)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==C)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"resource")),_&&_.forEach(B=>{i=this.addToHttpParams(i,B,"attrsNames[]")}),C&&C.forEach(B=>{i=this.addToHttpParams(i,B,"allowedStatuses[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getCompleteRichMembersForVo(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"allowedStatuses[]")}),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attrsNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberByExtSourceNameAndExtLogin(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==u)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==_)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"extLogin")),null!=_&&(t=this.addToHttpParams(t,_,"extSourceName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMemberById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMemberByUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMemberByUser`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMembers(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembers`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMembersByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMembersByIds`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMembersByUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMembersByUser`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMembersCount(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMembersCount`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMembersPage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembersPage`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getMembersWithStatusCount(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembersCount/status`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRichMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getRichMember`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichMemberWithAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichMembersByIds(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"ids[]")}),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRichMembersNoUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getSponsoredMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getSponsoredMembersAndTheirSponsors(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getSponsorsByMember(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getSponsors/member`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getSponsorsByVo(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==_)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"extSourceName")),null!=_&&(i=this.addToHttpParams(i,_,"extLogin")),C&&C.forEach(B=>{i=this.addToHttpParams(i,B,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/membersManager/getSponsors/vo`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}moveMembership(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==u)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==_)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"sourceUser")),null!=_&&(t=this.addToHttpParams(t,_,"targetUser"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeSponsor(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"sponsor"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeSponsors(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeSponsors.");if(null==u)throw new Error("Required parameter sponsorIds was null or undefined when calling removeSponsors.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"sponsorIds")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsors`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}sendAccountActivationLinkEmail(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==_)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==C)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"namespace")),null!=_&&(i=this.addToHttpParams(i,_,"emailAttributeURN")),null!=C&&(i=this.addToHttpParams(i,C,"language"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.post(E,null,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}sendPasswordResetLinkEmail(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==_)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==C)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member")),null!=u&&(a=this.addToHttpParams(a,u,"namespace")),null!=_&&(a=this.addToHttpParams(a,_,"emailAttributeURN")),null!=C&&(a=this.addToHttpParams(a,C,"language")),null!=h&&(a=this.addToHttpParams(a,h,"baseUrl"));let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let d=i&&i.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(c=c.set("Accept",d));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";d&&(E=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let B=`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`;if(o){let q=new URL(B),qe=q.pathname.split("/");qe[1]="non",q.pathname=qe.join("/"),B=q.toString()}return this.httpClient.post(B,null,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}setSponsoredMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/setSponsoredMember`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setSponsorshipForMember(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"sponsoredMember")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}setStatus(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling setStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}sponsorMember(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}sponsorMembers(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter members was null or undefined when calling sponsorMembers.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMembers.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(E=>{t=this.addToHttpParams(t,E,"members[]")}),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMembers`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}updateSponsorshipValidity(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}validateMemberAsync(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),_e=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}createOwner(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/ownersManager/createOwner`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteOwner(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"owner")),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteOwners(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter owners was null or undefined when calling deleteOwners.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"owners[]")}),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwners`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAllOwners(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/ownersManager/getOwners`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getOwnerById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/ownersManager/getOwnerById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getOwnerByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"owner"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/ownersManager/getOwnerByName`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),ge=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}sentMessageToRTWithMemberQueue(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==u)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==_)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==C)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"memberId")),null!=u&&(i=this.addToHttpParams(i,u,"queue")),null!=_&&(i=this.addToHttpParams(i,_,"subject")),null!=C&&(i=this.addToHttpParams(i,C,"text"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.post(E,null,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}sentMessageToRTWithQueue(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==u)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==_)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"queue")),null!=u&&(t=this.addToHttpParams(t,u,"subject")),null!=_&&(t=this.addToHttpParams(t,_,"text"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}sentMessageToRTWithVo(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==u)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==_)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"voId")),null!=u&&(t=this.addToHttpParams(t,u,"subject")),null!=_&&(t=this.addToHttpParams(t,_,"text"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}sentMessageToRTWithVoQueue(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==u)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==_)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==C)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"voId")),null!=u&&(i=this.addToHttpParams(i,u,"queue")),null!=_&&(i=this.addToHttpParams(i,_,"subject")),null!=C&&(i=this.addToHttpParams(i,C,"text"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.post(E,null,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),pe=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addApplicationMailForGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}addApplicationMailForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}addGroupsToAutoRegistration(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"groups[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}approveApplication(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}checkForSimilarRichIdentities(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.post(a,null,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}checkForSimilarUsersWithAuthInfo(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.post(a,null,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}consolidate(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/consolidate`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}consolidateIdentityUsingToken(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"token"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}copyFormFromGroupToGroup(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=u&&(n=this.addToHttpParams(n,u,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyFormFromGroupToVo(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=u&&(n=this.addToHttpParams(n,u,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyFormFromVoToGroup(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=u&&(n=this.addToHttpParams(n,u,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyFormFromVoToVo(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=u&&(n=this.addToHttpParams(n,u,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyMailsFromGroupToGroup(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=u&&(n=this.addToHttpParams(n,u,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyMailsFromGroupToVo(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=u&&(n=this.addToHttpParams(n,u,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyMailsFromVoToGroup(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=u&&(n=this.addToHttpParams(n,u,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyMailsFromVoToVo(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=u&&(n=this.addToHttpParams(n,u,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}createApplicationFormInGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}createApplicationFormInVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteApplication(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteApplicationMailForGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==u)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"id"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteApplicationMailForVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==u)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"id"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteGroupsFromAutoRegistration(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"groups[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getApplicationById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getApplicationDataById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getApplicationMailsForGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getApplicationMailsForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getApplicationsForGroup(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(B=>{i=this.addToHttpParams(i,B,"state[]")}),null!=_&&(i=this.addToHttpParams(i,_,"dateFrom")),null!=C&&(i=this.addToHttpParams(i,C,"dateTo"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getApplicationsForMember(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getApplicationsForVo(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(B=>{i=this.addToHttpParams(i,B,"state[]")}),null!=_&&(i=this.addToHttpParams(i,_,"dateFrom")),null!=C&&(i=this.addToHttpParams(i,C,"dateTo"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getApplicationsPage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getConsolidatorToken(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getFormItemsForGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getFormItems/group`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFormItemsForGroupWithType(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"type"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFormItemsForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFormItemsForVoWithType(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"type"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupApplicationForm(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupsToAutoRegistration(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoApplicationForm(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}invitationFormExists(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling invitationFormExists.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/invitationFormExists`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}inviteMemberCandidates(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputInviteMemberCandidates was null or undefined when calling inviteMemberCandidates.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/inviteMemberCandidates`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}rejectApplication(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"id")),null!=u&&(n=this.addToHttpParams(n,u,"reason"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}sendInvitation(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==u)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let i=new e.LE({encoder:this.encoder});null!=_&&(i=this.addToHttpParams(i,_,"voId")),null!=C&&(i=this.addToHttpParams(i,C,"name")),null!=r&&(i=this.addToHttpParams(i,r,"email")),null!=u&&(i=this.addToHttpParams(i,u,"language"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.post(E,null,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}sendInvitationForGroup(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==u)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new e.LE({encoder:this.encoder});null!=_&&(a=this.addToHttpParams(a,_,"voId")),null!=C&&(a=this.addToHttpParams(a,C,"groupId")),null!=h&&(a=this.addToHttpParams(a,h,"name")),null!=r&&(a=this.addToHttpParams(a,r,"email")),null!=u&&(a=this.addToHttpParams(a,u,"language"));let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let d=i&&i.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(c=c.set("Accept",d));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";d&&(E=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let B=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`;if(o){let q=new URL(B),qe=q.pathname.split("/");qe[1]="non",q.pathname=qe.join("/"),B=q.toString()}return this.httpClient.post(B,null,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}sendInvitationGroupToExistingUser(r,u,_,C=!1,h="body",o=!1,n){let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"userId")),null!=u&&(t=this.addToHttpParams(t,u,"voId")),null!=_&&(t=this.addToHttpParams(t,_,"groupId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}sendInvitationToExistingUser(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userId")),null!=u&&(n=this.addToHttpParams(n,u,"voId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}sendInvitationsFromCsv(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}sendMessage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/sendMessage`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setSendingEnabled(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}submitApplication(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/submitApplication`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateApplicationMail(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateForm(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateForm`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateFormItemData(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItemData`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateFormItemsData(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateFormItemsForGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateFormItemsForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}verifyApplication(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),re=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}activateGroupResourceAssignment(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"async"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}addAdminToGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addAdminToUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addResourceSelfServiceGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addResourceSelfServiceUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}allowGroupsToResources(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(E=>{t=this.addToHttpParams(t,E,"groups[]")}),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"resources[]")}),null!=_&&(t=this.addToHttpParams(t,_,"async"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}assignGroupToResource(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group")),null!=u&&(a=this.addToHttpParams(a,u,"resource")),null!=_&&(a=this.addToHttpParams(a,_,"async")),null!=C&&(a=this.addToHttpParams(a,C,"assignInactive")),null!=h&&(a=this.addToHttpParams(a,h,"autoAssignSubgroups"));let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let d=i&&i.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(c=c.set("Accept",d));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";d&&(E=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let B=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`;if(o){let q=new URL(B),qe=q.pathname.split("/");qe[1]="non",q.pathname=qe.join("/"),B=q.toString()}return this.httpClient.post(B,null,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}assignGroupToResources(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group")),u&&u.forEach(q=>{a=this.addToHttpParams(a,q,"resources[]")}),null!=_&&(a=this.addToHttpParams(a,_,"async")),null!=C&&(a=this.addToHttpParams(a,C,"assignInactive")),null!=h&&(a=this.addToHttpParams(a,h,"autoAssignSubgroups"));let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let d=i&&i.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(c=c.set("Accept",d));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";d&&(E=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let B=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`;if(o){let q=new URL(B),qe=q.pathname.split("/");qe[1]="non",q.pathname=qe.join("/"),B=q.toString()}return this.httpClient.post(B,null,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}assignGroupsToResource(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(q=>{a=this.addToHttpParams(a,q,"groups[]")}),null!=u&&(a=this.addToHttpParams(a,u,"resource")),null!=_&&(a=this.addToHttpParams(a,_,"async")),null!=C&&(a=this.addToHttpParams(a,C,"assignInactive")),null!=h&&(a=this.addToHttpParams(a,h,"autoAssignSubgroups"));let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let d=i&&i.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(c=c.set("Accept",d));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";d&&(E=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let B=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`;if(o){let q=new URL(B),qe=q.pathname.split("/");qe[1]="non",q.pathname=qe.join("/"),B=q.toString()}return this.httpClient.post(B,null,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}assignResourceTagToResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}assignResourceTagsToResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAssignResourceTagsToResource was null or undefined when calling assignResourceTagsToResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagsToResource`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}assignService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling assignService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}assignServices(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==u)throw new Error("Required parameter services was null or undefined when calling assignServices.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"services[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}assignServicesPackage(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==u)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"servicesPackage"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/copyResource`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createResource(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==_)throw new Error("Required parameter name was null or undefined when calling createResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"facility")),null!=_&&(i=this.addToHttpParams(i,_,"name")),null!=C&&(i=this.addToHttpParams(i,C,"description"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.post(E,null,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}createResourceTagWithResourceTag(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createResourceTagWithTagName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"tagName")),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deactivateGroupResourceAssignment(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteAllResources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteAllResourcesTagsForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteResourceTag(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getAdminGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAdmins(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"onlyDirectAdmins"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAdmins`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAllResources(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/resourcesManager/getAllResources`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllResourcesByResourceTag(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getAllResourcesTagsForResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllResourcesTagsForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllResourcesWhereUserIsAdmin(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllowedMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllowedResources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllowedUsersOfResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedGroups(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAssignedMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedMembersWithStatus(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedResourcesWithGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedResourcesWithMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedResourcesWithStatus(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedRichMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedRichResourcesWithGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedRichResourcesWithMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedRichResourcesWithMemberService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAssignedServicesToResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getBansForMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getBansForMember`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getBansForResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getBansForResource`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getEnrichedBansForResource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getEnrichedBansForResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForResource`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedBansForUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnrichedBansForUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForUser`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedResourceById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"id")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedResourcesForFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedResourcesForVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getFacility`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupAssignments(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMailingServiceRichResourcesWithMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getResourceAssignments(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourceBan(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getBan`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourceBanById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getBanById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getResourceById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourceById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getResourceByName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==_)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"name"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/resourcesManager/getResourceByName`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getResources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResources`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getResourcesByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getResourcesCountForAll(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getResourcesCountForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getResourcesFromVoWhereUserIsAdmin(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourcesWhereGroupIsAdmin(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getResourcesWhereUserIsAdmin(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==_)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"user"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getRichAdmins(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==u)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==_)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==C)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(B=>{i=this.addToHttpParams(i,B,"specificAttributes")}),null!=_&&(i=this.addToHttpParams(i,_,"allUserAttributes")),null!=C&&(i=this.addToHttpParams(i,C,"onlyDirectAdmins"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getRichResourceById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichResources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getRichResources`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichResourcesByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getVo`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeAllResourceTagsFromResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeBanByMemberAndResource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupAdminResource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupFromResource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupFromResources(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"resources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupsFromResource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"groups[]")}),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeResourceBanById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeResourceSelfServiceGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeResourceSelfServiceUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeResourceTagFromResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}removeResourceTagsFromResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputRemoveResourceTagsFromResource was null or undefined when calling removeResourceTagsFromResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagsFromResource`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}removeService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeServiceForResources(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resources was null or undefined when calling removeServiceForResources.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeServiceForResources.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"resources[]")}),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService/forResources`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeServices(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==u)throw new Error("Required parameter services was null or undefined when calling removeServices.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"services[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeServicesPackage(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==u)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"servicesPackage"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeUserAdminResource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}setResourceBan(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/setBan`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}unallowGroupsFromResources(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"groups[]")}),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"resources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}updateResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/updateResource`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateResourceBan(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/updateBan`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateResourceTag(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),v=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}getAttributesMatchResources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetMatchResources was null or undefined when calling getAttributesMatchResources.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getResources/attributes-match`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getAttributesResources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetResources was null or undefined when calling getAttributesResources.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getResources/attributes`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getFacilities(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetFacilities was null or undefined when calling getFacilities.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getFacilities`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getMembersByUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetMembersByUserAttributes was null or undefined when calling getMembersByUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getMembersByUserAttributes`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getUsersSearcher(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetUsers was null or undefined when calling getUsersSearcher.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getUsers`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),V=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addDestination(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==_)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==C)throw new Error("Required parameter type was null or undefined when calling addDestination.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service")),null!=u&&(a=this.addToHttpParams(a,u,"facility")),null!=_&&(a=this.addToHttpParams(a,_,"destination")),null!=C&&(a=this.addToHttpParams(a,C,"type")),null!=h&&(a=this.addToHttpParams(a,h,"propagationType"));let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let d=i&&i.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(c=c.set("Accept",d));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";d&&(E=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let B=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`;if(o){let q=new URL(B),qe=q.pathname.split("/");qe[1]="non",q.pathname=qe.join("/"),B=q.toString()}return this.httpClient.post(B,null,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}addDestinationToMultipleServices(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/addDestination`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}addDestinationsDefinedByHostsOnFacilityWithFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addDestinationsForAllServicesOnFacility(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==_)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"destination")),null!=_&&(i=this.addToHttpParams(i,_,"type")),null!=C&&(i=this.addToHttpParams(i,C,"propagationType"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.post(E,null,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}addRequiredAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addRequiredAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addServiceToServicesPackage(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==u)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"servicesPackage")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}blockAllServicesOnDestinationById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}blockAllServicesOnDestinationByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==u)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"destination")),null!=u&&(n=this.addToHttpParams(n,u,"destinationType"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}blockAllServicesOnFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}blockServiceOnDestination(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}blockServiceOnDestinationWithNameAndType(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==_)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"destination")),null!=_&&(t=this.addToHttpParams(t,_,"destinationType"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}blockServiceOnDestinations(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinations.");if(null==u)throw new Error("Required parameter destinations was null or undefined when calling blockServiceOnDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"destinations[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestinations`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}blockServiceOnFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}blockServicesOnDestinations(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputBlockServicesOnDestinations was null or undefined when calling blockServicesOnDestinations.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/blockServicesOnDestinations`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createService(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==u)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==_)throw new Error("Required parameter script was null or undefined when calling createService.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"name")),null!=u&&(t=this.addToHttpParams(t,u,"description")),null!=_&&(t=this.addToHttpParams(t,_,"script"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}createServiceWithService(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateService was null or undefined when calling createServiceWithService.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/createService`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createServicesPackage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/createServicesPackage`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createServicesPackageByNameAndDescription(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==u)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=u&&(n=this.addToHttpParams(n,u,"description"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling deleteService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteServices(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter services was null or undefined when calling deleteServices.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"services[]")}),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServices`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteServicesPackage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}forceServicePropagation(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAllDestinations(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/servicesManager/getDestinations/all`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllRichDestinationsForFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllRichDestinationsForService(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedResources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedServices(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedServicesVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServicesVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getAssignedServicesVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f-v`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getDataWithGroups(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getDataWithVos(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getDataWithVos`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getDestinationById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getDestinationById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getDestinations(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getDestinationsCount(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getFacilitiesDestinations(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityAssignedServicesForGUI(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFlatData(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getFlatData`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getHashedDataWithGroups(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"consentEval"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getHashedHierarchicalData(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"consentEval"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getHierarchicalData(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRichDestinations(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getRichDestinations`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getServiceById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServiceById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServiceByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServiceByName`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServices(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/servicesManager/getServices`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getServicesBlockedOnDestination(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServicesBlockedOnFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServicesByAttributeDefinition(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServicesFromServicesPackage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServicesPackageById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServicesPackageByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServicesPackages(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/servicesManager/getServicesPackages`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}isServiceBlockedOnDestination(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}isServiceBlockedOnFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}planServicePropagation(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeAllDestinations(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeAllRequiredAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeDestination(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==_)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==C)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility")),null!=_&&(i=this.addToHttpParams(i,_,"destination")),null!=C&&(i=this.addToHttpParams(i,C,"type"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.post(E,null,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}removeDestinations(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeDestinations.");if(null==_)throw new Error("Required parameter destinations was null or undefined when calling removeDestinations.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"destinations[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestinations`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeDestinationsByRichDestinations(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputRemoveRichDestinations was null or undefined when calling removeDestinationsByRichDestinations.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/removeDestinationsByRichDestinations`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}removeRequiredAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeRequiredAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeServiceFromServicesPackage(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"servicesPackage")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}unblockAllServicesOnDestinationById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}unblockAllServicesOnDestinationByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==u)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"destination")),null!=u&&(n=this.addToHttpParams(n,u,"destinationType"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}unblockAllServicesOnFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}unblockServiceOnDestinationById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}unblockServiceOnDestinationByName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==_)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"destination")),null!=_&&(t=this.addToHttpParams(t,_,"destinationType"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}unblockServiceOnDestinations(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinations.");if(null==u)throw new Error("Required parameter destinations was null or undefined when calling unblockServiceOnDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"destinations[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestinations`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}unblockServiceOnFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}unblockServicesOnDestinations(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUnlockServicesOnDestinations was null or undefined when calling unblockServicesOnDestinations.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/unblockServicesOnDestinations`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateService(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateService was null or undefined when calling updateService.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/updateService`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateServicesPackage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),W=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}countTasks(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/tasksManager/countTasks`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}deleteTask(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter TaskIdObject was null or undefined when calling deleteTask.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTask`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteTaskResultById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter TaskResultIdObject was null or undefined when calling deleteTaskResultById.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteTaskResultsByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter taskResultIds was null or undefined when calling deleteTaskResultsByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"taskResultIds")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/tasksManager/deleteTaskResultsByIds`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteTaskResultsIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter TaskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteTaskResultsNames(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter TaskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getAllFacilitiesStates(r,u=!1,_="body",C=!1,h){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllResourcesState(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"voId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityServicesState(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityState(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getFacilityState`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getTask(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getTask.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getTask`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getTaskById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getTaskResultById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"taskResult"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getTaskResults(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/tasksManager/getTaskResults`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getTaskResultsByTask(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getTaskResultsForDestinations(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"destinations[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getTaskResultsForGUIByTask(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getTaskResultsForGUIByTaskAndDestination(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"task")),null!=u&&(n=this.addToHttpParams(n,u,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getTaskResultsForGUIByTaskOnlyNewest(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}isThereSuchTask(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}listAllTasks(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/tasksManager/listAllTasks`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}listAllTasksForFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}suspendTasksPropagation(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"suspend"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),te=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addSpecificUserOwner(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==u)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"specificUser"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addUserExtSource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}anonymizeUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}changeNonAuthzPasswordByToken(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}changePasswordForLogin(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}changePasswordForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}checkPasswordResetRequestByTokenIsValid(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"token"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}checkPasswordStrength(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createAlternativePassword(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createServiceUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteAlternativePassword(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==u)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==_)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"loginNamespace")),null!=_&&(t=this.addToHttpParams(t,_,"passwordId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}deletePasswordForLogin(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"login")),null!=u&&(n=this.addToHttpParams(n,u,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deletePasswordForUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}findRichUsers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}findRichUsersWithAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"searchString")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrsNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}findUsers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/findUsers`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}generateAccountForName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"namespace")),null!=u&&(n=this.addToHttpParams(n,u,"name"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAllRichUsersWithAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"includedSpecificUsers"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedRichResourcesForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupsForFacilityWhereUserIsActive(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupsForResourceWhereUserIsActive(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupsInVoWhereUserIsAdmin(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupsWhereUserIsAdmin(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getPendingPreferredEmailChanges(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichUserExtSources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichUserWithAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichUsersByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichUsersWithAttributesByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichUsersWithoutVoWithAttributes(r,u=!1,_="body",C=!1,h){let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"attrsNames[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getSpecificUsersByUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getSponsorsForMember(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getSponsorsForMemberByVoAndLogin(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==_)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"extSourceName")),null!=_&&(i=this.addToHttpParams(i,_,"extLogin")),C&&C.forEach(B=>{i=this.addToHttpParams(i,B,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(a=a.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let E=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(h){let B=new URL(E),q=B.pathname.split("/");q[1]="non",B.pathname=q.join("/"),E=B.toString()}return this.httpClient.get(E,{context:d,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getUserByExtSourceNameAndExtLogin(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"extLogin")),null!=u&&(n=this.addToHttpParams(n,u,"extSourceName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getUserById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserExtSourceByExtLoginAndExtSourceName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==u)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"extSourceName")),null!=u&&(n=this.addToHttpParams(n,u,"extSourceLogin"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserExtSourceById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserExtSourceByUniqueAttributeValueAndAttributeId(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attributeId")),null!=u&&(n=this.addToHttpParams(n,u,"attributeValue"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserExtSourceByUniqueAttributeValueAndAttributeName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attributeName")),null!=u&&(n=this.addToHttpParams(n,u,"attributeValue"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserExtSources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserExtSourcesByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUsers(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/usersManager/getUsers`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getUsersByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUsersBySpecificUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"specificUser"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUsersPage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getVosWhereUserIsAdmin(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVosWhereUserIsMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}isLoginAvailable(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==u)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"loginNamespace")),null!=u&&(n=this.addToHttpParams(n,u,"login"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}loginExist(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeSpecificUserOwner(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==u)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"specificUser"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeUserExtSource(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==u)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"userExtSource")),null!=_&&(t=this.addToHttpParams(t,_,"force"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeUserExtSources(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==u)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"userExtSources")}),null!=_&&(t=this.addToHttpParams(t,_,"force"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}requestPreferredEmailChange(r,u,_,C,h,o,n=!1,t="body",i=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==u)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new e.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"user")),null!=u&&(c=this.addToHttpParams(c,u,"email")),null!=_&&(c=this.addToHttpParams(c,_,"lang")),null!=C&&(c=this.addToHttpParams(c,C,"linkPath")),null!=h&&(c=this.addToHttpParams(c,h,"customUrl")),null!=o&&(c=this.addToHttpParams(c,o,"idpFilter"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let E=a&&a.context;void 0===E&&(E=new e.qT);let B="json";s&&(B=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let q=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(n){let qe=new URL(q),it=qe.pathname.split("/");it[1]="non",qe.pathname=it.join("/"),q=qe.toString()}return this.httpClient.post(q,null,{context:E,params:c,responseType:B,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:i})}reservePasswordForLogin(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}reservePasswordForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}reserveRandomPassword(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}setLogin(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==u)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==_)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"login")),null!=_&&(t=this.addToHttpParams(t,_,"namespace"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}updateUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/updateUser`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateUserExtSourceLastAccess(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}validatePasswordForLogin(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"login")),null!=u&&(n=this.addToHttpParams(n,u,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}validatePasswordForUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}validatePreferredEmailChangeWithToken(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==u)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"token")),null!=u&&(n=this.addToHttpParams(n,u,"u"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),ne=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}getAppsConfig(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getGuiConfiguration(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getNewGuiAlert(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunRPCVersion(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunStatistics(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunStatus(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunSystemTimeInMillis(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),ye=(()=>{class ve{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addMemberVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"memberVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addSponsorRoleToGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addSponsorRoleToUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addVoAdminGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addVoAdminUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}createVoWithName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==u)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=u&&(n=this.addToHttpParams(n,u,"shortName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}createVoWithVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/createVo/withVo`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}findCandidates(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"id")),null!=u&&(t=this.addToHttpParams(t,u,"searchString")),null!=_&&(t=this.addToHttpParams(t,_,"maxNumOfResults"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/vosManager/findCandidates`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}findCandidatesForGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"searchString"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAllVos(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/vosManager/getAllVos`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getCompleteCandidatesForGroup(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"searchString"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getCompleteCandidatesForVo(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"searchString"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getEnrichedBansForVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getEnrichedBansForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedVoBansForUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnrichedVoBansForUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForUser`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedVoById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMemberVos(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getMemberVos`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMyEnrichedVos(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/vosManager/getEnrichedVos`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getMyVos(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/vosManager/getVos`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getParentVos(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getParentVos`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichAdminsForVo(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==_)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==C)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==h)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo")),null!=u&&(a=this.addToHttpParams(a,u,"role")),_&&_.forEach(q=>{a=this.addToHttpParams(a,q,"specificAttributes")}),null!=C&&(a=this.addToHttpParams(a,C,"allUserAttributes")),null!=h&&(a=this.addToHttpParams(a,h,"onlyDirectAdmins"));let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let d=i&&i.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(c=c.set("Accept",d));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";d&&(E=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let B=`${this.configuration.basePath}/json/vosManager/getRichAdmins`;if(o){let q=new URL(B),qe=q.pathname.split("/");qe[1]="non",q.pathname=qe.join("/"),B=q.toString()}return this.httpClient.get(B,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}getVoAdminGroups(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"role"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getAdminGroups`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.get(d,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getVoAdminUsers(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==_)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"role")),null!=_&&(t=this.addToHttpParams(t,_,"onlyDirectAdmins"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let l=n&&n.context;void 0===l&&(l=new e.qT);let d="json";c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let s=`${this.configuration.basePath}/json/vosManager/getAdmins`;if(C){let E=new URL(s),B=E.pathname.split("/");B[1]="non",E.pathname=B.join("/"),s=E.toString()}return this.httpClient.get(s,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getVoBanById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getBanById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoBanForMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getBanForMember`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoBansForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getBansForVo`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getVoById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVoById`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoByShortName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"shortName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVoByShortName`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoMembersCountsByStatus(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVosByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{o=this.addToHttpParams(o,d,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVosByIds`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.get(l,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVosCount(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/vosManager/getVosCount`;if(r){let c=new URL(a),l=c.pathname.split("/");l[1]="non",c.pathname=l.join("/"),a=c.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}removeMemberVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"memberVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeSponsorRoleFromGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeSponsorRoleFromUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeVoAdminGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeVoAdminUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let l="json";a&&(l=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`;if(_){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,null,{context:c,params:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeVoBan(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeVoBanForMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let c="json";i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`;if(u){let d=new URL(l),s=d.pathname.split("/");s[1]="non",d.pathname=s.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}setVoBan(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/setBan`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/updateVo`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateVoBan(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBan1 was null or undefined when calling updateVoBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/updateBan`;if(u){let s=new URL(d),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),d=s.toString()}return this.httpClient.post(d,r,{context:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},ve.\u0275prov=A.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();const Fe={ID:"ID",DATE_CREATED:"DATE_CREATED",TYPE:"TYPE",STATE:"STATE",SUBMITTER:"SUBMITTER",GROUP_NAME:"GROUP_NAME",MODIFIED_BY:"MODIFIED_BY"},Ve={WRITE:"WRITE",READ:"READ"},be={HTML_COMMENT:"HTML_COMMENT",SUBMIT_BUTTON:"SUBMIT_BUTTON",AUTO_SUBMIT_BUTTON:"AUTO_SUBMIT_BUTTON",PASSWORD:"PASSWORD",VALIDATED_EMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDED_GROUP_APPLICATION:"EMBEDDED_GROUP_APPLICATION",LIST_INPUT_BOX:"LIST_INPUT_BOX",MAP_INPUT_BOX:"MAP_INPUT_BOX"};let He=(()=>{class ve{constructor(r,u){if(r)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!u)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(r){return{ngModule:ve,providers:[{provide:M,useFactory:r}]}}}return ve.\u0275fac=function(r){return new(r||ve)(A.LFG(ve,12),A.LFG(e.eN,8))},ve.\u0275mod=A.oAB({type:ve}),ve.\u0275inj=A.cJS({}),ve})()},19516:(Qe,ae,p)=>{"use strict";p.d(ae,{m2:()=>ge.m,yo:()=>_e.y,bY:()=>$.b,i2:()=>pe.i,r5:()=>M.r,GY:()=>re.G,d4:()=>A,Qh:()=>W.Q,E7:()=>v.E,dp:()=>S.d});var e=p(36895),f=p(94650);let A=(()=>{class te{}return te.\u0275fac=function(ye){return new(ye||te)},te.\u0275mod=f.oAB({type:te}),te.\u0275inj=f.cJS({imports:[e.ez]}),te})();var S=p(31359),M=(p(34447),p(82895)),$=(p(69773),p(12856),p(20919),p(5865),p(38993),p(86349),p(53561),p(16119),p(7598),p(9954),p(4765)),_e=p(22908),ge=p(10293),pe=p(23123),re=p(56575),v=p(48524),W=(p(77749),p(67955))},77749:(Qe,ae,p)=>{"use strict";p.d(ae,{K:()=>A});var e=p(80279),f=p(94650);let A=(()=>{class S{constructor(M){this.translate=M}transform(M){switch(M){case"createdAt":return this.translate.instant("APPLICATIONS_LIST.CREATED_DATE");case"createdBy":return this.translate.instant("APPLICATIONS_LIST.CREATED_BY");case"type":return this.translate.instant("APPLICATIONS_LIST.TYPE");case"state":return this.translate.instant("APPLICATIONS_LIST.STATE");case"modifiedBy":return this.translate.instant("APPLICATIONS_LIST.MODIFIED_BY");default:return M}}}return S.\u0275fac=function(M){return new(M||S)(f.Y36(e.Te,16))},S.\u0275pipe=f.Yjl({name:"applicationColumnSelectLabel",type:S,pure:!0}),S})()},8231:(Qe,ae,p)=>{"use strict";p.d(ae,{G:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){const M="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return m?M+"DESELECT_ROW":M+"SELECT_ROW"}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"checkboxLabel",type:A,pure:!0}),A})()},10293:(Qe,ae,p)=>{"use strict";p.d(ae,{m:()=>f});var e=p(94650);let f=(()=>{class A{transform(m,M){if(!M||0===M.length)return;const w=M.filter(x=>x.userId===m);return 0!==w.length?w.reduce((x,I)=>x.id>I.id?x:I).status:void 0}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"consentStatusIcon",type:A,pure:!0}),A})()},34447:(Qe,ae,p)=>{"use strict";p.d(ae,{a:()=>S});var e=p(80279),f=p(94650),A=p(89383);let S=(()=>{class m{constructor(w,x){this.translate=w,this.storage=x}transform(w,x="en"){const I=this.storage.getProperty("custom_labels");if(I)for(const F of I)if(F.label===w)return F[x];return w}}return m.\u0275fac=function(w){return new(w||m)(f.Y36(A.sK,16),f.Y36(e.d6,16))},m.\u0275pipe=f.Yjl({name:"customTranslate",type:m,pure:!0}),m})()},22908:(Qe,ae,p)=>{"use strict";p.d(ae,{y:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M,w,x,I){return w&&"members"===M.name||x&&(I.has(M.id)||(0,e.bx)(M))}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"disableGroupSelect",type:S,pure:!0}),S})()},4765:(Qe,ae,p)=>{"use strict";p.d(ae,{b:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){return m.namespace.includes("virt")||m.namespace.includes("core")||m.namespace.includes("entityless")}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"disableUniqueAttribute",type:A,pure:!0}),A})()},23123:(Qe,ae,p)=>{"use strict";p.d(ae,{i:()=>A});var e=p(80279),f=p(94650);let A=(()=>{class S{constructor(M){this.translate=M,this.prefix="ROLES."}transform(M){return"displayName"in M&&M.displayName?M.displayName:this.translate.instant(this.prefix+M.roleName)}}return S.\u0275fac=function(M){return new(M||S)(f.Y36(e.Te,16))},S.\u0275pipe=f.Yjl({name:"displayedRole",type:S,pure:!0}),S})()},82895:(Qe,ae,p)=>{"use strict";p.d(ae,{r:()=>f});var e=p(94650);let f=(()=>{class A{transform(m,M){return M?`/organizations/${m.voId}/resources/${m.id}`:`/facilities/${m.facilityId}/resources/${m.id}`}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"getResourceRoute",type:A,pure:!0}),A})()},82514:(Qe,ae,p)=>{"use strict";p.d(ae,{F:()=>f});var e=p(94650);let f=(()=>{class A{transform(m,M,w){let x;switch(m){case"VALID":x="green";break;case"INVALID":x="red";break;default:x=""}return`${x}${w||M?" cursor-default":""}`}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"groupStatusIconColor",type:A,pure:!0}),A})()},28764:(Qe,ae,p)=>{"use strict";p.d(ae,{F:()=>S});var e=p(9244),f=p(64080),A=p(94650);let S=(()=>{class m{transform(w){if(null==w||null==w.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const x=(0,e.IL)(w.attributes,f.r.GROUP_SYNC_ENABLED),I=(0,e.IL)(w.attributes,f.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===x&&null===I)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const F=I.value;if("true"===x.value){const H=(0,e.IL)(w.attributes,f.r.GROUP_LAST_SYNC_STATE),P=(0,e.IL)(w.attributes,f.r.GROUP_LAST_SYNC_TIMESTAMP),J=H.value,fe=P.value;return null!=J&&J.trim().length>0?"red":null!==fe&&fe.trim().length>0?"green":""}if(F){const H=(0,e.IL)(w.attributes,f.r.GROUP_LAST_STRUCTURE_SYNC_STATE),P=(0,e.IL)(w.attributes,f.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),J=H.value,fe=P.value;return null!=J&&J.trim().length>0?"red":null!==fe&&fe.trim().length>0?"green":""}return""}}return m.\u0275fac=function(w){return new(w||m)},m.\u0275pipe=A.Yjl({name:"groupSyncIconColor",type:m,pure:!0}),m})()},29218:(Qe,ae,p)=>{"use strict";p.d(ae,{J:()=>S});var e=p(64080),f=p(9244),A=p(94650);let S=(()=>{class m{transform(w){if(null==w||null==w.attributes)return"";const x=(0,f.IL)(w.attributes,e.r.GROUP_SYNC_ENABLED),I=(0,f.IL)(w.attributes,e.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===x&&null===I)return"";const F=I.value;if("true"===x.value){const H=(0,f.IL)(w.attributes,e.r.GROUP_LAST_SYNC_STATE),P=(0,f.IL)(w.attributes,e.r.GROUP_LAST_SYNC_TIMESTAMP),J=H.value,fe=P.value;return null!=J&&J.trim().length>0?"sync_problem":(null!==fe&&fe.trim(),"sync")}if(F){const H=(0,f.IL)(w.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_STATE),P=(0,f.IL)(w.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),J=H.value,fe=P.value;return null!=J&&J.trim().length>0?"sync_problem":(null!==fe&&fe.trim(),"sync")}return"sync_disabled"}}return m.\u0275fac=function(w){return new(w||m)},m.\u0275pipe=A.Yjl({name:"groupSyncIcon",type:m,pure:!0}),m})()},45942:(Qe,ae,p)=>{"use strict";p.d(ae,{r:()=>S});var e=p(9244),f=p(64080),A=p(94650);let S=(()=>{class m{transform(w){if(null==w||null==w.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const x=(0,e.IL)(w.attributes,f.r.GROUP_SYNC_ENABLED),I=(0,e.IL)(w.attributes,f.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===x&&null===I)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const F=I.value;if("true"===x.value){const H=(0,e.IL)(w.attributes,f.r.GROUP_LAST_SYNC_STATE),P=(0,e.IL)(w.attributes,f.r.GROUP_LAST_SYNC_TIMESTAMP),J=H.value,fe=P.value;return null!=J&&J.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==fe&&fe.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(F){const H=(0,e.IL)(w.attributes,f.r.GROUP_LAST_STRUCTURE_SYNC_STATE),P=(0,e.IL)(w.attributes,f.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),J=H.value,fe=P.value;return null!=J&&J.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==fe&&fe.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return m.\u0275fac=function(w){return new(w||m)},m.\u0275pipe=A.Yjl({name:"groupSyncToolTip",type:m,pure:!0}),m})()},9185:(Qe,ae,p)=>{"use strict";p.d(ae,{I:()=>S});var e=p(80279),f=p(91479),A=p(94650);let S=(()=>{class m{constructor(w){this.tableCheckboxService=w}transform(w,x,I){return 0!==x&&((0,e.uI)(w)?x===w.getData().length:(0,f.o)(w)?this.tableCheckboxService.isAllSelectedPaginated(w,x,I):this.tableCheckboxService.isAllSelected(x,w,I))}}return m.\u0275fac=function(w){return new(w||m)(A.Y36(e.UA,16))},m.\u0275pipe=A.Yjl({name:"isAllSelected",type:m,pure:!0}),m})()},56575:(Qe,ae,p)=>{"use strict";p.d(ae,{G:()=>A});var e=p(80279),f=p(94650);let A=(()=>{class S{constructor(M){this.authResolver=M}transform(M,w){return M.filter(x=>this.canSetRoleForEntity(x,w))}canSetRoleForEntity(M,w){const x=new Map;return this.authResolver.setRolesAuthorization([w],M,x),x.get(w.roleName).manageAuth}}return S.\u0275fac=function(M){return new(M||S)(f.Y36(e.x4,16))},S.\u0275pipe=f.Yjl({name:"manageableEntities",type:S,pure:!0}),S})()},14849:(Qe,ae,p)=>{"use strict";p.d(ae,{r:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){const M="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return m?M+"DESELECT_ALL":M+"SELECT_ALL"}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"masterCheckboxLabel",type:A,pure:!0}),A})()},86349:(Qe,ae,p)=>{"use strict";p.d(ae,{A:()=>S});var e=p(9244),f=p(94650),A=p(89383);let S=(()=>{class m{constructor(w){this.translate=w}transform(w,x){const I=(0,e.zr)(w);return"INDIRECT"===I?this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"):x||"UNALTERABLE"!==I?"":this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_UNALTERABLE")}}return m.\u0275fac=function(w){return new(w||m)(f.Y36(A.sK,16))},m.\u0275pipe=f.Yjl({name:"memberCheckboxLabel",type:m,pure:!0}),m})()},20919:(Qe,ae,p)=>{"use strict";p.d(ae,{D:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){return(0,e.g$)(M)}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"memberEmail",type:S,pure:!0}),S})()},5865:(Qe,ae,p)=>{"use strict";p.d(ae,{p:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){return(0,e.lt)(M)}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"memberLogins",type:S,pure:!0}),S})()},96974:(Qe,ae,p)=>{"use strict";p.d(ae,{M:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){return(0,e.Gw)(M)}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"memberOrganization",type:S,pure:!0}),S})()},38993:(Qe,ae,p)=>{"use strict";p.d(ae,{n:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M,w){const x=(0,e.zr)(M);return"INDIRECT"===x||!w&&"UNALTERABLE"===x}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"memberStatusDisabled",type:S,pure:!0}),S})()},69773:(Qe,ae,p)=>{"use strict";p.d(ae,{u:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){const w=(0,e.zr)(M);let x;switch(M.status){case"VALID":x="green";break;case"INVALID":x="red";break;case"DISABLED":x="black";break;default:return""}return`${x}${"UNALTERABLE"===w?" cursor-default":""}`}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"memberStatusIconColor",type:S,pure:!0}),S})()},21757:(Qe,ae,p)=>{"use strict";p.d(ae,{f:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){switch(m){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return m}}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"memberStatusIcon",type:A,pure:!0}),A})()},12856:(Qe,ae,p)=>{"use strict";p.d(ae,{i:()=>S});var e=p(9244),f=p(94650),A=p(89383);let S=(()=>{class m{constructor(w){this.translate=w}transform(w,x,I){let F=null,T=null;w.memberAttributes&&(F=w.memberAttributes.find(J=>"membershipExpiration"===J.friendlyName),T=w.memberAttributes.find(J=>"groupMembershipExpiration"===J.friendlyName));let H="";H=x?`\n Group status: ${(0,e.Oe)(w.groupStatus)}\n Expiration: ${T?.value??"never"}`:w.memberAttributes?`Status: ${(0,e.Oe)(w.status,w.groupStatus)}\n Vo status: ${(0,e.Oe)(w.status)}\n Expiration: ${F?.value??"never"}`:`Status: ${(0,e.Oe)(w.status,w.groupStatus)}\n Vo status: ${(0,e.Oe)(w.status)}`;const P=(0,e.zr)(w);return I?H=`${H}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_MEMBERS_GROUP")}`:"INDIRECT"===P&&x?H=`${H}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_GROUP_INDIRECT")}`:!x&&"UNALTERABLE"===P&&(H=`${H}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_INDIRECT")}`),H}}return m.\u0275fac=function(w){return new(w||m)(f.Y36(A.sK,16))},m.\u0275pipe=f.Yjl({name:"memberStatusTooltip",type:m,pure:!0}),m})()},20551:(Qe,ae,p)=>{"use strict";p.d(ae,{l:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){let M=m.replace("VALID","ACTIVE");return M=M.replace("INACTIVE","INCOMPLETE"),M}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"memberStatus",type:A,pure:!0}),A})()},64597:(Qe,ae,p)=>{"use strict";p.d(ae,{R:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){return m.replace(/\s/g,"-").replace(/\./g,"-").toLowerCase()}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"multiWordDataCy",type:A,pure:!0}),A})()},62383:(Qe,ae,p)=>{"use strict";p.d(ae,{M:()=>A});var e=p(36895),f=p(94650);let A=(()=>{class S{transform(M,w){return"voRules"===M?"Vo rules":"groupRules"===M?"Group rules":M&&"never"!==M.toLowerCase()?(0,e.p6)(M.replace(" ","T"),"d.M.yyyy "+(w?"H:mm:ss":""),"en"):"never"}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"parseDate",type:S,pure:!0}),S})()},30076:(Qe,ae,p)=>{"use strict";p.d(ae,{A:()=>A});var e=p(94650),f=p(11481);let A=(()=>{class S{constructor(M){this.sanitizer=M}transform(M){return this.sanitizer.bypassSecurityTrustHtml(M)}}return S.\u0275fac=function(M){return new(M||S)(e.Y36(f.H7,16))},S.\u0275pipe=e.Yjl({name:"sanitizeHtml",type:S,pure:!0}),S})()},67955:(Qe,ae,p)=>{"use strict";p.d(ae,{Q:()=>A});var e=p(80279),f=p(94650);let A=(()=>{class S{constructor(M){this.translateService=M}transform(M,w,x){if(!M||M.length===w.length)return"ALL";const I=x;return I?`${this.translateService.instant(`CONSENTS.STATUS_${I[0]}`)} ${I.length>1?"(+"+(I.length-1).toString()+" "+(2===I.length?"other)":"others)"):""}`:""}}return S.\u0275fac=function(M){return new(M||S)(f.Y36(e.Te,16))},S.\u0275pipe=f.Yjl({name:"selectedConsentStatuses",type:S,pure:!0}),S})()},53561:(Qe,ae,p)=>{"use strict";p.d(ae,{J:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){return(0,e.te)(M)}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"technicalOwners",type:S,pure:!0}),S})()},48524:(Qe,ae,p)=>{"use strict";p.d(ae,{E:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){return m.map(M=>({facility:M}))}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"toEnrichedFacility",type:A,pure:!0}),A})()},49206:(Qe,ae,p)=>{"use strict";p.d(ae,{r:()=>f});var e=p(94650);let f=(()=>{class A{transform(m,M){return"valid"!==m.toLowerCase()||M&&"valid"!==m.toLowerCase()?m.replace("INVALID","INCOMPLETE"):"ACTIVE"}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"transformMemberStatus",type:A,pure:!0}),A})()},16119:(Qe,ae,p)=>{"use strict";p.d(ae,{S:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){return(0,e.kN)(M)}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"userEmail",type:S,pure:!0}),S})()},31359:(Qe,ae,p)=>{"use strict";p.d(ae,{d:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){return[m.titleBefore,m.firstName,m.middleName,m.lastName,m.titleAfter].join(" ")}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"userFullName",type:A,pure:!0}),A})()},7598:(Qe,ae,p)=>{"use strict";p.d(ae,{g:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){return(0,e.$0)(M)}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"userLogins",type:S,pure:!0}),S})()},9954:(Qe,ae,p)=>{"use strict";p.d(ae,{Z:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){return(0,e.OV)(M)}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"userVo",type:S,pure:!0}),S})()},80279:(Qe,ae,p)=>{"use strict";p.d(ae,{yC:()=>X,F5:()=>N,sM:()=>Me,eE:()=>C,e8:()=>P,EB:()=>ye,Be:()=>He,Hy:()=>pt,ly:()=>Pe,fb:()=>ve,Mf:()=>n,K1:()=>o,x4:()=>M,L6:()=>i,v0:()=>W,hy:()=>V,SZ:()=>ce,V6:()=>U,jq:()=>he,Te:()=>A,BN:()=>z,Nj:()=>t,Ip:()=>r,HV:()=>Ye,d6:()=>F,UA:()=>ue,uI:()=>Ue});var e=p(89383),f=p(94650);let A=(()=>{class a extends e.sK{instant(l,d){return String(super.instant(l,d))}}return a.\u0275fac=function(){let c;return function(d){return(c||(c=f.n5z(a)))(d||a)}}(),a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();var S=p(61744),m=p(45323);let M=(()=>{class a{constructor(l){this.authzSevice=l,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(d,s)=>d.roleName>s.roleName?1:d.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(s=>{this.allRolesManagementRules=s,l()},s=>d(s))})}assignAvailableRoles(l,d){this.allRolesManagementRules.forEach(s=>{s.primaryObject===d&&l.push(s)}),l.sort(this.sortRoles),"Vo"===d&&this.voCustomSort(l)}isManagerPagePrivileged(l){const d=[];let s=l.beanName;s.startsWith("Rich")&&(s=s.substring(4)),this.assignAvailableRoles(d,s);const E=new Map;this.setRolesAuthorization(d,l,E);for(const B of E.values())if(B.readAuth||B.manageAuth)return!0;return!1}setRolesAuthorization(l,d,s){for(const E of l){let B=[],q=[],qe=[];for(const Ee of this.allRolesManagementRules)if(Ee.roleName===E.roleName){B=B.concat(Ee.privilegedRolesToRead),q=q.concat(Ee.privilegedRolesToManage);for(const we of Object.keys(Ee.entitiesToManage))qe="User"===we?[we].concat(qe):qe.concat(we);break}const it=this.fetchAllRelatedObjects([d]),xt=this.resolveAuthorization(B,it),ht=this.resolveAuthorization(q,it);s.set(E.roleName,{readAuth:xt,manageAuth:ht,modes:qe})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(l){for(const d of this.allRolesManagementRules)if(d.roleName===l)return d.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(l){return this.allRolesManagementRules.find(d=>d.roleName===l)}getAssignableRoleRules(l){const d=[],s=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(E=>{!s.includes(E.roleName)&&this.canManage(E)&&this.ruleHasMode(E,l)&&d.push(E)}),d.sort(this.sortRoles)}ruleHasMode(l,d){return Object.keys(l.entitiesToManage).map(s=>s.toUpperCase()).includes(d)}canManage(l){return l.privilegedRolesToManage.some(d=>this.principalRoles.has(Object.keys(d)[0]))}resolveAuthorization(l,d){for(const s of l){let E=!0;for(const B of Object.keys(s)){const q=s[B];if(null===q)this.principalRoles.has(B)||(E=!1);else if(d[q]){for(const qe of d[q])if(!this.principalHasRole(B,q,qe)){E=!1;break}}else E=!1;if(!E)break}if(E)return!0}return!1}getPerunPolicy(l){for(const d of this.perunPolicies)if(d.policyName===l)return d;return null}fetchAllRelatedObjects(l){const d={};for(const s of l){let E=s.beanName;switch(s.beanName.startsWith("Rich")&&(E=s.beanName.substring(4)),d[E]?d[E].push(s.id):d[E]=[s.id],E){case"Member":d.User?d.User.push(s.userId):d.User=[s.userId],d.Vo?d.Vo.push(s.voId):d.Vo=[s.voId];break;case"Group":case"ResourceTag":d.Vo?d.Vo.push(s.voId):d.Vo=[s.voId];break;case"Resource":d.Facility?d.Facility.push(s.facilityId):d.Facility=[s.facilityId],d.Vo?d.Vo.push(s.voId):d.Vo=[s.voId]}}return d}fetchPolicyWithAllIncludedPolicies(l){const d=new Map;let s=[];for(s.push(l);0!==s.length;){const B=s.shift();if(d.has(B))continue;const q=this.getPerunPolicy(B);if(!q)return[];d.set(B,q),s=s.concat(q.includePolicies)}const E=[];for(const B of d.values())E.push(B);return E}voCustomSort(l){for(let d=0;d{class a{constructor(){this.branding=""}setInstanceConfig(l){this.instanceConfig=l}setDefaultConfig(l){this.defaultConfig=l}getAppsConfig(){return this.appsConfig}setAppsConfig(l){this.appsConfig=l}setPerunPrincipal(l){this.principal=l}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(l){this.initialPageId=l}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(l){this.branding=l}getProperty(l){if(!this.instanceConfig||!this.defaultConfig)return null;const d=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],s=this.defaultConfig[l];let E=null;for(const B of d)B&&null==E&&(E=B[l]);return null===E?s:this.addMissingValuesToProperty(E,s)}addMissingValuesToProperty(l,d){if(null==l)return d;if("object"==typeof l&&!Array.isArray(l))for(const s of Object.keys(d))l[s]=this.addMissingValuesToProperty(l[s],d[s]);return l}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();var T=p(7274),H=p(51214);let P=(()=>{class a{constructor(l,d,s,E,B){this.injector=l,this.store=d,this.dialog=s,this.route=E,this.oauthService=B,setTimeout(()=>{this.router=this.injector.get(x.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(q=>{q.idpFilter&&(this.filterShortname=String(q.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const l=this.setIdpFilter(),E=.5+.25*Math.random(),B=l?{acr_values:l}:{},q=this.store.getProperty("oidc_client");if(q.oauth_scopes.split(" ").includes("offline_access")&&q.oauth_offline_access_consent_prompt&&(B.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(B.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(B.prompt?B.prompt+=" login":B.prompt="login",B.max_age="0"),"Linker"===this.store.getProperty("application")){B.prompt?B.prompt+=" login":B.prompt="login";const qe=(0,I.O5)("idphint",location.search.substring(1));qe&&(B.idphint=qe)}return{requestAccessToken:!0,issuer:q.oauth_authority,clientId:q.oauth_client_id,redirectUri:q.oauth_redirect_uri,postLogoutRedirectUri:q.oauth_post_logout_redirect_uri,responseType:q.oauth_response_type,scope:q.oauth_scopes,clockSkewInSec:1,timeoutFactor:E,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:B}}setIdpFilter(){const l=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const d=this.store.getProperty("oidc_client").filters;if(!d)return null;let s=null;return l.forEach(E=>{const B=E.split("=");"idpFilter"===B[0]&&d[B[1]]&&(this.filterShortname=B[1],s=d[B[1]])}),d.default&&!s?(this.filterShortname="default",d.default):s}startIdpFilterKeeper(){this.router.events.pipe((0,w.h)(l=>l instanceof x.m2)).subscribe(()=>{const l={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===l.idpFilter?{}:l,queryParamsHandling:"merge",replaceUrl:!0})})}}return a.\u0275fac=function(l){return new(l||a)(f.LFG(f.zs3),f.LFG(F),f.LFG(T.uw),f.LFG(x.gz),f.LFG(H.Ct))},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),J=(()=>{class a{constructor(l){this.dialogRef=l}}return a.\u0275fac=function(l){return new(l||a)(f.Y36(T.so))},a.\u0275cmp=f.Xpm({type:a,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(l,d){1&l&&(f.TgZ(0,"h2",0),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&l&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[T.xY,e.X$]}),a})();var fe=p(83905),j=p(69751),$=p(4859),_e=p(98380);let ge=(()=>{class a{constructor(l,d){this.dialogRef=l,this.data=d}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return a.\u0275fac=function(l){return new(l||a)(f.Y36(T.so),f.Y36(T.WI))},a.\u0275cmp=f.Xpm({type:a,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(l,d){1&l&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),f._uU(5),f.ALo(6,"translate"),f.ALo(7,"translate"),f.qZA()(),f.TgZ(8,"div",3)(9,"button",4),f.NdJ("click",function(){return d.cancel()}),f._uU(10),f.ALo(11,"translate"),f.qZA(),f.TgZ(12,"button",5),f.NdJ("click",function(){return d.submit()}),f._uU(13),f.ALo(14,"translate"),f.qZA()()),2&l&&(f.xp6(1),f.Oqu(f.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),f.xp6(4),f.hij(" ",d.data.mfaRoleException?f.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):f.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),f.xp6(4),f.Q6J("hidden",d.data.mfaRoleException),f.xp6(1),f.hij(" ",f.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),f.xp6(2),f.Tol(d.data.mfaRoleException?"ms-auto":"ms-2"),f.xp6(1),f.hij(" ",f.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[T.uh,T.xY,T.H8,$.lW,_e.w,e.X$]}),a})();var pe=p(97392);let re=(()=>{class a{}return a.\u0275fac=function(l){return new(l||a)},a.\u0275cmp=f.Xpm({type:a,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(l,d){1&l&&(f.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),f._uU(3," info "),f.qZA(),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div"),f._uU(7),f.ALo(8,"translate"),f.qZA()()),2&l&&(f.xp6(4),f.hij(" ",f.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),f.xp6(3),f.hij(" ",f.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[pe.Hw,e.X$],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),a})(),v=(()=>{class a{constructor(l,d){this.data=l,this.dialogRef=d}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return a.\u0275fac=function(l){return new(l||a)(f.Y36(T.WI),f.Y36(T.so))},a.\u0275cmp=f.Xpm({type:a,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"click"]],template:function(l,d){1&l&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),f._uU(5),f.ALo(6,"translate"),f.qZA()(),f.TgZ(7,"div",3)(8,"button",4),f.NdJ("click",function(){return d.cancel()}),f._uU(9),f.ALo(10,"translate"),f.qZA(),f.TgZ(11,"button",5),f.NdJ("click",function(){return d.submit()}),f._uU(12),f.ALo(13,"translate"),f.qZA()()),2&l&&(f.xp6(1),f.Oqu(f.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),f.xp6(4),f.hij(" ",f.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),f.xp6(4),f.hij(" ",f.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),f.xp6(3),f.hij(" ",f.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[T.uh,T.xY,T.H8,$.lW,_e.w,e.X$]}),a})(),V=(()=>{class a{constructor(l,d,s,E){this.dialog=l,this.oauthService=d,this.authService=s,this.store=E}openMfaWindow(l){let d=null,s=null;const E=(0,I.kZ)();E.width="450px",E.data={mfaRoleException:l};const B=this.dialog.open(ge,E);let q=!1;if(B.afterClosed().subscribe(qe=>{if(qe){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),d=this.setupMfaWindow(),d){const it=(0,I.kZ)();it.width="450px",it.panelClass="noBorderDialog",s=this.dialog.open(re,it)}}else q=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const qe=(0,I.kZ)();qe.width="450px",qe.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(v,qe)}return new j.y(qe=>{const it=setInterval(()=>d?.closed?(clearInterval(it),s.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),qe.next(!0)):q?(clearInterval(it),qe.next(!1)):void 0,1e3)})}catchNoMfaTokenError(l){"unmet_authentication_requirements"===l&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const l=location.pathname+location.search,E=window.top;return window.open(l,"_blank",`width=600,height=600,top=${E.outerHeight/2+E.screenY-300}, left=${E.outerWidth/2+E.screenX-300}`)}}return a.\u0275fac=function(l){return new(l||a)(f.LFG(T.uw),f.LFG(H.Ct),f.LFG(P),f.LFG(F))},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),W=(()=>{class a{constructor(l,d,s,E,B,q,qe,it){this.authService=l,this.oauthService=d,this.storeService=s,this.authResolver=E,this.authzService=B,this.dialog=q,this.router=qe,this.mfaHandlerService=it,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const l=location.pathname,d=location.search.substring(1);return"/api-callback"===l?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",d),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(l)?(sessionStorage.setItem("auth:redirect",l),sessionStorage.setItem("auth:queryParams",d),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return(0,fe.z)(this.authzService.getPerunPrincipal()).then(l=>{if(null===l.user){const d=(0,I.kZ)();this.dialog.open(J,d)}else this.storeService.setPerunPrincipal(l),this.authResolver.init(l)})}simpleLoadPrincipal(){return(0,fe.z)(this.authzService.getPerunPrincipal()).then(l=>{this.storeService.setPerunPrincipal(l)})}checkRouteGuard(){const l=localStorage.getItem("routeAuthGuard");l&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([l],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const l=location.pathname,d=location.search.substring(1);sessionStorage.setItem("auth:redirect",l),sessionStorage.setItem("auth:queryParams",d);const s={};return d.split("&").forEach(E=>{const B=E.split("=");s[B[0]]=B[1]}),this.router.navigate(["service-access"],{queryParams:s,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const l=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",l),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(l){this.loginScreenShown=l}isPotentiallyValidPath(l){const d=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===l)return!0;for(const s of d)if(l.startsWith(s))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,w.h)(l=>"token_expires"===l.type&&"access_token"===l.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const l=sessionStorage.getItem("mfa_route");if(l)return this.router.navigate([l],{replaceUrl:!0,queryParamsHandling:"merge"});let d=sessionStorage.getItem("auth:redirect");(!d||"/login"===d)&&(d="/"),sessionStorage.removeItem("auth:redirect");const s=sessionStorage.getItem("auth:queryParams");let E=[];s&&(E=s.split("&"));const B={};return E.forEach(q=>{const qe=q.split("=");B[qe[0]]=qe[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([d],{queryParams:B,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return a.\u0275fac=function(l){return new(l||a)(f.LFG(P),f.LFG(H.Ct),f.LFG(F),f.LFG(M),f.LFG(S.Ct),f.LFG(T.uw),f.LFG(x.F0),f.LFG(V))},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();var te=p(11481);let ye=(()=>{class a{constructor(l,d){this.matIconRegistry=l,this.domSanitizer=d,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(l=>{this.matIconRegistry.addSvgIcon(l.name,this.domSanitizer.bypassSecurityTrustResourceUrl(l.url))})}}return a.\u0275fac=function(l){return new(l||a)(f.LFG(pe.jv),f.LFG(te.H7))},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac}),a})();var ze=p(80529),ke=p(62843),$e=p(28746),Je=p(18505),Fe=p(70262),Ve=p(63900);let le=(()=>{class a{constructor(l){this.dialogRef=l}close(){this.dialogRef.close(!0)}}return a.\u0275fac=function(l){return new(l||a)(f.Y36(T.so))},a.\u0275cmp=f.Xpm({type:a,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ms-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(l,d){1&l&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div",2)(7,"div",3)(8,"button",4),f.NdJ("click",function(){return d.close()}),f._uU(9),f.ALo(10,"translate"),f.qZA()()()),2&l&&(f.xp6(1),f.Oqu(f.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),f.xp6(3),f.hij(" ",f.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),f.xp6(5),f.hij(" ",f.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[T.uh,T.xY,T.H8,$.lW,e.X$]}),a})(),N=(()=>{class a{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const l=this.handleNextError;return this.handleNextError=!0,l}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),U=(()=>{class a{constructor(l){this.translate=l,this.addNotification=new f.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(l,d=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===l.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===l.name?d:d+"\n"+l.name,l,l.message)}showRouteError(){this.showInstantError("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR",null,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC")}showError(l,d,s,E,B){this.addNotification.emit({type:"error",error:d,description:s,title:l,actionText:void 0===E&&void 0!==s?this.getDefaultActionMessage():E,delay:this.defaultErrorDelayMs,icon:"error_outline",action:B,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantError(l,d,s,E,B){const q=s?this.translate.instant(s):null,qe=E?this.translate.instant(E):null;qe?this.showError(this.translate.instant(l),d,q,qe,B):this.showError(this.translate.instant(l),d,q)}showSuccess(l,d,s,E){this.addNotification.emit({type:"success",description:d,title:l,actionText:void 0===s&&void 0!==d?this.getDefaultActionMessage():s,delay:this.defaultSuccessDelayMs,icon:"done",action:E,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantSuccess(l,d,s,E){const B=d?this.translate.instant(d):null,q=s?this.translate.instant(s):null;q?this.showSuccess(this.translate.instant(l),B,q,E):this.showSuccess(this.translate.instant(l),B)}}return a.\u0275fac=function(l){return new(l||a)(f.LFG(A))},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),X=(()=>{class a{constructor(l,d,s,E,B,q,qe,it){this.authService=l,this.apiRequestConfiguration=d,this.notificator=s,this.store=E,this.dialog=B,this.initAuthService=q,this.mfaHandlerService=qe,this.oauthService=it}intercept(l,d){const s=this.store.getProperty("api_url");if(l.url.includes("i18n")&&(l=l.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==s&&this.isCallToPerunApi(l.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const E=(0,I.kZ)();E.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(le,E),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{(0,$e.x)(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.dialog.closeAll(),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?l=l.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(l.url)&&(l=l.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(l,d)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(l,d){const s=this.apiRequestConfiguration.shouldHandleError(),E="POST"===l.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(l.url);return d.handle(l).pipe((0,Je.b)(B=>{B instanceof ze.Zn&&E&&this.initAuthService.loadPrincipal()}),(0,Fe.K)(B=>{const q=B.error;if("MfaPrivilegeException"===q.type||"MfaRolePrivilegeException"===q.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===q.type).pipe((0,Ve.w)(qe=>qe?("MfaRolePrivilegeException"===q.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(l),d)):(0,ke._)(()=>q)));{this.handleInvalidAccessTokenError(B);const qe=this.formatErrors(B,l);return void 0===qe?(0,ke._)(()=>B):(s&&this.notificator.showRPCError(qe),(0,ke._)(()=>qe))}}))}replaceAuthenticationToken(l){return l.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(l){return l.startsWith(this.store.getProperty("api_url"))}formatErrors(l,d){let s;console.error(l);const E=l.error;if(E.errorId&&(s=E),void 0!==s)return s.urlWithParams=d.urlWithParams,s.call=d.url,s.payload=d.body,s}isNotConsolidatorOrLinker(){const l=this.store.getProperty("application");return!("Linker"===l||"Consolidator"===l)}handleInvalidAccessTokenError(l){if(401===l.status){if(!this.isLoggedIn()||"invalid_token"===l.error.error||null!=this.dialogRefSessionExpiration)return;const d=(0,I.kZ)();this.dialogRefSessionExpiration=this.dialog.open(le,d),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return a.\u0275fac=function(l){return new(l||a)(f.LFG(P),f.LFG(N),f.LFG(U),f.LFG(F),f.LFG(T.uw),f.LFG(W),f.LFG(V),f.LFG(H.Ct))},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac}),a})(),ce=(()=>{class a{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(l){this.newNotificationsCount++,this.notificationData.push(l)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),Me=(()=>{class a{constructor(l,d,s,E){this.http=l,this.notificator=d,this.authService=s,this.storeService=E}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let l=new ze.WM;return l=l.set("Authorization",this.authService.getAuthorizationHeaderValue()),l}get(l,d=!0){const s=`${this.getApiUrl()}${l}`;return this.http.get(s,{headers:this.getHeaders()}).pipe((0,Fe.K)(E=>this.formatErrors(E,s,null,d)))}put(l,d={},s=!0){const E=`${this.getApiUrl()}${l}`,B=JSON.stringify(d);return this.http.put(E,B,{headers:this.getHeaders()}).pipe((0,Fe.K)(q=>this.formatErrors(q,E,B,s)))}post(l,d={},s=!0){const E=`${this.getApiUrl()}${l}`,B=JSON.stringify(d);let q=this.getHeaders();return q=q.set("Content-Type","application/json; charset=utf-8"),this.http.post(E,B,{headers:q}).pipe((0,Fe.K)(qe=>this.formatErrors(qe,E,B,s)))}delete(l,d=!0){const s=`${this.getApiUrl()}${l}`;return this.http.delete(s,{headers:this.getHeaders()}).pipe((0,Fe.K)(E=>this.formatErrors(E,s,null,d)))}formatErrors(l,d,s,E){const B=l.error;return B.call=d,B.payload=s,E&&this.notificator.showRPCError(l.error),(0,ke._)(B)}}return a.\u0275fac=function(l){return new(l||a)(f.LFG(ze.eN),f.LFG(U),f.LFG(P),f.LFG(F))},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),ue=(()=>{class a{isAllSelected(l,d,s=(()=>!0)){const E=d.paginator,B=E.pageSize??0,q=E.pageIndex??0,qe=(E.pageIndex+1)*E.pageSize{this.pageStart<=this.pageIterator&&this.pageIterator{it?xt(ht)&&this.pageStart<=this.pageIterator&&this.pageIterator!0)){return d===l.data.reduce((E,B)=>E+Number(s(B)),0)}masterTogglePaginated(l,d,s,E=(()=>!0)){d.clear(),s&&l.data.forEach(B=>{E(B)&&d.select(B)})}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),Pe=(()=>{class a{constructor(l,d,s,E){this.membersService=l,this.usersService=d,this.auditMessagesManagerService=s,this.registrarService=E}getMembers(l,d,s,E,B,q,qe,it,xt,ht){return this.membersService.getMembersPage({vo:l,attrNames:d,query:{pageSize:B,offset:E*B,order:s,sortColumn:q,statuses:qe,searchString:it,groupId:xt,groupStatuses:ht}})}getUsers(l,d,s,E,B,q,qe,it,xt,ht,_t,Ee,we){return this.usersService.getUsersPage({attrNames:l,query:{offset:E*s,pageSize:E,order:d,sortColumn:B,searchString:q,withoutVo:qe,facilityId:it,voId:xt,resourceId:ht,serviceId:_t,onlyAllowed:Ee,consentStatuses:we}})}getAuditMessages(l,d,s,E){return this.auditMessagesManagerService.getMessagesPage({query:{offset:s*d,pageSize:s,order:l,selectedEvents:E}})}getApplications(l,d,s,E,B,q,qe,it,xt,ht,_t,Ee,we){return this.registrarService.getApplicationsPage({vo:_t,query:{pageSize:l,offset:d*l,order:s,sortColumn:E,searchString:q,includeGroupApplications:B,getDetails:we,states:qe,dateFrom:it,dateTo:xt,userId:ht,groupId:Ee}})}}return a.\u0275fac=function(l){return new(l||a)(f.LFG(S.uq),f.LFG(S.Fv),f.LFG(S.jw),f.LFG(S.tk))},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();var tt=p(61135),Ce=p(39646),at=p(4128);function Ue(a){return"allObjectCount"in a}class pt{constructor(c,l){this.dynamicPaginatingService=c,this.authzService=l,this.allObjectCount=0,this.routeAuth=!0,this.step=1e4,this.dataSubject=new tt.X([]),this.loadingSubject=new tt.X(!1),this.loading$=this.loadingSubject.asObservable()}loadMembers(c,l,d,s,E,B,q,qe,it,xt){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const ht=this.latestQueryTime;this.dynamicPaginatingService.getMembers(c,l,d,s,E,B,q,qe,it,xt).pipe((0,Fe.K)(()=>(0,Ce.of)([])),(0,$e.x)(()=>this.loadingSubject.next(!1))).subscribe(_t=>{if(this.latestQueryTime<=ht){const Ee=_t.data;null!==Ee&&0!==Ee.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:c},Ee[0]])),this.allObjectCount=_t.totalCount,this.dataSubject.next(Ee)}})}getAllMembers(c,l,d,s,E,B,q,qe,it){return new j.y(xt=>{const ht=[];for(let _t=0;_t{const Ee=[].concat(..._t.map(we=>we.data));xt.next(Ee),xt.complete()},error:_t=>xt.error(_t)})})}loadUsers(c,l,d,s,E,B,q,qe,it,xt,ht,_t,Ee){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const we=this.latestQueryTime;this.dynamicPaginatingService.getUsers(c,s,d,l,E,B,q,qe,it,xt,ht,_t,Ee).pipe((0,Fe.K)(()=>(0,Ce.of)([])),(0,$e.x)(()=>this.loadingSubject.next(!1))).subscribe(de=>{if(this.latestQueryTime<=we){const Ae=de.data;this.allObjectCount=de.totalCount,this.dataSubject.next(Ae)}})}getAllUsers(c,l,d,s,E,B,q,qe,it,xt,ht,_t){return new j.y(Ee=>{const we=[];for(let de=0;de{const Ae=[].concat(...de.map(Te=>Te.data));Ee.next(Ae),Ee.complete()},error:de=>Ee.error(de)})})}loadAuditMessages(c,l,d,s){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const E=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(d,l,c,s).pipe((0,Fe.K)(()=>(0,Ce.of)([])),(0,$e.x)(()=>this.loadingSubject.next(!1))).subscribe(B=>{if(this.latestQueryTime<=E){const q=B.data;this.allObjectCount=B.totalCount,this.dataSubject.next(q)}})}getAllAuditMessages(c,l,d){return new j.y(s=>{const E=[];for(let B=0;B{const q=[].concat(...B.map(qe=>qe.data));s.next(q),s.complete()},error:B=>s.error(B)})})}loadApplications(c,l,d,s,E,B,q,qe,it,xt,ht,_t,Ee){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const we=this.latestQueryTime;this.dynamicPaginatingService.getApplications(c,l,d,s,B,E,q,qe,it,xt,_t,ht,Ee??!1).pipe((0,Fe.K)(()=>(0,Ce.of)([])),(0,$e.x)(()=>this.loadingSubject.next(!1))).subscribe(de=>{if(this.latestQueryTime<=we){const Ae=de.data;if(null!==Ae&&0!==Ae.length){const Te=Ae;this.routeAuth=Te[0].group?this.authzService.isAuthorized("getApplicationsForGroup_Group_List_policy",[Te[0].group]):this.authzService.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[Te[0].vo])}this.allObjectCount=de.totalCount,this.dataSubject.next(Ae)}})}getAllApplications(c,l,d,s,E,B,q,qe,it,xt,ht,_t){return new j.y(Ee=>{const we=[];for(let de=0;de{const Ae=[].concat(...de.map(Te=>Te.data));Ee.next(Ae),Ee.complete()},error:de=>Ee.error(de)})})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let z=(()=>{class a{constructor(l,d){this.route=l,this.store=d}getPreferredLanguage(l){const d=this.store.getProperty("supported_languages"),s=navigator.languages.map(q=>q.split("-")[0]),E=location.search.substring(1).split("&");let B=null;for(const q of E){const qe=q.split("=");"lang"===qe[0]&&(B=qe[1])}return B&&d.includes(B)?B:l&&d.includes(l)?l:s&&d.includes(s[0])?s[0]:"en"}}return a.\u0275fac=function(l){return new(l||a)(f.LFG(x.gz),f.LFG(F))},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();var st=p(15861);let be=(()=>{class a{generatePdf(l){var d=this;return(0,st.Z)(function*(){yield d.loadPdfMake(),d.pdfMake.createPdf(l).open()})()}loadPdfMake(){var l=this;return(0,st.Z)(function*(){if(!l.pdfMake){const d=yield p.e(641).then(p.t.bind(p,54641,23)),s=yield p.e(493).then(p.t.bind(p,58493,19));l.pdfMake=d.default,l.pdfMake.vfs=s.default.pdfMake.vfs}})()}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),Ye=(()=>{class a{constructor(l){this.pdfService=l}static generateTableForUser(l){const d=l.name.replace(";"," ").split(";")[0];return"OK"!==l.status?this.generateErrorRowForUser(d,l.status):a.generateRowForUser(d,l.login,l.password)}static generateErrorRowForUser(l,d){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:l,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:d,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(l,d,s){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[a.generateNameCell(l),{},a.getPasswordLabelCell(),a.generatePasswordCell(s)],[a.getLoginLabelCell(),a.generateLoginCell(d),{},{}]]}}}static generateNameCell(l){return{text:l,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(l){return{text:l??"N/A",border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(l){return{text:l??"N/A",border:[!1,!1,!0,!0],bold:!0}}static getLoginLabelCell(){return{text:"Login:",border:[!0,!1,!1,!0],alignment:"right",margin:[0,0,0,10]}}static getPasswordLabelCell(){return{text:"Password:",border:[!0,!0,!1,!0],alignment:"right",margin:[0,25],rowSpan:2}}generate(l){var d=this;return(0,st.Z)(function*(){const s=[];for(const B of l)s.push(a.generateTableForUser(B));return d.pdfService.generatePdf({content:s})})()}}return a.\u0275fac=function(l){return new(l||a)(f.LFG(be))},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),he=(()=>{class a{constructor(l){this.storeService=l}static getBrandContainingDomain(l,d){for(const E of l)if(E.newApps.admin===d||E.newApps.profile===d||E.newApps.pwdReset===d||E.newApps.consolidator===d||E.newApps.linker===d)return E;return l.filter(E=>"default"===E.name)[0]||l[0]}getUrlForOtherApplication(l,d){const E=window.location.href.split("/"),B=E[0]+"//"+E[2],q=a.getBrandContainingDomain(this.storeService.getAppsConfig().brands,B);let qe;if(q.newApps[l])qe=q.newApps[l],"pwdReset"===l&&(qe+=`?login-namespace=${d}`);else switch(qe=q.oldGuiDomain+"/fed",l){case"admin":qe+="/gui/";break;case"profile":qe+="/profile/";break;case"pwdReset":qe+=`/pwd-reset/?login-namespace=${d}`}return qe}}return a.\u0275fac=function(l){return new(l||a)(f.LFG(F))},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();var Re=p(98739);let He=(()=>{class a extends Re.ye{constructor(){super(...arguments),this.getRangeLabel=function(l,d,s){let E;const B=l*d+1,q=(l+1)*d,qe=q>s?s:q;return s<1e3?`${B} \u2013 ${qe} of ${String(s)}`:(E=s<1e4?"1 000":s<1e5?"10 000":"100 000",`${B} \u2013 ${qe} of ${E} +`)}}}return a.\u0275fac=function(){let c;return function(d){return(c||(c=f.n5z(a)))(d||a)}}(),a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac}),a})(),ve=(()=>{class a{setEntity(l){this.entity=l}getEntity(){return this.entity}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();var Oe=p(64080);let r=(()=>{class a{constructor(l,d,s,E,B){this.authResolver=l,this.attributesManager=d,this.notificator=s,this.apiRequest=E,this.router=B,this.routePolicies=new Map([["organizations",q=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[q])],["organizations-members",q=>this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[q])],["organizations-groups",q=>this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[q])],["organizations-resources",q=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[q])||this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[q])||this.authResolver.isAuthorized("getResourcesState_Vo_policy",[q])],["organizations-resources-preview",q=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[q])],["organizations-resources-tags",q=>this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[q])],["organizations-resources-states",q=>this.authResolver.isAuthorized("getResourcesState_Vo_policy",[q])],["organizations-applications",q=>this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[q])],["organizations-sponsoredMembers",q=>this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[q])],["organizations-serviceAccounts",q=>this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[q])],["organizations-attributes",q=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[q])],["organizations-statistics",q=>this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[q])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[q])],["organizations-settings",q=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[q])||this.authResolver.isManagerPagePrivileged(q)||this.authResolver.isThisVoAdminOrObserver(q.id)],["organizations-settings-expiration",q=>this.authResolver.isThisVoAdminOrObserver(q.id)],["organizations-settings-managers",q=>this.authResolver.isManagerPagePrivileged(q)],["organizations-settings-applicationForm",q=>this.authResolver.isThisVoAdminOrObserver(q.id)],["organizations-settings-notifications",q=>this.authResolver.isThisVoAdminOrObserver(q.id)],["organizations-settings-extsources",q=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[q])],["organizations-settings-memberOrganizations",()=>this.authResolver.isPerunAdmin()],["organizations-settings-hierarchicalInclusion",()=>this.authResolver.isPerunAdmin()],["organizations-settings-bans",q=>this.authResolver.isAuthorized("getBansForVo_int_policy",[q])],["members",q=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[q])],["members-groups",q=>this.authResolver.isAuthorized("getMemberGroups_Member_policy",[q])],["members-applications",q=>this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[q])],["members-resources",q=>this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[q])],["members-attributes",q=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[q])],["members-bans",q=>this.authResolver.isAuthorized("vo-getBanForMember_member_policy",[q])],["groups",q=>this.authResolver.isAuthorized("getGroupById_int_policy",[q])],["groups-members",q=>this.authResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[q])],["groups-subgroups",q=>this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[q])],["groups-resources",q=>this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[q])],["groups-applications",q=>this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[q])],["groups-attributes",q=>this.authResolver.isAuthorized("getGroupById_int_policy",[q])],["groups-statistics",q=>this.authResolver.isAuthorized("getGroupMembersCount_Group_policy",[q])&&this.authResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[q])&&this.authResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[q])],["groups-roles",q=>this.authResolver.isAuthorized("getGroupRoles_int_policy",[q])],["groups-settings",q=>this.authResolver.isManagerPagePrivileged(q)||this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[q])||this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[q])||this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[q])],["groups-settings-managers",q=>this.authResolver.isManagerPagePrivileged(q)],["groups-settings-applicationForm",q=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[q])],["groups-settings-notifications",q=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[q])],["groups-settings-relations",q=>this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[q])],["groups-settings-extsources",q=>this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[q])],["groups-settings-expiration",q=>(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(q.id,Oe.r.GROUP_DEF_EXPIRATION_RULES).subscribe({next:()=>{},error:()=>{this.notificator.showRouteError(),this.router.navigate(["/notAuthorized"],{queryParamsHandling:"preserve"})}}),!0)],["resources",q=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[q])],["resources-groups",q=>this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[q])],["resources-services",q=>this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[q])],["resources-members",q=>this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[q])],["resources-tags",q=>this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[q])],["resources-attributes",q=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[q])],["resources-settings",q=>this.authResolver.isManagerPagePrivileged(q)],["resources-settings-managers",q=>this.authResolver.isManagerPagePrivileged(q)],["resources-settings-bans",q=>this.authResolver.isAuthorized("getBansForResource_int_policy",[q])],["facilities",q=>this.authResolver.isAuthorized("getFacilityById_int_policy",[q])],["facilities-resources",q=>this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[q])],["facilities-allowed-users",q=>this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[q])],["facilities-allowed-groups",q=>this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[q])],["facilities-services-status",q=>this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[q])],["services-status",q=>this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[q])],["facilities-services-destinations",q=>this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[q])],["facilities-hosts",()=>this.authResolver.isFacilityAdmin()],["facilities-attributes",q=>this.authResolver.isAuthorized("getFacilityById_int_policy",[q])],["facilities-settings",q=>this.authResolver.isAuthorized("getOwners_Facility_policy",[q])||this.authResolver.isManagerPagePrivileged(q)||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[q])||this.authResolver.isAuthorized("getBansForFacility_int_policy",[q])],["facilities-settings-owners",q=>this.authResolver.isAuthorized("getOwners_Facility_policy",[q])],["facilities-settings-managers",q=>this.authResolver.isManagerPagePrivileged(q)],["facilities-settings-security-teams",q=>this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[q])],["facilities-settings-blacklist",q=>this.authResolver.isAuthorized("getBansForFacility_int_policy",[q])],["facilities-settings-bans",q=>this.authResolver.isAuthorized("getBansForUser_int_policy",[q])]])}canNavigate(l,d){if(l.startsWith("admin")||l.startsWith("identities"))return this.authResolver.isPerunAdminOrObserver();if("facilities"===l&&-1===d.id)return this.authResolver.canManageFacilities();const s=this.routePolicies.get(l);return!s||s(d)}}return a.\u0275fac=function(l){return new(l||a)(f.LFG(M),f.LFG(S.H8),f.LFG(U),f.LFG(N),f.LFG(x.F0))},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();var u=p(54004),_=p(4707);let C=(()=>{class a{constructor(l,d){this.attributesManager=l,this.authResolver=d,this.roleWithObjects$=new _.t(1),(0,Ce.of)(this.authResolver.getAllRules()).pipe((0,u.U)(s=>s.filter(E=>E.assignableToAttributes)),(0,Ve.w)(s=>{const E=new Map;return s.map(B=>E.set(B.roleName,["None",...Object.keys(B.assignedObjects)])),(0,Ce.of)(new Map([...E.entries()].sort()))})).subscribe(this.roleWithObjects$)}getRoles(){return(0,Ce.of)(this.authResolver.getAllRules().filter(l=>l.assignableToAttributes))}getObjects(l){return this.roleWithObjects$.pipe((0,Ve.w)(d=>(0,Ce.of)(d.get(l))))}filterNullInPolicy(){return function(l){return l.pipe((0,u.U)(d=>(d.forEach(s=>s.policies=s.policies.filter(E=>null!==E.role&&null!==E.object)),d)))}}updateAttributeAction(l,d,s,E){return void 0!==l&&l!==d?this.attributesManager.setAttributeActionCriticality(s,E,l):(0,Ce.of)(void 0)}addAttributeId(){return function(l){return l.pipe((0,u.U)(([d,s])=>(s.forEach(E=>E.attributeId=d),s)))}}}return a.\u0275fac=function(l){return new(l||a)(f.LFG(S.H8),f.LFG(M))},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();var h=p(36895);let o=(()=>{class a{constructor(){this.getDataForColumn=(l,d,s)=>{switch(d){case"id":return l.id.toString();case"vo":return s.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const E=(0,I.x2)(l);return(0,I.sG)(E)}case"recent":return"";case"status":return l.status;case"uuid":return l.uuid;default:return l[d]}},this.getSortDataForColumn=(l,d,s,E)=>{switch(d){case"id":return l.id.toString();case"vo":return s.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const B=(0,I.x2)(l);return B&&"never"!==B.toLowerCase()?(0,h.p6)(B,"yyyy.MM.dd","en"):B}case"recent":return E&&E.includes(l.id)?"#".repeat(E.indexOf(l.id)):l.name;case"status":return l.status;default:return l[d]}}}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),n=(()=>{class a{constructor(l,d){this.guiAuthResolver=l,this.authzResolver=d}findSponsorsAuth(l){const d=[this.guiAuthResolver.getRuleForRole("SPONSOR")],s=new Map;return this.guiAuthResolver.setRolesAuthorization(d,l,s),s.get(d[0].roleName).readAuth}getSponsors(l){const d=[Oe.r.USER_DEF_PREFERRED_MAIL];return new j.y(s=>{this.authzResolver.getAuthzRichAdmins(m.u.SPONSOR,l,"Vo",d,!1,!1).subscribe(E=>{s.next(E),s.complete()})})}}return a.\u0275fac=function(l){return new(l||a)(f.LFG(M),f.LFG(S.Ct))},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),t=(()=>{class a{prepareRoles(l,d){const s=new Map;return d.forEach(E=>{const B=new Map;Object.keys(l[E]).forEach(qe=>{B.set(qe,l[E][qe])}),s.set(E,B)}),s}prepareComplementaryObjects(l,d){const s=new Map;return l.forEach(E=>{const B=new Map;Object.keys(d[E]).forEach(qe=>{const it=new Map;Object.keys(d[E][qe]).map(ht=>Number(ht)).forEach(ht=>{it.set(ht,d[E][qe][ht])}),B.set(qe,it)}),s.set(E,B)}),s}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),i=(()=>{class a{escapeDangerousHtml(l){return{escapedHtml:l,removedTags:[],removedAttrs:[],removedStyleProps:[]}}generateErrorTooltip(l){let d="";if(0!==l.removedTags.length){d+=" The following tags are not allowed: ";for(const s of l.removedTags)d+=s+", ";d=d.slice(0,-2)+". "}if(0!==l.removedAttrs.length){d+=" The following attributes are not allowed: ";for(const s of l.removedAttrs)d+=s.attribute+" in "+s.tag+", ";d=d.slice(0,-2)+". "}if(0!==l.removedStyleProps.length){d+=" The following style properties are not allowed: ";for(const s of l.removedStyleProps)d+=s.style+" in "+s.tag+", ";d=d.slice(0,-2)+"."}return d}htmlContentValidator(){return l=>{const{isHtmlInvalid:d,invalidMessage:s}=this.checkHtmlContent(l);return d?{invalidHtmlContent:s}:null}}checkHtmlContent(l){const{escapedHtml:d,removedTags:s,removedAttrs:E,removedStyleProps:B}=this.escapeDangerousHtml(String(l.value)),q=this.generateErrorTooltip({escapedHtml:d,removedTags:s,removedAttrs:E,removedStyleProps:B});return{isHtmlInvalid:s.length>0||E.length>0||B.length>0,invalidMessage:q}}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=f.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})()},64080:(Qe,ae,p)=>{"use strict";p.d(ae,{r:()=>e});let e=(()=>{class f{}return f.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",f.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",f.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",f.MEMBER_GROUP_STATUS_INDIRECT="urn:perun:member_group:attribute-def:virt:groupStatusIndirect",f.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",f.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",f.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",f.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",f.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",f.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",f.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",f.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",f.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",f.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",f.USER_DEF_CERTIFICATES="urn:perun:user:attribute-def:def:userCertificates",f.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",f.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",f.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",f.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",f.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",f.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",f.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",f.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",f.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",f.GROUP_SYNC_INTERVAL="urn:perun:group:attribute-def:def:synchronizationInterval",f.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",f.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",f.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",f.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",f.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",f})()},9244:(Qe,ae,p)=>{"use strict";p.d(ae,{dN:()=>T,Je:()=>x,f7:()=>I.f7,l9:()=>F.l,sF:()=>I.sF,XI:()=>I.XI,Xd:()=>I.Xd,aC:()=>I.aC,fx:()=>I.fx,dv:()=>I.dv,i5:()=>I.i5,Sd:()=>I.Sd,pR:()=>I.pR,ys:()=>I.ys,O6:()=>I.O6,B2:()=>I.B2,mH:()=>I.mH,MX:()=>I.MX,cT:()=>I.cT,oU:()=>I.oU,IL:()=>I.IL,Jc:()=>I.Jc,Xn:()=>I.Xn,kZ:()=>I.kZ,v$:()=>I.v$,x2:()=>I.x2,vL:()=>I.vL,j4:()=>I.j4,jh:()=>I.jh,bx:()=>I.bx,im:()=>I.im,zr:()=>I.zr,Hm:()=>I.Hm,Cz:()=>I.Cz,sG:()=>I.sG,g$:()=>I.g$,bD:()=>I.bD,lt:()=>I.lt,Oe:()=>I.Oe,hu:()=>I.hu,Gw:()=>I.Gw,O5:()=>I.O5,te:()=>I.te,kN:()=>I.kN,$0:()=>I.$0,OV:()=>I.OV});var e=p(98739),f=p(28255),A=p(97392),S=p(4859),m=p(89383),M=p(36895),w=p(94650);let x=(()=>{class H{}return H.\u0275fac=function(J){return new(J||H)},H.\u0275mod=w.oAB({type:H}),H.\u0275inj=w.cJS({imports:[e.TU,f.Tx,A.Ps,S.ot,m.aw,M.ez]}),H})();var I=p(17218),F=p(18750);class T{static passwordMatchValidator(P){const J=P.get("passwordCtrl").value,fe=P.get("passwordAgainCtrl").value;return P.get("passwordAgainCtrl").setErrors(J!==fe?{noPasswordMatch:!0}:null),null}static patternValidator(P){return J=>{if(!J.value)return null;let fe=0;for(const j of P)fe+=j.test(J.value)?1:0;return fe>=3?null:{isWeak:!0}}}}},17218:(Qe,ae,p)=>{"use strict";p.d(ae,{$0:()=>T,B2:()=>x,Cz:()=>j,Gw:()=>tt,Hm:()=>ue,IL:()=>Je,Jc:()=>Fe,MX:()=>ke,O5:()=>u,O6:()=>Ye,OV:()=>ze,Oe:()=>Pe,Sd:()=>z,XI:()=>te,Xd:()=>Re,Xn:()=>be,aC:()=>he,bD:()=>J,bx:()=>r,cT:()=>st,dv:()=>Me,f7:()=>w,fx:()=>He,g$:()=>I,hu:()=>fe,i5:()=>X,im:()=>_,j4:()=>V,jh:()=>Oe,kN:()=>F,kZ:()=>ce,lt:()=>H,mH:()=>ve,oU:()=>$e,pR:()=>pt,sF:()=>W,sG:()=>at,te:()=>_e,v$:()=>Ve,vL:()=>v,x2:()=>Ce,ys:()=>ge,zr:()=>C});var e=p(15861),f=p(7274),A=p(36895),S=p(94327),M=p(64080);const w=[5,10,25,100],x=/^(([^<>+()[\]\\.,;:\s@"-#$%&=]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]+))$/;function I(h){let o="";return h?.userAttributes.forEach(n=>{"preferredMail"===n.friendlyName&&(o=n.value)}),o&&0===o.length&&null!==h.memberAttributes&&h.memberAttributes.forEach(n=>{"mail"===n.friendlyName&&null!==n.value&&(o=n.value)}),o}function F(h){let o="";return h&&h.userAttributes.forEach(n=>{"preferredMail"===n.friendlyName&&(o=n.value)}),o}function T(h){let o="";return h&&h.userAttributes&&h.userAttributes.filter(n=>"login-namespace"===n.baseFriendlyName).filter(n=>null!==n.value).forEach(n=>{o=o.concat(n.friendlyNameParameter,": ",n.value,", ")}),o.endsWith(", ")&&(o=o.substring(0,o.length-2)),o}function H(h){let o="";return h&&h.userAttributes&&h.userAttributes.filter(n=>"login-namespace"===n.baseFriendlyName).filter(n=>null!==n.value).forEach(n=>{o=o.concat(n.friendlyNameParameter,": ",n.value,", ")}),o.endsWith(", ")&&(o=o.substring(0,o.length-2)),o}function J(h){let o="";return null!==h.titleBefore&&(o+=h.titleBefore+" "),null!==h.firstName&&(o+=h.firstName+" "),null!==h.middleName&&(o+=h.middleName+" "),null!==h.lastName&&(o+=h.lastName+" "),null!==h.titleAfter&&(o+=h.titleAfter+" "),o.endsWith(" ")&&(o=o.substring(0,o.length-1)),o}function fe(h){let o="";return null!==h.firstName&&(o+=h.firstName+" "),null!==h.middleName&&(o+=h.middleName+" "),null!==h.lastName&&(o+=h.lastName+" "),o.endsWith(" ")&&(o=o.substring(0,o.length-1)),o}function j(h){let o="";return h.split(/(?=[A-Z])/g).forEach(t=>{o=o.concat(t.toLowerCase()),o=o.concat(" ")}),o=o.charAt(0).toUpperCase()+o.slice(1,o.length-1),o}function _e(h){let o="";for(const n of h)"technical"===n.type&&(o+=n.name+", ");return o.endsWith(", ")&&(o=o.substring(0,o.length-2)),o}function ge(h,o){return pe.apply(this,arguments)}function pe(){return(pe=(0,e.Z)(function*(h,o){yield function re(h){return new Promise(o=>setTimeout(o,h))}(h),o()})).apply(this,arguments)}function v(h){return JSON.parse(localStorage.getItem(h))||[]}function V(h){return JSON.parse(localStorage.getItem(h))||[]}function W(h,o){if(null===localStorage.getItem(h)){const n=[];n.unshift(o.id),localStorage.setItem(h,JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem(h)),t=function ye(h,o){for(let n=0;n0&&n.splice(t,1),0!==t&&n.unshift(o.id),n.length>5&&n.pop(),localStorage.setItem(h,JSON.stringify(n))}}function te(h,o){if(null===localStorage.getItem("recent")){let n;n="Group"===h.beanName?[{id:h.id,name:h.shortName,fullName:h.name,type:h.beanName,voId:h.voId,voName:o}]:[{id:h.id,name:h.name,type:h.beanName,voId:h.voId}],localStorage.setItem("recent",JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem("recent"));let t;t="Group"===h.beanName?{id:h.id,name:h.shortName,fullName:h.name,type:h.beanName,voId:h.voId,voName:o}:{id:h.id,name:h.name,type:h.beanName,voId:h.voId};const i=function ne(h,o){for(let n=0;n0&&n.splice(i,1),0!==i&&n.unshift(t),n.length>5&&n.pop(),localStorage.setItem("recent",JSON.stringify(n))}}function ze(h){let o="";return h&&h.userAttributes.forEach(n=>{"organization"===n.friendlyName&&(o=n.value)}),o}function ke(h){return h.filter(o=>!o.namespace.includes("def:core"))}function $e(h,o){const n=o.find(t=>t.id===h);return n?n.parentGroupId?$e(n.parentGroupId,o).concat(n):[n]:[]}function Je(h,o){for(const n of h)if(n.namespace+":"+n.friendlyName===o)return n;return null}function Fe(h){return null!=h.attributes["urn:perun:member:attribute-def:def:mail"]?h.attributes["urn:perun:member:attribute-def:def:mail"]:null!=h.attributes["urn:perun:user:attribute-def:def:preferredMail"]?h.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function Ve(h){return h.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function le(h){if(h.includes("/CN=")){const o=h.split("/");for(const n of o)if(n.startsWith("CN="))return N(n.substring(3))}return h}(h.userExtSource.extSource.name):h.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function U(h){switch(h){case"https://idp.upce.cz/idp/shibboleth":return"University in Pardubice";case"https://idp.slu.cz/idp/shibboleth":return"University in Opava";case"https://login.feld.cvut.cz/idp/shibboleth":return"Faculty of Electrical Engineering, Czech Technical University In Prague";case"https://www.vutbr.cz/SSO/saml2/idp":return"Brno University of Technology";case"https://shibboleth.nkp.cz/idp/shibboleth":return"The National Library of the Czech Republic";case"https://idp2.civ.cvut.cz/idp/shibboleth":return"Czech Technical University In Prague";case"https://shibbo.tul.cz/idp/shibboleth":return"Technical University of Liberec";case"https://idp.mendelu.cz/idp/shibboleth":return"Mendel University in Brno";case"https://cas.cuni.cz/idp/shibboleth":return"Charles University in Prague";case"https://wsso.vscht.cz/idp/shibboleth":return"Institute of Chemical Technology Prague";case"https://idp.vsb.cz/idp/shibboleth":return"VSB \u2013 Technical University of Ostrava";case"https://whoami.cesnet.cz/idp/shibboleth":return"CESNET";case"https://helium.jcu.cz/idp/shibboleth":return"University of South Bohemia";case"https://idp.ujep.cz/idp/shibboleth":return"Jan Evangelista Purkyne University in Usti nad Labem";case"https://idp.amu.cz/idp/shibboleth":return"Academy of Performing Arts in Prague";case"https://idp.lib.cas.cz/idp/shibboleth":return"Academy of Sciences Library";case"https://shibboleth.mzk.cz/simplesaml/metadata.xml":return"Moravian Library";case"https://idp2.ics.muni.cz/idp/shibboleth":return"Masaryk University";case"https://idp.upol.cz/idp/shibboleth":return"Palacky University, Olomouc";case"https://idp.fnplzen.cz/idp/shibboleth":return"FN Plzen";case"https://id.vse.cz/idp/shibboleth":return"University of Economics, Prague";case"https://shib.zcu.cz/idp/shibboleth":return"University of West Bohemia";case"https://idptoo.osu.cz/simplesaml/saml2/idp/metadata.php":return"University of Ostrava";case"https://login.ics.muni.cz/idp/shibboleth":return"MetaCentrum";case"https://idp.hostel.eduid.cz/idp/shibboleth":return"eduID.cz Hostel";case"https://shibboleth.techlib.cz/idp/shibboleth":return"National Library of Technology";case"https://eduid.jamu.cz/idp/shibboleth":return"Janacek Academy of Music and Performing Arts in Brno";case"https://marisa.uochb.cas.cz/simplesaml/saml2/idp/metadata.php":return"Institute of Organic Chemistry and Biochemistry AS CR";case"https://shibboleth.utb.cz/idp/shibboleth":return"Tomas Bata University in Zlin";case"https://engine.elixir-czech.org/authentication/idp/metadata":case"@elixir-europe.org":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":case"@mojeid.extidp.cesnet.cz":return"MojeID";case"https://www.egi.eu/idp/shibboleth":return"EGI SSO";case"@google.extidp.cesnet.cz":return"Google";case"@facebook.extidp.cesnet.cz":return"Facebook";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return h}}(h.userExtSource.extSource.name):h.userExtSource.extSource.name}function N(h){return decodeURIComponent(h.replace(/\\x/g,"%"))}function X(h=["en","cs"]){const o={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{},htmlMessage:{}};return h.forEach(n=>{o.message[n]={locale:n,htmlFormat:!1,subject:"",text:""},o.htmlMessage[n]={locale:n,htmlFormat:!0,subject:"",text:""}}),o}function ce(){const h=new f.vA;return h.disableClose=!0,h.autoFocus=!1,h}function Me(h){const o={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null};for(const n of h)o.i18n[n]={locale:n,errorMessage:"",help:"",label:"",options:""};return o}function ue(h){return"virt"===h.namespace.split(":")[4]}function Pe(h,o){return"valid"!==h.toLowerCase()||o&&"valid"!==h.toLowerCase()?h.replace("INVALID","INCOMPLETE"):"ACTIVE"}function tt(h){let o="";return h?.memberAttributes.forEach(n=>{"organization"===n.friendlyName&&null!==n.value&&(o=n.value)}),0===o.length&&h?.userAttributes.forEach(n=>{"organization"===n.friendlyName&&(o=n.value)}),o}function Ce(h){return h.attributes.find(n=>"groupMembershipExpiration"===n.baseFriendlyName)?.value??"Never"}function at(h){return h&&"never"!==h.toLowerCase()?(0,A.p6)(h,"d.M.yyyy","en"):h}const Ue=new Intl.Collator("cs",{numeric:!0});function pt(h,o,n){const t=o.active,i=o.direction;return t&&""!==i?h.sort((a,c)=>{const l=n(a,t),d=n(c,t);return Ue.compare(l,d)*("asc"===i?1:-1)}):h}function z(h,o,n,t,i){o=o.toLowerCase();let a="";return n.forEach(c=>{a+=";"+t(h,c)}),i&&(a+=";"+t(h,"uuid")),a.toLowerCase().includes(o)}function st(h,o){let n="";return h?.forEach(t=>{t.friendlyName===o&&(n=t.value)}),n}function be(h,o,n){const t=[],i=["checkbox","select","edit","menu","cite","extend","recent"];return o=o.filter(a=>!i.includes(a)),h.forEach(a=>{const c={};o.forEach(l=>{c[l]=(n(a,l)??"").split('"').join("''").trim()}),t.push(c)}),t}function Ye(h,o="csv",n="export"){if("csv"===o){const t=(d,s)=>null===s?"":s,i=Object.keys(h[0]),a=h.map(d=>i.map(s=>JSON.stringify(d[s],t)).join(","));a.unshift(i.join(",").split(" ").join("_").split('"').join("''"));const c=a.join("\r\n"),l=new Blob([c],{type:"text/csv"});(0,S.saveAs)(l,`${n}.${o}`)}}function he(h,o){return h.name.toLowerCase()>o.name.toLowerCase()?1:h.name.toLowerCase()===o.name.toLowerCase()?0:-1}function Re(h,o){return h.displayName.toLowerCase()>o.displayName.toLowerCase()?1:h.displayName.toLowerCase()===o.displayName.toLowerCase()?0:-1}function He(h,o){let n,t;return h.user?(n=h.user.lastName?h.user.lastName:h.user.firstName??"",t=o.user.lastName?o.user.lastName:o.user.firstName??""):(n=h.lastName?h.lastName:h.firstName??"",t=o.lastName?o.lastName:o.firstName??""),n>t?1:n===t?0:-1}function ve(h,o,n=[]){h.enable(),h.clearValidators(),h.clearAsyncValidators(),h.setValidators(o),h.setAsyncValidators(n),h.updateValueAndValidity()}function Oe(h,o){return!!h&&h.some(n=>n.namespace+":"+n.friendlyName===o&&null!==n.value&&"true"===String(n.value))}function r(h){return Oe(h.attributes,M.r.GROUP_SYNC_ENABLED)||Oe(h.attributes,M.r.GROUP_STRUCTURE_SYNC_ENABLED)}function u(h,o){const n=o.split("&");for(const t of n){const[i,a]=t.split("=");if(i.includes(h))return a}return""}function _(h){if("INDIRECT"===h.membershipType)return!0;const o=h.memberAttributes?.find(n=>"isLifecycleAlterable"===n.friendlyName);return!!o&&!o.value}function C(h){if("INDIRECT"===h.membershipType)return"INDIRECT";const o=h.memberAttributes?.find(n=>"isLifecycleAlterable"===n.friendlyName);return o?o.value?"DIRECT":"UNALTERABLE":"UNKNOWN"}},18750:(Qe,ae,p)=>{"use strict";p.d(ae,{l:()=>j});var e=p(94650),f=p(98739),A=p(17218),S=p(10036),m=p(36895),M=p(28255),w=p(97392),x=p(4859),I=p(89383);function F($,_e){if(1&$){const ge=e.EpF();e.TgZ(0,"button",6),e.NdJ("click",function(){e.CHM(ge);const re=e.oxw();return e.KtG(re.exportAllData.emit("csv"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&$&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let T=(()=>{class ${constructor(){this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe}}return $.\u0275fac=function(ge){return new(ge||$)},$.\u0275cmp=e.Xpm({type:$,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(ge,pe){if(1&ge&&(e.TgZ(0,"div")(1,"button",0)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,1)(6,"button",2),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"mat-menu",null,3)(11,"button",2),e._uU(12,"Csv"),e.qZA()(),e.TgZ(13,"mat-menu",4,5)(15,"button",6),e.NdJ("click",function(){return pe.exportDisplayedData.emit("csv")}),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.YNc(18,F,3,3,"button",7),e.qZA()()),2&ge){const re=e.MAs(5),v=e.MAs(10),V=e.MAs(14);e.xp6(1),e.Q6J("matMenuTriggerFor",re),e.xp6(5),e.Q6J("matMenuTriggerFor",v),e.xp6(1),e.hij(" ",e.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),e.xp6(4),e.Q6J("matMenuTriggerFor",V),e.xp6(5),e.hij(" ",e.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),e.xp6(2),e.Q6J("ngIf",pe.allowExportAll)}},dependencies:[M.VK,M.OP,M.p6,w.Hw,x.RK,m.O5,I.X$]}),$})();const H=["topNav"];function P($,_e){if(1&$){const ge=e.EpF();e.TgZ(0,"perun-web-apps-table-options",7),e.NdJ("exportDisplayedData",function(re){e.CHM(ge);const v=e.oxw();return e.KtG(v.exportDisplayedData.emit(re))})("exportAllData",function(re){e.CHM(ge);const v=e.oxw();return e.KtG(v.exportAllData.emit(re))}),e.qZA()}if(2&$){const ge=e.oxw();e.Q6J("allowExportAll",ge.allowExportAll)}}function J($,_e){if(1&$){const ge=e.EpF();e.TgZ(0,"perun-web-apps-table-options",7),e.NdJ("exportDisplayedData",function(re){e.CHM(ge);const v=e.oxw();return e.KtG(v.exportDisplayedData.emit(re))})("exportAllData",function(re){e.CHM(ge);const v=e.oxw();return e.KtG(v.exportAllData.emit(re))}),e.qZA()}if(2&$){const ge=e.oxw();e.Q6J("allowExportAll",ge.allowExportAll)}}const fe=["*"];let j=(()=>{class ${constructor(ge){this.tableConfigService=ge,this.hideExport=!1,this.pageSizeOptions=A.f7,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe,this.pageSize=5}set matPaginator(ge){this.paginator=ge}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5),this.paginator._changePageSize(this.pageSize)}pageChangedTop(ge){this.pageSize=ge.pageSize,this.tableConfigService.setTablePageSize(this.tableId,ge.pageSize)}pageChangedBottom(ge){this.paginator.pageSize=ge.pageSize,this.paginator.pageIndex=ge.pageIndex,this.paginator.page.emit(ge),this.pageSize=ge.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,ge.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return $.\u0275fac=function(ge){return new(ge||$)(e.Y36(S.dB))},$.\u0275cmp=e.Xpm({type:$,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(ge,pe){if(1&ge&&(e.Gf(H,5),e.Gf(f.NW,7)),2&ge){let re;e.iGM(re=e.CRH())&&(pe.topNav=re.first),e.iGM(re=e.CRH())&&(pe.matPaginator=re.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},features:[e._Bn([{provide:f.Zf,useValue:{formFieldAppearance:"fill"}}])],ngContentSelectors:fe,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"d-flex","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(ge,pe){1&ge&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),e.NdJ("page",function(v){return pe.pageChangedTop(v)}),e.qZA(),e.YNc(4,P,1,1,"perun-web-apps-table-options",4),e.qZA(),e.TgZ(5,"div",5),e.Hsn(6),e.qZA(),e.TgZ(7,"div",1)(8,"mat-paginator",6),e.NdJ("page",function(v){return pe.pageChangedBottom(v)}),e.qZA(),e.YNc(9,J,1,1,"perun-web-apps-table-options",4),e.qZA()()),2&ge&&(e.xp6(3),e.Q6J("length",pe.dataLength)("pageSizeOptions",pe.pageSizeOptions)("pageSize",pe.pageSize),e.xp6(1),e.Q6J("ngIf",!pe.hideExport),e.xp6(4),e.Q6J("length",pe.paginator.length)("pageIndex",pe.paginator.pageIndex)("pageSizeOptions",pe.paginator.pageSizeOptions)("pageSize",pe.paginator.pageSize),e.xp6(1),e.Q6J("ngIf",!pe.hideExport))},dependencies:[f.NW,m.O5,T]}),$})()},98380:(Qe,ae,p)=>{"use strict";p.d(ae,{w:()=>I});var e=p(94650),f=p(97392),A=p(36895);function S(F,T){1&F&&(e.TgZ(0,"mat-icon",2),e._uU(1," info "),e.qZA())}function m(F,T){1&F&&(e.TgZ(0,"mat-icon",2),e._uU(1," warning "),e.qZA())}function M(F,T){1&F&&(e.TgZ(0,"mat-icon",2),e._uU(1," dangerous "),e.qZA())}function w(F,T){1&F&&(e.TgZ(0,"mat-icon",2),e._uU(1," check_circle "),e.qZA())}const x=["*"];let I=(()=>{class F{}return F.\u0275fac=function(H){return new(H||F)},F.\u0275cmp=e.Xpm({type:F,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:x,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(H,P){1&H&&(e.F$t(),e.TgZ(0,"div",0),e.YNc(1,S,2,0,"mat-icon",1),e.YNc(2,m,2,0,"mat-icon",1),e.YNc(3,M,2,0,"mat-icon",1),e.YNc(4,w,2,0,"mat-icon",1),e.Hsn(5),e.qZA()),2&H&&(e.ekj("warn-alert","warn"===P.alert_type)("error-alert","error"===P.alert_type)("success-alert","success"===P.alert_type)("info-alert","info"===P.alert_type),e.xp6(1),e.Q6J("ngIf","info"===P.alert_type),e.xp6(1),e.Q6J("ngIf","warn"===P.alert_type),e.xp6(1),e.Q6J("ngIf","error"===P.alert_type),e.xp6(1),e.Q6J("ngIf","success"===P.alert_type))},dependencies:[f.Hw,A.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),F})()},63189:(Qe,ae,p)=>{"use strict";p.d(ae,{r:()=>S});var e=p(97392),f=p(36895),A=p(94650);let S=(()=>{class m{}return m.\u0275fac=function(w){return new(w||m)},m.\u0275mod=A.oAB({type:m}),m.\u0275inj=A.cJS({imports:[e.Ps,f.ez]}),m})()},97403:(Qe,ae,p)=>{"use strict";p.d(ae,{b:()=>A});var e=p(94650),f=p(51572);let A=(()=>{class S{}return S.\u0275fac=function(M){return new(M||S)},S.\u0275cmp=e.Xpm({type:S,selectors:[["perun-web-apps-loading-dialog"]],decls:2,vars:0,consts:[[1,"spinner-container"]],template:function(M,w){1&M&&(e.TgZ(0,"div",0),e._UZ(1,"mat-spinner"),e.qZA())},dependencies:[f.Ou]}),S})()},68530:(Qe,ae,p)=>{"use strict";p.d(ae,{K:()=>A});var e=p(94650),f=p(51572);let A=(()=>{class S{}return S.\u0275fac=function(M){return new(M||S)},S.\u0275cmp=e.Xpm({type:S,selectors:[["perun-web-apps-loading-table"]],decls:2,vars:0,consts:[[1,"spinner-container"]],template:function(M,w){1&M&&(e.TgZ(0,"div",0),e._UZ(1,"mat-spinner"),e.qZA())},dependencies:[f.Ou]}),S})()},46860:(Qe,ae,p)=>{"use strict";p.d(ae,{A:()=>m});var e=p(97392),f=p(36895),A=p(51572),S=p(94650);let m=(()=>{class M{}return M.\u0275fac=function(x){return new(x||M)},M.\u0275mod=S.oAB({type:M}),M.\u0275inj=S.cJS({imports:[e.Ps,f.ez,A.Cq]}),M})()},60900:(Qe,ae,p)=>{"use strict";p.d(ae,{C:()=>He});var e=p(36895),f=p(4859),A=p(73546),S=p(56709),m=p(7274),M=p(44850),w=p(37084),x=p(59549),I=p(94650),F=p(3238);let Fe=(()=>{class ve{}return ve.\u0275fac=function(r){return new(r||ve)},ve.\u0275mod=I.oAB({type:ve}),ve.\u0275inj=I.cJS({imports:[F.uc,F.BQ,F.uc,F.BQ]}),ve})();var le=p(97392),N=p(284),U=p(51572),X=p(86257),ce=p(30671),Me=p(67376),ue=p(24006),Pe=p(99602),tt=p(23267),Ce=p(96338),at=p(28255),Ue=p(83683),pt=p(96308),z=p(98739),st=p(10266),be=p(84385),Ye=p(3848),he=p(90455),Re=p(77331);let He=(()=>{class ve{}return ve.\u0275fac=function(r){return new(r||ve)},ve.\u0275mod=I.oAB({type:ve}),ve.\u0275inj=I.cJS({imports:[e.ez,A.QW,M.t,w.To,f.ot,Fe,S.p9,le.Ps,ce.p0,m.Is,U.Cq,x.lN,N.c,Me.Cl,ue.u5,ue.UX,X.T5,Pe.FA,F.XK,tt.SJ,Ce.ie,at.Tx,Ue.g0,pt.JX,z.TU,st.AV,be.LD,F.si,ce.p0,he.rP,Re.Hi,A.QW,M.t,w.To,f.ot,Fe,S.p9,le.Ps,ce.p0,m.Is,U.Cq,x.lN,N.c,Me.Cl,ue.u5,ue.UX,X.T5,Pe.FA,F.XK,tt.SJ,Ce.ie,at.Tx,Ue.g0,pt.JX,z.TU,st.AV,be.LD,F.si,Ye.Nh,he.rP,Re.Hi]}),ve})()},71345:Qe=>{var ae=4,p=.001,e=1e-7,f=10,A=11,S=1/(A-1),m="function"==typeof Float32Array;function M(J,fe){return 1-3*fe+3*J}function w(J,fe){return 3*fe-6*J}function x(J){return 3*J}function I(J,fe,j){return((M(fe,j)*J+w(fe,j))*J+x(fe))*J}function F(J,fe,j){return 3*M(fe,j)*J*J+2*w(fe,j)*J+x(fe)}function P(J){return J}Qe.exports=function(fe,j,$,_e){if(!(0<=fe&&fe<=1&&0<=$&&$<=1))throw new Error("bezier x values must be in [0, 1] range");if(fe===j&&$===_e)return P;for(var ge=m?new Float32Array(A):new Array(A),pe=0;pe=p?function H(J,fe,j,$){for(var _e=0;_e0?j=pe:fe=pe}while(Math.abs(ge)>e&&++re=64;){for(_e=J[0],ge=J[1],pe=J[2],re=J[3],v=J[4],V=J[5],W=J[6],te=J[7],ye=0;ye<16;ye++)P[ye]=(255&fe[ze=j+4*ye])<<24|(255&fe[ze+1])<<16|(255&fe[ze+2])<<8|255&fe[ze+3];for(ye=16;ye<64;ye++)P[ye]=((ke=((ne=P[ye-2])>>>17|ne<<15)^(ne>>>19|ne<<13)^ne>>>10)+P[ye-7]|0)+(($e=((ne=P[ye-15])>>>7|ne<<25)^(ne>>>18|ne<<14)^ne>>>3)+P[ye-16]|0);for(ye=0;ye<64;ye++)ke=(((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&V^~v&W)|0)+(te+(A[ye]+P[ye]|0)|0)|0,$e=((_e>>>2|_e<<30)^(_e>>>13|_e<<19)^(_e>>>22|_e<<10))+(_e&ge^_e&pe^ge&pe)|0,te=W,W=V,V=v,v=re+ke|0,re=pe,pe=ge,ge=_e,_e=ke+$e|0;J[0]+=_e,J[1]+=ge,J[2]+=pe,J[3]+=re,J[4]+=v,J[5]+=V,J[6]+=W,J[7]+=te,j+=64,$-=64}return j}var m=function(){function P(){this.digestLength=f.digestLength,this.blockSize=f.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return P.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},P.prototype.clean=function(){for(var J=0;J0){for(;this.bufferLength<64&&fe>0;)this.buffer[this.bufferLength++]=J[j++],fe--;64===this.bufferLength&&(S(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(fe>=64&&(j=S(this.temp,this.state,J,j,fe),fe%=64);fe>0;)this.buffer[this.bufferLength++]=J[j++],fe--;return this},P.prototype.finish=function(J){if(!this.finished){var fe=this.bytesHashed,j=this.bufferLength,$=fe/536870912|0,_e=fe<<3,ge=fe%64<56?64:128;this.buffer[j]=128;for(var pe=j+1;pe>>24&255,this.buffer[ge-7]=$>>>16&255,this.buffer[ge-6]=$>>>8&255,this.buffer[ge-5]=$>>>0&255,this.buffer[ge-4]=_e>>>24&255,this.buffer[ge-3]=_e>>>16&255,this.buffer[ge-2]=_e>>>8&255,this.buffer[ge-1]=_e>>>0&255,S(this.temp,this.state,this.buffer,0,ge),this.finished=!0}for(pe=0;pe<8;pe++)J[4*pe+0]=this.state[pe]>>>24&255,J[4*pe+1]=this.state[pe]>>>16&255,J[4*pe+2]=this.state[pe]>>>8&255,J[4*pe+3]=this.state[pe]>>>0&255;return this},P.prototype.digest=function(){var J=new Uint8Array(this.digestLength);return this.finish(J),J},P.prototype._saveState=function(J){for(var fe=0;fethis.blockSize)(new m).update(J).finish(fe).clean();else for(var j=0;j1&&J.update(P),fe&&J.update(fe),J.update(j),J.finish(P),j[0]++}f.HMAC=M,f.hash=w,f.default=w,f.hmac=x;var F=new Uint8Array(f.digestLength);f.hkdf=function T(P,J,fe,j){void 0===J&&(J=F),void 0===j&&(j=32);for(var $=new Uint8Array([1]),_e=x(J,P),ge=new M(_e),pe=new Uint8Array(ge.digestLength),re=pe.length,v=new Uint8Array(j),V=0;V>>24&255,ge[1]=W>>>16&255,ge[2]=W>>>8&255,ge[3]=W>>>0&255,$.reset(),$.update(J),$.update(ge),$.finish(re);for(var te=0;te<_e;te++)pe[te]=re[te];for(te=2;te<=fe;te++){$.reset(),$.update(re).finish(re);for(var ne=0;ne<_e;ne++)pe[ne]^=re[ne]}for(te=0;te<_e&&V*_e+te=T.status}function M(F){try{F.dispatchEvent(new MouseEvent("click"))}catch{var T=document.createEvent("MouseEvents");T.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),F.dispatchEvent(T)}}var w="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,x=w.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),I=w.saveAs||("object"!=typeof window||window!==w?function(){}:"download"in HTMLAnchorElement.prototype&&!x?function(F,T,H){var P=w.URL||w.webkitURL,J=document.createElement("a");J.download=T=T||F.name||"download",J.rel="noopener","string"==typeof F?(J.href=F,J.origin===location.origin?M(J):m(J.href)?S(F,T,H):M(J,J.target="_blank")):(J.href=P.createObjectURL(F),setTimeout(function(){P.revokeObjectURL(J.href)},4e4),setTimeout(function(){M(J)},0))}:"msSaveOrOpenBlob"in navigator?function(F,T,H){if(T=T||F.name||"download","string"!=typeof F)navigator.msSaveOrOpenBlob(function A(F,T){return typeof T>"u"?T={autoBom:!1}:"object"!=typeof T&&(console.warn("Deprecated: Expected third argument to be a object"),T={autoBom:!T}),T.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(F.type)?new Blob(["\ufeff",F],{type:F.type}):F}(F,H),T);else if(m(F))S(F,T,H);else{var P=document.createElement("a");P.href=F,P.target="_blank",setTimeout(function(){M(P)})}}:function(F,T,H,P){if((P=P||open("","_blank"))&&(P.document.title=P.document.body.innerText="downloading..."),"string"==typeof F)return S(F,T,H);var J="application/octet-stream"===F.type,fe=/constructor/i.test(w.HTMLElement)||w.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||J&&fe||x)&&typeof FileReader<"u"){var $=new FileReader;$.onloadend=function(){var pe=$.result;pe=j?pe:pe.replace(/^data:[^;]*;/,"data:attachment/file;"),P?P.location.href=pe:location=pe,P=null},$.readAsDataURL(F)}else{var _e=w.URL||w.webkitURL,ge=_e.createObjectURL(F);P?P.location=ge:location.href=ge,P=null,setTimeout(function(){_e.revokeObjectURL(ge)},4e4)}});w.saveAs=I.saveAs=I,Qe.exports=I})?p.apply(ae,[]):p)&&(Qe.exports=f)},61135:(Qe,ae,p)=>{"use strict";p.d(ae,{X:()=>f});var e=p(77579);class f extends e.x{constructor(S){super(),this._value=S}get value(){return this.getValue()}_subscribe(S){const m=super._subscribe(S);return!m.closed&&S.next(this._value),m}getValue(){const{hasError:S,thrownError:m,_value:M}=this;if(S)throw m;return this._throwIfClosed(),M}next(S){super.next(this._value=S)}}},69751:(Qe,ae,p)=>{"use strict";p.d(ae,{y:()=>x});var e=p(70930),f=p(50727),A=p(48822),S=p(89635),m=p(42416),M=p(30576),w=p(72806);let x=(()=>{class H{constructor(J){J&&(this._subscribe=J)}lift(J){const fe=new H;return fe.source=this,fe.operator=J,fe}subscribe(J,fe,j){const $=function T(H){return H&&H instanceof e.Lv||function F(H){return H&&(0,M.m)(H.next)&&(0,M.m)(H.error)&&(0,M.m)(H.complete)}(H)&&(0,f.Nn)(H)}(J)?J:new e.Hp(J,fe,j);return(0,w.x)(()=>{const{operator:_e,source:ge}=this;$.add(_e?_e.call($,ge):ge?this._subscribe($):this._trySubscribe($))}),$}_trySubscribe(J){try{return this._subscribe(J)}catch(fe){J.error(fe)}}forEach(J,fe){return new(fe=I(fe))((j,$)=>{const _e=new e.Hp({next:ge=>{try{J(ge)}catch(pe){$(pe),_e.unsubscribe()}},error:$,complete:j});this.subscribe(_e)})}_subscribe(J){var fe;return null===(fe=this.source)||void 0===fe?void 0:fe.subscribe(J)}[A.L](){return this}pipe(...J){return(0,S.U)(J)(this)}toPromise(J){return new(J=I(J))((fe,j)=>{let $;this.subscribe(_e=>$=_e,_e=>j(_e),()=>fe($))})}}return H.create=P=>new H(P),H})();function I(H){var P;return null!==(P=H??m.v.Promise)&&void 0!==P?P:Promise}},4707:(Qe,ae,p)=>{"use strict";p.d(ae,{t:()=>A});var e=p(77579),f=p(26063);class A extends e.x{constructor(m=1/0,M=1/0,w=f.l){super(),this._bufferSize=m,this._windowTime=M,this._timestampProvider=w,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=M===1/0,this._bufferSize=Math.max(1,m),this._windowTime=Math.max(1,M)}next(m){const{isStopped:M,_buffer:w,_infiniteTimeWindow:x,_timestampProvider:I,_windowTime:F}=this;M||(w.push(m),!x&&w.push(I.now()+F)),this._trimBuffer(),super.next(m)}_subscribe(m){this._throwIfClosed(),this._trimBuffer();const M=this._innerSubscribe(m),{_infiniteTimeWindow:w,_buffer:x}=this,I=x.slice();for(let F=0;F{"use strict";p.d(ae,{x:()=>w});var e=p(69751),f=p(50727);const S=(0,p(83888).d)(I=>function(){I(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var m=p(38737),M=p(72806);let w=(()=>{class I extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(T){const H=new x(this,this);return H.operator=T,H}_throwIfClosed(){if(this.closed)throw new S}next(T){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const H of this.currentObservers)H.next(T)}})}error(T){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=T;const{observers:H}=this;for(;H.length;)H.shift().error(T)}})}complete(){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:T}=this;for(;T.length;)T.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var T;return(null===(T=this.observers)||void 0===T?void 0:T.length)>0}_trySubscribe(T){return this._throwIfClosed(),super._trySubscribe(T)}_subscribe(T){return this._throwIfClosed(),this._checkFinalizedStatuses(T),this._innerSubscribe(T)}_innerSubscribe(T){const{hasError:H,isStopped:P,observers:J}=this;return H||P?f.Lc:(this.currentObservers=null,J.push(T),new f.w0(()=>{this.currentObservers=null,(0,m.P)(J,T)}))}_checkFinalizedStatuses(T){const{hasError:H,thrownError:P,isStopped:J}=this;H?T.error(P):J&&T.complete()}asObservable(){const T=new e.y;return T.source=this,T}}return I.create=(F,T)=>new x(F,T),I})();class x extends w{constructor(F,T){super(),this.destination=F,this.source=T}next(F){var T,H;null===(H=null===(T=this.destination)||void 0===T?void 0:T.next)||void 0===H||H.call(T,F)}error(F){var T,H;null===(H=null===(T=this.destination)||void 0===T?void 0:T.error)||void 0===H||H.call(T,F)}complete(){var F,T;null===(T=null===(F=this.destination)||void 0===F?void 0:F.complete)||void 0===T||T.call(F)}_subscribe(F){var T,H;return null!==(H=null===(T=this.source)||void 0===T?void 0:T.subscribe(F))&&void 0!==H?H:f.Lc}}},70930:(Qe,ae,p)=>{"use strict";p.d(ae,{Hp:()=>j,Lv:()=>H});var e=p(30576),f=p(50727),A=p(42416),S=p(87849),m=p(25032);const M=I("C",void 0,void 0);function I(re,v,V){return{kind:re,value:v,error:V}}var F=p(43410),T=p(72806);class H extends f.w0{constructor(v){super(),this.isStopped=!1,v?(this.destination=v,(0,f.Nn)(v)&&v.add(this)):this.destination=pe}static create(v,V,W){return new j(v,V,W)}next(v){this.isStopped?ge(function x(re){return I("N",re,void 0)}(v),this):this._next(v)}error(v){this.isStopped?ge(function w(re){return I("E",void 0,re)}(v),this):(this.isStopped=!0,this._error(v))}complete(){this.isStopped?ge(M,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(v){this.destination.next(v)}_error(v){try{this.destination.error(v)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const P=Function.prototype.bind;function J(re,v){return P.call(re,v)}class fe{constructor(v){this.partialObserver=v}next(v){const{partialObserver:V}=this;if(V.next)try{V.next(v)}catch(W){$(W)}}error(v){const{partialObserver:V}=this;if(V.error)try{V.error(v)}catch(W){$(W)}else $(v)}complete(){const{partialObserver:v}=this;if(v.complete)try{v.complete()}catch(V){$(V)}}}class j extends H{constructor(v,V,W){let te;if(super(),(0,e.m)(v)||!v)te={next:v??void 0,error:V??void 0,complete:W??void 0};else{let ne;this&&A.v.useDeprecatedNextContext?(ne=Object.create(v),ne.unsubscribe=()=>this.unsubscribe(),te={next:v.next&&J(v.next,ne),error:v.error&&J(v.error,ne),complete:v.complete&&J(v.complete,ne)}):te=v}this.destination=new fe(te)}}function $(re){A.v.useDeprecatedSynchronousErrorHandling?(0,T.O)(re):(0,S.h)(re)}function ge(re,v){const{onStoppedNotification:V}=A.v;V&&F.z.setTimeout(()=>V(re,v))}const pe={closed:!0,next:m.Z,error:function _e(re){throw re},complete:m.Z}},50727:(Qe,ae,p)=>{"use strict";p.d(ae,{Lc:()=>M,w0:()=>m,Nn:()=>w});var e=p(30576);const A=(0,p(83888).d)(I=>function(T){I(this),this.message=T?`${T.length} errors occurred during unsubscription:\n${T.map((H,P)=>`${P+1}) ${H.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=T});var S=p(38737);class m{constructor(F){this.initialTeardown=F,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let F;if(!this.closed){this.closed=!0;const{_parentage:T}=this;if(T)if(this._parentage=null,Array.isArray(T))for(const J of T)J.remove(this);else T.remove(this);const{initialTeardown:H}=this;if((0,e.m)(H))try{H()}catch(J){F=J instanceof A?J.errors:[J]}const{_finalizers:P}=this;if(P){this._finalizers=null;for(const J of P)try{x(J)}catch(fe){F=F??[],fe instanceof A?F=[...F,...fe.errors]:F.push(fe)}}if(F)throw new A(F)}}add(F){var T;if(F&&F!==this)if(this.closed)x(F);else{if(F instanceof m){if(F.closed||F._hasParent(this))return;F._addParent(this)}(this._finalizers=null!==(T=this._finalizers)&&void 0!==T?T:[]).push(F)}}_hasParent(F){const{_parentage:T}=this;return T===F||Array.isArray(T)&&T.includes(F)}_addParent(F){const{_parentage:T}=this;this._parentage=Array.isArray(T)?(T.push(F),T):T?[T,F]:F}_removeParent(F){const{_parentage:T}=this;T===F?this._parentage=null:Array.isArray(T)&&(0,S.P)(T,F)}remove(F){const{_finalizers:T}=this;T&&(0,S.P)(T,F),F instanceof m&&F._removeParent(this)}}m.EMPTY=(()=>{const I=new m;return I.closed=!0,I})();const M=m.EMPTY;function w(I){return I instanceof m||I&&"closed"in I&&(0,e.m)(I.remove)&&(0,e.m)(I.add)&&(0,e.m)(I.unsubscribe)}function x(I){(0,e.m)(I)?I():I.unsubscribe()}},42416:(Qe,ae,p)=>{"use strict";p.d(ae,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},83905:(Qe,ae,p)=>{"use strict";p.d(ae,{z:()=>A});var e=p(86805),f=p(70930);function A(S,m){const M="object"==typeof m;return new Promise((w,x)=>{const I=new f.Hp({next:F=>{w(F),I.unsubscribe()},error:x,complete:()=>{M?w(m.defaultValue):x(new e.K)}});S.subscribe(I)})}},94033:(Qe,ae,p)=>{"use strict";p.d(ae,{c:()=>M});var e=p(69751),f=p(50727),A=p(38343),S=p(25403),m=p(54482);class M extends e.y{constructor(x,I){super(),this.source=x,this.subjectFactory=I,this._subject=null,this._refCount=0,this._connection=null,(0,m.A)(x)&&(this.lift=x.lift)}_subscribe(x){return this.getSubject().subscribe(x)}getSubject(){const x=this._subject;return(!x||x.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:x}=this;this._subject=this._connection=null,x?.unsubscribe()}connect(){let x=this._connection;if(!x){x=this._connection=new f.w0;const I=this.getSubject();x.add(this.source.subscribe((0,S.x)(I,void 0,()=>{this._teardown(),I.complete()},F=>{this._teardown(),I.error(F)},()=>this._teardown()))),x.closed&&(this._connection=null,x=f.w0.EMPTY)}return x}refCount(){return(0,A.x)()(this)}}},39841:(Qe,ae,p)=>{"use strict";p.d(ae,{a:()=>F});var e=p(69751),f=p(54742),A=p(32076),S=p(44671),m=p(83268),M=p(63269),w=p(31810),x=p(25403),I=p(39672);function F(...P){const J=(0,M.yG)(P),fe=(0,M.jO)(P),{args:j,keys:$}=(0,f.D)(P);if(0===j.length)return(0,A.D)([],J);const _e=new e.y(function T(P,J,fe=S.y){return j=>{H(J,()=>{const{length:$}=P,_e=new Array($);let ge=$,pe=$;for(let re=0;re<$;re++)H(J,()=>{const v=(0,A.D)(P[re],J);let V=!1;v.subscribe((0,x.x)(j,W=>{_e[re]=W,V||(V=!0,pe--),pe||j.next(fe(_e.slice()))},()=>{--ge||j.complete()}))},j)},j)}}(j,J,$?ge=>(0,w.n)($,ge):S.y));return fe?_e.pipe((0,m.Z)(fe)):_e}function H(P,J,fe){P?(0,I.f)(fe,P,J):J()}},97272:(Qe,ae,p)=>{"use strict";p.d(ae,{z:()=>m});var e=p(8189),A=p(63269),S=p(32076);function m(...M){return function f(){return(0,e.J)(1)}()((0,S.D)(M,(0,A.yG)(M)))}},49770:(Qe,ae,p)=>{"use strict";p.d(ae,{P:()=>A});var e=p(69751),f=p(38421);function A(S){return new e.y(m=>{(0,f.Xf)(S()).subscribe(m)})}},60515:(Qe,ae,p)=>{"use strict";p.d(ae,{E:()=>f});const f=new(p(69751).y)(m=>m.complete())},4128:(Qe,ae,p)=>{"use strict";p.d(ae,{D:()=>x});var e=p(69751),f=p(54742),A=p(38421),S=p(63269),m=p(25403),M=p(83268),w=p(31810);function x(...I){const F=(0,S.jO)(I),{args:T,keys:H}=(0,f.D)(I),P=new e.y(J=>{const{length:fe}=T;if(!fe)return void J.complete();const j=new Array(fe);let $=fe,_e=fe;for(let ge=0;ge{pe||(pe=!0,_e--),j[ge]=re},()=>$--,void 0,()=>{(!$||!pe)&&(_e||J.next(H?(0,w.n)(H,j):j),J.complete())}))}});return F?P.pipe((0,M.Z)(F)):P}},32076:(Qe,ae,p)=>{"use strict";p.d(ae,{D:()=>W});var e=p(38421),f=p(39672),A=p(54482),S=p(25403);function m(te,ne=0){return(0,A.e)((ye,ze)=>{ye.subscribe((0,S.x)(ze,ke=>(0,f.f)(ze,te,()=>ze.next(ke),ne),()=>(0,f.f)(ze,te,()=>ze.complete(),ne),ke=>(0,f.f)(ze,te,()=>ze.error(ke),ne)))})}function M(te,ne=0){return(0,A.e)((ye,ze)=>{ze.add(te.schedule(()=>ye.subscribe(ze),ne))})}var I=p(69751),T=p(2202),H=p(30576);function J(te,ne){if(!te)throw new Error("Iterable cannot be null");return new I.y(ye=>{(0,f.f)(ye,ne,()=>{const ze=te[Symbol.asyncIterator]();(0,f.f)(ye,ne,()=>{ze.next().then(ke=>{ke.done?ye.complete():ye.next(ke.value)})},0,!0)})})}var fe=p(93670),j=p(28239),$=p(81144),_e=p(26495),ge=p(12206),pe=p(44532),re=p(53260);function W(te,ne){return ne?function V(te,ne){if(null!=te){if((0,fe.c)(te))return function w(te,ne){return(0,e.Xf)(te).pipe(M(ne),m(ne))}(te,ne);if((0,$.z)(te))return function F(te,ne){return new I.y(ye=>{let ze=0;return ne.schedule(function(){ze===te.length?ye.complete():(ye.next(te[ze++]),ye.closed||this.schedule())})})}(te,ne);if((0,j.t)(te))return function x(te,ne){return(0,e.Xf)(te).pipe(M(ne),m(ne))}(te,ne);if((0,ge.D)(te))return J(te,ne);if((0,_e.T)(te))return function P(te,ne){return new I.y(ye=>{let ze;return(0,f.f)(ye,ne,()=>{ze=te[T.h](),(0,f.f)(ye,ne,()=>{let ke,$e;try{({value:ke,done:$e}=ze.next())}catch(Je){return void ye.error(Je)}$e?ye.complete():ye.next(ke)},0,!0)}),()=>(0,H.m)(ze?.return)&&ze.return()})}(te,ne);if((0,re.L)(te))return function v(te,ne){return J((0,re.Q)(te),ne)}(te,ne)}throw(0,pe.z)(te)}(te,ne):(0,e.Xf)(te)}},54968:(Qe,ae,p)=>{"use strict";p.d(ae,{R:()=>F});var e=p(38421),f=p(69751),A=p(86099),S=p(81144),m=p(30576),M=p(83268);const w=["addListener","removeListener"],x=["addEventListener","removeEventListener"],I=["on","off"];function F(fe,j,$,_e){if((0,m.m)($)&&(_e=$,$=void 0),_e)return F(fe,j,$).pipe((0,M.Z)(_e));const[ge,pe]=function J(fe){return(0,m.m)(fe.addEventListener)&&(0,m.m)(fe.removeEventListener)}(fe)?x.map(re=>v=>fe[re](j,v,$)):function H(fe){return(0,m.m)(fe.addListener)&&(0,m.m)(fe.removeListener)}(fe)?w.map(T(fe,j)):function P(fe){return(0,m.m)(fe.on)&&(0,m.m)(fe.off)}(fe)?I.map(T(fe,j)):[];if(!ge&&(0,S.z)(fe))return(0,A.z)(re=>F(re,j,$))((0,e.Xf)(fe));if(!ge)throw new TypeError("Invalid event target");return new f.y(re=>{const v=(...V)=>re.next(1pe(v)})}function T(fe,j){return $=>_e=>fe[$](j,_e)}},38421:(Qe,ae,p)=>{"use strict";p.d(ae,{Xf:()=>P});var e=p(70655),f=p(81144),A=p(28239),S=p(69751),m=p(93670),M=p(12206),w=p(44532),x=p(26495),I=p(53260),F=p(30576),T=p(87849),H=p(48822);function P(re){if(re instanceof S.y)return re;if(null!=re){if((0,m.c)(re))return function J(re){return new S.y(v=>{const V=re[H.L]();if((0,F.m)(V.subscribe))return V.subscribe(v);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(re);if((0,f.z)(re))return function fe(re){return new S.y(v=>{for(let V=0;V{re.then(V=>{v.closed||(v.next(V),v.complete())},V=>v.error(V)).then(null,T.h)})}(re);if((0,M.D)(re))return _e(re);if((0,x.T)(re))return function $(re){return new S.y(v=>{for(const V of re)if(v.next(V),v.closed)return;v.complete()})}(re);if((0,I.L)(re))return function ge(re){return _e((0,I.Q)(re))}(re)}throw(0,w.z)(re)}function _e(re){return new S.y(v=>{(function pe(re,v){var V,W,te,ne;return(0,e.mG)(this,void 0,void 0,function*(){try{for(V=(0,e.KL)(re);!(W=yield V.next()).done;)if(v.next(W.value),v.closed)return}catch(ye){te={error:ye}}finally{try{W&&!W.done&&(ne=V.return)&&(yield ne.call(V))}finally{if(te)throw te.error}}v.complete()})})(re,v).catch(V=>v.error(V))})}},17445:(Qe,ae,p)=>{"use strict";p.d(ae,{F:()=>A});var e=p(34986),f=p(82805);function A(S=0,m=e.z){return S<0&&(S=0),(0,f.H)(S,S,m)}},56451:(Qe,ae,p)=>{"use strict";p.d(ae,{T:()=>M});var e=p(8189),f=p(38421),A=p(60515),S=p(63269),m=p(32076);function M(...w){const x=(0,S.yG)(w),I=(0,S._6)(w,1/0),F=w;return F.length?1===F.length?(0,f.Xf)(F[0]):(0,e.J)(I)((0,m.D)(F,x)):A.E}},39646:(Qe,ae,p)=>{"use strict";p.d(ae,{of:()=>A});var e=p(63269),f=p(32076);function A(...S){const m=(0,e.yG)(S);return(0,f.D)(S,m)}},54355:(Qe,ae,p)=>{"use strict";p.d(ae,{S:()=>m});var e=p(69751),f=p(38421),A=p(75797),S=p(25403);function m(...w){return 1===(w=(0,A.k)(w)).length?(0,f.Xf)(w[0]):new e.y(function M(w){return x=>{let I=[];for(let F=0;I&&!x.closed&&F{if(I){for(let H=0;H{"use strict";p.d(ae,{_:()=>A});var e=p(69751),f=p(30576);function A(S,m){const M=(0,f.m)(S)?S:()=>S,w=x=>x.error(M());return new e.y(m?x=>m.schedule(w,0,x):w)}},82805:(Qe,ae,p)=>{"use strict";p.d(ae,{H:()=>m});var e=p(69751),f=p(34986),A=p(93532),S=p(51165);function m(M=0,w,x=f.P){let I=-1;return null!=w&&((0,A.K)(w)?x=w:I=w),new e.y(F=>{let T=(0,S.q)(M)?+M-x.now():M;T<0&&(T=0);let H=0;return x.schedule(function(){F.closed||(F.next(H++),0<=I?this.schedule(void 0,I):F.complete())},T)})}},25403:(Qe,ae,p)=>{"use strict";p.d(ae,{x:()=>f});var e=p(70930);function f(S,m,M,w,x){return new A(S,m,M,w,x)}class A extends e.Lv{constructor(m,M,w,x,I,F){super(m),this.onFinalize=I,this.shouldUnsubscribe=F,this._next=M?function(T){try{M(T)}catch(H){m.error(H)}}:super._next,this._error=x?function(T){try{x(T)}catch(H){m.error(H)}finally{this.unsubscribe()}}:super._error,this._complete=w?function(){try{w()}catch(T){m.error(T)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var m;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:M}=this;super.unsubscribe(),!M&&(null===(m=this.onFinalize)||void 0===m||m.call(this))}}}},23601:(Qe,ae,p)=>{"use strict";p.d(ae,{e:()=>w});var e=p(34986),f=p(54482),A=p(38421),S=p(25403),M=p(82805);function w(x,I=e.z){return function m(x){return(0,f.e)((I,F)=>{let T=!1,H=null,P=null,J=!1;const fe=()=>{if(P?.unsubscribe(),P=null,T){T=!1;const $=H;H=null,F.next($)}J&&F.complete()},j=()=>{P=null,J&&F.complete()};I.subscribe((0,S.x)(F,$=>{T=!0,H=$,P||(0,A.Xf)(x($)).subscribe(P=(0,S.x)(F,fe,j))},()=>{J=!0,(!T||!P||P.closed)&&F.complete()}))})}(()=>(0,M.H)(x,I))}},70262:(Qe,ae,p)=>{"use strict";p.d(ae,{K:()=>S});var e=p(38421),f=p(25403),A=p(54482);function S(m){return(0,A.e)((M,w)=>{let F,x=null,I=!1;x=M.subscribe((0,f.x)(w,void 0,void 0,T=>{F=(0,e.Xf)(m(T,S(m)(M))),x?(x.unsubscribe(),x=null,F.subscribe(w)):I=!0})),I&&(x.unsubscribe(),x=null,F.subscribe(w))})}},24351:(Qe,ae,p)=>{"use strict";p.d(ae,{b:()=>A});var e=p(86099),f=p(30576);function A(S,m){return(0,f.m)(m)?(0,e.z)(S,m,1):(0,e.z)(S,1)}},78372:(Qe,ae,p)=>{"use strict";p.d(ae,{b:()=>S});var e=p(34986),f=p(54482),A=p(25403);function S(m,M=e.z){return(0,f.e)((w,x)=>{let I=null,F=null,T=null;const H=()=>{if(I){I.unsubscribe(),I=null;const J=F;F=null,x.next(J)}};function P(){const J=T+m,fe=M.now();if(fe{F=J,T=M.now(),I||(I=M.schedule(P,m),x.add(I))},()=>{H(),x.complete()},void 0,()=>{F=I=null}))})}},46590:(Qe,ae,p)=>{"use strict";p.d(ae,{d:()=>A});var e=p(54482),f=p(25403);function A(S){return(0,e.e)((m,M)=>{let w=!1;m.subscribe((0,f.x)(M,x=>{w=!0,M.next(x)},()=>{w||M.next(S),M.complete()}))})}},91005:(Qe,ae,p)=>{"use strict";p.d(ae,{g:()=>H});var e=p(34986),f=p(97272),A=p(95698),S=p(54482),m=p(25403),M=p(25032),x=p(69718),I=p(86099);function F(P,J){return J?fe=>(0,f.z)(J.pipe((0,A.q)(1),function w(){return(0,S.e)((P,J)=>{P.subscribe((0,m.x)(J,M.Z))})}()),fe.pipe(F(P))):(0,I.z)((fe,j)=>P(fe,j).pipe((0,A.q)(1),(0,x.h)(fe)))}var T=p(82805);function H(P,J=e.z){const fe=(0,T.H)(P,J);return F(()=>fe)}},71884:(Qe,ae,p)=>{"use strict";p.d(ae,{x:()=>S});var e=p(44671),f=p(54482),A=p(25403);function S(M,w=e.y){return M=M??m,(0,f.e)((x,I)=>{let F,T=!0;x.subscribe((0,A.x)(I,H=>{const P=w(H);(T||!M(F,P))&&(T=!1,F=P,I.next(H))}))})}function m(M,w){return M===w}},39300:(Qe,ae,p)=>{"use strict";p.d(ae,{h:()=>A});var e=p(54482),f=p(25403);function A(S,m){return(0,e.e)((M,w)=>{let x=0;M.subscribe((0,f.x)(w,I=>S.call(m,I,x++)&&w.next(I)))})}},28746:(Qe,ae,p)=>{"use strict";p.d(ae,{x:()=>f});var e=p(54482);function f(A){return(0,e.e)((S,m)=>{try{S.subscribe(m)}finally{m.add(A)}})}},50590:(Qe,ae,p)=>{"use strict";p.d(ae,{P:()=>w});var e=p(86805),f=p(39300),A=p(95698),S=p(46590),m=p(18068),M=p(44671);function w(x,I){const F=arguments.length>=2;return T=>T.pipe(x?(0,f.h)((H,P)=>x(H,P,T)):M.y,(0,A.q)(1),F?(0,S.d)(I):(0,m.T)(()=>new e.K))}},54004:(Qe,ae,p)=>{"use strict";p.d(ae,{U:()=>A});var e=p(54482),f=p(25403);function A(S,m){return(0,e.e)((M,w)=>{let x=0;M.subscribe((0,f.x)(w,I=>{w.next(S.call(m,I,x++))}))})}},69718:(Qe,ae,p)=>{"use strict";p.d(ae,{h:()=>f});var e=p(54004);function f(A){return(0,e.U)(()=>A)}},8189:(Qe,ae,p)=>{"use strict";p.d(ae,{J:()=>A});var e=p(86099),f=p(44671);function A(S=1/0){return(0,e.z)(f.y,S)}},72733:(Qe,ae,p)=>{"use strict";p.d(ae,{p:()=>S});var e=p(38421),f=p(39672),A=p(25403);function S(m,M,w,x,I,F,T,H){const P=[];let J=0,fe=0,j=!1;const $=()=>{j&&!P.length&&!J&&M.complete()},_e=pe=>J{F&&M.next(pe),J++;let re=!1;(0,e.Xf)(w(pe,fe++)).subscribe((0,A.x)(M,v=>{I?.(v),F?_e(v):M.next(v)},()=>{re=!0},void 0,()=>{if(re)try{for(J--;P.length&&Jge(v)):ge(v)}$()}catch(v){M.error(v)}}))};return m.subscribe((0,A.x)(M,_e,()=>{j=!0,$()})),()=>{H?.()}}},86099:(Qe,ae,p)=>{"use strict";p.d(ae,{z:()=>M});var e=p(54004),f=p(38421),A=p(54482),S=p(72733),m=p(30576);function M(w,x,I=1/0){return(0,m.m)(x)?M((F,T)=>(0,e.U)((H,P)=>x(F,H,T,P))((0,f.Xf)(w(F,T))),I):("number"==typeof x&&(I=x),(0,A.e)((F,T)=>(0,S.p)(F,T,w,I)))}},11520:(Qe,ae,p)=>{"use strict";p.d(ae,{G:()=>A});var e=p(54482),f=p(25403);function A(){return(0,e.e)((S,m)=>{let M,w=!1;S.subscribe((0,f.x)(m,x=>{const I=M;M=x,w&&m.next([I,x]),w=!0}))})}},38343:(Qe,ae,p)=>{"use strict";p.d(ae,{x:()=>A});var e=p(54482),f=p(25403);function A(){return(0,e.e)((S,m)=>{let M=null;S._refCount++;const w=(0,f.x)(m,void 0,void 0,void 0,()=>{if(!S||S._refCount<=0||0<--S._refCount)return void(M=null);const x=S._connection,I=M;M=null,x&&(!I||x===I)&&x.unsubscribe(),m.unsubscribe()});S.subscribe(w),w.closed||(M=S.connect())})}},57359:(Qe,ae,p)=>{"use strict";p.d(ae,{U:()=>f});var e=p(25403);function f(A,S,m,M,w){return(x,I)=>{let F=m,T=S,H=0;x.subscribe((0,e.x)(I,P=>{const J=H++;T=F?A(T,P,J):(F=!0,P),M&&I.next(T)},w&&(()=>{F&&I.next(T),I.complete()})))}}},13099:(Qe,ae,p)=>{"use strict";p.d(ae,{B:()=>m});var e=p(38421),f=p(77579),A=p(70930),S=p(54482);function m(w={}){const{connector:x=(()=>new f.x),resetOnError:I=!0,resetOnComplete:F=!0,resetOnRefCountZero:T=!0}=w;return H=>{let P,J,fe,j=0,$=!1,_e=!1;const ge=()=>{J?.unsubscribe(),J=void 0},pe=()=>{ge(),P=fe=void 0,$=_e=!1},re=()=>{const v=P;pe(),v?.unsubscribe()};return(0,S.e)((v,V)=>{j++,!_e&&!$&&ge();const W=fe=fe??x();V.add(()=>{j--,0===j&&!_e&&!$&&(J=M(re,T))}),W.subscribe(V),!P&&j>0&&(P=new A.Hp({next:te=>W.next(te),error:te=>{_e=!0,ge(),J=M(pe,I,te),W.error(te)},complete:()=>{$=!0,ge(),J=M(pe,F),W.complete()}}),(0,e.Xf)(v).subscribe(P))})(H)}}function M(w,x,...I){if(!0===x)return void w();if(!1===x)return;const F=new A.Hp({next:()=>{F.unsubscribe(),w()}});return x(...I).subscribe(F)}},34782:(Qe,ae,p)=>{"use strict";p.d(ae,{d:()=>A});var e=p(4707),f=p(13099);function A(S,m,M){let w,x=!1;return S&&"object"==typeof S?({bufferSize:w=1/0,windowTime:m=1/0,refCount:x=!1,scheduler:M}=S):w=S??1/0,(0,f.B)({connector:()=>new e.t(w,m,M),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:x})}},35684:(Qe,ae,p)=>{"use strict";p.d(ae,{T:()=>f});var e=p(39300);function f(A){return(0,e.h)((S,m)=>A<=m)}},68675:(Qe,ae,p)=>{"use strict";p.d(ae,{O:()=>S});var e=p(97272),f=p(63269),A=p(54482);function S(...m){const M=(0,f.yG)(m);return(0,A.e)((w,x)=>{(M?(0,e.z)(m,w,M):(0,e.z)(m,w)).subscribe(x)})}},63900:(Qe,ae,p)=>{"use strict";p.d(ae,{w:()=>S});var e=p(38421),f=p(54482),A=p(25403);function S(m,M){return(0,f.e)((w,x)=>{let I=null,F=0,T=!1;const H=()=>T&&!I&&x.complete();w.subscribe((0,A.x)(x,P=>{I?.unsubscribe();let J=0;const fe=F++;(0,e.Xf)(m(P,fe)).subscribe(I=(0,A.x)(x,j=>x.next(M?M(P,j,fe,J++):j),()=>{I=null,H()}))},()=>{T=!0,H()}))})}},95698:(Qe,ae,p)=>{"use strict";p.d(ae,{q:()=>S});var e=p(60515),f=p(54482),A=p(25403);function S(m){return m<=0?()=>e.E:(0,f.e)((M,w)=>{let x=0;M.subscribe((0,A.x)(w,I=>{++x<=m&&(w.next(I),m<=x&&w.complete())}))})}},82722:(Qe,ae,p)=>{"use strict";p.d(ae,{R:()=>m});var e=p(54482),f=p(25403),A=p(38421),S=p(25032);function m(M){return(0,e.e)((w,x)=>{(0,A.Xf)(M).subscribe((0,f.x)(x,()=>x.complete(),S.Z)),!x.closed&&w.subscribe(x)})}},22529:(Qe,ae,p)=>{"use strict";p.d(ae,{o:()=>A});var e=p(54482),f=p(25403);function A(S,m=!1){return(0,e.e)((M,w)=>{let x=0;M.subscribe((0,f.x)(w,I=>{const F=S(I,x++);(F||m)&&w.next(I),!F&&w.complete()}))})}},18505:(Qe,ae,p)=>{"use strict";p.d(ae,{b:()=>m});var e=p(30576),f=p(54482),A=p(25403),S=p(44671);function m(M,w,x){const I=(0,e.m)(M)||w||x?{next:M,error:w,complete:x}:M;return I?(0,f.e)((F,T)=>{var H;null===(H=I.subscribe)||void 0===H||H.call(I);let P=!0;F.subscribe((0,A.x)(T,J=>{var fe;null===(fe=I.next)||void 0===fe||fe.call(I,J),T.next(J)},()=>{var J;P=!1,null===(J=I.complete)||void 0===J||J.call(I),T.complete()},J=>{var fe;P=!1,null===(fe=I.error)||void 0===fe||fe.call(I,J),T.error(J)},()=>{var J,fe;P&&(null===(J=I.unsubscribe)||void 0===J||J.call(I)),null===(fe=I.finalize)||void 0===fe||fe.call(I)}))}):S.y}},18068:(Qe,ae,p)=>{"use strict";p.d(ae,{T:()=>S});var e=p(86805),f=p(54482),A=p(25403);function S(M=m){return(0,f.e)((w,x)=>{let I=!1;w.subscribe((0,A.x)(x,F=>{I=!0,x.next(F)},()=>I?x.complete():x.error(M())))})}function m(){return new e.K}},17414:(Qe,ae,p)=>{"use strict";p.d(ae,{V:()=>I});var e=p(34986),f=p(51165),A=p(54482),S=p(38421),m=p(83888),M=p(25403),w=p(39672);const x=(0,m.d)(T=>function(P=null){T(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=P});function I(T,H){const{first:P,each:J,with:fe=F,scheduler:j=H??e.z,meta:$=null}=(0,f.q)(T)?{first:T}:"number"==typeof T?{each:T}:T;if(null==P&&null==J)throw new TypeError("No timeout provided.");return(0,A.e)((_e,ge)=>{let pe,re,v=null,V=0;const W=te=>{re=(0,w.f)(ge,j,()=>{try{pe.unsubscribe(),(0,S.Xf)(fe({meta:$,lastValue:v,seen:V})).subscribe(ge)}catch(ne){ge.error(ne)}},te)};pe=_e.subscribe((0,M.x)(ge,te=>{re?.unsubscribe(),V++,ge.next(v=te),J>0&&W(J)},void 0,void 0,()=>{re?.closed||re?.unsubscribe(),v=null})),!V&&W(null!=P?"number"==typeof P?P:+P-j.now():J)})}function F(T){throw new x(T)}},84408:(Qe,ae,p)=>{"use strict";p.d(ae,{o:()=>m});var e=p(50727);class f extends e.w0{constructor(w,x){super()}schedule(w,x=0){return this}}const A={setInterval(M,w,...x){const{delegate:I}=A;return I?.setInterval?I.setInterval(M,w,...x):setInterval(M,w,...x)},clearInterval(M){const{delegate:w}=A;return(w?.clearInterval||clearInterval)(M)},delegate:void 0};var S=p(38737);class m extends f{constructor(w,x){super(w,x),this.scheduler=w,this.work=x,this.pending=!1}schedule(w,x=0){if(this.closed)return this;this.state=w;const I=this.id,F=this.scheduler;return null!=I&&(this.id=this.recycleAsyncId(F,I,x)),this.pending=!0,this.delay=x,this.id=this.id||this.requestAsyncId(F,this.id,x),this}requestAsyncId(w,x,I=0){return A.setInterval(w.flush.bind(w,this),I)}recycleAsyncId(w,x,I=0){if(null!=I&&this.delay===I&&!1===this.pending)return x;A.clearInterval(x)}execute(w,x){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const I=this._execute(w,x);if(I)return I;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(w,x){let F,I=!1;try{this.work(w)}catch(T){I=!0,F=T||new Error("Scheduled action threw falsy error")}if(I)return this.unsubscribe(),F}unsubscribe(){if(!this.closed){const{id:w,scheduler:x}=this,{actions:I}=x;this.work=this.state=this.scheduler=null,this.pending=!1,(0,S.P)(I,this),null!=w&&(this.id=this.recycleAsyncId(x,w,null)),this.delay=null,super.unsubscribe()}}}},97565:(Qe,ae,p)=>{"use strict";p.d(ae,{v:()=>A});var e=p(26063);class f{constructor(m,M=f.now){this.schedulerActionCtor=m,this.now=M}schedule(m,M=0,w){return new this.schedulerActionCtor(this,m).schedule(w,M)}}f.now=e.l.now;class A extends f{constructor(m,M=f.now){super(m,M),this.actions=[],this._active=!1,this._scheduled=void 0}flush(m){const{actions:M}=this;if(this._active)return void M.push(m);let w;this._active=!0;do{if(w=m.execute(m.state,m.delay))break}while(m=M.shift());if(this._active=!1,w){for(;m=M.shift();)m.unsubscribe();throw w}}}},66406:(Qe,ae,p)=>{"use strict";p.d(ae,{Z:()=>w});var e=p(84408),f=p(50727);const A={schedule(I){let F=requestAnimationFrame,T=cancelAnimationFrame;const{delegate:H}=A;H&&(F=H.requestAnimationFrame,T=H.cancelAnimationFrame);const P=F(J=>{T=void 0,I(J)});return new f.w0(()=>T?.(P))},requestAnimationFrame(...I){const{delegate:F}=A;return(F?.requestAnimationFrame||requestAnimationFrame)(...I)},cancelAnimationFrame(...I){const{delegate:F}=A;return(F?.cancelAnimationFrame||cancelAnimationFrame)(...I)},delegate:void 0};var m=p(97565);const w=new class M extends m.v{flush(F){this._active=!0;const T=this._scheduled;this._scheduled=void 0;const{actions:H}=this;let P;F=F||H.shift();do{if(P=F.execute(F.state,F.delay))break}while((F=H[0])&&F.id===T&&H.shift());if(this._active=!1,P){for(;(F=H[0])&&F.id===T&&H.shift();)F.unsubscribe();throw P}}}(class S extends e.o{constructor(F,T){super(F,T),this.scheduler=F,this.work=T}requestAsyncId(F,T,H=0){return null!==H&&H>0?super.requestAsyncId(F,T,H):(F.actions.push(this),F._scheduled||(F._scheduled=A.requestAnimationFrame(()=>F.flush(void 0))))}recycleAsyncId(F,T,H=0){if(null!=H&&H>0||null==H&&this.delay>0)return super.recycleAsyncId(F,T,H);F.actions.some(P=>P.id===T)||(A.cancelAnimationFrame(T),F._scheduled=void 0)}})},53101:(Qe,ae,p)=>{"use strict";p.d(ae,{E:()=>J});var e=p(84408);let A,f=1;const S={};function m(j){return j in S&&(delete S[j],!0)}const M={setImmediate(j){const $=f++;return S[$]=!0,A||(A=Promise.resolve()),A.then(()=>m($)&&j()),$},clearImmediate(j){m(j)}},{setImmediate:x,clearImmediate:I}=M,F={setImmediate(...j){const{delegate:$}=F;return($?.setImmediate||x)(...j)},clearImmediate(j){const{delegate:$}=F;return($?.clearImmediate||I)(j)},delegate:void 0};var H=p(97565);const J=new class P extends H.v{flush($){this._active=!0;const _e=this._scheduled;this._scheduled=void 0;const{actions:ge}=this;let pe;$=$||ge.shift();do{if(pe=$.execute($.state,$.delay))break}while(($=ge[0])&&$.id===_e&&ge.shift());if(this._active=!1,pe){for(;($=ge[0])&&$.id===_e&&ge.shift();)$.unsubscribe();throw pe}}}(class T extends e.o{constructor($,_e){super($,_e),this.scheduler=$,this.work=_e}requestAsyncId($,_e,ge=0){return null!==ge&&ge>0?super.requestAsyncId($,_e,ge):($.actions.push(this),$._scheduled||($._scheduled=F.setImmediate($.flush.bind($,void 0))))}recycleAsyncId($,_e,ge=0){if(null!=ge&&ge>0||null==ge&&this.delay>0)return super.recycleAsyncId($,_e,ge);$.actions.some(pe=>pe.id===_e)||(F.clearImmediate(_e),$._scheduled=void 0)}})},34986:(Qe,ae,p)=>{"use strict";p.d(ae,{P:()=>S,z:()=>A});var e=p(84408);const A=new(p(97565).v)(e.o),S=A},26063:(Qe,ae,p)=>{"use strict";p.d(ae,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},43410:(Qe,ae,p)=>{"use strict";p.d(ae,{z:()=>e});const e={setTimeout(f,A,...S){const{delegate:m}=e;return m?.setTimeout?m.setTimeout(f,A,...S):setTimeout(f,A,...S)},clearTimeout(f){const{delegate:A}=e;return(A?.clearTimeout||clearTimeout)(f)},delegate:void 0}},2202:(Qe,ae,p)=>{"use strict";p.d(ae,{h:()=>f});const f=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48822:(Qe,ae,p)=>{"use strict";p.d(ae,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},86805:(Qe,ae,p)=>{"use strict";p.d(ae,{K:()=>f});const f=(0,p(83888).d)(A=>function(){A(this),this.name="EmptyError",this.message="no elements in sequence"})},63269:(Qe,ae,p)=>{"use strict";p.d(ae,{_6:()=>M,jO:()=>S,yG:()=>m});var e=p(30576),f=p(93532);function A(w){return w[w.length-1]}function S(w){return(0,e.m)(A(w))?w.pop():void 0}function m(w){return(0,f.K)(A(w))?w.pop():void 0}function M(w,x){return"number"==typeof A(w)?w.pop():x}},54742:(Qe,ae,p)=>{"use strict";p.d(ae,{D:()=>m});const{isArray:e}=Array,{getPrototypeOf:f,prototype:A,keys:S}=Object;function m(w){if(1===w.length){const x=w[0];if(e(x))return{args:x,keys:null};if(function M(w){return w&&"object"==typeof w&&f(w)===A}(x)){const I=S(x);return{args:I.map(F=>x[F]),keys:I}}}return{args:w,keys:null}}},75797:(Qe,ae,p)=>{"use strict";p.d(ae,{k:()=>f});const{isArray:e}=Array;function f(A){return 1===A.length&&e(A[0])?A[0]:A}},38737:(Qe,ae,p)=>{"use strict";function e(f,A){if(f){const S=f.indexOf(A);0<=S&&f.splice(S,1)}}p.d(ae,{P:()=>e})},83888:(Qe,ae,p)=>{"use strict";function e(f){const S=f(m=>{Error.call(m),m.stack=(new Error).stack});return S.prototype=Object.create(Error.prototype),S.prototype.constructor=S,S}p.d(ae,{d:()=>e})},31810:(Qe,ae,p)=>{"use strict";function e(f,A){return f.reduce((S,m,M)=>(S[m]=A[M],S),{})}p.d(ae,{n:()=>e})},72806:(Qe,ae,p)=>{"use strict";p.d(ae,{O:()=>S,x:()=>A});var e=p(42416);let f=null;function A(m){if(e.v.useDeprecatedSynchronousErrorHandling){const M=!f;if(M&&(f={errorThrown:!1,error:null}),m(),M){const{errorThrown:w,error:x}=f;if(f=null,w)throw x}}else m()}function S(m){e.v.useDeprecatedSynchronousErrorHandling&&f&&(f.errorThrown=!0,f.error=m)}},39672:(Qe,ae,p)=>{"use strict";function e(f,A,S,m=0,M=!1){const w=A.schedule(function(){S(),M?f.add(this.schedule(null,m)):this.unsubscribe()},m);if(f.add(w),!M)return w}p.d(ae,{f:()=>e})},44671:(Qe,ae,p)=>{"use strict";function e(f){return f}p.d(ae,{y:()=>e})},81144:(Qe,ae,p)=>{"use strict";p.d(ae,{z:()=>e});const e=f=>f&&"number"==typeof f.length&&"function"!=typeof f},12206:(Qe,ae,p)=>{"use strict";p.d(ae,{D:()=>f});var e=p(30576);function f(A){return Symbol.asyncIterator&&(0,e.m)(A?.[Symbol.asyncIterator])}},51165:(Qe,ae,p)=>{"use strict";function e(f){return f instanceof Date&&!isNaN(f)}p.d(ae,{q:()=>e})},30576:(Qe,ae,p)=>{"use strict";function e(f){return"function"==typeof f}p.d(ae,{m:()=>e})},93670:(Qe,ae,p)=>{"use strict";p.d(ae,{c:()=>A});var e=p(48822),f=p(30576);function A(S){return(0,f.m)(S[e.L])}},26495:(Qe,ae,p)=>{"use strict";p.d(ae,{T:()=>A});var e=p(2202),f=p(30576);function A(S){return(0,f.m)(S?.[e.h])}},45191:(Qe,ae,p)=>{"use strict";p.d(ae,{b:()=>A});var e=p(69751),f=p(30576);function A(S){return!!S&&(S instanceof e.y||(0,f.m)(S.lift)&&(0,f.m)(S.subscribe))}},28239:(Qe,ae,p)=>{"use strict";p.d(ae,{t:()=>f});var e=p(30576);function f(A){return(0,e.m)(A?.then)}},53260:(Qe,ae,p)=>{"use strict";p.d(ae,{L:()=>S,Q:()=>A});var e=p(70655),f=p(30576);function A(m){return(0,e.FC)(this,arguments,function*(){const w=m.getReader();try{for(;;){const{value:x,done:I}=yield(0,e.qq)(w.read());if(I)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(x)}}finally{w.releaseLock()}})}function S(m){return(0,f.m)(m?.getReader)}},93532:(Qe,ae,p)=>{"use strict";p.d(ae,{K:()=>f});var e=p(30576);function f(A){return A&&(0,e.m)(A.schedule)}},54482:(Qe,ae,p)=>{"use strict";p.d(ae,{A:()=>f,e:()=>A});var e=p(30576);function f(S){return(0,e.m)(S?.lift)}function A(S){return m=>{if(f(m))return m.lift(function(M){try{return S(M,this)}catch(w){this.error(w)}});throw new TypeError("Unable to lift unknown Observable type")}}},83268:(Qe,ae,p)=>{"use strict";p.d(ae,{Z:()=>S});var e=p(54004);const{isArray:f}=Array;function S(m){return(0,e.U)(M=>function A(m,M){return f(M)?m(...M):m(M)}(m,M))}},25032:(Qe,ae,p)=>{"use strict";function e(){}p.d(ae,{Z:()=>e})},89635:(Qe,ae,p)=>{"use strict";p.d(ae,{U:()=>A,z:()=>f});var e=p(44671);function f(...S){return A(S)}function A(S){return 0===S.length?e.y:1===S.length?S[0]:function(M){return S.reduce((w,x)=>x(w),M)}}},87849:(Qe,ae,p)=>{"use strict";p.d(ae,{h:()=>A});var e=p(42416),f=p(43410);function A(S){f.z.setTimeout(()=>{const{onUnhandledError:m}=e.v;if(!m)throw S;m(S)})}},44532:(Qe,ae,p)=>{"use strict";function e(f){return new TypeError(`You provided ${null!==f&&"object"==typeof f?"an invalid object":`'${f}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}p.d(ae,{z:()=>e})},70655:(Qe,ae,p)=>{"use strict";function m(Fe,Ve,le,N){var ce,U=arguments.length,X=U<3?Ve:null===N?N=Object.getOwnPropertyDescriptor(Ve,le):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(Fe,Ve,le,N);else for(var Me=Fe.length-1;Me>=0;Me--)(ce=Fe[Me])&&(X=(U<3?ce(X):U>3?ce(Ve,le,X):ce(Ve,le))||X);return U>3&&X&&Object.defineProperty(Ve,le,X),X}function H(Fe,Ve,le,N){return new(le||(le=Promise))(function(X,ce){function Me(tt){try{Pe(N.next(tt))}catch(Ce){ce(Ce)}}function ue(tt){try{Pe(N.throw(tt))}catch(Ce){ce(Ce)}}function Pe(tt){tt.done?X(tt.value):function U(X){return X instanceof le?X:new le(function(ce){ce(X)})}(tt.value).then(Me,ue)}Pe((N=N.apply(Fe,Ve||[])).next())})}function re(Fe){return this instanceof re?(this.v=Fe,this):new re(Fe)}function v(Fe,Ve,le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U,N=le.apply(Fe,Ve||[]),X=[];return U={},ce("next"),ce("throw"),ce("return"),U[Symbol.asyncIterator]=function(){return this},U;function ce(at){N[at]&&(U[at]=function(Ue){return new Promise(function(pt,z){X.push([at,Ue,pt,z])>1||Me(at,Ue)})})}function Me(at,Ue){try{!function ue(at){at.value instanceof re?Promise.resolve(at.value.v).then(Pe,tt):Ce(X[0][2],at)}(N[at](Ue))}catch(pt){Ce(X[0][3],pt)}}function Pe(at){Me("next",at)}function tt(at){Me("throw",at)}function Ce(at,Ue){at(Ue),X.shift(),X.length&&Me(X[0][0],X[0][1])}}function W(Fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var le,Ve=Fe[Symbol.asyncIterator];return Ve?Ve.call(Fe):(Fe=function j(Fe){var Ve="function"==typeof Symbol&&Symbol.iterator,le=Ve&&Fe[Ve],N=0;if(le)return le.call(Fe);if(Fe&&"number"==typeof Fe.length)return{next:function(){return Fe&&N>=Fe.length&&(Fe=void 0),{value:Fe&&Fe[N++],done:!Fe}}};throw new TypeError(Ve?"Object is not iterable.":"Symbol.iterator is not defined.")}(Fe),le={},N("next"),N("throw"),N("return"),le[Symbol.asyncIterator]=function(){return this},le);function N(X){le[X]=Fe[X]&&function(ce){return new Promise(function(Me,ue){!function U(X,ce,Me,ue){Promise.resolve(ue).then(function(Pe){X({value:Pe,done:Me})},ce)}(Me,ue,(ce=Fe[X](ce)).done,ce.value)})}}}p.d(ae,{FC:()=>v,KL:()=>W,gn:()=>m,mG:()=>H,qq:()=>re})},37340:(Qe,ae,p)=>{"use strict";p.d(ae,{F4:()=>F,IO:()=>fe,LC:()=>f,SB:()=>I,X$:()=>S,ZE:()=>ge,ZN:()=>_e,_j:()=>e,eR:()=>T,jt:()=>m,k1:()=>pe,l3:()=>A,oB:()=>x,pV:()=>P,ru:()=>M,vP:()=>w});class e{}class f{}const A="*";function S(re,v){return{type:7,name:re,definitions:v,options:{}}}function m(re,v=null){return{type:4,styles:v,timings:re}}function M(re,v=null){return{type:3,steps:re,options:v}}function w(re,v=null){return{type:2,steps:re,options:v}}function x(re){return{type:6,styles:re,offset:null}}function I(re,v,V){return{type:0,name:re,styles:v,options:V}}function F(re){return{type:5,steps:re}}function T(re,v,V=null){return{type:1,expr:re,animation:v,options:V}}function P(re=null){return{type:9,options:re}}function fe(re,v,V=null){return{type:11,selector:re,animation:v,options:V}}function $(re){Promise.resolve().then(re)}class _e{constructor(v=0,V=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=v+V}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(v=>v()),this._onDoneFns=[])}onStart(v){this._originalOnStartFns.push(v),this._onStartFns.push(v)}onDone(v){this._originalOnDoneFns.push(v),this._onDoneFns.push(v)}onDestroy(v){this._onDestroyFns.push(v)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){$(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(v=>v()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(v=>v()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(v){this._position=this.totalTime?v*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(v){const V="start"==v?this._onStartFns:this._onDoneFns;V.forEach(W=>W()),V.length=0}}class ge{constructor(v){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=v;let V=0,W=0,te=0;const ne=this.players.length;0==ne?$(()=>this._onFinish()):this.players.forEach(ye=>{ye.onDone(()=>{++V==ne&&this._onFinish()}),ye.onDestroy(()=>{++W==ne&&this._onDestroy()}),ye.onStart(()=>{++te==ne&&this._onStart()})}),this.totalTime=this.players.reduce((ye,ze)=>Math.max(ye,ze.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(v=>v()),this._onDoneFns=[])}init(){this.players.forEach(v=>v.init())}onStart(v){this._onStartFns.push(v)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(v=>v()),this._onStartFns=[])}onDone(v){this._onDoneFns.push(v)}onDestroy(v){this._onDestroyFns.push(v)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(v=>v.play())}pause(){this.players.forEach(v=>v.pause())}restart(){this.players.forEach(v=>v.restart())}finish(){this._onFinish(),this.players.forEach(v=>v.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(v=>v.destroy()),this._onDestroyFns.forEach(v=>v()),this._onDestroyFns=[])}reset(){this.players.forEach(v=>v.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(v){const V=v*this.totalTime;this.players.forEach(W=>{const te=W.totalTime?Math.min(1,V/W.totalTime):1;W.setPosition(te)})}getPosition(){const v=this.players.reduce((V,W)=>null===V||W.totalTime>V.totalTime?W:V,null);return null!=v?v.getPosition():0}beforeDestroy(){this.players.forEach(v=>{v.beforeDestroy&&v.beforeDestroy()})}triggerCallback(v){const V="start"==v?this._onStartFns:this._onDoneFns;V.forEach(W=>W()),V.length=0}}const pe="!"},12693:(Qe,ae,p)=>{"use strict";p.d(ae,{rt:()=>pi,s1:()=>at,$s:()=>ue,kH:()=>bt,mK:()=>n,Em:()=>Ue,tE:()=>ut,qV:()=>o,qm:()=>ai,ic:()=>z,Kd:()=>we,X6:()=>d,yG:()=>s});var e=p(36895),f=p(94650),A=p(83353),S=p(77579),m=p(50727),M=p(61135),w=p(39646),x=p(29521),I=p(18505),F=p(78372),T=p(39300),H=p(54004),P=p(95698),J=p(35684),fe=p(71884),j=p(82722),$=p(21281),_e=p(49643),ge=p(39841),pe=p(97272),re=p(69751),v=p(68675);const W=new Set;let te,ne=(()=>{class Ut{constructor(Se){this._platform=Se,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ze}matchMedia(Se){return(this._platform.WEBKIT||this._platform.BLINK)&&function ye(Ut){if(!W.has(Ut))try{te||(te=document.createElement("style"),te.setAttribute("type","text/css"),document.head.appendChild(te)),te.sheet&&(te.sheet.insertRule(`@media ${Ut} {body{ }}`,0),W.add(Ut))}catch(Tt){console.error(Tt)}}(Se),this._matchMedia(Se)}}return Ut.\u0275fac=function(Se){return new(Se||Ut)(f.LFG(A.t4))},Ut.\u0275prov=f.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})();function ze(Ut){return{matches:"all"===Ut||""===Ut,media:Ut,addListener:()=>{},removeListener:()=>{}}}let ke=(()=>{class Ut{constructor(Se,We){this._mediaMatcher=Se,this._zone=We,this._queries=new Map,this._destroySubject=new S.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Se){return $e((0,$.Eq)(Se)).some(oe=>this._registerQuery(oe).mql.matches)}observe(Se){const oe=$e((0,$.Eq)(Se)).map(rt=>this._registerQuery(rt).observable);let et=(0,ge.a)(oe);return et=(0,pe.z)(et.pipe((0,P.q)(1)),et.pipe((0,J.T)(1),(0,F.b)(0))),et.pipe((0,H.U)(rt=>{const Ft={matches:!1,breakpoints:{}};return rt.forEach(({matches:yt,query:Zt})=>{Ft.matches=Ft.matches||yt,Ft.breakpoints[Zt]=yt}),Ft}))}_registerQuery(Se){if(this._queries.has(Se))return this._queries.get(Se);const We=this._mediaMatcher.matchMedia(Se),et={observable:new re.y(rt=>{const Ft=yt=>this._zone.run(()=>rt.next(yt));return We.addListener(Ft),()=>{We.removeListener(Ft)}}).pipe((0,v.O)(We),(0,H.U)(({matches:rt})=>({query:Se,matches:rt})),(0,j.R)(this._destroySubject)),mql:We};return this._queries.set(Se,et),et}}return Ut.\u0275fac=function(Se){return new(Se||Ut)(f.LFG(ne),f.LFG(f.R0b))},Ut.\u0275prov=f.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})();function $e(Ut){return Ut.map(Tt=>Tt.split(",")).reduce((Tt,Se)=>Tt.concat(Se)).map(Tt=>Tt.trim())}function N(Ut,Tt){return(Ut.getAttribute(Tt)||"").match(/\S+/g)||[]}const X="cdk-describedby-message",ce="cdk-describedby-host";let Me=0,ue=(()=>{class Ut{constructor(Se,We){this._platform=We,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Me++,this._document=Se,this._id=(0,f.f3M)(f.AFp)+"-"+Me++}describe(Se,We,oe){if(!this._canBeDescribed(Se,We))return;const et=Pe(We,oe);"string"!=typeof We?(tt(We,this._id),this._messageRegistry.set(et,{messageElement:We,referenceCount:0})):this._messageRegistry.has(et)||this._createMessageElement(We,oe),this._isElementDescribedByMessage(Se,et)||this._addMessageReference(Se,et)}removeDescription(Se,We,oe){if(!We||!this._isElementNode(Se))return;const et=Pe(We,oe);if(this._isElementDescribedByMessage(Se,et)&&this._removeMessageReference(Se,et),"string"==typeof We){const rt=this._messageRegistry.get(et);rt&&0===rt.referenceCount&&this._deleteMessageElement(et)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Se=this._document.querySelectorAll(`[${ce}="${this._id}"]`);for(let We=0;We0!=oe.indexOf(X));Se.setAttribute("aria-describedby",We.join(" "))}_addMessageReference(Se,We){const oe=this._messageRegistry.get(We);(function Ve(Ut,Tt,Se){const We=N(Ut,Tt);We.some(oe=>oe.trim()==Se.trim())||(We.push(Se.trim()),Ut.setAttribute(Tt,We.join(" ")))})(Se,"aria-describedby",oe.messageElement.id),Se.setAttribute(ce,this._id),oe.referenceCount++}_removeMessageReference(Se,We){const oe=this._messageRegistry.get(We);oe.referenceCount--,function le(Ut,Tt,Se){const oe=N(Ut,Tt).filter(et=>et!=Se.trim());oe.length?Ut.setAttribute(Tt,oe.join(" ")):Ut.removeAttribute(Tt)}(Se,"aria-describedby",oe.messageElement.id),Se.removeAttribute(ce)}_isElementDescribedByMessage(Se,We){const oe=N(Se,"aria-describedby"),et=this._messageRegistry.get(We),rt=et&&et.messageElement.id;return!!rt&&-1!=oe.indexOf(rt)}_canBeDescribed(Se,We){if(!this._isElementNode(Se))return!1;if(We&&"object"==typeof We)return!0;const oe=null==We?"":`${We}`.trim(),et=Se.getAttribute("aria-label");return!(!oe||et&&et.trim()===oe)}_isElementNode(Se){return Se.nodeType===this._document.ELEMENT_NODE}}return Ut.\u0275fac=function(Se){return new(Se||Ut)(f.LFG(e.K0),f.LFG(A.t4))},Ut.\u0275prov=f.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})();function Pe(Ut,Tt){return"string"==typeof Ut?`${Tt||""}/${Ut}`:Ut}function tt(Ut,Tt){Ut.id||(Ut.id=`${X}-${Tt}-${Me++}`)}class Ce{constructor(Tt){this._items=Tt,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new S.x,this._typeaheadSubscription=m.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=Se=>Se.disabled,this._pressedLetters=[],this.tabOut=new S.x,this.change=new S.x,Tt instanceof f.n_E&&(this._itemChangesSubscription=Tt.changes.subscribe(Se=>{if(this._activeItem){const oe=Se.toArray().indexOf(this._activeItem);oe>-1&&oe!==this._activeItemIndex&&(this._activeItemIndex=oe)}}))}skipPredicate(Tt){return this._skipPredicateFn=Tt,this}withWrap(Tt=!0){return this._wrap=Tt,this}withVerticalOrientation(Tt=!0){return this._vertical=Tt,this}withHorizontalOrientation(Tt){return this._horizontal=Tt,this}withAllowedModifierKeys(Tt){return this._allowedModifierKeys=Tt,this}withTypeAhead(Tt=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,I.b)(Se=>this._pressedLetters.push(Se)),(0,F.b)(Tt),(0,T.h)(()=>this._pressedLetters.length>0),(0,H.U)(()=>this._pressedLetters.join(""))).subscribe(Se=>{const We=this._getItemsArray();for(let oe=1;oe!Tt[et]||this._allowedModifierKeys.indexOf(et)>-1);switch(Se){case x.Mf:return void this.tabOut.next();case x.JH:if(this._vertical&&oe){this.setNextItemActive();break}return;case x.LH:if(this._vertical&&oe){this.setPreviousItemActive();break}return;case x.SV:if(this._horizontal&&oe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case x.oh:if(this._horizontal&&oe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case x.Sd:if(this._homeAndEnd&&oe){this.setFirstItemActive();break}return;case x.uR:if(this._homeAndEnd&&oe){this.setLastItemActive();break}return;case x.Ku:if(this._pageUpAndDown.enabled&&oe){const et=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(et>0?et:0,1);break}return;case x.VM:if(this._pageUpAndDown.enabled&&oe){const et=this._activeItemIndex+this._pageUpAndDown.delta,rt=this._getItemsArray().length;this._setActiveItemByIndex(et=x.A&&Se<=x.Z||Se>=x.xE&&Se<=x.aO)&&this._letterKeyStream.next(String.fromCharCode(Se))))}this._pressedLetters=[],Tt.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Tt){const Se=this._getItemsArray(),We="number"==typeof Tt?Tt:Se.indexOf(Tt);this._activeItem=Se[We]??null,this._activeItemIndex=We}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(Tt){this._wrap?this._setActiveInWrapMode(Tt):this._setActiveInDefaultMode(Tt)}_setActiveInWrapMode(Tt){const Se=this._getItemsArray();for(let We=1;We<=Se.length;We++){const oe=(this._activeItemIndex+Tt*We+Se.length)%Se.length;if(!this._skipPredicateFn(Se[oe]))return void this.setActiveItem(oe)}}_setActiveInDefaultMode(Tt){this._setActiveItemByIndex(this._activeItemIndex+Tt,Tt)}_setActiveItemByIndex(Tt,Se){const We=this._getItemsArray();if(We[Tt]){for(;this._skipPredicateFn(We[Tt]);)if(!We[Tt+=Se])return;this.setActiveItem(Tt)}}_getItemsArray(){return this._items instanceof f.n_E?this._items.toArray():this._items}}class at extends Ce{setActiveItem(Tt){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Tt),this.activeItem&&this.activeItem.setActiveStyles()}}class Ue extends Ce{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Tt){return this._origin=Tt,this}setActiveItem(Tt){super.setActiveItem(Tt),this.activeItem&&this.activeItem.focus(this._origin)}}let z=(()=>{class Ut{constructor(Se){this._platform=Se}isDisabled(Se){return Se.hasAttribute("disabled")}isVisible(Se){return function be(Ut){return!!(Ut.offsetWidth||Ut.offsetHeight||"function"==typeof Ut.getClientRects&&Ut.getClientRects().length)}(Se)&&"visible"===getComputedStyle(Se).visibility}isTabbable(Se){if(!this._platform.isBrowser)return!1;const We=function st(Ut){try{return Ut.frameElement}catch{return null}}(function C(Ut){return Ut.ownerDocument&&Ut.ownerDocument.defaultView||window}(Se));if(We&&(-1===r(We)||!this.isVisible(We)))return!1;let oe=Se.nodeName.toLowerCase(),et=r(Se);return Se.hasAttribute("contenteditable")?-1!==et:!("iframe"===oe||"object"===oe||this._platform.WEBKIT&&this._platform.IOS&&!function u(Ut){let Tt=Ut.nodeName.toLowerCase(),Se="input"===Tt&&Ut.type;return"text"===Se||"password"===Se||"select"===Tt||"textarea"===Tt}(Se))&&("audio"===oe?!!Se.hasAttribute("controls")&&-1!==et:"video"===oe?-1!==et&&(null!==et||this._platform.FIREFOX||Se.hasAttribute("controls")):Se.tabIndex>=0)}isFocusable(Se,We){return function _(Ut){return!function he(Ut){return function He(Ut){return"input"==Ut.nodeName.toLowerCase()}(Ut)&&"hidden"==Ut.type}(Ut)&&(function Ye(Ut){let Tt=Ut.nodeName.toLowerCase();return"input"===Tt||"select"===Tt||"button"===Tt||"textarea"===Tt}(Ut)||function Re(Ut){return function ve(Ut){return"a"==Ut.nodeName.toLowerCase()}(Ut)&&Ut.hasAttribute("href")}(Ut)||Ut.hasAttribute("contenteditable")||Oe(Ut))}(Se)&&!this.isDisabled(Se)&&(We?.ignoreVisibility||this.isVisible(Se))}}return Ut.\u0275fac=function(Se){return new(Se||Ut)(f.LFG(A.t4))},Ut.\u0275prov=f.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})();function Oe(Ut){if(!Ut.hasAttribute("tabindex")||void 0===Ut.tabIndex)return!1;let Tt=Ut.getAttribute("tabindex");return!(!Tt||isNaN(parseInt(Tt,10)))}function r(Ut){if(!Oe(Ut))return null;const Tt=parseInt(Ut.getAttribute("tabindex")||"",10);return isNaN(Tt)?-1:Tt}class h{constructor(Tt,Se,We,oe,et=!1){this._element=Tt,this._checker=Se,this._ngZone=We,this._document=oe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,et||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Tt){this._enabled=Tt,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Tt,this._startAnchor),this._toggleAnchorTabIndex(Tt,this._endAnchor))}destroy(){const Tt=this._startAnchor,Se=this._endAnchor;Tt&&(Tt.removeEventListener("focus",this.startAnchorListener),Tt.remove()),Se&&(Se.removeEventListener("focus",this.endAnchorListener),Se.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Tt){return new Promise(Se=>{this._executeOnStable(()=>Se(this.focusInitialElement(Tt)))})}focusFirstTabbableElementWhenReady(Tt){return new Promise(Se=>{this._executeOnStable(()=>Se(this.focusFirstTabbableElement(Tt)))})}focusLastTabbableElementWhenReady(Tt){return new Promise(Se=>{this._executeOnStable(()=>Se(this.focusLastTabbableElement(Tt)))})}_getRegionBoundary(Tt){const Se=this._element.querySelectorAll(`[cdk-focus-region-${Tt}], [cdkFocusRegion${Tt}], [cdk-focus-${Tt}]`);return"start"==Tt?Se.length?Se[0]:this._getFirstTabbableElement(this._element):Se.length?Se[Se.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Tt){const Se=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Se){if(!this._checker.isFocusable(Se)){const We=this._getFirstTabbableElement(Se);return We?.focus(Tt),!!We}return Se.focus(Tt),!0}return this.focusFirstTabbableElement(Tt)}focusFirstTabbableElement(Tt){const Se=this._getRegionBoundary("start");return Se&&Se.focus(Tt),!!Se}focusLastTabbableElement(Tt){const Se=this._getRegionBoundary("end");return Se&&Se.focus(Tt),!!Se}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Tt){if(this._checker.isFocusable(Tt)&&this._checker.isTabbable(Tt))return Tt;const Se=Tt.children;for(let We=0;We=0;We--){const oe=Se[We].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Se[We]):null;if(oe)return oe}return null}_createAnchor(){const Tt=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Tt),Tt.classList.add("cdk-visually-hidden"),Tt.classList.add("cdk-focus-trap-anchor"),Tt.setAttribute("aria-hidden","true"),Tt}_toggleAnchorTabIndex(Tt,Se){Tt?Se.setAttribute("tabindex","0"):Se.removeAttribute("tabindex")}toggleAnchors(Tt){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Tt,this._startAnchor),this._toggleAnchorTabIndex(Tt,this._endAnchor))}_executeOnStable(Tt){this._ngZone.isStable?Tt():this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(Tt)}}let o=(()=>{class Ut{constructor(Se,We,oe){this._checker=Se,this._ngZone=We,this._document=oe}create(Se,We=!1){return new h(Se,this._checker,this._ngZone,this._document,We)}}return Ut.\u0275fac=function(Se){return new(Se||Ut)(f.LFG(z),f.LFG(f.R0b),f.LFG(e.K0))},Ut.\u0275prov=f.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})(),n=(()=>{class Ut{constructor(Se,We,oe){this._elementRef=Se,this._focusTrapFactory=We,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(Se){this.focusTrap.enabled=(0,$.Ig)(Se)}get autoCapture(){return this._autoCapture}set autoCapture(Se){this._autoCapture=(0,$.Ig)(Se)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(Se){const We=Se.autoCapture;We&&!We.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,A.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Ut.\u0275fac=function(Se){return new(Se||Ut)(f.Y36(f.SBq),f.Y36(o),f.Y36(e.K0))},Ut.\u0275dir=f.lG2({type:Ut,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[f.TTD]}),Ut})();function d(Ut){return 0===Ut.buttons||0===Ut.offsetX&&0===Ut.offsetY}function s(Ut){const Tt=Ut.touches&&Ut.touches[0]||Ut.changedTouches&&Ut.changedTouches[0];return!(!Tt||-1!==Tt.identifier||null!=Tt.radiusX&&1!==Tt.radiusX||null!=Tt.radiusY&&1!==Tt.radiusY)}const E=new f.OlP("cdk-input-modality-detector-options"),B={ignoreKeys:[x.zL,x.jx,x.b2,x.MW,x.JU]},qe=(0,A.i$)({passive:!0,capture:!0});let it=(()=>{class Ut{constructor(Se,We,oe,et){this._platform=Se,this._mostRecentTarget=null,this._modality=new M.X(null),this._lastTouchMs=0,this._onKeydown=rt=>{this._options?.ignoreKeys?.some(Ft=>Ft===rt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,A.sA)(rt))},this._onMousedown=rt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(d(rt)?"keyboard":"mouse"),this._mostRecentTarget=(0,A.sA)(rt))},this._onTouchstart=rt=>{s(rt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,A.sA)(rt))},this._options={...B,...et},this.modalityDetected=this._modality.pipe((0,J.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,fe.x)()),Se.isBrowser&&We.runOutsideAngular(()=>{oe.addEventListener("keydown",this._onKeydown,qe),oe.addEventListener("mousedown",this._onMousedown,qe),oe.addEventListener("touchstart",this._onTouchstart,qe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,qe),document.removeEventListener("mousedown",this._onMousedown,qe),document.removeEventListener("touchstart",this._onTouchstart,qe))}}return Ut.\u0275fac=function(Se){return new(Se||Ut)(f.LFG(A.t4),f.LFG(f.R0b),f.LFG(e.K0),f.LFG(E,8))},Ut.\u0275prov=f.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})();const xt=new f.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ht(){return null}}),_t=new f.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Ee=0,we=(()=>{class Ut{constructor(Se,We,oe,et){this._ngZone=We,this._defaultOptions=et,this._document=oe,this._liveElement=Se||this._createLiveElement()}announce(Se,...We){const oe=this._defaultOptions;let et,rt;return 1===We.length&&"number"==typeof We[0]?rt=We[0]:[et,rt]=We,this.clear(),clearTimeout(this._previousTimeout),et||(et=oe&&oe.politeness?oe.politeness:"polite"),null==rt&&oe&&(rt=oe.duration),this._liveElement.setAttribute("aria-live",et),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Ft=>this._currentResolve=Ft)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Se,"number"==typeof rt&&(this._previousTimeout=setTimeout(()=>this.clear(),rt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Se="cdk-live-announcer-element",We=this._document.getElementsByClassName(Se),oe=this._document.createElement("div");for(let et=0;et .cdk-overlay-container [aria-modal="true"]');for(let oe=0;oe{class Ut{constructor(Se,We,oe,et,rt){this._ngZone=Se,this._platform=We,this._inputModalityDetector=oe,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new S.x,this._rootNodeFocusAndBlurListener=Ft=>{for(let Zt=(0,A.sA)(Ft);Zt;Zt=Zt.parentElement)"focus"===Ft.type?this._onFocus(Ft,Zt):this._onBlur(Ft,Zt)},this._document=et,this._detectionMode=rt?.detectionMode||0}monitor(Se,We=!1){const oe=(0,$.fI)(Se);if(!this._platform.isBrowser||1!==oe.nodeType)return(0,w.of)(null);const et=(0,A.kV)(oe)||this._getDocument(),rt=this._elementInfo.get(oe);if(rt)return We&&(rt.checkChildren=!0),rt.subject;const Ft={checkChildren:We,subject:new S.x,rootNode:et};return this._elementInfo.set(oe,Ft),this._registerGlobalListeners(Ft),Ft.subject}stopMonitoring(Se){const We=(0,$.fI)(Se),oe=this._elementInfo.get(We);oe&&(oe.subject.complete(),this._setClasses(We),this._elementInfo.delete(We),this._removeGlobalListeners(oe))}focusVia(Se,We,oe){const et=(0,$.fI)(Se);et===this._getDocument().activeElement?this._getClosestElementsInfo(et).forEach(([Ft,yt])=>this._originChanged(Ft,We,yt)):(this._setOrigin(We),"function"==typeof et.focus&&et.focus(oe))}ngOnDestroy(){this._elementInfo.forEach((Se,We)=>this.stopMonitoring(We))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Se){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Se)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Se&&this._isLastInteractionFromInputLabel(Se)?"mouse":"program"}_shouldBeAttributedToTouch(Se){return 1===this._detectionMode||!!Se?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Se,We){Se.classList.toggle("cdk-focused",!!We),Se.classList.toggle("cdk-touch-focused","touch"===We),Se.classList.toggle("cdk-keyboard-focused","keyboard"===We),Se.classList.toggle("cdk-mouse-focused","mouse"===We),Se.classList.toggle("cdk-program-focused","program"===We)}_setOrigin(Se,We=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Se,this._originFromTouchInteraction="touch"===Se&&We,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Se,We){const oe=this._elementInfo.get(We),et=(0,A.sA)(Se);!oe||!oe.checkChildren&&We!==et||this._originChanged(We,this._getFocusOrigin(et),oe)}_onBlur(Se,We){const oe=this._elementInfo.get(We);!oe||oe.checkChildren&&Se.relatedTarget instanceof Node&&We.contains(Se.relatedTarget)||(this._setClasses(We),this._emitOrigin(oe,null))}_emitOrigin(Se,We){Se.subject.observers.length&&this._ngZone.run(()=>Se.subject.next(We))}_registerGlobalListeners(Se){if(!this._platform.isBrowser)return;const We=Se.rootNode,oe=this._rootNodeFocusListenerCount.get(We)||0;oe||this._ngZone.runOutsideAngular(()=>{We.addEventListener("focus",this._rootNodeFocusAndBlurListener,Te),We.addEventListener("blur",this._rootNodeFocusAndBlurListener,Te)}),this._rootNodeFocusListenerCount.set(We,oe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,j.R)(this._stopInputModalityDetector)).subscribe(et=>{this._setOrigin(et,!0)}))}_removeGlobalListeners(Se){const We=Se.rootNode;if(this._rootNodeFocusListenerCount.has(We)){const oe=this._rootNodeFocusListenerCount.get(We);oe>1?this._rootNodeFocusListenerCount.set(We,oe-1):(We.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Te),We.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Te),this._rootNodeFocusListenerCount.delete(We))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Se,We,oe){this._setClasses(Se,We),this._emitOrigin(oe,We),this._lastFocusOrigin=We}_getClosestElementsInfo(Se){const We=[];return this._elementInfo.forEach((oe,et)=>{(et===Se||oe.checkChildren&&et.contains(Se))&&We.push([et,oe])}),We}_isLastInteractionFromInputLabel(Se){const{_mostRecentTarget:We,mostRecentModality:oe}=this._inputModalityDetector;if("mouse"!==oe||!We||We===Se||"INPUT"!==Se.nodeName&&"TEXTAREA"!==Se.nodeName||Se.disabled)return!1;const et=Se.labels;if(et)for(let rt=0;rt{class Ut{constructor(Se,We){this._elementRef=Se,this._focusMonitor=We,this._focusOrigin=null,this.cdkFocusChange=new f.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const Se=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Se,1===Se.nodeType&&Se.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(We=>{this._focusOrigin=We,this.cdkFocusChange.emit(We)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ut.\u0275fac=function(Se){return new(Se||Ut)(f.Y36(f.SBq),f.Y36(ut))},Ut.\u0275dir=f.lG2({type:Ut,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),Ut})();const Ht="cdk-high-contrast-black-on-white",Mt="cdk-high-contrast-white-on-black",It="cdk-high-contrast-active";let ai=(()=>{class Ut{constructor(Se,We){this._platform=Se,this._document=We,this._breakpointSubscription=(0,f.f3M)(ke).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Se=this._document.createElement("div");Se.style.backgroundColor="rgb(1,2,3)",Se.style.position="absolute",this._document.body.appendChild(Se);const We=this._document.defaultView||window,oe=We&&We.getComputedStyle?We.getComputedStyle(Se):null,et=(oe&&oe.backgroundColor||"").replace(/ /g,"");switch(Se.remove(),et){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Se=this._document.body.classList;Se.remove(It,Ht,Mt),this._hasCheckedHighContrastMode=!0;const We=this.getHighContrastMode();1===We?Se.add(It,Ht):2===We&&Se.add(It,Mt)}}}return Ut.\u0275fac=function(Se){return new(Se||Ut)(f.LFG(A.t4),f.LFG(e.K0))},Ut.\u0275prov=f.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})(),pi=(()=>{class Ut{constructor(Se){Se._applyBodyHighContrastModeCssClasses()}}return Ut.\u0275fac=function(Se){return new(Se||Ut)(f.LFG(ai))},Ut.\u0275mod=f.oAB({type:Ut}),Ut.\u0275inj=f.cJS({imports:[_e.Q8]}),Ut})()},40445:(Qe,ae,p)=>{"use strict";p.d(ae,{Is:()=>w,vT:()=>I});var e=p(94650),f=p(36895);const A=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function S(){return(0,e.f3M)(f.K0)}}),m=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let w=(()=>{class F{constructor(H){this.value="ltr",this.change=new e.vpe,H&&(this.value=function M(F){const T=F?.toLowerCase()||"";return"auto"===T&&typeof navigator<"u"&&navigator?.language?m.test(navigator.language)?"rtl":"ltr":"rtl"===T?"rtl":"ltr"}((H.body?H.body.dir:null)||(H.documentElement?H.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return F.\u0275fac=function(H){return new(H||F)(e.LFG(A,8))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})(),I=(()=>{class F{}return F.\u0275fac=function(H){return new(H||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({}),F})()},64425:(Qe,ae,p)=>{"use strict";p.d(ae,{Iq:()=>w,TU:()=>S,i3:()=>M});var e=p(36895),f=p(94650);class A{constructor(I,F){this._document=F;const T=this._textarea=this._document.createElement("textarea"),H=T.style;H.position="fixed",H.top=H.opacity="0",H.left="-999em",T.setAttribute("aria-hidden","true"),T.value=I,T.readOnly=!0,this._document.body.appendChild(T)}copy(){const I=this._textarea;let F=!1;try{if(I){const T=this._document.activeElement;I.select(),I.setSelectionRange(0,I.value.length),F=this._document.execCommand("copy"),T&&T.focus()}}catch{}return F}destroy(){const I=this._textarea;I&&(I.remove(),this._textarea=void 0)}}let S=(()=>{class x{constructor(F){this._document=F}copy(F){const T=this.beginCopy(F),H=T.copy();return T.destroy(),H}beginCopy(F){return new A(F,this._document)}}return x.\u0275fac=function(F){return new(F||x)(f.LFG(e.K0))},x.\u0275prov=f.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})();const m=new f.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let M=(()=>{class x{constructor(F,T,H){this._clipboard=F,this._ngZone=T,this.text="",this.attempts=1,this.copied=new f.vpe,this._pending=new Set,H&&null!=H.attempts&&(this.attempts=H.attempts)}copy(F=this.attempts){if(F>1){let T=F;const H=this._clipboard.beginCopy(this.text);this._pending.add(H);const P=()=>{const J=H.copy();J||!--T||this._destroyed?(this._currentTimeout=null,this._pending.delete(H),H.destroy(),this.copied.emit(J)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(P,1))};P()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(F=>F.destroy()),this._pending.clear(),this._destroyed=!0}}return x.\u0275fac=function(F){return new(F||x)(f.Y36(S),f.Y36(f.R0b),f.Y36(m,8))},x.\u0275dir=f.lG2({type:x,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(F,T){1&F&&f.NdJ("click",function(){return T.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),x})(),w=(()=>{class x{}return x.\u0275fac=function(F){return new(F||x)},x.\u0275mod=f.oAB({type:x}),x.\u0275inj=f.cJS({}),x})()},21281:(Qe,ae,p)=>{"use strict";p.d(ae,{Eq:()=>m,HM:()=>M,Ig:()=>f,du:()=>x,fI:()=>w,su:()=>A,t6:()=>S});var e=p(94650);function f(I){return null!=I&&"false"!=`${I}`}function A(I,F=0){return S(I)?Number(I):F}function S(I){return!isNaN(parseFloat(I))&&!isNaN(Number(I))}function m(I){return Array.isArray(I)?I:[I]}function M(I){return null==I?"":"string"==typeof I?I:`${I}px`}function w(I){return I instanceof e.SBq?I.nativeElement:I}function x(I,F=/\s+/){const T=[];if(null!=I){const H=Array.isArray(I)?I:`${I}`.split(F);for(const P of H){const J=`${P}`.trim();J&&T.push(J)}}return T}},95017:(Qe,ae,p)=>{"use strict";p.d(ae,{A8:()=>P,Ov:()=>T,P3:()=>x,Z9:()=>w,eX:()=>F,k:()=>J,o2:()=>M,yy:()=>I});var e=p(94033),f=p(45191),A=p(39646),S=p(77579),m=p(94650);class M{}function w(fe){return fe&&"function"==typeof fe.connect&&!(fe instanceof e.c)}class x extends M{constructor(j){super(),this._data=j}connect(){return(0,f.b)(this._data)?this._data:(0,A.of)(this._data)}disconnect(){}}class I{applyChanges(j,$,_e,ge,pe){j.forEachOperation((re,v,V)=>{let W,te;if(null==re.previousIndex){const ne=_e(re,v,V);W=$.createEmbeddedView(ne.templateRef,ne.context,ne.index),te=1}else null==V?($.remove(v),te=3):(W=$.get(v),$.move(W,V),te=2);pe&&pe({context:W?.context,operation:te,record:re})})}detach(){}}class F{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(j,$,_e,ge,pe){j.forEachOperation((re,v,V)=>{let W,te;null==re.previousIndex?(W=this._insertView(()=>_e(re,v,V),V,$,ge(re)),te=W?1:0):null==V?(this._detachAndCacheView(v,$),te=3):(W=this._moveView(v,V,$,ge(re)),te=2),pe&&pe({context:W?.context,operation:te,record:re})})}detach(){for(const j of this._viewCache)j.destroy();this._viewCache=[]}_insertView(j,$,_e,ge){const pe=this._insertViewFromCache($,_e);if(pe)return void(pe.context.$implicit=ge);const re=j();return _e.createEmbeddedView(re.templateRef,re.context,re.index)}_detachAndCacheView(j,$){const _e=$.detach(j);this._maybeCacheView(_e,$)}_moveView(j,$,_e,ge){const pe=_e.get(j);return _e.move(pe,$),pe.context.$implicit=ge,pe}_maybeCacheView(j,$){if(this._viewCache.lengththis._markSelected(pe)):this._markSelected($[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...j){this._verifyValueAssignment(j),j.forEach(_e=>this._markSelected(_e));const $=this._hasQueuedChanges();return this._emitChangeEvent(),$}deselect(...j){this._verifyValueAssignment(j),j.forEach(_e=>this._unmarkSelected(_e));const $=this._hasQueuedChanges();return this._emitChangeEvent(),$}setSelection(...j){this._verifyValueAssignment(j);const $=this.selected,_e=new Set(j);j.forEach(pe=>this._markSelected(pe)),$.filter(pe=>!_e.has(pe)).forEach(pe=>this._unmarkSelected(pe));const ge=this._hasQueuedChanges();return this._emitChangeEvent(),ge}toggle(j){return this.isSelected(j)?this.deselect(j):this.select(j)}clear(j=!0){this._unmarkAll();const $=this._hasQueuedChanges();return j&&this._emitChangeEvent(),$}isSelected(j){if(this.compareWith){for(const $ of this._selection)if(this.compareWith($,j))return!0;return!1}return this._selection.has(j)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(j){this._multiple&&this.selected&&this._selected.sort(j)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(j){this.isSelected(j)||(this._multiple||this._unmarkAll(),this.isSelected(j)||this._selection.add(j),this._emitChanges&&this._selectedToEmit.push(j))}_unmarkSelected(j){this.isSelected(j)&&(this._selection.delete(j),this._emitChanges&&this._deselectedToEmit.push(j))}_unmarkAll(){this.isEmpty()||this._selection.forEach(j=>this._unmarkSelected(j))}_verifyValueAssignment(j){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let P=(()=>{class fe{constructor(){this._listeners=[]}notify($,_e){for(let ge of this._listeners)ge($,_e)}listen($){return this._listeners.push($),()=>{this._listeners=this._listeners.filter(_e=>$!==_e)}}ngOnDestroy(){this._listeners=[]}}return fe.\u0275fac=function($){return new($||fe)},fe.\u0275prov=m.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();const J=new m.OlP("_ViewRepeater")},73555:(Qe,ae,p)=>{"use strict";p.d(ae,{Wj:()=>s,Zt:()=>_t,_t:()=>we,bA:()=>z});var e=p(94650),f=p(36895),A=p(67376),S=p(83353),m=p(21281),M=p(12693),w=p(77579),x=p(50727),I=p(17445),F=p(66406),T=p(69751),H=p(56451),P=p(82722),J=p(68675),fe=p(54004),j=p(95698),$=p(18505),_e=p(63900),ge=p(40445);function pe(de,Ae,Te){for(let ut in Ae)if(Ae.hasOwnProperty(ut)){const bt=Ae[ut];bt?de.setProperty(ut,bt,Te?.has(ut)?"important":""):de.removeProperty(ut)}return de}function re(de,Ae){const Te=Ae?"":"none";pe(de.style,{"touch-action":Ae?"":"none","-webkit-user-drag":Ae?"":"none","-webkit-tap-highlight-color":Ae?"":"transparent","user-select":Te,"-ms-user-select":Te,"-webkit-user-select":Te,"-moz-user-select":Te})}function v(de,Ae,Te){pe(de.style,{position:Ae?"":"fixed",top:Ae?"":"0",opacity:Ae?"":"0",left:Ae?"":"-999em"},Te)}function V(de,Ae){return Ae&&"none"!=Ae?de+" "+Ae:de}function W(de){const Ae=de.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(de)*Ae}function ne(de,Ae){return de.getPropertyValue(Ae).split(",").map(ut=>ut.trim())}function ye(de){const Ae=de.getBoundingClientRect();return{top:Ae.top,right:Ae.right,bottom:Ae.bottom,left:Ae.left,width:Ae.width,height:Ae.height,x:Ae.x,y:Ae.y}}function ze(de,Ae,Te){const{top:ut,bottom:bt,left:Ht,right:Mt}=de;return Te>=ut&&Te<=bt&&Ae>=Ht&&Ae<=Mt}function ke(de,Ae,Te){de.top+=Ae,de.bottom=de.top+de.height,de.left+=Te,de.right=de.left+de.width}function $e(de,Ae,Te,ut){const{top:bt,right:Ht,bottom:Mt,left:It,width:ai,height:pi}=de,Ut=ai*Ae,Tt=pi*Ae;return ut>bt-Tt&&utIt-Ut&&Te{this.positions.set(Te,{scrollPosition:{top:Te.scrollTop,left:Te.scrollLeft},clientRect:ye(Te)})})}handleScroll(Ae){const Te=(0,S.sA)(Ae),ut=this.positions.get(Te);if(!ut)return null;const bt=ut.scrollPosition;let Ht,Mt;if(Te===this._document){const pi=this.getViewportScrollPosition();Ht=pi.top,Mt=pi.left}else Ht=Te.scrollTop,Mt=Te.scrollLeft;const It=bt.top-Ht,ai=bt.left-Mt;return this.positions.forEach((pi,Ut)=>{pi.clientRect&&Te!==Ut&&Te.contains(Ut)&&ke(pi.clientRect,It,ai)}),bt.top=Ht,bt.left=Mt,{top:It,left:ai}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Fe(de){const Ae=de.cloneNode(!0),Te=Ae.querySelectorAll("[id]"),ut=de.nodeName.toLowerCase();Ae.removeAttribute("id");for(let bt=0;bt{if(this.beforeStarted.next(),this._handles.length){const ai=this._getTargetHandle(It);ai&&!this._disabledHandles.has(ai)&&!this.disabled&&this._initializeDragSequence(ai,It)}else this.disabled||this._initializeDragSequence(this._rootElement,It)},this._pointerMove=It=>{const ai=this._getPointerPositionOnPage(It);if(!this._hasStartedDragging){if(Math.abs(ai.x-this._pickupPositionOnPage.x)+Math.abs(ai.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const We=Date.now()>=this._dragStartTime+this._getDragStartDelay(It),oe=this._dropContainer;if(!We)return void this._endDragSequence(It);(!oe||!oe.isDragging()&&!oe.isReceiving())&&(It.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(It)))}return}It.preventDefault();const pi=this._getConstrainedPointerPosition(ai);if(this._hasMoved=!0,this._lastKnownPointerPosition=ai,this._updatePointerDirectionDelta(pi),this._dropContainer)this._updateActiveDropContainer(pi,ai);else{const Ut=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,Tt=this._activeTransform;Tt.x=pi.x-Ut.x+this._passiveTransform.x,Tt.y=pi.y-Ut.y+this._passiveTransform.y,this._applyRootElementTransform(Tt.x,Tt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:pi,event:It,distance:this._getDragDistance(pi),delta:this._pointerDirectionDelta})})},this._pointerUp=It=>{this._endDragSequence(It)},this._nativeDragStart=It=>{if(this._handles.length){const ai=this._getTargetHandle(It);ai&&!this._disabledHandles.has(ai)&&!this.disabled&&It.preventDefault()}else this.disabled||It.preventDefault()},this.withRootElement(Ae).withParent(Te.parentDragRef||null),this._parentPositions=new Je(ut),Mt.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(Ae){const Te=(0,m.Ig)(Ae);Te!==this._disabled&&(this._disabled=Te,this._toggleNativeDragInteractions(),this._handles.forEach(ut=>re(ut,Te)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(Ae){this._handles=Ae.map(ut=>(0,m.fI)(ut)),this._handles.forEach(ut=>re(ut,this.disabled)),this._toggleNativeDragInteractions();const Te=new Set;return this._disabledHandles.forEach(ut=>{this._handles.indexOf(ut)>-1&&Te.add(ut)}),this._disabledHandles=Te,this}withPreviewTemplate(Ae){return this._previewTemplate=Ae,this}withPlaceholderTemplate(Ae){return this._placeholderTemplate=Ae,this}withRootElement(Ae){const Te=(0,m.fI)(Ae);return Te!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{Te.addEventListener("mousedown",this._pointerDown,ce),Te.addEventListener("touchstart",this._pointerDown,X),Te.addEventListener("dragstart",this._nativeDragStart,ce)}),this._initialTransform=void 0,this._rootElement=Te),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(Ae){return this._boundaryElement=Ae?(0,m.fI)(Ae):null,this._resizeSubscription.unsubscribe(),Ae&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(Ae){return this._parentDragRef=Ae,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(Ae){!this._disabledHandles.has(Ae)&&this._handles.indexOf(Ae)>-1&&(this._disabledHandles.add(Ae),re(Ae,!0))}enableHandle(Ae){this._disabledHandles.has(Ae)&&(this._disabledHandles.delete(Ae),re(Ae,this.disabled))}withDirection(Ae){return this._direction=Ae,this}_withDropContainer(Ae){this._dropContainer=Ae}getFreeDragPosition(){const Ae=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:Ae.x,y:Ae.y}}setFreeDragPosition(Ae){return this._activeTransform={x:0,y:0},this._passiveTransform.x=Ae.x,this._passiveTransform.y=Ae.y,this._dropContainer||this._applyRootElementTransform(Ae.x,Ae.y),this}withPreviewContainer(Ae){return this._previewContainer=Ae,this}_sortFromLastPointerPosition(){const Ae=this._lastKnownPointerPosition;Ae&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(Ae),Ae)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(Ae){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:Ae}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(Ae),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const Te=this._getPointerPositionOnPage(Ae);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(Te),dropPoint:Te,event:Ae})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(Ae){at(Ae)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const Te=this._dropContainer;if(Te){const ut=this._rootElement,bt=ut.parentNode,Ht=this._placeholder=this._createPlaceholderElement(),Mt=this._anchor=this._anchor||this._document.createComment(""),It=this._getShadowRoot();bt.insertBefore(Mt,ut),this._initialTransform=ut.style.transform||"",this._preview=this._createPreviewElement(),v(ut,!1,ue),this._document.body.appendChild(bt.replaceChild(Ht,ut)),this._getPreviewInsertionPoint(bt,It).appendChild(this._preview),this.started.next({source:this,event:Ae}),Te.start(),this._initialContainer=Te,this._initialIndex=Te.getItemIndex(this)}else this.started.next({source:this,event:Ae}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(Te?Te.getScrollableParents():[])}_initializeDragSequence(Ae,Te){this._parentDragRef&&Te.stopPropagation();const ut=this.isDragging(),bt=at(Te),Ht=!bt&&0!==Te.button,Mt=this._rootElement,It=(0,S.sA)(Te),ai=!bt&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),pi=bt?(0,M.yG)(Te):(0,M.X6)(Te);if(It&&It.draggable&&"mousedown"===Te.type&&Te.preventDefault(),ut||Ht||ai||pi)return;if(this._handles.length){const Se=Mt.style;this._rootElementTapHighlight=Se.webkitTapHighlightColor||"",Se.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Se=>this._updateOnScroll(Se)),this._boundaryElement&&(this._boundaryRect=ye(this._boundaryElement));const Ut=this._previewTemplate;this._pickupPositionInElement=Ut&&Ut.template&&!Ut.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,Ae,Te);const Tt=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(Te);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Tt.x,y:Tt.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,Te)}_cleanupDragArtifacts(Ae){v(this._rootElement,!0,ue),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const Te=this._dropContainer,ut=Te.getItemIndex(this),bt=this._getPointerPositionOnPage(Ae),Ht=this._getDragDistance(bt),Mt=Te._isOverContainer(bt.x,bt.y);this.ended.next({source:this,distance:Ht,dropPoint:bt,event:Ae}),this.dropped.next({item:this,currentIndex:ut,previousIndex:this._initialIndex,container:Te,previousContainer:this._initialContainer,isPointerOverContainer:Mt,distance:Ht,dropPoint:bt,event:Ae}),Te.drop(this,ut,this._initialIndex,this._initialContainer,Mt,Ht,bt,Ae),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:Ae,y:Te},{x:ut,y:bt}){let Ht=this._initialContainer._getSiblingContainerFromPosition(this,Ae,Te);!Ht&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(Ae,Te)&&(Ht=this._initialContainer),Ht&&Ht!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Ht,this._dropContainer.enter(this,Ae,Te,Ht===this._initialContainer&&Ht.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Ht,currentIndex:Ht.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(ut,bt),this._dropContainer._sortItem(this,Ae,Te,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(Ae,Te):this._applyPreviewTransform(Ae-this._pickupPositionInElement.x,Te-this._pickupPositionInElement.y))}_createPreviewElement(){const Ae=this._previewTemplate,Te=this.previewClass,ut=Ae?Ae.template:null;let bt;if(ut&&Ae){const Ht=Ae.matchSize?this._initialClientRect:null,Mt=Ae.viewContainer.createEmbeddedView(ut,Ae.context);Mt.detectChanges(),bt=Ue(Mt,this._document),this._previewRef=Mt,Ae.matchSize?pt(bt,Ht):bt.style.transform=tt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else bt=Fe(this._rootElement),pt(bt,this._initialClientRect),this._initialTransform&&(bt.style.transform=this._initialTransform);return pe(bt.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ue),re(bt,!1),bt.classList.add("cdk-drag-preview"),bt.setAttribute("dir",this._direction),Te&&(Array.isArray(Te)?Te.forEach(Ht=>bt.classList.add(Ht)):bt.classList.add(Te)),bt}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const Ae=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(Ae.left,Ae.top);const Te=function te(de){const Ae=getComputedStyle(de),Te=ne(Ae,"transition-property"),ut=Te.find(It=>"transform"===It||"all"===It);if(!ut)return 0;const bt=Te.indexOf(ut),Ht=ne(Ae,"transition-duration"),Mt=ne(Ae,"transition-delay");return W(Ht[bt])+W(Mt[bt])}(this._preview);return 0===Te?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(ut=>{const bt=Mt=>{(!Mt||(0,S.sA)(Mt)===this._preview&&"transform"===Mt.propertyName)&&(this._preview?.removeEventListener("transitionend",bt),ut(),clearTimeout(Ht))},Ht=setTimeout(bt,1.5*Te);this._preview.addEventListener("transitionend",bt)}))}_createPlaceholderElement(){const Ae=this._placeholderTemplate,Te=Ae?Ae.template:null;let ut;return Te?(this._placeholderRef=Ae.viewContainer.createEmbeddedView(Te,Ae.context),this._placeholderRef.detectChanges(),ut=Ue(this._placeholderRef,this._document)):ut=Fe(this._rootElement),ut.style.pointerEvents="none",ut.classList.add("cdk-drag-placeholder"),ut}_getPointerPositionInElement(Ae,Te,ut){const bt=Te===this._rootElement?null:Te,Ht=bt?bt.getBoundingClientRect():Ae,Mt=at(ut)?ut.targetTouches[0]:ut,It=this._getViewportScrollPosition();return{x:Ht.left-Ae.left+(Mt.pageX-Ht.left-It.left),y:Ht.top-Ae.top+(Mt.pageY-Ht.top-It.top)}}_getPointerPositionOnPage(Ae){const Te=this._getViewportScrollPosition(),ut=at(Ae)?Ae.touches[0]||Ae.changedTouches[0]||{pageX:0,pageY:0}:Ae,bt=ut.pageX-Te.left,Ht=ut.pageY-Te.top;if(this._ownerSVGElement){const Mt=this._ownerSVGElement.getScreenCTM();if(Mt){const It=this._ownerSVGElement.createSVGPoint();return It.x=bt,It.y=Ht,It.matrixTransform(Mt.inverse())}}return{x:bt,y:Ht}}_getConstrainedPointerPosition(Ae){const Te=this._dropContainer?this._dropContainer.lockAxis:null;let{x:ut,y:bt}=this.constrainPosition?this.constrainPosition(Ae,this,this._initialClientRect,this._pickupPositionInElement):Ae;if("x"===this.lockAxis||"x"===Te?bt=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===Te)&&(ut=this._pickupPositionOnPage.x),this._boundaryRect){const{x:Ht,y:Mt}=this._pickupPositionInElement,It=this._boundaryRect,{width:ai,height:pi}=this._getPreviewRect(),Ut=It.top+Mt,Tt=It.bottom-(pi-Mt);ut=Ce(ut,It.left+Ht,It.right-(ai-Ht)),bt=Ce(bt,Ut,Tt)}return{x:ut,y:bt}}_updatePointerDirectionDelta(Ae){const{x:Te,y:ut}=Ae,bt=this._pointerDirectionDelta,Ht=this._pointerPositionAtLastDirectionChange,Mt=Math.abs(Te-Ht.x),It=Math.abs(ut-Ht.y);return Mt>this._config.pointerDirectionChangeThreshold&&(bt.x=Te>Ht.x?1:-1,Ht.x=Te),It>this._config.pointerDirectionChangeThreshold&&(bt.y=ut>Ht.y?1:-1,Ht.y=ut),bt}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const Ae=this._handles.length>0||!this.isDragging();Ae!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=Ae,re(this._rootElement,Ae))}_removeRootElementListeners(Ae){Ae.removeEventListener("mousedown",this._pointerDown,ce),Ae.removeEventListener("touchstart",this._pointerDown,X),Ae.removeEventListener("dragstart",this._nativeDragStart,ce)}_applyRootElementTransform(Ae,Te){const ut=tt(Ae,Te),bt=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=bt.transform&&"none"!=bt.transform?bt.transform:""),bt.transform=V(ut,this._initialTransform)}_applyPreviewTransform(Ae,Te){const ut=this._previewTemplate?.template?void 0:this._initialTransform,bt=tt(Ae,Te);this._preview.style.transform=V(bt,ut)}_getDragDistance(Ae){const Te=this._pickupPositionOnPage;return Te?{x:Ae.x-Te.x,y:Ae.y-Te.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:Ae,y:Te}=this._passiveTransform;if(0===Ae&&0===Te||this.isDragging()||!this._boundaryElement)return;const ut=this._rootElement.getBoundingClientRect(),bt=this._boundaryElement.getBoundingClientRect();if(0===bt.width&&0===bt.height||0===ut.width&&0===ut.height)return;const Ht=bt.left-ut.left,Mt=ut.right-bt.right,It=bt.top-ut.top,ai=ut.bottom-bt.bottom;bt.width>ut.width?(Ht>0&&(Ae+=Ht),Mt>0&&(Ae-=Mt)):Ae=0,bt.height>ut.height?(It>0&&(Te+=It),ai>0&&(Te-=ai)):Te=0,(Ae!==this._passiveTransform.x||Te!==this._passiveTransform.y)&&this.setFreeDragPosition({y:Te,x:Ae})}_getDragStartDelay(Ae){const Te=this.dragStartDelay;return"number"==typeof Te?Te:at(Ae)?Te.touch:Te?Te.mouse:0}_updateOnScroll(Ae){const Te=this._parentPositions.handleScroll(Ae);if(Te){const ut=(0,S.sA)(Ae);this._boundaryRect&&ut!==this._boundaryElement&&ut.contains(this._boundaryElement)&&ke(this._boundaryRect,Te.top,Te.left),this._pickupPositionOnPage.x+=Te.left,this._pickupPositionOnPage.y+=Te.top,this._dropContainer||(this._activeTransform.x-=Te.left,this._activeTransform.y-=Te.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,S.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(Ae,Te){const ut=this._previewContainer||"global";if("parent"===ut)return Ae;if("global"===ut){const bt=this._document;return Te||bt.fullscreenElement||bt.webkitFullscreenElement||bt.mozFullScreenElement||bt.msFullscreenElement||bt.body}return(0,m.fI)(ut)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(Ae){return this._handles.find(Te=>Ae.target&&(Ae.target===Te||Te.contains(Ae.target)))}}function tt(de,Ae){return`translate3d(${Math.round(de)}px, ${Math.round(Ae)}px, 0)`}function Ce(de,Ae,Te){return Math.max(Ae,Math.min(Te,de))}function at(de){return"t"===de.type[0]}function Ue(de,Ae){const Te=de.rootNodes;if(1===Te.length&&Te[0].nodeType===Ae.ELEMENT_NODE)return Te[0];const ut=Ae.createElement("div");return Te.forEach(bt=>ut.appendChild(bt)),ut}function pt(de,Ae){de.style.width=`${Ae.width}px`,de.style.height=`${Ae.height}px`,de.style.transform=tt(Ae.left,Ae.top)}function z(de,Ae,Te){const ut=Ye(Ae,de.length-1),bt=Ye(Te,de.length-1);if(ut===bt)return;const Ht=de[ut],Mt=bt0)return null;const It="horizontal"===this.orientation,ai=Ht.findIndex(rt=>rt.drag===Ae),pi=Ht[Mt],Tt=pi.clientRect,Se=ai>Mt?1:-1,We=this._getItemOffsetPx(Ht[ai].clientRect,Tt,Se),oe=this._getSiblingOffsetPx(ai,Ht,Se),et=Ht.slice();return z(Ht,ai,Mt),Ht.forEach((rt,Ft)=>{if(et[Ft]===rt)return;const yt=rt.drag===Ae,Zt=yt?We:oe,li=yt?Ae.getPlaceholderElement():rt.drag.getRootElement();rt.offset+=Zt,It?(li.style.transform=V(`translate3d(${Math.round(rt.offset)}px, 0, 0)`,rt.initialTransform),ke(rt.clientRect,0,Zt)):(li.style.transform=V(`translate3d(0, ${Math.round(rt.offset)}px, 0)`,rt.initialTransform),ke(rt.clientRect,Zt,0))}),this._previousSwap.overlaps=ze(Tt,Te,ut),this._previousSwap.drag=pi.drag,this._previousSwap.delta=It?bt.x:bt.y,{previousIndex:ai,currentIndex:Mt}}enter(Ae,Te,ut,bt){const Ht=null==bt||bt<0?this._getItemIndexFromPointerPosition(Ae,Te,ut):bt,Mt=this._activeDraggables,It=Mt.indexOf(Ae),ai=Ae.getPlaceholderElement();let pi=Mt[Ht];if(pi===Ae&&(pi=Mt[Ht+1]),!pi&&(null==Ht||-1===Ht||Ht-1&&Mt.splice(It,1),pi&&!this._dragDropRegistry.isDragging(pi)){const Ut=pi.getRootElement();Ut.parentElement.insertBefore(ai,Ut),Mt.splice(Ht,0,Ae)}else(0,m.fI)(this._element).appendChild(ai),Mt.push(Ae);ai.style.transform="",this._cacheItemPositions()}withItems(Ae){this._activeDraggables=Ae.slice(),this._cacheItemPositions()}withSortPredicate(Ae){this._sortPredicate=Ae}reset(){this._activeDraggables.forEach(Ae=>{const Te=Ae.getRootElement();if(Te){const ut=this._itemPositions.find(bt=>bt.drag===Ae)?.initialTransform;Te.style.transform=ut||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(Ae){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(ut=>ut.drag===Ae)}updateOnScroll(Ae,Te){this._itemPositions.forEach(({clientRect:ut})=>{ke(ut,Ae,Te)}),this._itemPositions.forEach(({drag:ut})=>{this._dragDropRegistry.isDragging(ut)&&ut._sortFromLastPointerPosition()})}_cacheItemPositions(){const Ae="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(Te=>{const ut=Te.getVisibleElement();return{drag:Te,offset:0,initialTransform:ut.style.transform||"",clientRect:ye(ut)}}).sort((Te,ut)=>Ae?Te.clientRect.left-ut.clientRect.left:Te.clientRect.top-ut.clientRect.top)}_getItemOffsetPx(Ae,Te,ut){const bt="horizontal"===this.orientation;let Ht=bt?Te.left-Ae.left:Te.top-Ae.top;return-1===ut&&(Ht+=bt?Te.width-Ae.width:Te.height-Ae.height),Ht}_getSiblingOffsetPx(Ae,Te,ut){const bt="horizontal"===this.orientation,Ht=Te[Ae].clientRect,Mt=Te[Ae+-1*ut];let It=Ht[bt?"width":"height"]*ut;if(Mt){const ai=bt?"left":"top",pi=bt?"right":"bottom";-1===ut?It-=Mt.clientRect[ai]-Ht[pi]:It+=Ht[ai]-Mt.clientRect[pi]}return It}_shouldEnterAsFirstChild(Ae,Te){if(!this._activeDraggables.length)return!1;const ut=this._itemPositions,bt="horizontal"===this.orientation;if(ut[0].drag!==this._activeDraggables[0]){const Mt=ut[ut.length-1].clientRect;return bt?Ae>=Mt.right:Te>=Mt.bottom}{const Mt=ut[0].clientRect;return bt?Ae<=Mt.left:Te<=Mt.top}}_getItemIndexFromPointerPosition(Ae,Te,ut,bt){const Ht="horizontal"===this.orientation,Mt=this._itemPositions.findIndex(({drag:It,clientRect:ai})=>It!==Ae&&((!bt||It!==this._previousSwap.drag||!this._previousSwap.overlaps||(Ht?bt.x:bt.y)!==this._previousSwap.delta)&&(Ht?Te>=Math.floor(ai.left)&&Te=Math.floor(ai.top)&&ut!0,this.sortPredicate=()=>!0,this.beforeStarted=new w.x,this.entered=new w.x,this.exited=new w.x,this.dropped=new w.x,this.sorted=new w.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=x.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new w.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,I.F)(0,F.Z).pipe((0,P.R)(this._stopScrollTimers)).subscribe(()=>{const Mt=this._scrollNode,It=this.autoScrollStep;1===this._verticalScrollDirection?Mt.scrollBy(0,-It):2===this._verticalScrollDirection&&Mt.scrollBy(0,It),1===this._horizontalScrollDirection?Mt.scrollBy(-It,0):2===this._horizontalScrollDirection&&Mt.scrollBy(It,0)})},this.element=(0,m.fI)(Ae),this._document=ut,this.withScrollableParents([this.element]),Te.registerDropContainer(this),this._parentPositions=new Je(ut),this._sortStrategy=new he(this.element,Te),this._sortStrategy.withSortPredicate((Mt,It)=>this.sortPredicate(Mt,It,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(Ae,Te,ut,bt){this._draggingStarted(),null==bt&&this.sortingDisabled&&(bt=this._draggables.indexOf(Ae)),this._sortStrategy.enter(Ae,Te,ut,bt),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:Ae,container:this,currentIndex:this.getItemIndex(Ae)})}exit(Ae){this._reset(),this.exited.next({item:Ae,container:this})}drop(Ae,Te,ut,bt,Ht,Mt,It,ai={}){this._reset(),this.dropped.next({item:Ae,currentIndex:Te,previousIndex:ut,container:this,previousContainer:bt,isPointerOverContainer:Ht,distance:Mt,dropPoint:It,event:ai})}withItems(Ae){const Te=this._draggables;return this._draggables=Ae,Ae.forEach(ut=>ut._withDropContainer(this)),this.isDragging()&&(Te.filter(bt=>bt.isDragging()).every(bt=>-1===Ae.indexOf(bt))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(Ae){return this._sortStrategy.direction=Ae,this}connectedTo(Ae){return this._siblings=Ae.slice(),this}withOrientation(Ae){return this._sortStrategy.orientation=Ae,this}withScrollableParents(Ae){const Te=(0,m.fI)(this.element);return this._scrollableElements=-1===Ae.indexOf(Te)?[Te,...Ae]:Ae.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(Ae){return this._isDragging?this._sortStrategy.getItemIndex(Ae):this._draggables.indexOf(Ae)}isReceiving(){return this._activeSiblings.size>0}_sortItem(Ae,Te,ut,bt){if(this.sortingDisabled||!this._clientRect||!$e(this._clientRect,.05,Te,ut))return;const Ht=this._sortStrategy.sort(Ae,Te,ut,bt);Ht&&this.sorted.next({previousIndex:Ht.previousIndex,currentIndex:Ht.currentIndex,container:this,item:Ae})}_startScrollingIfNecessary(Ae,Te){if(this.autoScrollDisabled)return;let ut,bt=0,Ht=0;if(this._parentPositions.positions.forEach((Mt,It)=>{It===this._document||!Mt.clientRect||ut||$e(Mt.clientRect,.05,Ae,Te)&&([bt,Ht]=function u(de,Ae,Te,ut){const bt=Oe(Ae,ut),Ht=r(Ae,Te);let Mt=0,It=0;if(bt){const ai=de.scrollTop;1===bt?ai>0&&(Mt=1):de.scrollHeight-ai>de.clientHeight&&(Mt=2)}if(Ht){const ai=de.scrollLeft;1===Ht?ai>0&&(It=1):de.scrollWidth-ai>de.clientWidth&&(It=2)}return[Mt,It]}(It,Mt.clientRect,Ae,Te),(bt||Ht)&&(ut=It))}),!bt&&!Ht){const{width:Mt,height:It}=this._viewportRuler.getViewportSize(),ai={width:Mt,height:It,top:0,right:Mt,bottom:It,left:0};bt=Oe(ai,Te),Ht=r(ai,Ae),ut=window}ut&&(bt!==this._verticalScrollDirection||Ht!==this._horizontalScrollDirection||ut!==this._scrollNode)&&(this._verticalScrollDirection=bt,this._horizontalScrollDirection=Ht,this._scrollNode=ut,(bt||Ht)&&ut?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const Ae=(0,m.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=Ae.msScrollSnapType||Ae.scrollSnapType||"",Ae.scrollSnapType=Ae.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const Ae=(0,m.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(Ae).clientRect}_reset(){this._isDragging=!1;const Ae=(0,m.fI)(this.element).style;Ae.scrollSnapType=Ae.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(Te=>Te._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(Ae,Te){return null!=this._clientRect&&ze(this._clientRect,Ae,Te)}_getSiblingContainerFromPosition(Ae,Te,ut){return this._siblings.find(bt=>bt._canReceive(Ae,Te,ut))}_canReceive(Ae,Te,ut){if(!this._clientRect||!ze(this._clientRect,Te,ut)||!this.enterPredicate(Ae,this))return!1;const bt=this._getShadowRoot().elementFromPoint(Te,ut);if(!bt)return!1;const Ht=(0,m.fI)(this.element);return bt===Ht||Ht.contains(bt)}_startReceiving(Ae,Te){const ut=this._activeSiblings;!ut.has(Ae)&&Te.every(bt=>this.enterPredicate(bt,this)||this._draggables.indexOf(bt)>-1)&&(ut.add(Ae),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(Ae){this._activeSiblings.delete(Ae),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Ae=>{if(this.isDragging()){const Te=this._parentPositions.handleScroll(Ae);Te&&this._sortStrategy.updateOnScroll(Te.top,Te.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const Ae=(0,S.kV)((0,m.fI)(this.element));this._cachedShadowRoot=Ae||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const Ae=this._sortStrategy.getActiveItemsSnapshot().filter(Te=>Te.isDragging());this._siblings.forEach(Te=>Te._startReceiving(this,Ae))}}function Oe(de,Ae){const{top:Te,bottom:ut,height:bt}=de,Ht=bt*He;return Ae>=Te-Ht&&Ae<=Te+Ht?1:Ae>=ut-Ht&&Ae<=ut+Ht?2:0}function r(de,Ae){const{left:Te,right:ut,width:bt}=de,Ht=bt*He;return Ae>=Te-Ht&&Ae<=Te+Ht?1:Ae>=ut-Ht&&Ae<=ut+Ht?2:0}const _=(0,S.i$)({passive:!1,capture:!0});let C=(()=>{class de{constructor(Te,ut){this._ngZone=Te,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=bt=>bt.isDragging(),this.pointerMove=new w.x,this.pointerUp=new w.x,this.scroll=new w.x,this._preventDefaultWhileDragging=bt=>{this._activeDragInstances.length>0&&bt.preventDefault()},this._persistentTouchmoveListener=bt=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&bt.preventDefault(),this.pointerMove.next(bt))},this._document=ut}registerDropContainer(Te){this._dropInstances.has(Te)||this._dropInstances.add(Te)}registerDragItem(Te){this._dragInstances.add(Te),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,_)})}removeDropContainer(Te){this._dropInstances.delete(Te)}removeDragItem(Te){this._dragInstances.delete(Te),this.stopDragging(Te),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,_)}startDragging(Te,ut){if(!(this._activeDragInstances.indexOf(Te)>-1)&&(this._activeDragInstances.push(Te),1===this._activeDragInstances.length)){const bt=ut.type.startsWith("touch");this._globalListeners.set(bt?"touchend":"mouseup",{handler:Ht=>this.pointerUp.next(Ht),options:!0}).set("scroll",{handler:Ht=>this.scroll.next(Ht),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:_}),bt||this._globalListeners.set("mousemove",{handler:Ht=>this.pointerMove.next(Ht),options:_}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Ht,Mt)=>{this._document.addEventListener(Mt,Ht.handler,Ht.options)})})}}stopDragging(Te){const ut=this._activeDragInstances.indexOf(Te);ut>-1&&(this._activeDragInstances.splice(ut,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(Te){return this._activeDragInstances.indexOf(Te)>-1}scrolled(Te){const ut=[this.scroll];return Te&&Te!==this._document&&ut.push(new T.y(bt=>this._ngZone.runOutsideAngular(()=>{const Mt=It=>{this._activeDragInstances.length&&bt.next(It)};return Te.addEventListener("scroll",Mt,!0),()=>{Te.removeEventListener("scroll",Mt,!0)}}))),(0,H.T)(...ut)}ngOnDestroy(){this._dragInstances.forEach(Te=>this.removeDragItem(Te)),this._dropInstances.forEach(Te=>this.removeDropContainer(Te)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((Te,ut)=>{this._document.removeEventListener(ut,Te.handler,Te.options)}),this._globalListeners.clear()}}return de.\u0275fac=function(Te){return new(Te||de)(e.LFG(e.R0b),e.LFG(f.K0))},de.\u0275prov=e.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})();const h={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let o=(()=>{class de{constructor(Te,ut,bt,Ht){this._document=Te,this._ngZone=ut,this._viewportRuler=bt,this._dragDropRegistry=Ht}createDrag(Te,ut=h){return new Pe(Te,ut,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(Te){return new ve(Te,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return de.\u0275fac=function(Te){return new(Te||de)(e.LFG(f.K0),e.LFG(e.R0b),e.LFG(A.rL),e.LFG(C))},de.\u0275prov=e.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})();const n=new e.OlP("CDK_DRAG_PARENT"),t=new e.OlP("CdkDropListGroup"),a=new e.OlP("CDK_DRAG_CONFIG");let l=0;const d=new e.OlP("CdkDropList");let s=(()=>{class de{constructor(Te,ut,bt,Ht,Mt,It,ai){this.element=Te,this._changeDetectorRef=bt,this._scrollDispatcher=Ht,this._dir=Mt,this._group=It,this._destroyed=new w.x,this.connectedTo=[],this.id="cdk-drop-list-"+l++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.sorted=new e.vpe,this._unsortedItems=new Set,this._dropListRef=ut.createDropList(Te),this._dropListRef.data=this,ai&&this._assignDefaults(ai),this._dropListRef.enterPredicate=(pi,Ut)=>this.enterPredicate(pi.data,Ut.data),this._dropListRef.sortPredicate=(pi,Ut,Tt)=>this.sortPredicate(pi,Ut.data,Tt.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),de._dropLists.push(this),It&&It._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(Te){this._dropListRef.disabled=this._disabled=(0,m.Ig)(Te)}addItem(Te){this._unsortedItems.add(Te),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(Te){this._unsortedItems.delete(Te),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((Te,ut)=>Te._dragRef.getVisibleElement().compareDocumentPosition(ut._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const Te=de._dropLists.indexOf(this);Te>-1&&de._dropLists.splice(Te,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(Te){this._dir&&this._dir.change.pipe((0,J.O)(this._dir.value),(0,P.R)(this._destroyed)).subscribe(ut=>Te.withDirection(ut)),Te.beforeStarted.subscribe(()=>{const ut=(0,m.Eq)(this.connectedTo).map(bt=>"string"==typeof bt?de._dropLists.find(Mt=>Mt.id===bt):bt);if(this._group&&this._group._items.forEach(bt=>{-1===ut.indexOf(bt)&&ut.push(bt)}),!this._scrollableParentsResolved){const bt=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(Ht=>Ht.getElementRef().nativeElement);this._dropListRef.withScrollableParents(bt),this._scrollableParentsResolved=!0}Te.disabled=this.disabled,Te.lockAxis=this.lockAxis,Te.sortingDisabled=(0,m.Ig)(this.sortingDisabled),Te.autoScrollDisabled=(0,m.Ig)(this.autoScrollDisabled),Te.autoScrollStep=(0,m.su)(this.autoScrollStep,2),Te.connectedTo(ut.filter(bt=>bt&&bt!==this).map(bt=>bt._dropListRef)).withOrientation(this.orientation)})}_handleEvents(Te){Te.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),Te.entered.subscribe(ut=>{this.entered.emit({container:this,item:ut.item.data,currentIndex:ut.currentIndex})}),Te.exited.subscribe(ut=>{this.exited.emit({container:this,item:ut.item.data}),this._changeDetectorRef.markForCheck()}),Te.sorted.subscribe(ut=>{this.sorted.emit({previousIndex:ut.previousIndex,currentIndex:ut.currentIndex,container:this,item:ut.item.data})}),Te.dropped.subscribe(ut=>{this.dropped.emit({previousIndex:ut.previousIndex,currentIndex:ut.currentIndex,previousContainer:ut.previousContainer.data,container:ut.container.data,item:ut.item.data,isPointerOverContainer:ut.isPointerOverContainer,distance:ut.distance,dropPoint:ut.dropPoint,event:ut.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(Te){const{lockAxis:ut,draggingDisabled:bt,sortingDisabled:Ht,listAutoScrollDisabled:Mt,listOrientation:It}=Te;this.disabled=bt??!1,this.sortingDisabled=Ht??!1,this.autoScrollDisabled=Mt??!1,this.orientation=It||"vertical",ut&&(this.lockAxis=ut)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(Te=>Te._dragRef))}}return de._dropLists=[],de.\u0275fac=function(Te){return new(Te||de)(e.Y36(e.SBq),e.Y36(o),e.Y36(e.sBO),e.Y36(A.mF),e.Y36(ge.Is,8),e.Y36(t,12),e.Y36(a,8))},de.\u0275dir=e.lG2({type:de,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(Te,ut){2&Te&&(e.uIk("id",ut.id),e.ekj("cdk-drop-list-disabled",ut.disabled)("cdk-drop-list-dragging",ut._dropListRef.isDragging())("cdk-drop-list-receiving",ut._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[e._Bn([{provide:t,useValue:void 0},{provide:d,useExisting:de}])]}),de})();const E=new e.OlP("CdkDragHandle"),q=new e.OlP("CdkDragPlaceholder"),it=new e.OlP("CdkDragPreview");let _t=(()=>{class de{constructor(Te,ut,bt,Ht,Mt,It,ai,pi,Ut,Tt,Se){this.element=Te,this.dropContainer=ut,this._ngZone=Ht,this._viewContainerRef=Mt,this._dir=ai,this._changeDetectorRef=Ut,this._selfHandle=Tt,this._parentDrag=Se,this._destroyed=new w.x,this.started=new e.vpe,this.released=new e.vpe,this.ended=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.dropped=new e.vpe,this.moved=new T.y(We=>{const oe=this._dragRef.moved.pipe((0,fe.U)(et=>({source:this,pointerPosition:et.pointerPosition,event:et.event,delta:et.delta,distance:et.distance}))).subscribe(We);return()=>{oe.unsubscribe()}}),this._dragRef=pi.createDrag(Te,{dragStartThreshold:It&&null!=It.dragStartThreshold?It.dragStartThreshold:5,pointerDirectionChangeThreshold:It&&null!=It.pointerDirectionChangeThreshold?It.pointerDirectionChangeThreshold:5,zIndex:It?.zIndex}),this._dragRef.data=this,de._dragInstances.push(this),It&&this._assignDefaults(It),ut&&(this._dragRef._withDropContainer(ut._dropListRef),ut.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(Te){this._disabled=(0,m.Ig)(Te),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(Te){this._dragRef.setFreeDragPosition(Te)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,j.q)(1),(0,P.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(Te){const ut=Te.rootElementSelector,bt=Te.freeDragPosition;ut&&!ut.firstChange&&this._updateRootElement(),bt&&!bt.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const Te=de._dragInstances.indexOf(this);Te>-1&&de._dragInstances.splice(Te,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const Te=this.element.nativeElement;let ut=Te;this.rootElementSelector&&(ut=void 0!==Te.closest?Te.closest(this.rootElementSelector):Te.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(ut||Te)}_getBoundaryElement(){const Te=this.boundaryElement;return Te?"string"==typeof Te?this.element.nativeElement.closest(Te):(0,m.fI)(Te):null}_syncInputs(Te){Te.beforeStarted.subscribe(()=>{if(!Te.isDragging()){const ut=this._dir,bt=this.dragStartDelay,Ht=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Mt=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;Te.disabled=this.disabled,Te.lockAxis=this.lockAxis,Te.dragStartDelay="object"==typeof bt&&bt?bt:(0,m.su)(bt),Te.constrainPosition=this.constrainPosition,Te.previewClass=this.previewClass,Te.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(Ht).withPreviewTemplate(Mt).withPreviewContainer(this.previewContainer||"global"),ut&&Te.withDirection(ut.value)}}),Te.beforeStarted.pipe((0,j.q)(1)).subscribe(()=>{if(this._parentDrag)return void Te.withParent(this._parentDrag._dragRef);let ut=this.element.nativeElement.parentElement;for(;ut;){if(ut.classList.contains("cdk-drag")){Te.withParent(de._dragInstances.find(bt=>bt.element.nativeElement===ut)?._dragRef||null);break}ut=ut.parentElement}})}_handleEvents(Te){Te.started.subscribe(ut=>{this.started.emit({source:this,event:ut.event}),this._changeDetectorRef.markForCheck()}),Te.released.subscribe(ut=>{this.released.emit({source:this,event:ut.event})}),Te.ended.subscribe(ut=>{this.ended.emit({source:this,distance:ut.distance,dropPoint:ut.dropPoint,event:ut.event}),this._changeDetectorRef.markForCheck()}),Te.entered.subscribe(ut=>{this.entered.emit({container:ut.container.data,item:this,currentIndex:ut.currentIndex})}),Te.exited.subscribe(ut=>{this.exited.emit({container:ut.container.data,item:this})}),Te.dropped.subscribe(ut=>{this.dropped.emit({previousIndex:ut.previousIndex,currentIndex:ut.currentIndex,previousContainer:ut.previousContainer.data,container:ut.container.data,isPointerOverContainer:ut.isPointerOverContainer,item:this,distance:ut.distance,dropPoint:ut.dropPoint,event:ut.event})})}_assignDefaults(Te){const{lockAxis:ut,dragStartDelay:bt,constrainPosition:Ht,previewClass:Mt,boundaryElement:It,draggingDisabled:ai,rootElementSelector:pi,previewContainer:Ut}=Te;this.disabled=ai??!1,this.dragStartDelay=bt||0,ut&&(this.lockAxis=ut),Ht&&(this.constrainPosition=Ht),Mt&&(this.previewClass=Mt),It&&(this.boundaryElement=It),pi&&(this.rootElementSelector=pi),Ut&&(this.previewContainer=Ut)}_setupHandlesListener(){this._handles.changes.pipe((0,J.O)(this._handles),(0,$.b)(Te=>{const ut=Te.filter(bt=>bt._parentDrag===this).map(bt=>bt.element);this._selfHandle&&this.rootElementSelector&&ut.push(this.element),this._dragRef.withHandles(ut)}),(0,_e.w)(Te=>(0,H.T)(...Te.map(ut=>ut._stateChanges.pipe((0,J.O)(ut))))),(0,P.R)(this._destroyed)).subscribe(Te=>{const ut=this._dragRef,bt=Te.element.nativeElement;Te.disabled?ut.disableHandle(bt):ut.enableHandle(bt)})}}return de._dragInstances=[],de.\u0275fac=function(Te){return new(Te||de)(e.Y36(e.SBq),e.Y36(d,12),e.Y36(f.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(a,8),e.Y36(ge.Is,8),e.Y36(o),e.Y36(e.sBO),e.Y36(E,10),e.Y36(n,12))},de.\u0275dir=e.lG2({type:de,selectors:[["","cdkDrag",""]],contentQueries:function(Te,ut,bt){if(1&Te&&(e.Suo(bt,it,5),e.Suo(bt,q,5),e.Suo(bt,E,5)),2&Te){let Ht;e.iGM(Ht=e.CRH())&&(ut._previewTemplate=Ht.first),e.iGM(Ht=e.CRH())&&(ut._placeholderTemplate=Ht.first),e.iGM(Ht=e.CRH())&&(ut._handles=Ht)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(Te,ut){2&Te&&e.ekj("cdk-drag-disabled",ut.disabled)("cdk-drag-dragging",ut._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[e._Bn([{provide:n,useExisting:de}]),e.TTD]}),de})(),we=(()=>{class de{}return de.\u0275fac=function(Te){return new(Te||de)},de.\u0275mod=e.oAB({type:de}),de.\u0275inj=e.cJS({providers:[o],imports:[A.ZD]}),de})()},29521:(Qe,ae,p)=>{"use strict";p.d(ae,{A:()=>Me,JH:()=>pe,JU:()=>M,K5:()=>m,Ku:()=>P,LH:()=>_e,L_:()=>H,MW:()=>a,Mf:()=>A,OC:()=>Ai,SV:()=>ge,Sd:()=>j,VM:()=>J,Vb:()=>en,Z:()=>i,ZH:()=>f,aO:()=>le,b2:()=>Vi,hY:()=>T,jx:()=>w,oh:()=>$,uR:()=>fe,xE:()=>te,yY:()=>W,zL:()=>x});const f=8,A=9,m=13,M=16,w=17,x=18,T=27,H=32,P=33,J=34,fe=35,j=36,$=37,_e=38,ge=39,pe=40,W=46,te=48,le=57,Me=65,i=90,a=91,Ai=188,Vi=224;function en(ji,...on){return on.length?on.some(wn=>ji[wn]):ji.altKey||ji.shiftKey||ji.ctrlKey||ji.metaKey}},49643:(Qe,ae,p)=>{"use strict";p.d(ae,{Q8:()=>I,wD:()=>x});var e=p(21281),f=p(94650),A=p(69751),S=p(77579),m=p(78372);let M=(()=>{class F{create(H){return typeof MutationObserver>"u"?null:new MutationObserver(H)}}return F.\u0275fac=function(H){return new(H||F)},F.\u0275prov=f.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})(),w=(()=>{class F{constructor(H){this._mutationObserverFactory=H,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((H,P)=>this._cleanupObserver(P))}observe(H){const P=(0,e.fI)(H);return new A.y(J=>{const j=this._observeElement(P).subscribe(J);return()=>{j.unsubscribe(),this._unobserveElement(P)}})}_observeElement(H){if(this._observedElements.has(H))this._observedElements.get(H).count++;else{const P=new S.x,J=this._mutationObserverFactory.create(fe=>P.next(fe));J&&J.observe(H,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(H,{observer:J,stream:P,count:1})}return this._observedElements.get(H).stream}_unobserveElement(H){this._observedElements.has(H)&&(this._observedElements.get(H).count--,this._observedElements.get(H).count||this._cleanupObserver(H))}_cleanupObserver(H){if(this._observedElements.has(H)){const{observer:P,stream:J}=this._observedElements.get(H);P&&P.disconnect(),J.complete(),this._observedElements.delete(H)}}}return F.\u0275fac=function(H){return new(H||F)(f.LFG(M))},F.\u0275prov=f.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})(),x=(()=>{class F{constructor(H,P,J){this._contentObserver=H,this._elementRef=P,this._ngZone=J,this.event=new f.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(H){this._disabled=(0,e.Ig)(H),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(H){this._debounce=(0,e.su)(H),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const H=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?H.pipe((0,m.b)(this.debounce)):H).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return F.\u0275fac=function(H){return new(H||F)(f.Y36(w),f.Y36(f.SBq),f.Y36(f.R0b))},F.\u0275dir=f.lG2({type:F,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),F})(),I=(()=>{class F{}return F.\u0275fac=function(H){return new(H||F)},F.\u0275mod=f.oAB({type:F}),F.\u0275inj=f.cJS({providers:[M]}),F})()},98184:(Qe,ae,p)=>{"use strict";p.d(ae,{Iu:()=>le,U8:()=>ve,X_:()=>W,Xj:()=>Ve,_G:()=>X,aV:()=>z,pI:()=>he,xu:()=>Ye});var e=p(67376),f=p(36895),A=p(94650),S=p(21281),m=p(83353),M=p(40445),w=p(84080),x=p(77579),I=p(50727),F=p(56451),T=p(95698),H=p(82722),P=p(22529),J=p(29521);const fe=(0,m.Mq)();class j{constructor(u,_){this._viewportRuler=u,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=_}attach(){}enable(){if(this._canBeEnabled()){const u=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=u.style.left||"",this._previousHTMLStyles.top=u.style.top||"",u.style.left=(0,S.HM)(-this._previousScrollPosition.left),u.style.top=(0,S.HM)(-this._previousScrollPosition.top),u.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const u=this._document.documentElement,C=u.style,h=this._document.body.style,o=C.scrollBehavior||"",n=h.scrollBehavior||"";this._isEnabled=!1,C.left=this._previousHTMLStyles.left,C.top=this._previousHTMLStyles.top,u.classList.remove("cdk-global-scrollblock"),fe&&(C.scrollBehavior=h.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),fe&&(C.scrollBehavior=o,h.scrollBehavior=n)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const _=this._document.body,C=this._viewportRuler.getViewportSize();return _.scrollHeight>C.height||_.scrollWidth>C.width}}class _e{constructor(u,_,C,h){this._scrollDispatcher=u,this._ngZone=_,this._viewportRuler=C,this._config=h,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(u){this._overlayRef=u}enable(){if(this._scrollSubscription)return;const u=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=u.subscribe(()=>{const _=this._viewportRuler.getViewportScrollPosition().top;Math.abs(_-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=u.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ge{enable(){}disable(){}attach(){}}function pe(r,u){return u.some(_=>r.bottom<_.top||r.top>_.bottom||r.right<_.left||r.left>_.right)}function re(r,u){return u.some(_=>r.top<_.top||r.bottom>_.bottom||r.left<_.left||r.right>_.right)}class v{constructor(u,_,C,h){this._scrollDispatcher=u,this._viewportRuler=_,this._ngZone=C,this._config=h,this._scrollSubscription=null}attach(u){this._overlayRef=u}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const _=this._overlayRef.overlayElement.getBoundingClientRect(),{width:C,height:h}=this._viewportRuler.getViewportSize();pe(_,[{width:C,height:h,bottom:h,right:C,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let V=(()=>{class r{constructor(_,C,h,o){this._scrollDispatcher=_,this._viewportRuler=C,this._ngZone=h,this.noop=()=>new ge,this.close=n=>new _e(this._scrollDispatcher,this._ngZone,this._viewportRuler,n),this.block=()=>new j(this._viewportRuler,this._document),this.reposition=n=>new v(this._scrollDispatcher,this._viewportRuler,this._ngZone,n),this._document=o}}return r.\u0275fac=function(_){return new(_||r)(A.LFG(e.mF),A.LFG(e.rL),A.LFG(A.R0b),A.LFG(f.K0))},r.\u0275prov=A.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class W{constructor(u){if(this.scrollStrategy=new ge,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,u){const _=Object.keys(u);for(const C of _)void 0!==u[C]&&(this[C]=u[C])}}}class ye{constructor(u,_){this.connectionPair=u,this.scrollableViewProperties=_}}let $e=(()=>{class r{constructor(_){this._attachedOverlays=[],this._document=_}ngOnDestroy(){this.detach()}add(_){this.remove(_),this._attachedOverlays.push(_)}remove(_){const C=this._attachedOverlays.indexOf(_);C>-1&&this._attachedOverlays.splice(C,1),0===this._attachedOverlays.length&&this.detach()}}return r.\u0275fac=function(_){return new(_||r)(A.LFG(f.K0))},r.\u0275prov=A.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Je=(()=>{class r extends $e{constructor(_,C){super(_),this._ngZone=C,this._keydownListener=h=>{const o=this._attachedOverlays;for(let n=o.length-1;n>-1;n--)if(o[n]._keydownEvents.observers.length>0){const t=o[n]._keydownEvents;this._ngZone?this._ngZone.run(()=>t.next(h)):t.next(h);break}}}add(_){super.add(_),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return r.\u0275fac=function(_){return new(_||r)(A.LFG(f.K0),A.LFG(A.R0b,8))},r.\u0275prov=A.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Fe=(()=>{class r extends $e{constructor(_,C,h){super(_),this._platform=C,this._ngZone=h,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=(0,m.sA)(o)},this._clickListener=o=>{const n=(0,m.sA)(o),t="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let a=i.length-1;a>-1;a--){const c=i[a];if(c._outsidePointerEvents.observers.length<1||!c.hasAttached())continue;if(c.overlayElement.contains(n)||c.overlayElement.contains(t))break;const l=c._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(o)):l.next(o)}}}add(_){if(super.add(_),!this._isAttached){const C=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(C)):this._addEventListeners(C),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=C.style.cursor,C.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const _=this._document.body;_.removeEventListener("pointerdown",this._pointerDownListener,!0),_.removeEventListener("click",this._clickListener,!0),_.removeEventListener("auxclick",this._clickListener,!0),_.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(_.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(_){_.addEventListener("pointerdown",this._pointerDownListener,!0),_.addEventListener("click",this._clickListener,!0),_.addEventListener("auxclick",this._clickListener,!0),_.addEventListener("contextmenu",this._clickListener,!0)}}return r.\u0275fac=function(_){return new(_||r)(A.LFG(f.K0),A.LFG(m.t4),A.LFG(A.R0b,8))},r.\u0275prov=A.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ve=(()=>{class r{constructor(_,C){this._platform=C,this._document=_}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const _="cdk-overlay-container";if(this._platform.isBrowser||(0,m.Oy)()){const h=this._document.querySelectorAll(`.${_}[platform="server"], .${_}[platform="test"]`);for(let o=0;othis._backdropClick.next(l),this._backdropTransitionendHandler=l=>{this._disposeBackdrop(l.target)},this._keydownEvents=new x.x,this._outsidePointerEvents=new x.x,h.scrollStrategy&&(this._scrollStrategy=h.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=h.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(u){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const _=this._portalOutlet.attach(u);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof _?.onDestroy&&_.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),_}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const u=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),u}dispose(){const u=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,u&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(u){u!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=u,this.hasAttached()&&(u.attach(this),this.updatePosition()))}updateSize(u){this._config={...this._config,...u},this._updateElementSize()}setDirection(u){this._config={...this._config,direction:u},this._updateElementDirection()}addPanelClass(u){this._pane&&this._toggleClasses(this._pane,u,!0)}removePanelClass(u){this._pane&&this._toggleClasses(this._pane,u,!1)}getDirection(){const u=this._config.direction;return u?"string"==typeof u?u:u.value:"ltr"}updateScrollStrategy(u){u!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=u,this.hasAttached()&&(u.attach(this),u.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const u=this._pane.style;u.width=(0,S.HM)(this._config.width),u.height=(0,S.HM)(this._config.height),u.minWidth=(0,S.HM)(this._config.minWidth),u.minHeight=(0,S.HM)(this._config.minHeight),u.maxWidth=(0,S.HM)(this._config.maxWidth),u.maxHeight=(0,S.HM)(this._config.maxHeight)}_togglePointerEvents(u){this._pane.style.pointerEvents=u?"":"none"}_attachBackdrop(){const u="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(u)})}):this._backdropElement.classList.add(u)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const u=this._backdropElement;if(u){if(this._animationsDisabled)return void this._disposeBackdrop(u);u.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{u.addEventListener("transitionend",this._backdropTransitionendHandler)}),u.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(u)},500))}}_toggleClasses(u,_,C){const h=(0,S.Eq)(_||[]).filter(o=>!!o);h.length&&(C?u.classList.add(...h):u.classList.remove(...h))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const u=this._ngZone.onStable.pipe((0,H.R)((0,F.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),u.unsubscribe())})})}_disposeScrollStrategy(){const u=this._scrollStrategy;u&&(u.disable(),u.detach&&u.detach())}_disposeBackdrop(u){u&&(u.removeEventListener("click",this._backdropClickHandler),u.removeEventListener("transitionend",this._backdropTransitionendHandler),u.remove(),this._backdropElement===u&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const N="cdk-overlay-connected-position-bounding-box",U=/([A-Za-z%]+)$/;class X{constructor(u,_,C,h,o){this._viewportRuler=_,this._document=C,this._platform=h,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new x.x,this._resizeSubscription=I.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(u)}get positions(){return this._preferredPositions}attach(u){this._validatePositions(),u.hostElement.classList.add(N),this._overlayRef=u,this._boundingBox=u.hostElement,this._pane=u.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const u=this._originRect,_=this._overlayRect,C=this._viewportRect,h=this._containerRect,o=[];let n;for(let t of this._preferredPositions){let i=this._getOriginPoint(u,h,t),a=this._getOverlayPoint(i,_,t),c=this._getOverlayFit(a,_,C,t);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(t,i);this._canFitWithFlexibleDimensions(c,a,C)?o.push({position:t,origin:i,overlayRect:_,boundingBoxRect:this._calculateBoundingBoxRect(i,t)}):(!n||n.overlayFit.visibleAreai&&(i=c,t=a)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(n.position,n.originPoint);this._applyPosition(n.position,n.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ce(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const u=this._lastPosition;if(u){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const _=this._getOriginPoint(this._originRect,this._containerRect,u);this._applyPosition(u,_)}else this.apply()}withScrollableContainers(u){return this._scrollables=u,this}withPositions(u){return this._preferredPositions=u,-1===u.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(u){return this._viewportMargin=u,this}withFlexibleDimensions(u=!0){return this._hasFlexibleDimensions=u,this}withGrowAfterOpen(u=!0){return this._growAfterOpen=u,this}withPush(u=!0){return this._canPush=u,this}withLockedPosition(u=!0){return this._positionLocked=u,this}setOrigin(u){return this._origin=u,this}withDefaultOffsetX(u){return this._offsetX=u,this}withDefaultOffsetY(u){return this._offsetY=u,this}withTransformOriginOn(u){return this._transformOriginSelector=u,this}_getOriginPoint(u,_,C){let h,o;if("center"==C.originX)h=u.left+u.width/2;else{const n=this._isRtl()?u.right:u.left,t=this._isRtl()?u.left:u.right;h="start"==C.originX?n:t}return _.left<0&&(h-=_.left),o="center"==C.originY?u.top+u.height/2:"top"==C.originY?u.top:u.bottom,_.top<0&&(o-=_.top),{x:h,y:o}}_getOverlayPoint(u,_,C){let h,o;return h="center"==C.overlayX?-_.width/2:"start"===C.overlayX?this._isRtl()?-_.width:0:this._isRtl()?0:-_.width,o="center"==C.overlayY?-_.height/2:"top"==C.overlayY?0:-_.height,{x:u.x+h,y:u.y+o}}_getOverlayFit(u,_,C,h){const o=ue(_);let{x:n,y:t}=u,i=this._getOffset(h,"x"),a=this._getOffset(h,"y");i&&(n+=i),a&&(t+=a);let d=0-t,s=t+o.height-C.height,E=this._subtractOverflows(o.width,0-n,n+o.width-C.width),B=this._subtractOverflows(o.height,d,s),q=E*B;return{visibleArea:q,isCompletelyWithinViewport:o.width*o.height===q,fitsInViewportVertically:B===o.height,fitsInViewportHorizontally:E==o.width}}_canFitWithFlexibleDimensions(u,_,C){if(this._hasFlexibleDimensions){const h=C.bottom-_.y,o=C.right-_.x,n=Me(this._overlayRef.getConfig().minHeight),t=Me(this._overlayRef.getConfig().minWidth);return(u.fitsInViewportVertically||null!=n&&n<=h)&&(u.fitsInViewportHorizontally||null!=t&&t<=o)}return!1}_pushOverlayOnScreen(u,_,C){if(this._previousPushAmount&&this._positionLocked)return{x:u.x+this._previousPushAmount.x,y:u.y+this._previousPushAmount.y};const h=ue(_),o=this._viewportRect,n=Math.max(u.x+h.width-o.width,0),t=Math.max(u.y+h.height-o.height,0),i=Math.max(o.top-C.top-u.y,0),a=Math.max(o.left-C.left-u.x,0);let c=0,l=0;return c=h.width<=o.width?a||-n:u.xE&&!this._isInitialRender&&!this._growAfterOpen&&(n=u.y-E/2)}if("end"===_.overlayX&&!h||"start"===_.overlayX&&h)d=C.width-u.x+this._viewportMargin,c=u.x-this._viewportMargin;else if("start"===_.overlayX&&!h||"end"===_.overlayX&&h)l=u.x,c=C.right-u.x;else{const s=Math.min(C.right-u.x+C.left,u.x),E=this._lastBoundingBoxSize.width;c=2*s,l=u.x-s,c>E&&!this._isInitialRender&&!this._growAfterOpen&&(l=u.x-E/2)}return{top:n,left:l,bottom:t,right:d,width:c,height:o}}_setBoundingBoxStyles(u,_){const C=this._calculateBoundingBoxRect(u,_);!this._isInitialRender&&!this._growAfterOpen&&(C.height=Math.min(C.height,this._lastBoundingBoxSize.height),C.width=Math.min(C.width,this._lastBoundingBoxSize.width));const h={};if(this._hasExactPosition())h.top=h.left="0",h.bottom=h.right=h.maxHeight=h.maxWidth="",h.width=h.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,n=this._overlayRef.getConfig().maxWidth;h.height=(0,S.HM)(C.height),h.top=(0,S.HM)(C.top),h.bottom=(0,S.HM)(C.bottom),h.width=(0,S.HM)(C.width),h.left=(0,S.HM)(C.left),h.right=(0,S.HM)(C.right),h.alignItems="center"===_.overlayX?"center":"end"===_.overlayX?"flex-end":"flex-start",h.justifyContent="center"===_.overlayY?"center":"bottom"===_.overlayY?"flex-end":"flex-start",o&&(h.maxHeight=(0,S.HM)(o)),n&&(h.maxWidth=(0,S.HM)(n))}this._lastBoundingBoxSize=C,ce(this._boundingBox.style,h)}_resetBoundingBoxStyles(){ce(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ce(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(u,_){const C={},h=this._hasExactPosition(),o=this._hasFlexibleDimensions,n=this._overlayRef.getConfig();if(h){const c=this._viewportRuler.getViewportScrollPosition();ce(C,this._getExactOverlayY(_,u,c)),ce(C,this._getExactOverlayX(_,u,c))}else C.position="static";let t="",i=this._getOffset(_,"x"),a=this._getOffset(_,"y");i&&(t+=`translateX(${i}px) `),a&&(t+=`translateY(${a}px)`),C.transform=t.trim(),n.maxHeight&&(h?C.maxHeight=(0,S.HM)(n.maxHeight):o&&(C.maxHeight="")),n.maxWidth&&(h?C.maxWidth=(0,S.HM)(n.maxWidth):o&&(C.maxWidth="")),ce(this._pane.style,C)}_getExactOverlayY(u,_,C){let h={top:"",bottom:""},o=this._getOverlayPoint(_,this._overlayRect,u);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,C)),"bottom"===u.overlayY?h.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":h.top=(0,S.HM)(o.y),h}_getExactOverlayX(u,_,C){let n,h={left:"",right:""},o=this._getOverlayPoint(_,this._overlayRect,u);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,C)),n=this._isRtl()?"end"===u.overlayX?"left":"right":"end"===u.overlayX?"right":"left","right"===n?h.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":h.left=(0,S.HM)(o.x),h}_getScrollVisibility(){const u=this._getOriginRect(),_=this._pane.getBoundingClientRect(),C=this._scrollables.map(h=>h.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:re(u,C),isOriginOutsideView:pe(u,C),isOverlayClipped:re(_,C),isOverlayOutsideView:pe(_,C)}}_subtractOverflows(u,..._){return _.reduce((C,h)=>C-Math.max(h,0),u)}_getNarrowedViewportRect(){const u=this._document.documentElement.clientWidth,_=this._document.documentElement.clientHeight,C=this._viewportRuler.getViewportScrollPosition();return{top:C.top+this._viewportMargin,left:C.left+this._viewportMargin,right:C.left+u-this._viewportMargin,bottom:C.top+_-this._viewportMargin,width:u-2*this._viewportMargin,height:_-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(u,_){return"x"===_?null==u.offsetX?this._offsetX:u.offsetX:null==u.offsetY?this._offsetY:u.offsetY}_validatePositions(){}_addPanelClasses(u){this._pane&&(0,S.Eq)(u).forEach(_=>{""!==_&&-1===this._appliedPanelClasses.indexOf(_)&&(this._appliedPanelClasses.push(_),this._pane.classList.add(_))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(u=>{this._pane.classList.remove(u)}),this._appliedPanelClasses=[])}_getOriginRect(){const u=this._origin;if(u instanceof A.SBq)return u.nativeElement.getBoundingClientRect();if(u instanceof Element)return u.getBoundingClientRect();const _=u.width||0,C=u.height||0;return{top:u.y,bottom:u.y+C,left:u.x,right:u.x+_,height:C,width:_}}}function ce(r,u){for(let _ in u)u.hasOwnProperty(_)&&(r[_]=u[_]);return r}function Me(r){if("number"!=typeof r&&null!=r){const[u,_]=r.split(U);return _&&"px"!==_?null:parseFloat(u)}return r||null}function ue(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}const Ce="cdk-global-overlay-wrapper";class at{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(u){const _=u.getConfig();this._overlayRef=u,this._width&&!_.width&&u.updateSize({width:this._width}),this._height&&!_.height&&u.updateSize({height:this._height}),u.hostElement.classList.add(Ce),this._isDisposed=!1}top(u=""){return this._bottomOffset="",this._topOffset=u,this._alignItems="flex-start",this}left(u=""){return this._xOffset=u,this._xPosition="left",this}bottom(u=""){return this._topOffset="",this._bottomOffset=u,this._alignItems="flex-end",this}right(u=""){return this._xOffset=u,this._xPosition="right",this}start(u=""){return this._xOffset=u,this._xPosition="start",this}end(u=""){return this._xOffset=u,this._xPosition="end",this}width(u=""){return this._overlayRef?this._overlayRef.updateSize({width:u}):this._width=u,this}height(u=""){return this._overlayRef?this._overlayRef.updateSize({height:u}):this._height=u,this}centerHorizontally(u=""){return this.left(u),this._xPosition="center",this}centerVertically(u=""){return this.top(u),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const u=this._overlayRef.overlayElement.style,_=this._overlayRef.hostElement.style,C=this._overlayRef.getConfig(),{width:h,height:o,maxWidth:n,maxHeight:t}=C,i=!("100%"!==h&&"100vw"!==h||n&&"100%"!==n&&"100vw"!==n),a=!("100%"!==o&&"100vh"!==o||t&&"100%"!==t&&"100vh"!==t),c=this._xPosition,l=this._xOffset,d="rtl"===this._overlayRef.getConfig().direction;let s="",E="",B="";i?B="flex-start":"center"===c?(B="center",d?E=l:s=l):d?"left"===c||"end"===c?(B="flex-end",s=l):("right"===c||"start"===c)&&(B="flex-start",E=l):"left"===c||"start"===c?(B="flex-start",s=l):("right"===c||"end"===c)&&(B="flex-end",E=l),u.position=this._cssPosition,u.marginLeft=i?"0":s,u.marginTop=a?"0":this._topOffset,u.marginBottom=this._bottomOffset,u.marginRight=i?"0":E,_.justifyContent=B,_.alignItems=a?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const u=this._overlayRef.overlayElement.style,_=this._overlayRef.hostElement,C=_.style;_.classList.remove(Ce),C.justifyContent=C.alignItems=u.marginTop=u.marginBottom=u.marginLeft=u.marginRight=u.position="",this._overlayRef=null,this._isDisposed=!0}}let Ue=(()=>{class r{constructor(_,C,h,o){this._viewportRuler=_,this._document=C,this._platform=h,this._overlayContainer=o}global(){return new at}flexibleConnectedTo(_){return new X(_,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return r.\u0275fac=function(_){return new(_||r)(A.LFG(e.rL),A.LFG(f.K0),A.LFG(m.t4),A.LFG(Ve))},r.\u0275prov=A.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),pt=0,z=(()=>{class r{constructor(_,C,h,o,n,t,i,a,c,l,d,s){this.scrollStrategies=_,this._overlayContainer=C,this._componentFactoryResolver=h,this._positionBuilder=o,this._keyboardDispatcher=n,this._injector=t,this._ngZone=i,this._document=a,this._directionality=c,this._location=l,this._outsideClickDispatcher=d,this._animationsModuleType=s}create(_){const C=this._createHostElement(),h=this._createPaneElement(C),o=this._createPortalOutlet(h),n=new W(_);return n.direction=n.direction||this._directionality.value,new le(o,C,h,n,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(_){const C=this._document.createElement("div");return C.id="cdk-overlay-"+pt++,C.classList.add("cdk-overlay-pane"),_.appendChild(C),C}_createHostElement(){const _=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(_),_}_createPortalOutlet(_){return this._appRef||(this._appRef=this._injector.get(A.z2F)),new w.u0(_,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return r.\u0275fac=function(_){return new(_||r)(A.LFG(V),A.LFG(Ve),A.LFG(A._Vd),A.LFG(Ue),A.LFG(Je),A.LFG(A.zs3),A.LFG(A.R0b),A.LFG(f.K0),A.LFG(M.Is),A.LFG(f.Ye),A.LFG(Fe),A.LFG(A.QbO,8))},r.\u0275prov=A.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const st=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],be=new A.OlP("cdk-connected-overlay-scroll-strategy");let Ye=(()=>{class r{constructor(_){this.elementRef=_}}return r.\u0275fac=function(_){return new(_||r)(A.Y36(A.SBq))},r.\u0275dir=A.lG2({type:r,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),r})(),he=(()=>{class r{constructor(_,C,h,o,n){this._overlay=_,this._dir=n,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=I.w0.EMPTY,this._attachSubscription=I.w0.EMPTY,this._detachSubscription=I.w0.EMPTY,this._positionSubscription=I.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new A.vpe,this.positionChange=new A.vpe,this.attach=new A.vpe,this.detach=new A.vpe,this.overlayKeydown=new A.vpe,this.overlayOutsideClick=new A.vpe,this._templatePortal=new w.UE(C,h),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(_){this._offsetX=_,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(_){this._offsetY=_,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(_){this._hasBackdrop=(0,S.Ig)(_)}get lockPosition(){return this._lockPosition}set lockPosition(_){this._lockPosition=(0,S.Ig)(_)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(_){this._flexibleDimensions=(0,S.Ig)(_)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(_){this._growAfterOpen=(0,S.Ig)(_)}get push(){return this._push}set push(_){this._push=(0,S.Ig)(_)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(_){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),_.origin&&this.open&&this._position.apply()),_.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=st);const _=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=_.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=_.detachments().subscribe(()=>this.detach.emit()),_.keydownEvents().subscribe(C=>{this.overlayKeydown.next(C),C.keyCode===J.hY&&!this.disableClose&&!(0,J.Vb)(C)&&(C.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(C=>{this.overlayOutsideClick.next(C)})}_buildConfig(){const _=this._position=this.positionStrategy||this._createPositionStrategy(),C=new W({direction:this._dir,positionStrategy:_,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(C.width=this.width),(this.height||0===this.height)&&(C.height=this.height),(this.minWidth||0===this.minWidth)&&(C.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(C.minHeight=this.minHeight),this.backdropClass&&(C.backdropClass=this.backdropClass),this.panelClass&&(C.panelClass=this.panelClass),C}_updatePositionStrategy(_){const C=this.positions.map(h=>({originX:h.originX,originY:h.originY,overlayX:h.overlayX,overlayY:h.overlayY,offsetX:h.offsetX||this.offsetX,offsetY:h.offsetY||this.offsetY,panelClass:h.panelClass||void 0}));return _.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(C).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const _=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(_),_}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Ye?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(_=>{this.backdropClick.emit(_)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,P.o)(()=>this.positionChange.observers.length>0)).subscribe(_=>{this.positionChange.emit(_),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return r.\u0275fac=function(_){return new(_||r)(A.Y36(z),A.Y36(A.Rgc),A.Y36(A.s_b),A.Y36(be),A.Y36(M.Is,8))},r.\u0275dir=A.lG2({type:r,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[A.TTD]}),r})();const He={provide:be,deps:[z],useFactory:function Re(r){return()=>r.scrollStrategies.reposition()}};let ve=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275mod=A.oAB({type:r}),r.\u0275inj=A.cJS({providers:[z,He],imports:[M.vT,w.eL,e.Cl,e.Cl]}),r})()},83353:(Qe,ae,p)=>{"use strict";p.d(ae,{Mq:()=>J,Oy:()=>re,_i:()=>fe,ht:()=>ge,i$:()=>T,kV:()=>_e,qK:()=>x,sA:()=>pe,t4:()=>S,ud:()=>m});var e=p(94650),f=p(36895);let A;try{A=typeof Intl<"u"&&Intl.v8BreakIterator}catch{A=!1}let M,S=(()=>{class v{constructor(W){this._platformId=W,this.isBrowser=this._platformId?(0,f.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!A)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return v.\u0275fac=function(W){return new(W||v)(e.LFG(e.Lbi))},v.\u0275prov=e.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})(),m=(()=>{class v{}return v.\u0275fac=function(W){return new(W||v)},v.\u0275mod=e.oAB({type:v}),v.\u0275inj=e.cJS({}),v})();const w=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function x(){if(M)return M;if("object"!=typeof document||!document)return M=new Set(w),M;let v=document.createElement("input");return M=new Set(w.filter(V=>(v.setAttribute("type",V),v.type===V))),M}let I,H,P,j;function T(v){return function F(){if(null==I&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>I=!0}))}finally{I=I||!1}return I}()?v:!!v.capture}function J(){if(null==P){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return P=!1,P;if("scrollBehavior"in document.documentElement.style)P=!0;else{const v=Element.prototype.scrollTo;P=!!v&&!/\{\s*\[native code\]\s*\}/.test(v.toString())}}return P}function fe(){if("object"!=typeof document||!document)return 0;if(null==H){const v=document.createElement("div"),V=v.style;v.dir="rtl",V.width="1px",V.overflow="auto",V.visibility="hidden",V.pointerEvents="none",V.position="absolute";const W=document.createElement("div"),te=W.style;te.width="2px",te.height="1px",v.appendChild(W),document.body.appendChild(v),H=0,0===v.scrollLeft&&(v.scrollLeft=1,H=0===v.scrollLeft?1:2),v.remove()}return H}function _e(v){if(function $(){if(null==j){const v=typeof document<"u"?document.head:null;j=!(!v||!v.createShadowRoot&&!v.attachShadow)}return j}()){const V=v.getRootNode?v.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&V instanceof ShadowRoot)return V}return null}function ge(){let v=typeof document<"u"&&document?document.activeElement:null;for(;v&&v.shadowRoot;){const V=v.shadowRoot.activeElement;if(V===v)break;v=V}return v}function pe(v){return v.composedPath?v.composedPath()[0]:v.target}function re(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(Qe,ae,p)=>{"use strict";p.d(ae,{C5:()=>F,Pl:()=>ge,UE:()=>T,eL:()=>re,en:()=>P,ig:()=>$,u0:()=>fe});var e=p(94650),f=p(36895);class I{attach(W){return this._attachedHost=W,W.attach(this)}detach(){let W=this._attachedHost;null!=W&&(this._attachedHost=null,W.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(W){this._attachedHost=W}}class F extends I{constructor(W,te,ne,ye,ze){super(),this.component=W,this.viewContainerRef=te,this.injector=ne,this.componentFactoryResolver=ye,this.projectableNodes=ze}}class T extends I{constructor(W,te,ne,ye){super(),this.templateRef=W,this.viewContainerRef=te,this.context=ne,this.injector=ye}get origin(){return this.templateRef.elementRef}attach(W,te=this.context){return this.context=te,super.attach(W)}detach(){return this.context=void 0,super.detach()}}class H extends I{constructor(W){super(),this.element=W instanceof e.SBq?W.nativeElement:W}}class P{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(W){return W instanceof F?(this._attachedPortal=W,this.attachComponentPortal(W)):W instanceof T?(this._attachedPortal=W,this.attachTemplatePortal(W)):this.attachDomPortal&&W instanceof H?(this._attachedPortal=W,this.attachDomPortal(W)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(W){this._disposeFn=W}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class fe extends P{constructor(W,te,ne,ye,ze){super(),this.outletElement=W,this._componentFactoryResolver=te,this._appRef=ne,this._defaultInjector=ye,this.attachDomPortal=ke=>{const $e=ke.element,Je=this._document.createComment("dom-portal");$e.parentNode.insertBefore(Je,$e),this.outletElement.appendChild($e),this._attachedPortal=ke,super.setDisposeFn(()=>{Je.parentNode&&Je.parentNode.replaceChild($e,Je)})},this._document=ze}attachComponentPortal(W){const ne=(W.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(W.component);let ye;return W.viewContainerRef?(ye=W.viewContainerRef.createComponent(ne,W.viewContainerRef.length,W.injector||W.viewContainerRef.injector,W.projectableNodes||void 0),this.setDisposeFn(()=>ye.destroy())):(ye=ne.create(W.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(ye.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ye.hostView),ye.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ye)),this._attachedPortal=W,ye}attachTemplatePortal(W){let te=W.viewContainerRef,ne=te.createEmbeddedView(W.templateRef,W.context,{injector:W.injector});return ne.rootNodes.forEach(ye=>this.outletElement.appendChild(ye)),ne.detectChanges(),this.setDisposeFn(()=>{let ye=te.indexOf(ne);-1!==ye&&te.remove(ye)}),this._attachedPortal=W,ne}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(W){return W.hostView.rootNodes[0]}}let $=(()=>{class V extends T{constructor(te,ne){super(te,ne)}}return V.\u0275fac=function(te){return new(te||V)(e.Y36(e.Rgc),e.Y36(e.s_b))},V.\u0275dir=e.lG2({type:V,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),V})(),ge=(()=>{class V extends P{constructor(te,ne,ye){super(),this._componentFactoryResolver=te,this._viewContainerRef=ne,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=ze=>{const ke=ze.element,$e=this._document.createComment("dom-portal");ze.setAttachedHost(this),ke.parentNode.insertBefore($e,ke),this._getRootNode().appendChild(ke),this._attachedPortal=ze,super.setDisposeFn(()=>{$e.parentNode&&$e.parentNode.replaceChild(ke,$e)})},this._document=ye}get portal(){return this._attachedPortal}set portal(te){this.hasAttached()&&!te&&!this._isInitialized||(this.hasAttached()&&super.detach(),te&&super.attach(te),this._attachedPortal=te||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(te){te.setAttachedHost(this);const ne=null!=te.viewContainerRef?te.viewContainerRef:this._viewContainerRef,ze=(te.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(te.component),ke=ne.createComponent(ze,ne.length,te.injector||ne.injector,te.projectableNodes||void 0);return ne!==this._viewContainerRef&&this._getRootNode().appendChild(ke.hostView.rootNodes[0]),super.setDisposeFn(()=>ke.destroy()),this._attachedPortal=te,this._attachedRef=ke,this.attached.emit(ke),ke}attachTemplatePortal(te){te.setAttachedHost(this);const ne=this._viewContainerRef.createEmbeddedView(te.templateRef,te.context,{injector:te.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=te,this._attachedRef=ne,this.attached.emit(ne),ne}_getRootNode(){const te=this._viewContainerRef.element.nativeElement;return te.nodeType===te.ELEMENT_NODE?te:te.parentNode}}return V.\u0275fac=function(te){return new(te||V)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(f.K0))},V.\u0275dir=e.lG2({type:V,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),V})(),re=(()=>{class V{}return V.\u0275fac=function(te){return new(te||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({}),V})()},67376:(Qe,ae,p)=>{"use strict";p.d(ae,{Cl:()=>at,N7:()=>ce,PQ:()=>Je,ZD:()=>Ce,mF:()=>$e,rL:()=>Ve,x0:()=>ue,xd:()=>ze});var e=p(21281),f=p(94650),A=p(77579),S=p(39646),m=p(69751),M=p(54968),w=p(66406),x=p(53101),I=p(50727),F=p(45191),T=p(71884),H=p(23601),P=p(39300),J=p(82722),fe=p(68675),j=p(11520),$=p(63900),_e=p(34782),ge=p(83353),pe=p(36895),re=p(40445),v=p(95017);const V=["contentWrapper"],W=["*"],te=new f.OlP("VIRTUAL_SCROLL_STRATEGY");class ne{constructor(pt,z,st){this._scrolledIndexChange=new A.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,T.x)()),this._viewport=null,this._itemSize=pt,this._minBufferPx=z,this._maxBufferPx=st}attach(pt){this._viewport=pt,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(pt,z,st){this._itemSize=pt,this._minBufferPx=z,this._maxBufferPx=st,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(pt,z){this._viewport&&this._viewport.scrollToOffset(pt*this._itemSize,z)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const pt=this._viewport.getRenderedRange(),z={start:pt.start,end:pt.end},st=this._viewport.getViewportSize(),be=this._viewport.getDataLength();let Ye=this._viewport.measureScrollOffset(),he=this._itemSize>0?Ye/this._itemSize:0;if(z.end>be){const He=Math.ceil(st/this._itemSize),ve=Math.max(0,Math.min(he,be-He));he!=ve&&(he=ve,Ye=ve*this._itemSize,z.start=Math.floor(he)),z.end=Math.max(0,Math.min(be,z.start+He))}const Re=Ye-z.start*this._itemSize;if(Re0&&(z.end=Math.min(be,z.end+ve),z.start=Math.max(0,Math.floor(he-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(z),this._viewport.setRenderedContentOffset(this._itemSize*z.start),this._scrolledIndexChange.next(Math.floor(he))}}function ye(Ue){return Ue._scrollStrategy}let ze=(()=>{class Ue{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new ne(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(z){this._itemSize=(0,e.su)(z)}get minBufferPx(){return this._minBufferPx}set minBufferPx(z){this._minBufferPx=(0,e.su)(z)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(z){this._maxBufferPx=(0,e.su)(z)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Ue.\u0275fac=function(z){return new(z||Ue)},Ue.\u0275dir=f.lG2({type:Ue,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[f._Bn([{provide:te,useFactory:ye,deps:[(0,f.Gpc)(()=>Ue)]}]),f.TTD]}),Ue})(),$e=(()=>{class Ue{constructor(z,st,be){this._ngZone=z,this._platform=st,this._scrolled=new A.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=be}register(z){this.scrollContainers.has(z)||this.scrollContainers.set(z,z.elementScrolled().subscribe(()=>this._scrolled.next(z)))}deregister(z){const st=this.scrollContainers.get(z);st&&(st.unsubscribe(),this.scrollContainers.delete(z))}scrolled(z=20){return this._platform.isBrowser?new m.y(st=>{this._globalSubscription||this._addGlobalListener();const be=z>0?this._scrolled.pipe((0,H.e)(z)).subscribe(st):this._scrolled.subscribe(st);return this._scrolledCount++,()=>{be.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,S.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((z,st)=>this.deregister(st)),this._scrolled.complete()}ancestorScrolled(z,st){const be=this.getAncestorScrollContainers(z);return this.scrolled(st).pipe((0,P.h)(Ye=>!Ye||be.indexOf(Ye)>-1))}getAncestorScrollContainers(z){const st=[];return this.scrollContainers.forEach((be,Ye)=>{this._scrollableContainsElement(Ye,z)&&st.push(Ye)}),st}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(z,st){let be=(0,e.fI)(st),Ye=z.getElementRef().nativeElement;do{if(be==Ye)return!0}while(be=be.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const z=this._getWindow();return(0,M.R)(z.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Ue.\u0275fac=function(z){return new(z||Ue)(f.LFG(f.R0b),f.LFG(ge.t4),f.LFG(pe.K0,8))},Ue.\u0275prov=f.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})(),Je=(()=>{class Ue{constructor(z,st,be,Ye){this.elementRef=z,this.scrollDispatcher=st,this.ngZone=be,this.dir=Ye,this._destroyed=new A.x,this._elementScrolled=new m.y(he=>this.ngZone.runOutsideAngular(()=>(0,M.R)(this.elementRef.nativeElement,"scroll").pipe((0,J.R)(this._destroyed)).subscribe(he)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(z){const st=this.elementRef.nativeElement,be=this.dir&&"rtl"==this.dir.value;null==z.left&&(z.left=be?z.end:z.start),null==z.right&&(z.right=be?z.start:z.end),null!=z.bottom&&(z.top=st.scrollHeight-st.clientHeight-z.bottom),be&&0!=(0,ge._i)()?(null!=z.left&&(z.right=st.scrollWidth-st.clientWidth-z.left),2==(0,ge._i)()?z.left=z.right:1==(0,ge._i)()&&(z.left=z.right?-z.right:z.right)):null!=z.right&&(z.left=st.scrollWidth-st.clientWidth-z.right),this._applyScrollToOptions(z)}_applyScrollToOptions(z){const st=this.elementRef.nativeElement;(0,ge.Mq)()?st.scrollTo(z):(null!=z.top&&(st.scrollTop=z.top),null!=z.left&&(st.scrollLeft=z.left))}measureScrollOffset(z){const st="left",Ye=this.elementRef.nativeElement;if("top"==z)return Ye.scrollTop;if("bottom"==z)return Ye.scrollHeight-Ye.clientHeight-Ye.scrollTop;const he=this.dir&&"rtl"==this.dir.value;return"start"==z?z=he?"right":st:"end"==z&&(z=he?st:"right"),he&&2==(0,ge._i)()?z==st?Ye.scrollWidth-Ye.clientWidth-Ye.scrollLeft:Ye.scrollLeft:he&&1==(0,ge._i)()?z==st?Ye.scrollLeft+Ye.scrollWidth-Ye.clientWidth:-Ye.scrollLeft:z==st?Ye.scrollLeft:Ye.scrollWidth-Ye.clientWidth-Ye.scrollLeft}}return Ue.\u0275fac=function(z){return new(z||Ue)(f.Y36(f.SBq),f.Y36($e),f.Y36(f.R0b),f.Y36(re.Is,8))},Ue.\u0275dir=f.lG2({type:Ue,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),Ue})(),Ve=(()=>{class Ue{constructor(z,st,be){this._platform=z,this._change=new A.x,this._changeListener=Ye=>{this._change.next(Ye)},this._document=be,st.runOutsideAngular(()=>{if(z.isBrowser){const Ye=this._getWindow();Ye.addEventListener("resize",this._changeListener),Ye.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const z=this._getWindow();z.removeEventListener("resize",this._changeListener),z.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const z={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),z}getViewportRect(){const z=this.getViewportScrollPosition(),{width:st,height:be}=this.getViewportSize();return{top:z.top,left:z.left,bottom:z.top+be,right:z.left+st,height:be,width:st}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const z=this._document,st=this._getWindow(),be=z.documentElement,Ye=be.getBoundingClientRect();return{top:-Ye.top||z.body.scrollTop||st.scrollY||be.scrollTop||0,left:-Ye.left||z.body.scrollLeft||st.scrollX||be.scrollLeft||0}}change(z=20){return z>0?this._change.pipe((0,H.e)(z)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const z=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:z.innerWidth,height:z.innerHeight}:{width:0,height:0}}}return Ue.\u0275fac=function(z){return new(z||Ue)(f.LFG(ge.t4),f.LFG(f.R0b),f.LFG(pe.K0,8))},Ue.\u0275prov=f.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})();const le=new f.OlP("VIRTUAL_SCROLLABLE");let N=(()=>{class Ue extends Je{constructor(z,st,be,Ye){super(z,st,be,Ye)}measureViewportSize(z){const st=this.elementRef.nativeElement;return"horizontal"===z?st.clientWidth:st.clientHeight}}return Ue.\u0275fac=function(z){return new(z||Ue)(f.Y36(f.SBq),f.Y36($e),f.Y36(f.R0b),f.Y36(re.Is,8))},Ue.\u0275dir=f.lG2({type:Ue,features:[f.qOj]}),Ue})();const X=typeof requestAnimationFrame<"u"?w.Z:x.E;let ce=(()=>{class Ue extends N{constructor(z,st,be,Ye,he,Re,He,ve){super(z,Re,be,he),this.elementRef=z,this._changeDetectorRef=st,this._scrollStrategy=Ye,this.scrollable=ve,this._platform=(0,f.f3M)(ge.t4),this._detachedSubject=new A.x,this._renderedRangeSubject=new A.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new m.y(Oe=>this._scrollStrategy.scrolledIndexChange.subscribe(r=>Promise.resolve().then(()=>this.ngZone.run(()=>Oe.next(r))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=I.w0.EMPTY,this._viewportChanges=He.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(z){this._orientation!==z&&(this._orientation=z,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(z){this._appendOnly=(0,e.Ig)(z)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,fe.O)(null),(0,H.e)(0,X)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(z){this.ngZone.runOutsideAngular(()=>{this._forOf=z,this._forOf.dataStream.pipe((0,J.R)(this._detachedSubject)).subscribe(st=>{const be=st.length;be!==this._dataLength&&(this._dataLength=be,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(z){return this.getElementRef().nativeElement.getBoundingClientRect()[z]}setTotalContentSize(z){this._totalContentSize!==z&&(this._totalContentSize=z,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(z){(function U(Ue,pt){return Ue.start==pt.start&&Ue.end==pt.end})(this._renderedRange,z)||(this.appendOnly&&(z={start:0,end:Math.max(this._renderedRange.end,z.end)}),this._renderedRangeSubject.next(this._renderedRange=z),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(z,st="to-start"){z=this.appendOnly&&"to-start"===st?0:z;const Ye="horizontal"==this.orientation,he=Ye?"X":"Y";let He=`translate${he}(${Number((Ye&&this.dir&&"rtl"==this.dir.value?-1:1)*z)}px)`;this._renderedContentOffset=z,"to-end"===st&&(He+=` translate${he}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=He&&(this._renderedContentTransform=He,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(z,st="auto"){const be={behavior:st};"horizontal"===this.orientation?be.start=z:be.top=z,this.scrollable.scrollTo(be)}scrollToIndex(z,st="auto"){this._scrollStrategy.scrollToIndex(z,st)}measureScrollOffset(z){let st;return st=this.scrollable==this?be=>super.measureScrollOffset(be):be=>this.scrollable.measureScrollOffset(be),Math.max(0,st(z??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(z){let st;const he="rtl"==this.dir?.value;st="start"==z?he?"right":"left":"end"==z?he?"left":"right":z||("horizontal"===this.orientation?"left":"top");const Re=this.scrollable.measureBoundingClientRectWithScrollOffset(st);return this.elementRef.nativeElement.getBoundingClientRect()[st]-Re}measureRenderedContentSize(){const z=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?z.offsetWidth:z.offsetHeight}measureRangeSize(z){return this._forOf?this._forOf.measureRangeSize(z,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(z){z&&this._runAfterChangeDetection.push(z),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const z=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const st of z)st()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Ue.\u0275fac=function(z){return new(z||Ue)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(f.R0b),f.Y36(te,8),f.Y36(re.Is,8),f.Y36($e),f.Y36(Ve),f.Y36(le,8))},Ue.\u0275cmp=f.Xpm({type:Ue,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(z,st){if(1&z&&f.Gf(V,7),2&z){let be;f.iGM(be=f.CRH())&&(st._contentWrapper=be.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(z,st){2&z&&f.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===st.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==st.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[f._Bn([{provide:Je,useFactory:(pt,z)=>pt||z,deps:[[new f.FiY,new f.tBr(le)],Ue]}]),f.qOj,f.jDz],ngContentSelectors:W,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(z,st){1&z&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA(),f._UZ(3,"div",2)),2&z&&(f.xp6(3),f.Udp("width",st._totalContentWidth)("height",st._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),Ue})();function Me(Ue,pt,z){if(!z.getBoundingClientRect)return 0;const be=z.getBoundingClientRect();return"horizontal"===Ue?"start"===pt?be.left:be.right:"start"===pt?be.top:be.bottom}let ue=(()=>{class Ue{constructor(z,st,be,Ye,he,Re){this._viewContainerRef=z,this._template=st,this._differs=be,this._viewRepeater=Ye,this._viewport=he,this.viewChange=new A.x,this._dataSourceChanges=new A.x,this.dataStream=this._dataSourceChanges.pipe((0,fe.O)(null),(0,j.G)(),(0,$.w)(([He,ve])=>this._changeDataSource(He,ve)),(0,_e.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new A.x,this.dataStream.subscribe(He=>{this._data=He,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,J.R)(this._destroyed)).subscribe(He=>{this._renderedRange=He,this.viewChange.observers.length&&Re.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(z){this._cdkVirtualForOf=z,(0,v.Z9)(z)?this._dataSourceChanges.next(z):this._dataSourceChanges.next(new v.P3((0,F.b)(z)?z:Array.from(z||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(z){this._needsUpdate=!0,this._cdkVirtualForTrackBy=z?(st,be)=>z(st+(this._renderedRange?this._renderedRange.start:0),be):void 0}set cdkVirtualForTemplate(z){z&&(this._needsUpdate=!0,this._template=z)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(z){this._viewRepeater.viewCacheSize=(0,e.su)(z)}measureRangeSize(z,st){if(z.start>=z.end)return 0;const be=z.start-this._renderedRange.start,Ye=z.end-z.start;let he,Re;for(let He=0;He-1;He--){const ve=this._viewContainerRef.get(He+be);if(ve&&ve.rootNodes.length){Re=ve.rootNodes[ve.rootNodes.length-1];break}}return he&&Re?Me(st,"end",Re)-Me(st,"start",he):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const z=this._differ.diff(this._renderedItems);z?this._applyChanges(z):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((z,st)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(z,st):st)),this._needsUpdate=!0)}_changeDataSource(z,st){return z&&z.disconnect(this),this._needsUpdate=!0,st?st.connect(this):(0,S.of)()}_updateContext(){const z=this._data.length;let st=this._viewContainerRef.length;for(;st--;){const be=this._viewContainerRef.get(st);be.context.index=this._renderedRange.start+st,be.context.count=z,this._updateComputedContextProperties(be.context),be.detectChanges()}}_applyChanges(z){this._viewRepeater.applyChanges(z,this._viewContainerRef,(Ye,he,Re)=>this._getEmbeddedViewArgs(Ye,Re),Ye=>Ye.item),z.forEachIdentityChange(Ye=>{this._viewContainerRef.get(Ye.currentIndex).context.$implicit=Ye.item});const st=this._data.length;let be=this._viewContainerRef.length;for(;be--;){const Ye=this._viewContainerRef.get(be);Ye.context.index=this._renderedRange.start+be,Ye.context.count=st,this._updateComputedContextProperties(Ye.context)}}_updateComputedContextProperties(z){z.first=0===z.index,z.last=z.index===z.count-1,z.even=z.index%2==0,z.odd=!z.even}_getEmbeddedViewArgs(z,st){return{templateRef:this._template,context:{$implicit:z.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:st}}}return Ue.\u0275fac=function(z){return new(z||Ue)(f.Y36(f.s_b),f.Y36(f.Rgc),f.Y36(f.ZZ4),f.Y36(v.k),f.Y36(ce,4),f.Y36(f.R0b))},Ue.\u0275dir=f.lG2({type:Ue,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[f._Bn([{provide:v.k,useClass:v.eX}])]}),Ue})(),Ce=(()=>{class Ue{}return Ue.\u0275fac=function(z){return new(z||Ue)},Ue.\u0275mod=f.oAB({type:Ue}),Ue.\u0275inj=f.cJS({}),Ue})(),at=(()=>{class Ue{}return Ue.\u0275fac=function(z){return new(z||Ue)},Ue.\u0275mod=f.oAB({type:Ue}),Ue.\u0275inj=f.cJS({imports:[re.vT,Ce,ce,re.vT,Ce]}),Ue})()},39349:(Qe,ae,p)=>{"use strict";p.d(ae,{IC:()=>P,Ky:()=>J,Lq:()=>T});var e=p(83353),f=p(94650),A=p(21281),S=p(60515),m=p(77579),M=p(54968),w=p(23601),x=p(82722),I=p(36895);const F=(0,e.i$)({passive:!0});let T=(()=>{class fe{constructor($,_e){this._platform=$,this._ngZone=_e,this._monitoredElements=new Map}monitor($){if(!this._platform.isBrowser)return S.E;const _e=(0,A.fI)($),ge=this._monitoredElements.get(_e);if(ge)return ge.subject;const pe=new m.x,re="cdk-text-field-autofilled",v=V=>{"cdk-text-field-autofill-start"!==V.animationName||_e.classList.contains(re)?"cdk-text-field-autofill-end"===V.animationName&&_e.classList.contains(re)&&(_e.classList.remove(re),this._ngZone.run(()=>pe.next({target:V.target,isAutofilled:!1}))):(_e.classList.add(re),this._ngZone.run(()=>pe.next({target:V.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{_e.addEventListener("animationstart",v,F),_e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(_e,{subject:pe,unlisten:()=>{_e.removeEventListener("animationstart",v,F)}}),pe}stopMonitoring($){const _e=(0,A.fI)($),ge=this._monitoredElements.get(_e);ge&&(ge.unlisten(),ge.subject.complete(),_e.classList.remove("cdk-text-field-autofill-monitored"),_e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(_e))}ngOnDestroy(){this._monitoredElements.forEach(($,_e)=>this.stopMonitoring(_e))}}return fe.\u0275fac=function($){return new($||fe)(f.LFG(e.t4),f.LFG(f.R0b))},fe.\u0275prov=f.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),P=(()=>{class fe{constructor($,_e,ge,pe){this._elementRef=$,this._platform=_e,this._ngZone=ge,this._destroyed=new m.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=re=>{this._hasFocus="focus"===re.type},this._document=pe,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows($){this._minRows=(0,A.su)($),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows($){this._maxRows=(0,A.su)($),this._setMaxHeight()}get enabled(){return this._enabled}set enabled($){$=(0,A.Ig)($),this._enabled!==$&&((this._enabled=$)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder($){this._cachedPlaceholderHeight=void 0,$?this._textareaElement.setAttribute("placeholder",$):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const $=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;$&&(this._textareaElement.style.minHeight=$)}_setMaxHeight(){const $=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;$&&(this._textareaElement.style.maxHeight=$)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const $=this._getWindow();(0,M.R)($,"resize").pipe((0,w.e)(16),(0,x.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let $=this._textareaElement.cloneNode(!1);$.rows=1,$.style.position="absolute",$.style.visibility="hidden",$.style.border="none",$.style.padding="0",$.style.height="",$.style.minHeight="",$.style.maxHeight="",$.style.overflow="hidden",this._textareaElement.parentNode.appendChild($),this._cachedLineHeight=$.clientHeight,$.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const $=this._textareaElement,_e=$.style.marginBottom||"",ge=this._platform.FIREFOX,pe=ge&&this._hasFocus,re=ge?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";pe&&($.style.marginBottom=`${$.clientHeight}px`),$.classList.add(re);const v=$.scrollHeight-4;return $.classList.remove(re),pe&&($.style.marginBottom=_e),v}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const $=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=$}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent($=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const _e=this._elementRef.nativeElement,ge=_e.value;if(!$&&this._minRows===this._previousMinRows&&ge===this._previousValue)return;const pe=this._measureScrollHeight(),re=Math.max(pe,this._cachedPlaceholderHeight||0);_e.style.height=`${re}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(_e)):setTimeout(()=>this._scrollToCaretPosition(_e))}),this._previousValue=ge,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition($){const{selectionStart:_e,selectionEnd:ge}=$;!this._destroyed.isStopped&&this._hasFocus&&$.setSelectionRange(_e,ge)}}return fe.\u0275fac=function($){return new($||fe)(f.Y36(f.SBq),f.Y36(e.t4),f.Y36(f.R0b),f.Y36(I.K0,8))},fe.\u0275dir=f.lG2({type:fe,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function($,_e){1&$&&f.NdJ("input",function(){return _e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),fe})(),J=(()=>{class fe{}return fe.\u0275fac=function($){return new($||fe)},fe.\u0275mod=f.oAB({type:fe}),fe.\u0275inj=f.cJS({}),fe})()},57851:(Qe,ae,p)=>{"use strict";p.d(ae,{C2:()=>P,HI:()=>fe,Hs:()=>te,Ud:()=>Je,VY:()=>J,XJ:()=>$e,Xx:()=>ze,_0:()=>W,cu:()=>j,nZ:()=>Ve,rO:()=>_e});var e=p(95017),f=p(45191),A=p(77579),S=p(61135),m=p(39646),M=p(95698),w=p(39300),x=p(82722),I=p(94650),F=p(21281),T=p(40445);class H{constructor(){this.expansionModel=new e.Ov(!0)}toggle(N){this.expansionModel.toggle(this._trackByValue(N))}expand(N){this.expansionModel.select(this._trackByValue(N))}collapse(N){this.expansionModel.deselect(this._trackByValue(N))}isExpanded(N){return this.expansionModel.isSelected(this._trackByValue(N))}toggleDescendants(N){this.expansionModel.isSelected(this._trackByValue(N))?this.collapseDescendants(N):this.expandDescendants(N)}collapseAll(){this.expansionModel.clear()}expandDescendants(N){let U=[N];U.push(...this.getDescendants(N)),this.expansionModel.select(...U.map(X=>this._trackByValue(X)))}collapseDescendants(N){let U=[N];U.push(...this.getDescendants(N)),this.expansionModel.deselect(...U.map(X=>this._trackByValue(X)))}_trackByValue(N){return this.trackBy?this.trackBy(N):N}}class P extends H{constructor(N,U,X){super(),this.getLevel=N,this.isExpandable=U,this.options=X,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(N){const X=[];for(let ce=this.dataNodes.indexOf(N)+1;cethis._trackByValue(N)))}}class J extends H{constructor(N,U){super(),this.getChildren=N,this.options=U,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const N=this.dataNodes.reduce((U,X)=>[...U,...this.getDescendants(X),X],[]);this.expansionModel.select(...N.map(U=>this._trackByValue(U)))}getDescendants(N){const U=[];return this._getDescendants(U,N),U.splice(1)}_getDescendants(N,U){N.push(U);const X=this.getChildren(U);Array.isArray(X)?X.forEach(ce=>this._getDescendants(N,ce)):(0,f.b)(X)&&X.pipe((0,M.q)(1),(0,w.h)(Boolean)).subscribe(ce=>{for(const Me of ce)this._getDescendants(N,Me)})}}const fe=new I.OlP("CDK_TREE_NODE_OUTLET_NODE");let j=(()=>{class le{constructor(U,X){this.viewContainer=U,this._node=X}}return le.\u0275fac=function(U){return new(U||le)(I.Y36(I.s_b),I.Y36(fe,8))},le.\u0275dir=I.lG2({type:le,selectors:[["","cdkTreeNodeOutlet",""]]}),le})();class ${constructor(N){this.$implicit=N}}let _e=(()=>{class le{constructor(U){this.template=U}}return le.\u0275fac=function(U){return new(U||le)(I.Y36(I.Rgc))},le.\u0275dir=I.lG2({type:le,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),le})(),W=(()=>{class le{constructor(U,X){this._differs=U,this._changeDetectorRef=X,this._onDestroy=new A.x,this._levels=new Map,this.viewChange=new S.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(U){this._dataSource!==U&&this._switchDataSource(U)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const U=this._nodeDefs.filter(X=>!X.when);this._defaultNodeDef=U[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(U){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),U||this._nodeOutlet.viewContainer.clear(),this._dataSource=U,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let U;(0,e.Z9)(this._dataSource)?U=this._dataSource.connect(this):(0,f.b)(this._dataSource)?U=this._dataSource:Array.isArray(this._dataSource)&&(U=(0,m.of)(this._dataSource)),U&&(this._dataSubscription=U.pipe((0,x.R)(this._onDestroy)).subscribe(X=>this.renderNodeChanges(X)))}renderNodeChanges(U,X=this._dataDiffer,ce=this._nodeOutlet.viewContainer,Me){const ue=X.diff(U);ue&&(ue.forEachOperation((Pe,tt,Ce)=>{if(null==Pe.previousIndex)this.insertNode(U[Ce],Ce,ce,Me);else if(null==Ce)ce.remove(tt),this._levels.delete(Pe.item);else{const at=ce.get(tt);ce.move(at,Ce)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(U,X){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(Me=>Me.when&&Me.when(X,U))||this._defaultNodeDef}insertNode(U,X,ce,Me){const ue=this._getNodeDef(U,X),Pe=new $(U);Pe.level=this.treeControl.getLevel?this.treeControl.getLevel(U):typeof Me<"u"&&this._levels.has(Me)?this._levels.get(Me)+1:0,this._levels.set(U,Pe.level),(ce||this._nodeOutlet.viewContainer).createEmbeddedView(ue.template,Pe,X),te.mostRecentTreeNode&&(te.mostRecentTreeNode.data=U)}}return le.\u0275fac=function(U){return new(U||le)(I.Y36(I.ZZ4),I.Y36(I.sBO))},le.\u0275cmp=I.Xpm({type:le,selectors:[["cdk-tree"]],contentQueries:function(U,X,ce){if(1&U&&I.Suo(ce,_e,5),2&U){let Me;I.iGM(Me=I.CRH())&&(X._nodeDefs=Me)}},viewQuery:function(U,X){if(1&U&&I.Gf(j,7),2&U){let ce;I.iGM(ce=I.CRH())&&(X._nodeOutlet=ce.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(U,X){1&U&&I.GkF(0,0)},dependencies:[j],encapsulation:2}),le})(),te=(()=>{class le{constructor(U,X){this._elementRef=U,this._tree=X,this._destroyed=new A.x,this._dataChanges=new A.x,le.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(U){this._elementRef.nativeElement.setAttribute("role",U)}get data(){return this._data}set data(U){U!==this._data&&(this._data=U,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function ne(le){let N=le.parentElement;for(;N&&!ye(N);)N=N.parentElement;return N?N.classList.contains("cdk-nested-tree-node")?(0,F.su)(N.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){le.mostRecentTreeNode===this&&(le.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return le.mostRecentTreeNode=null,le.\u0275fac=function(U){return new(U||le)(I.Y36(I.SBq),I.Y36(W))},le.\u0275dir=I.lG2({type:le,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(U,X){2&U&&I.uIk("aria-expanded",X.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),le})();function ye(le){const N=le.classList;return!(!N?.contains("cdk-nested-tree-node")&&!N?.contains("cdk-tree"))}let ze=(()=>{class le extends te{constructor(U,X,ce){super(U,X),this._differs=ce}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const U=this._tree.treeControl.getChildren(this.data);Array.isArray(U)?this.updateChildrenNodes(U):(0,f.b)(U)&&U.pipe((0,x.R)(this._destroyed)).subscribe(X=>this.updateChildrenNodes(X)),this.nodeOutlet.changes.pipe((0,x.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(U){const X=this._getNodeOutlet();U&&(this._children=U),X&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,X.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const U=this._getNodeOutlet();U&&(U.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const U=this.nodeOutlet;return U&&U.find(X=>!X._node||X._node===this)}}return le.\u0275fac=function(U){return new(U||le)(I.Y36(I.SBq),I.Y36(W),I.Y36(I.ZZ4))},le.\u0275dir=I.lG2({type:le,selectors:[["cdk-nested-tree-node"]],contentQueries:function(U,X,ce){if(1&U&&I.Suo(ce,j,5),2&U){let Me;I.iGM(Me=I.CRH())&&(X.nodeOutlet=Me)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[I._Bn([{provide:te,useExisting:le},{provide:fe,useExisting:le}]),I.qOj]}),le})();const ke=/([A-Za-z%]+)$/;let $e=(()=>{class le{constructor(U,X,ce,Me){this._treeNode=U,this._tree=X,this._element=ce,this._dir=Me,this._destroyed=new A.x,this.indentUnits="px",this._indent=40,this._setPadding(),Me&&Me.change.pipe((0,x.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),U._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(U){this._setLevelInput(U)}get indent(){return this._indent}set indent(U){this._setIndentInput(U)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const U=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,X=null==this._level?U:this._level;return"number"==typeof X?`${X*this._indent}${this.indentUnits}`:null}_setPadding(U=!1){const X=this._paddingIndent();if(X!==this._currentPadding||U){const ce=this._element.nativeElement,Me=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",ue="paddingLeft"===Me?"paddingRight":"paddingLeft";ce.style[Me]=X||"",ce.style[ue]="",this._currentPadding=X}}_setLevelInput(U){this._level=(0,F.su)(U,null),this._setPadding()}_setIndentInput(U){let X=U,ce="px";if("string"==typeof U){const Me=U.split(ke);X=Me[0],ce=Me[1]||ce}this.indentUnits=ce,this._indent=(0,F.su)(X),this._setPadding()}}return le.\u0275fac=function(U){return new(U||le)(I.Y36(te),I.Y36(W),I.Y36(I.SBq),I.Y36(T.Is,8))},le.\u0275dir=I.lG2({type:le,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),le})(),Je=(()=>{class le{constructor(U,X){this._tree=U,this._treeNode=X,this._recursive=!1}get recursive(){return this._recursive}set recursive(U){this._recursive=(0,F.Ig)(U)}_toggle(U){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),U.stopPropagation()}}return le.\u0275fac=function(U){return new(U||le)(I.Y36(W),I.Y36(te))},le.\u0275dir=I.lG2({type:le,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(U,X){1&U&&I.NdJ("click",function(Me){return X._toggle(Me)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),le})(),Ve=(()=>{class le{}return le.\u0275fac=function(U){return new(U||le)},le.\u0275mod=I.oAB({type:le}),le.\u0275inj=I.cJS({}),le})()},36895:(Qe,ae,p)=>{"use strict";p.d(ae,{Do:()=>ge,ED:()=>Ur,EM:()=>Xn,HT:()=>S,JF:()=>Er,K0:()=>M,Mx:()=>Gt,NF:()=>En,O5:()=>ji,Ov:()=>ar,PC:()=>On,PM:()=>or,RF:()=>Qn,S$:()=>j,V_:()=>I,Ye:()=>pe,b0:()=>_e,bD:()=>_i,ez:()=>zt,gd:()=>ri,i8:()=>Gn,mk:()=>Q,n9:()=>cr,p6:()=>a,q:()=>A,rS:()=>St,sg:()=>bi,tP:()=>hn,uU:()=>ui,w_:()=>m});var e=p(94650);let f=null;function A(){return f}function S(xe){f||(f=xe)}class m{}const M=new e.OlP("DocumentToken");let w=(()=>{class xe{historyGo(Ne){throw new Error("Not implemented")}}return xe.\u0275fac=function(Ne){return new(Ne||xe)},xe.\u0275prov=e.Yz7({token:xe,factory:function(){return function x(){return(0,e.LFG)(F)}()},providedIn:"platform"}),xe})();const I=new e.OlP("Location Initialized");let F=(()=>{class xe extends w{constructor(Ne){super(),this._doc=Ne,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return A().getBaseHref(this._doc)}onPopState(Ne){const mt=A().getGlobalEventTarget(this._doc,"window");return mt.addEventListener("popstate",Ne,!1),()=>mt.removeEventListener("popstate",Ne)}onHashChange(Ne){const mt=A().getGlobalEventTarget(this._doc,"window");return mt.addEventListener("hashchange",Ne,!1),()=>mt.removeEventListener("hashchange",Ne)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(Ne){this.location.pathname=Ne}pushState(Ne,mt,Vt){T()?this._history.pushState(Ne,mt,Vt):this.location.hash=Vt}replaceState(Ne,mt,Vt){T()?this._history.replaceState(Ne,mt,Vt):this.location.hash=Vt}forward(){this._history.forward()}back(){this._history.back()}historyGo(Ne=0){this._history.go(Ne)}getState(){return this._history.state}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(e.LFG(M))},xe.\u0275prov=e.Yz7({token:xe,factory:function(){return function H(){return new F((0,e.LFG)(M))}()},providedIn:"platform"}),xe})();function T(){return!!window.history.pushState}function P(xe,ot){if(0==xe.length)return ot;if(0==ot.length)return xe;let Ne=0;return xe.endsWith("/")&&Ne++,ot.startsWith("/")&&Ne++,2==Ne?xe+ot.substring(1):1==Ne?xe+ot:xe+"/"+ot}function J(xe){const ot=xe.match(/#|\?|$/),Ne=ot&&ot.index||xe.length;return xe.slice(0,Ne-("/"===xe[Ne-1]?1:0))+xe.slice(Ne)}function fe(xe){return xe&&"?"!==xe[0]?"?"+xe:xe}let j=(()=>{class xe{historyGo(Ne){throw new Error("Not implemented")}}return xe.\u0275fac=function(Ne){return new(Ne||xe)},xe.\u0275prov=e.Yz7({token:xe,factory:function(){return(0,e.f3M)(_e)},providedIn:"root"}),xe})();const $=new e.OlP("appBaseHref");let _e=(()=>{class xe extends j{constructor(Ne,mt){super(),this._platformLocation=Ne,this._removeListenerFns=[],this._baseHref=mt??this._platformLocation.getBaseHrefFromDOM()??(0,e.f3M)(M).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ne){this._removeListenerFns.push(this._platformLocation.onPopState(Ne),this._platformLocation.onHashChange(Ne))}getBaseHref(){return this._baseHref}prepareExternalUrl(Ne){return P(this._baseHref,Ne)}path(Ne=!1){const mt=this._platformLocation.pathname+fe(this._platformLocation.search),Vt=this._platformLocation.hash;return Vt&&Ne?`${mt}${Vt}`:mt}pushState(Ne,mt,Vt,ei){const ti=this.prepareExternalUrl(Vt+fe(ei));this._platformLocation.pushState(Ne,mt,ti)}replaceState(Ne,mt,Vt,ei){const ti=this.prepareExternalUrl(Vt+fe(ei));this._platformLocation.replaceState(Ne,mt,ti)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Ne=0){this._platformLocation.historyGo?.(Ne)}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(e.LFG(w),e.LFG($,8))},xe.\u0275prov=e.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),ge=(()=>{class xe extends j{constructor(Ne,mt){super(),this._platformLocation=Ne,this._baseHref="",this._removeListenerFns=[],null!=mt&&(this._baseHref=mt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ne){this._removeListenerFns.push(this._platformLocation.onPopState(Ne),this._platformLocation.onHashChange(Ne))}getBaseHref(){return this._baseHref}path(Ne=!1){let mt=this._platformLocation.hash;return null==mt&&(mt="#"),mt.length>0?mt.substring(1):mt}prepareExternalUrl(Ne){const mt=P(this._baseHref,Ne);return mt.length>0?"#"+mt:mt}pushState(Ne,mt,Vt,ei){let ti=this.prepareExternalUrl(Vt+fe(ei));0==ti.length&&(ti=this._platformLocation.pathname),this._platformLocation.pushState(Ne,mt,ti)}replaceState(Ne,mt,Vt,ei){let ti=this.prepareExternalUrl(Vt+fe(ei));0==ti.length&&(ti=this._platformLocation.pathname),this._platformLocation.replaceState(Ne,mt,ti)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Ne=0){this._platformLocation.historyGo?.(Ne)}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(e.LFG(w),e.LFG($,8))},xe.\u0275prov=e.Yz7({token:xe,factory:xe.\u0275fac}),xe})(),pe=(()=>{class xe{constructor(Ne){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Ne;const mt=this._locationStrategy.getBaseHref();this._basePath=function W(xe){if(new RegExp("^(https?:)?//").test(xe)){const[,Ne]=xe.split(/\/\/[^\/]+/);return Ne}return xe}(J(V(mt))),this._locationStrategy.onPopState(Vt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Vt.state,type:Vt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Ne=!1){return this.normalize(this._locationStrategy.path(Ne))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Ne,mt=""){return this.path()==this.normalize(Ne+fe(mt))}normalize(Ne){return xe.stripTrailingSlash(function v(xe,ot){return xe&&ot.startsWith(xe)?ot.substring(xe.length):ot}(this._basePath,V(Ne)))}prepareExternalUrl(Ne){return Ne&&"/"!==Ne[0]&&(Ne="/"+Ne),this._locationStrategy.prepareExternalUrl(Ne)}go(Ne,mt="",Vt=null){this._locationStrategy.pushState(Vt,"",Ne,mt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ne+fe(mt)),Vt)}replaceState(Ne,mt="",Vt=null){this._locationStrategy.replaceState(Vt,"",Ne,mt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ne+fe(mt)),Vt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Ne=0){this._locationStrategy.historyGo?.(Ne)}onUrlChange(Ne){return this._urlChangeListeners.push(Ne),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(mt=>{this._notifyUrlChangeListeners(mt.url,mt.state)})),()=>{const mt=this._urlChangeListeners.indexOf(Ne);this._urlChangeListeners.splice(mt,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Ne="",mt){this._urlChangeListeners.forEach(Vt=>Vt(Ne,mt))}subscribe(Ne,mt,Vt){return this._subject.subscribe({next:Ne,error:mt,complete:Vt})}}return xe.normalizeQueryParams=fe,xe.joinWithSlash=P,xe.stripTrailingSlash=J,xe.\u0275fac=function(Ne){return new(Ne||xe)(e.LFG(j))},xe.\u0275prov=e.Yz7({token:xe,factory:function(){return function re(){return new pe((0,e.LFG)(j))}()},providedIn:"root"}),xe})();function V(xe){return xe.replace(/\/index.html$/,"")}var ze=(()=>((ze=ze||{})[ze.Format=0]="Format",ze[ze.Standalone=1]="Standalone",ze))(),ke=(()=>((ke=ke||{})[ke.Narrow=0]="Narrow",ke[ke.Abbreviated=1]="Abbreviated",ke[ke.Wide=2]="Wide",ke[ke.Short=3]="Short",ke))(),$e=(()=>(($e=$e||{})[$e.Short=0]="Short",$e[$e.Medium=1]="Medium",$e[$e.Long=2]="Long",$e[$e.Full=3]="Full",$e))(),Je=(()=>((Je=Je||{})[Je.Decimal=0]="Decimal",Je[Je.Group=1]="Group",Je[Je.List=2]="List",Je[Je.PercentSign=3]="PercentSign",Je[Je.PlusSign=4]="PlusSign",Je[Je.MinusSign=5]="MinusSign",Je[Je.Exponential=6]="Exponential",Je[Je.SuperscriptingExponent=7]="SuperscriptingExponent",Je[Je.PerMille=8]="PerMille",Je[Je.Infinity=9]="Infinity",Je[Je.NaN=10]="NaN",Je[Je.TimeSeparator=11]="TimeSeparator",Je[Je.CurrencyDecimal=12]="CurrencyDecimal",Je[Je.CurrencyGroup=13]="CurrencyGroup",Je))();function ue(xe,ot){return ve((0,e.cg1)(xe)[e.wAp.DateFormat],ot)}function Pe(xe,ot){return ve((0,e.cg1)(xe)[e.wAp.TimeFormat],ot)}function tt(xe,ot){return ve((0,e.cg1)(xe)[e.wAp.DateTimeFormat],ot)}function Ce(xe,ot){const Ne=(0,e.cg1)(xe),mt=Ne[e.wAp.NumberSymbols][ot];if(typeof mt>"u"){if(ot===Je.CurrencyDecimal)return Ne[e.wAp.NumberSymbols][Je.Decimal];if(ot===Je.CurrencyGroup)return Ne[e.wAp.NumberSymbols][Je.Group]}return mt}function Ye(xe){if(!xe[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${xe[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ve(xe,ot){for(let Ne=ot;Ne>-1;Ne--)if(typeof xe[Ne]<"u")return xe[Ne];throw new Error("Locale data API: locale data undefined")}function Oe(xe){const[ot,Ne]=xe.split(":");return{hours:+ot,minutes:+Ne}}const C=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,h={},o=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var n=(()=>((n=n||{})[n.Short=0]="Short",n[n.ShortGMT=1]="ShortGMT",n[n.Long=2]="Long",n[n.Extended=3]="Extended",n))(),t=(()=>((t=t||{})[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t))(),i=(()=>((i=i||{})[i.DayPeriods=0]="DayPeriods",i[i.Days=1]="Days",i[i.Months=2]="Months",i[i.Eras=3]="Eras",i))();function a(xe,ot,Ne,mt){let Vt=function It(xe){if(pi(xe))return xe;if("number"==typeof xe&&!isNaN(xe))return new Date(xe);if("string"==typeof xe){if(xe=xe.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(xe)){const[Vt,ei=1,ti=1]=xe.split("-").map(Ci=>+Ci);return c(Vt,ei-1,ti)}const Ne=parseFloat(xe);if(!isNaN(xe-Ne))return new Date(Ne);let mt;if(mt=xe.match(C))return function ai(xe){const ot=new Date(0);let Ne=0,mt=0;const Vt=xe[8]?ot.setUTCFullYear:ot.setFullYear,ei=xe[8]?ot.setUTCHours:ot.setHours;xe[9]&&(Ne=Number(xe[9]+xe[10]),mt=Number(xe[9]+xe[11])),Vt.call(ot,Number(xe[1]),Number(xe[2])-1,Number(xe[3]));const ti=Number(xe[4]||0)-Ne,Ci=Number(xe[5]||0)-mt,Wi=Number(xe[6]||0),$i=Math.floor(1e3*parseFloat("0."+(xe[7]||0)));return ei.call(ot,ti,Ci,Wi,$i),ot}(mt)}const ot=new Date(xe);if(!pi(ot))throw new Error(`Unable to convert "${xe}" into a date`);return ot}(xe);ot=l(Ne,ot)||ot;let Ci,ti=[];for(;ot;){if(Ci=o.exec(ot),!Ci){ti.push(ot);break}{ti=ti.concat(Ci.slice(1));const an=ti.pop();if(!an)break;ot=an}}let Wi=Vt.getTimezoneOffset();mt&&(Wi=bt(mt,Wi),Vt=function Mt(xe,ot,Ne){const mt=Ne?-1:1,Vt=xe.getTimezoneOffset();return function Ht(xe,ot){return(xe=new Date(xe.getTime())).setMinutes(xe.getMinutes()+ot),xe}(xe,mt*(bt(ot,Vt)-Vt))}(Vt,mt,!0));let $i="";return ti.forEach(an=>{const Zi=function ut(xe){if(Te[xe])return Te[xe];let ot;switch(xe){case"G":case"GG":case"GGG":ot=qe(i.Eras,ke.Abbreviated);break;case"GGGG":ot=qe(i.Eras,ke.Wide);break;case"GGGGG":ot=qe(i.Eras,ke.Narrow);break;case"y":ot=B(t.FullYear,1,0,!1,!0);break;case"yy":ot=B(t.FullYear,2,0,!0,!0);break;case"yyy":ot=B(t.FullYear,3,0,!1,!0);break;case"yyyy":ot=B(t.FullYear,4,0,!1,!0);break;case"Y":ot=Ae(1);break;case"YY":ot=Ae(2,!0);break;case"YYY":ot=Ae(3);break;case"YYYY":ot=Ae(4);break;case"M":case"L":ot=B(t.Month,1,1);break;case"MM":case"LL":ot=B(t.Month,2,1);break;case"MMM":ot=qe(i.Months,ke.Abbreviated);break;case"MMMM":ot=qe(i.Months,ke.Wide);break;case"MMMMM":ot=qe(i.Months,ke.Narrow);break;case"LLL":ot=qe(i.Months,ke.Abbreviated,ze.Standalone);break;case"LLLL":ot=qe(i.Months,ke.Wide,ze.Standalone);break;case"LLLLL":ot=qe(i.Months,ke.Narrow,ze.Standalone);break;case"w":ot=de(1);break;case"ww":ot=de(2);break;case"W":ot=de(1,!0);break;case"d":ot=B(t.Date,1);break;case"dd":ot=B(t.Date,2);break;case"c":case"cc":ot=B(t.Day,1);break;case"ccc":ot=qe(i.Days,ke.Abbreviated,ze.Standalone);break;case"cccc":ot=qe(i.Days,ke.Wide,ze.Standalone);break;case"ccccc":ot=qe(i.Days,ke.Narrow,ze.Standalone);break;case"cccccc":ot=qe(i.Days,ke.Short,ze.Standalone);break;case"E":case"EE":case"EEE":ot=qe(i.Days,ke.Abbreviated);break;case"EEEE":ot=qe(i.Days,ke.Wide);break;case"EEEEE":ot=qe(i.Days,ke.Narrow);break;case"EEEEEE":ot=qe(i.Days,ke.Short);break;case"a":case"aa":case"aaa":ot=qe(i.DayPeriods,ke.Abbreviated);break;case"aaaa":ot=qe(i.DayPeriods,ke.Wide);break;case"aaaaa":ot=qe(i.DayPeriods,ke.Narrow);break;case"b":case"bb":case"bbb":ot=qe(i.DayPeriods,ke.Abbreviated,ze.Standalone,!0);break;case"bbbb":ot=qe(i.DayPeriods,ke.Wide,ze.Standalone,!0);break;case"bbbbb":ot=qe(i.DayPeriods,ke.Narrow,ze.Standalone,!0);break;case"B":case"BB":case"BBB":ot=qe(i.DayPeriods,ke.Abbreviated,ze.Format,!0);break;case"BBBB":ot=qe(i.DayPeriods,ke.Wide,ze.Format,!0);break;case"BBBBB":ot=qe(i.DayPeriods,ke.Narrow,ze.Format,!0);break;case"h":ot=B(t.Hours,1,-12);break;case"hh":ot=B(t.Hours,2,-12);break;case"H":ot=B(t.Hours,1);break;case"HH":ot=B(t.Hours,2);break;case"m":ot=B(t.Minutes,1);break;case"mm":ot=B(t.Minutes,2);break;case"s":ot=B(t.Seconds,1);break;case"ss":ot=B(t.Seconds,2);break;case"S":ot=B(t.FractionalSeconds,1);break;case"SS":ot=B(t.FractionalSeconds,2);break;case"SSS":ot=B(t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ot=xt(n.Short);break;case"ZZZZZ":ot=xt(n.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ot=xt(n.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ot=xt(n.Long);break;default:return null}return Te[xe]=ot,ot}(an);$i+=Zi?Zi(Vt,Ne,Wi):"''"===an?"'":an.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),$i}function c(xe,ot,Ne){const mt=new Date(0);return mt.setFullYear(xe,ot,Ne),mt.setHours(0,0,0),mt}function l(xe,ot){const Ne=function Ve(xe){return(0,e.cg1)(xe)[e.wAp.LocaleId]}(xe);if(h[Ne]=h[Ne]||{},h[Ne][ot])return h[Ne][ot];let mt="";switch(ot){case"shortDate":mt=ue(xe,$e.Short);break;case"mediumDate":mt=ue(xe,$e.Medium);break;case"longDate":mt=ue(xe,$e.Long);break;case"fullDate":mt=ue(xe,$e.Full);break;case"shortTime":mt=Pe(xe,$e.Short);break;case"mediumTime":mt=Pe(xe,$e.Medium);break;case"longTime":mt=Pe(xe,$e.Long);break;case"fullTime":mt=Pe(xe,$e.Full);break;case"short":const Vt=l(xe,"shortTime"),ei=l(xe,"shortDate");mt=d(tt(xe,$e.Short),[Vt,ei]);break;case"medium":const ti=l(xe,"mediumTime"),Ci=l(xe,"mediumDate");mt=d(tt(xe,$e.Medium),[ti,Ci]);break;case"long":const Wi=l(xe,"longTime"),$i=l(xe,"longDate");mt=d(tt(xe,$e.Long),[Wi,$i]);break;case"full":const an=l(xe,"fullTime"),Zi=l(xe,"fullDate");mt=d(tt(xe,$e.Full),[an,Zi])}return mt&&(h[Ne][ot]=mt),mt}function d(xe,ot){return ot&&(xe=xe.replace(/\{([^}]+)}/g,function(Ne,mt){return null!=ot&&mt in ot?ot[mt]:Ne})),xe}function s(xe,ot,Ne="-",mt,Vt){let ei="";(xe<0||Vt&&xe<=0)&&(Vt?xe=1-xe:(xe=-xe,ei=Ne));let ti=String(xe);for(;ti.length0||Ci>-Ne)&&(Ci+=Ne),xe===t.Hours)0===Ci&&-12===Ne&&(Ci=12);else if(xe===t.FractionalSeconds)return function E(xe,ot){return s(xe,3).substring(0,ot)}(Ci,ot);const Wi=Ce(ti,Je.MinusSign);return s(Ci,ot,Wi,mt,Vt)}}function qe(xe,ot,Ne=ze.Format,mt=!1){return function(Vt,ei){return function it(xe,ot,Ne,mt,Vt,ei){switch(Ne){case i.Months:return function U(xe,ot,Ne){const mt=(0,e.cg1)(xe),ei=ve([mt[e.wAp.MonthsFormat],mt[e.wAp.MonthsStandalone]],ot);return ve(ei,Ne)}(ot,Vt,mt)[xe.getMonth()];case i.Days:return function N(xe,ot,Ne){const mt=(0,e.cg1)(xe),ei=ve([mt[e.wAp.DaysFormat],mt[e.wAp.DaysStandalone]],ot);return ve(ei,Ne)}(ot,Vt,mt)[xe.getDay()];case i.DayPeriods:const ti=xe.getHours(),Ci=xe.getMinutes();if(ei){const $i=function he(xe){const ot=(0,e.cg1)(xe);return Ye(ot),(ot[e.wAp.ExtraData][2]||[]).map(mt=>"string"==typeof mt?Oe(mt):[Oe(mt[0]),Oe(mt[1])])}(ot),an=function Re(xe,ot,Ne){const mt=(0,e.cg1)(xe);Ye(mt);const ei=ve([mt[e.wAp.ExtraData][0],mt[e.wAp.ExtraData][1]],ot)||[];return ve(ei,Ne)||[]}(ot,Vt,mt),Zi=$i.findIndex(xn=>{if(Array.isArray(xn)){const[ln,vn]=xn,mr=ti>=ln.hours&&Ci>=ln.minutes,Or=ti0?Math.floor(Vt/60):Math.ceil(Vt/60);switch(xe){case n.Short:return(Vt>=0?"+":"")+s(ti,2,ei)+s(Math.abs(Vt%60),2,ei);case n.ShortGMT:return"GMT"+(Vt>=0?"+":"")+s(ti,1,ei);case n.Long:return"GMT"+(Vt>=0?"+":"")+s(ti,2,ei)+":"+s(Math.abs(Vt%60),2,ei);case n.Extended:return 0===mt?"Z":(Vt>=0?"+":"")+s(ti,2,ei)+":"+s(Math.abs(Vt%60),2,ei);default:throw new Error(`Unknown zone width "${xe}"`)}}}const ht=0,_t=4;function we(xe){return c(xe.getFullYear(),xe.getMonth(),xe.getDate()+(_t-xe.getDay()))}function de(xe,ot=!1){return function(Ne,mt){let Vt;if(ot){const ei=new Date(Ne.getFullYear(),Ne.getMonth(),1).getDay()-1,ti=Ne.getDate();Vt=1+Math.floor((ti+ei)/7)}else{const ei=we(Ne),ti=function Ee(xe){const ot=c(xe,ht,1).getDay();return c(xe,0,1+(ot<=_t?_t:_t+7)-ot)}(ei.getFullYear()),Ci=ei.getTime()-ti.getTime();Vt=1+Math.round(Ci/6048e5)}return s(Vt,xe,Ce(mt,Je.MinusSign))}}function Ae(xe,ot=!1){return function(Ne,mt){return s(we(Ne).getFullYear(),xe,Ce(mt,Je.MinusSign),ot)}}const Te={};function bt(xe,ot){xe=xe.replace(/:/g,"");const Ne=Date.parse("Jan 01, 1970 00:00:00 "+xe)/6e4;return isNaN(Ne)?ot:Ne}function pi(xe){return xe instanceof Date&&!isNaN(xe.valueOf())}function Gt(xe,ot){ot=encodeURIComponent(ot);for(const Ne of xe.split(";")){const mt=Ne.indexOf("="),[Vt,ei]=-1==mt?[Ne,""]:[Ne.slice(0,mt),Ne.slice(mt+1)];if(Vt.trim()===ot)return decodeURIComponent(ei)}return null}let Q=(()=>{class xe{constructor(Ne,mt,Vt,ei){this._iterableDiffers=Ne,this._keyValueDiffers=mt,this._ngEl=Vt,this._renderer=ei,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Ne){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Ne?Ne.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Ne){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Ne?Ne.split(/\s+/):Ne,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Ne=this._iterableDiffer.diff(this._rawClass);Ne&&this._applyIterableChanges(Ne)}else if(this._keyValueDiffer){const Ne=this._keyValueDiffer.diff(this._rawClass);Ne&&this._applyKeyValueChanges(Ne)}}_applyKeyValueChanges(Ne){Ne.forEachAddedItem(mt=>this._toggleClass(mt.key,mt.currentValue)),Ne.forEachChangedItem(mt=>this._toggleClass(mt.key,mt.currentValue)),Ne.forEachRemovedItem(mt=>{mt.previousValue&&this._toggleClass(mt.key,!1)})}_applyIterableChanges(Ne){Ne.forEachAddedItem(mt=>{if("string"!=typeof mt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(mt.item)}`);this._toggleClass(mt.item,!0)}),Ne.forEachRemovedItem(mt=>this._toggleClass(mt.item,!1))}_applyClasses(Ne){Ne&&(Array.isArray(Ne)||Ne instanceof Set?Ne.forEach(mt=>this._toggleClass(mt,!0)):Object.keys(Ne).forEach(mt=>this._toggleClass(mt,!!Ne[mt])))}_removeClasses(Ne){Ne&&(Array.isArray(Ne)||Ne instanceof Set?Ne.forEach(mt=>this._toggleClass(mt,!1)):Object.keys(Ne).forEach(mt=>this._toggleClass(mt,!1)))}_toggleClass(Ne,mt){(Ne=Ne.trim())&&Ne.split(/\s+/g).forEach(Vt=>{mt?this._renderer.addClass(this._ngEl.nativeElement,Vt):this._renderer.removeClass(this._ngEl.nativeElement,Vt)})}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},xe.\u0275dir=e.lG2({type:xe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),xe})();class ci{constructor(ot,Ne,mt,Vt){this.$implicit=ot,this.ngForOf=Ne,this.index=mt,this.count=Vt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let bi=(()=>{class xe{constructor(Ne,mt,Vt){this._viewContainer=Ne,this._template=mt,this._differs=Vt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Ne){this._ngForOf=Ne,this._ngForOfDirty=!0}set ngForTrackBy(Ne){this._trackByFn=Ne}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Ne){Ne&&(this._template=Ne)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Ne=this._ngForOf;!this._differ&&Ne&&(this._differ=this._differs.find(Ne).create(this.ngForTrackBy))}if(this._differ){const Ne=this._differ.diff(this._ngForOf);Ne&&this._applyChanges(Ne)}}_applyChanges(Ne){const mt=this._viewContainer;Ne.forEachOperation((Vt,ei,ti)=>{if(null==Vt.previousIndex)mt.createEmbeddedView(this._template,new ci(Vt.item,this._ngForOf,-1,-1),null===ti?void 0:ti);else if(null==ti)mt.remove(null===ei?void 0:ei);else if(null!==ei){const Ci=mt.get(ei);mt.move(Ci,ti),Vi(Ci,Vt)}});for(let Vt=0,ei=mt.length;Vt{Vi(mt.get(Vt.currentIndex),Vt)})}static ngTemplateContextGuard(Ne,mt){return!0}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},xe.\u0275dir=e.lG2({type:xe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),xe})();function Vi(xe,ot){xe.context.$implicit=ot.item}let ji=(()=>{class xe{constructor(Ne,mt){this._viewContainer=Ne,this._context=new on,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=mt}set ngIf(Ne){this._context.$implicit=this._context.ngIf=Ne,this._updateView()}set ngIfThen(Ne){wn("ngIfThen",Ne),this._thenTemplateRef=Ne,this._thenViewRef=null,this._updateView()}set ngIfElse(Ne){wn("ngIfElse",Ne),this._elseTemplateRef=Ne,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Ne,mt){return!0}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(e.Y36(e.s_b),e.Y36(e.Rgc))},xe.\u0275dir=e.lG2({type:xe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),xe})();class on{constructor(){this.$implicit=null,this.ngIf=null}}function wn(xe,ot){if(ot&&!ot.createEmbeddedView)throw new Error(`${xe} must be a TemplateRef, but received '${(0,e.AaK)(ot)}'.`)}class Hi{constructor(ot,Ne){this._viewContainerRef=ot,this._templateRef=Ne,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ot){ot&&!this._created?this.create():!ot&&this._created&&this.destroy()}}let Qn=(()=>{class xe{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Ne){this._ngSwitch=Ne,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Ne){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Ne)}_matchCase(Ne){const mt=Ne==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||mt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),mt}_updateDefaultCases(Ne){if(this._defaultViews&&Ne!==this._defaultUsed){this._defaultUsed=Ne;for(let mt=0;mt{class xe{constructor(Ne,mt,Vt){this.ngSwitch=Vt,Vt._addCase(),this._view=new Hi(Ne,mt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Qn,9))},xe.\u0275dir=e.lG2({type:xe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),xe})(),Ur=(()=>{class xe{constructor(Ne,mt,Vt){Vt._addDefault(new Hi(Ne,mt))}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Qn,9))},xe.\u0275dir=e.lG2({type:xe,selectors:[["","ngSwitchDefault",""]],standalone:!0}),xe})(),On=(()=>{class xe{constructor(Ne,mt,Vt){this._ngEl=Ne,this._differs=mt,this._renderer=Vt,this._ngStyle=null,this._differ=null}set ngStyle(Ne){this._ngStyle=Ne,!this._differ&&Ne&&(this._differ=this._differs.find(Ne).create())}ngDoCheck(){if(this._differ){const Ne=this._differ.diff(this._ngStyle);Ne&&this._applyChanges(Ne)}}_setStyle(Ne,mt){const[Vt,ei]=Ne.split("."),ti=-1===Vt.indexOf("-")?void 0:e.JOm.DashCase;null!=mt?this._renderer.setStyle(this._ngEl.nativeElement,Vt,ei?`${mt}${ei}`:mt,ti):this._renderer.removeStyle(this._ngEl.nativeElement,Vt,ti)}_applyChanges(Ne){Ne.forEachRemovedItem(mt=>this._setStyle(mt.key,null)),Ne.forEachAddedItem(mt=>this._setStyle(mt.key,mt.currentValue)),Ne.forEachChangedItem(mt=>this._setStyle(mt.key,mt.currentValue))}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},xe.\u0275dir=e.lG2({type:xe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),xe})(),hn=(()=>{class xe{constructor(Ne){this._viewContainerRef=Ne,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Ne){if(Ne.ngTemplateOutlet||Ne.ngTemplateOutletInjector){const mt=this._viewContainerRef;if(this._viewRef&&mt.remove(mt.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Vt,ngTemplateOutletContext:ei,ngTemplateOutletInjector:ti}=this;this._viewRef=mt.createEmbeddedView(Vt,ei,ti?{injector:ti}:void 0)}else this._viewRef=null}else this._viewRef&&Ne.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(e.Y36(e.s_b))},xe.\u0275dir=e.lG2({type:xe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]}),xe})();function fn(xe,ot){return new e.vHH(2100,!1)}class Ki{createSubscription(ot,Ne){return ot.subscribe({next:Ne,error:mt=>{throw mt}})}dispose(ot){ot.unsubscribe()}}class Yr{createSubscription(ot,Ne){return ot.then(Ne,mt=>{throw mt})}dispose(ot){}}const mn=new Yr,Nr=new Ki;let ar=(()=>{class xe{constructor(Ne){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Ne}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Ne){return this._obj?Ne!==this._obj?(this._dispose(),this.transform(Ne)):this._latestValue:(Ne&&this._subscribe(Ne),this._latestValue)}_subscribe(Ne){this._obj=Ne,this._strategy=this._selectStrategy(Ne),this._subscription=this._strategy.createSubscription(Ne,mt=>this._updateLatestValue(Ne,mt))}_selectStrategy(Ne){if((0,e.QGY)(Ne))return mn;if((0,e.F4k)(Ne))return Nr;throw fn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Ne,mt){Ne===this._obj&&(this._latestValue=mt,this._ref.markForCheck())}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(e.Y36(e.sBO,16))},xe.\u0275pipe=e.Yjl({name:"async",type:xe,pure:!1,standalone:!0}),xe})(),Gn=(()=>{class xe{transform(Ne){if(null==Ne)return null;if("string"!=typeof Ne)throw fn();return Ne.toLowerCase()}}return xe.\u0275fac=function(Ne){return new(Ne||xe)},xe.\u0275pipe=e.Yjl({name:"lowercase",type:xe,pure:!0,standalone:!0}),xe})();const Un=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let St=(()=>{class xe{transform(Ne){if(null==Ne)return null;if("string"!=typeof Ne)throw fn();return Ne.replace(Un,mt=>mt[0].toUpperCase()+mt.slice(1).toLowerCase())}}return xe.\u0275fac=function(Ne){return new(Ne||xe)},xe.\u0275pipe=e.Yjl({name:"titlecase",type:xe,pure:!0,standalone:!0}),xe})(),ri=(()=>{class xe{transform(Ne){if(null==Ne)return null;if("string"!=typeof Ne)throw fn();return Ne.toUpperCase()}}return xe.\u0275fac=function(Ne){return new(Ne||xe)},xe.\u0275pipe=e.Yjl({name:"uppercase",type:xe,pure:!0,standalone:!0}),xe})();const jt=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Jt=new e.OlP("DATE_PIPE_DEFAULT_OPTIONS");let ui=(()=>{class xe{constructor(Ne,mt,Vt){this.locale=Ne,this.defaultTimezone=mt,this.defaultOptions=Vt}transform(Ne,mt,Vt,ei){if(null==Ne||""===Ne||Ne!=Ne)return null;try{return a(Ne,mt??this.defaultOptions?.dateFormat??"mediumDate",ei||this.locale,Vt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(ti){throw fn()}}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(e.Y36(e.soG,16),e.Y36(jt,24),e.Y36(Jt,24))},xe.\u0275pipe=e.Yjl({name:"date",type:xe,pure:!0,standalone:!0}),xe})(),zt=(()=>{class xe{}return xe.\u0275fac=function(Ne){return new(Ne||xe)},xe.\u0275mod=e.oAB({type:xe}),xe.\u0275inj=e.cJS({}),xe})();const _i="browser",Ti="server";function En(xe){return xe===_i}function or(xe){return xe===Ti}let Xn=(()=>{class xe{}return xe.\u0275prov=(0,e.Yz7)({token:xe,providedIn:"root",factory:()=>new Jr((0,e.LFG)(M),window)}),xe})();class Jr{constructor(ot,Ne){this.document=ot,this.window=Ne,this.offset=()=>[0,0]}setOffset(ot){this.offset=Array.isArray(ot)?()=>ot:ot}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ot){this.supportsScrolling()&&this.window.scrollTo(ot[0],ot[1])}scrollToAnchor(ot){if(!this.supportsScrolling())return;const Ne=function ur(xe,ot){const Ne=xe.getElementById(ot)||xe.getElementsByName(ot)[0];if(Ne)return Ne;if("function"==typeof xe.createTreeWalker&&xe.body&&(xe.body.createShadowRoot||xe.body.attachShadow)){const mt=xe.createTreeWalker(xe.body,NodeFilter.SHOW_ELEMENT);let Vt=mt.currentNode;for(;Vt;){const ei=Vt.shadowRoot;if(ei){const ti=ei.getElementById(ot)||ei.querySelector(`[name="${ot}"]`);if(ti)return ti}Vt=mt.nextNode()}}return null}(this.document,ot);Ne&&(this.scrollToElement(Ne),Ne.focus())}setHistoryScrollRestoration(ot){if(this.supportScrollRestoration()){const Ne=this.window.history;Ne&&Ne.scrollRestoration&&(Ne.scrollRestoration=ot)}}scrollToElement(ot){const Ne=ot.getBoundingClientRect(),mt=Ne.left+this.window.pageXOffset,Vt=Ne.top+this.window.pageYOffset,ei=this.offset();this.window.scrollTo(mt-ei[0],Vt-ei[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ot=oa(this.window.history)||oa(Object.getPrototypeOf(this.window.history));return!(!ot||!ot.writable&&!ot.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function oa(xe){return Object.getOwnPropertyDescriptor(xe,"scrollRestoration")}class Er{}},80529:(Qe,ae,p)=>{"use strict";p.d(ae,{JF:()=>xt,LE:()=>_e,TP:()=>X,WM:()=>F,Zn:()=>$e,eN:()=>Ve,qT:()=>pe});var e=p(36895),f=p(94650),A=p(39646),S=p(69751),m=p(24351),M=p(39300),w=p(54004);class x{}class I{}class F{constructor(we){this.normalizedNames=new Map,this.lazyUpdate=null,we?this.lazyInit="string"==typeof we?()=>{this.headers=new Map,we.split("\n").forEach(de=>{const Ae=de.indexOf(":");if(Ae>0){const Te=de.slice(0,Ae),ut=Te.toLowerCase(),bt=de.slice(Ae+1).trim();this.maybeSetNormalizedName(Te,ut),this.headers.has(ut)?this.headers.get(ut).push(bt):this.headers.set(ut,[bt])}})}:()=>{this.headers=new Map,Object.keys(we).forEach(de=>{let Ae=we[de];const Te=de.toLowerCase();"string"==typeof Ae&&(Ae=[Ae]),Ae.length>0&&(this.headers.set(Te,Ae),this.maybeSetNormalizedName(de,Te))})}:this.headers=new Map}has(we){return this.init(),this.headers.has(we.toLowerCase())}get(we){this.init();const de=this.headers.get(we.toLowerCase());return de&&de.length>0?de[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(we){return this.init(),this.headers.get(we.toLowerCase())||null}append(we,de){return this.clone({name:we,value:de,op:"a"})}set(we,de){return this.clone({name:we,value:de,op:"s"})}delete(we,de){return this.clone({name:we,value:de,op:"d"})}maybeSetNormalizedName(we,de){this.normalizedNames.has(de)||this.normalizedNames.set(de,we)}init(){this.lazyInit&&(this.lazyInit instanceof F?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(we=>this.applyUpdate(we)),this.lazyUpdate=null))}copyFrom(we){we.init(),Array.from(we.headers.keys()).forEach(de=>{this.headers.set(de,we.headers.get(de)),this.normalizedNames.set(de,we.normalizedNames.get(de))})}clone(we){const de=new F;return de.lazyInit=this.lazyInit&&this.lazyInit instanceof F?this.lazyInit:this,de.lazyUpdate=(this.lazyUpdate||[]).concat([we]),de}applyUpdate(we){const de=we.name.toLowerCase();switch(we.op){case"a":case"s":let Ae=we.value;if("string"==typeof Ae&&(Ae=[Ae]),0===Ae.length)return;this.maybeSetNormalizedName(we.name,de);const Te=("a"===we.op?this.headers.get(de):void 0)||[];Te.push(...Ae),this.headers.set(de,Te);break;case"d":const ut=we.value;if(ut){let bt=this.headers.get(de);if(!bt)return;bt=bt.filter(Ht=>-1===ut.indexOf(Ht)),0===bt.length?(this.headers.delete(de),this.normalizedNames.delete(de)):this.headers.set(de,bt)}else this.headers.delete(de),this.normalizedNames.delete(de)}}forEach(we){this.init(),Array.from(this.normalizedNames.keys()).forEach(de=>we(this.normalizedNames.get(de),this.headers.get(de)))}}class H{encodeKey(we){return j(we)}encodeValue(we){return j(we)}decodeKey(we){return decodeURIComponent(we)}decodeValue(we){return decodeURIComponent(we)}}const J=/%(\d[a-f0-9])/gi,fe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function j(Ee){return encodeURIComponent(Ee).replace(J,(we,de)=>fe[de]??we)}function $(Ee){return`${Ee}`}class _e{constructor(we={}){if(this.updates=null,this.cloneFrom=null,this.encoder=we.encoder||new H,we.fromString){if(we.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function P(Ee,we){const de=new Map;return Ee.length>0&&Ee.replace(/^\?/,"").split("&").forEach(Te=>{const ut=Te.indexOf("="),[bt,Ht]=-1==ut?[we.decodeKey(Te),""]:[we.decodeKey(Te.slice(0,ut)),we.decodeValue(Te.slice(ut+1))],Mt=de.get(bt)||[];Mt.push(Ht),de.set(bt,Mt)}),de}(we.fromString,this.encoder)}else we.fromObject?(this.map=new Map,Object.keys(we.fromObject).forEach(de=>{const Ae=we.fromObject[de],Te=Array.isArray(Ae)?Ae.map($):[$(Ae)];this.map.set(de,Te)})):this.map=null}has(we){return this.init(),this.map.has(we)}get(we){this.init();const de=this.map.get(we);return de?de[0]:null}getAll(we){return this.init(),this.map.get(we)||null}keys(){return this.init(),Array.from(this.map.keys())}append(we,de){return this.clone({param:we,value:de,op:"a"})}appendAll(we){const de=[];return Object.keys(we).forEach(Ae=>{const Te=we[Ae];Array.isArray(Te)?Te.forEach(ut=>{de.push({param:Ae,value:ut,op:"a"})}):de.push({param:Ae,value:Te,op:"a"})}),this.clone(de)}set(we,de){return this.clone({param:we,value:de,op:"s"})}delete(we,de){return this.clone({param:we,value:de,op:"d"})}toString(){return this.init(),this.keys().map(we=>{const de=this.encoder.encodeKey(we);return this.map.get(we).map(Ae=>de+"="+this.encoder.encodeValue(Ae)).join("&")}).filter(we=>""!==we).join("&")}clone(we){const de=new _e({encoder:this.encoder});return de.cloneFrom=this.cloneFrom||this,de.updates=(this.updates||[]).concat(we),de}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(we=>this.map.set(we,this.cloneFrom.map.get(we))),this.updates.forEach(we=>{switch(we.op){case"a":case"s":const de=("a"===we.op?this.map.get(we.param):void 0)||[];de.push($(we.value)),this.map.set(we.param,de);break;case"d":if(void 0===we.value){this.map.delete(we.param);break}{let Ae=this.map.get(we.param)||[];const Te=Ae.indexOf($(we.value));-1!==Te&&Ae.splice(Te,1),Ae.length>0?this.map.set(we.param,Ae):this.map.delete(we.param)}}}),this.cloneFrom=this.updates=null)}}class pe{constructor(){this.map=new Map}set(we,de){return this.map.set(we,de),this}get(we){return this.map.has(we)||this.map.set(we,we.defaultValue()),this.map.get(we)}delete(we){return this.map.delete(we),this}has(we){return this.map.has(we)}keys(){return this.map.keys()}}function v(Ee){return typeof ArrayBuffer<"u"&&Ee instanceof ArrayBuffer}function V(Ee){return typeof Blob<"u"&&Ee instanceof Blob}function W(Ee){return typeof FormData<"u"&&Ee instanceof FormData}class ne{constructor(we,de,Ae,Te){let ut;if(this.url=de,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=we.toUpperCase(),function re(Ee){switch(Ee){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Te?(this.body=void 0!==Ae?Ae:null,ut=Te):ut=Ae,ut&&(this.reportProgress=!!ut.reportProgress,this.withCredentials=!!ut.withCredentials,ut.responseType&&(this.responseType=ut.responseType),ut.headers&&(this.headers=ut.headers),ut.context&&(this.context=ut.context),ut.params&&(this.params=ut.params)),this.headers||(this.headers=new F),this.context||(this.context=new pe),this.params){const bt=this.params.toString();if(0===bt.length)this.urlWithParams=de;else{const Ht=de.indexOf("?");this.urlWithParams=de+(-1===Ht?"?":Htpi.set(Ut,we.setHeaders[Ut]),Mt)),we.setParams&&(It=Object.keys(we.setParams).reduce((pi,Ut)=>pi.set(Ut,we.setParams[Ut]),It)),new ne(de,Ae,ut,{params:It,headers:Mt,context:ai,reportProgress:Ht,responseType:Te,withCredentials:bt})}}var ye=(()=>((ye=ye||{})[ye.Sent=0]="Sent",ye[ye.UploadProgress=1]="UploadProgress",ye[ye.ResponseHeader=2]="ResponseHeader",ye[ye.DownloadProgress=3]="DownloadProgress",ye[ye.Response=4]="Response",ye[ye.User=5]="User",ye))();class ze{constructor(we,de=200,Ae="OK"){this.headers=we.headers||new F,this.status=void 0!==we.status?we.status:de,this.statusText=we.statusText||Ae,this.url=we.url||null,this.ok=this.status>=200&&this.status<300}}class ke extends ze{constructor(we={}){super(we),this.type=ye.ResponseHeader}clone(we={}){return new ke({headers:we.headers||this.headers,status:void 0!==we.status?we.status:this.status,statusText:we.statusText||this.statusText,url:we.url||this.url||void 0})}}class $e extends ze{constructor(we={}){super(we),this.type=ye.Response,this.body=void 0!==we.body?we.body:null}clone(we={}){return new $e({body:void 0!==we.body?we.body:this.body,headers:we.headers||this.headers,status:void 0!==we.status?we.status:this.status,statusText:we.statusText||this.statusText,url:we.url||this.url||void 0})}}class Je extends ze{constructor(we){super(we,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${we.url||"(unknown url)"}`:`Http failure response for ${we.url||"(unknown url)"}: ${we.status} ${we.statusText}`,this.error=we.error||null}}function Fe(Ee,we){return{body:we,headers:Ee.headers,context:Ee.context,observe:Ee.observe,params:Ee.params,reportProgress:Ee.reportProgress,responseType:Ee.responseType,withCredentials:Ee.withCredentials}}let Ve=(()=>{class Ee{constructor(de){this.handler=de}request(de,Ae,Te={}){let ut;if(de instanceof ne)ut=de;else{let Mt,It;Mt=Te.headers instanceof F?Te.headers:new F(Te.headers),Te.params&&(It=Te.params instanceof _e?Te.params:new _e({fromObject:Te.params})),ut=new ne(de,Ae,void 0!==Te.body?Te.body:null,{headers:Mt,context:Te.context,params:It,reportProgress:Te.reportProgress,responseType:Te.responseType||"json",withCredentials:Te.withCredentials})}const bt=(0,A.of)(ut).pipe((0,m.b)(Mt=>this.handler.handle(Mt)));if(de instanceof ne||"events"===Te.observe)return bt;const Ht=bt.pipe((0,M.h)(Mt=>Mt instanceof $e));switch(Te.observe||"body"){case"body":switch(ut.responseType){case"arraybuffer":return Ht.pipe((0,w.U)(Mt=>{if(null!==Mt.body&&!(Mt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Mt.body}));case"blob":return Ht.pipe((0,w.U)(Mt=>{if(null!==Mt.body&&!(Mt.body instanceof Blob))throw new Error("Response is not a Blob.");return Mt.body}));case"text":return Ht.pipe((0,w.U)(Mt=>{if(null!==Mt.body&&"string"!=typeof Mt.body)throw new Error("Response is not a string.");return Mt.body}));default:return Ht.pipe((0,w.U)(Mt=>Mt.body))}case"response":return Ht;default:throw new Error(`Unreachable: unhandled observe type ${Te.observe}}`)}}delete(de,Ae={}){return this.request("DELETE",de,Ae)}get(de,Ae={}){return this.request("GET",de,Ae)}head(de,Ae={}){return this.request("HEAD",de,Ae)}jsonp(de,Ae){return this.request("JSONP",de,{params:(new _e).append(Ae,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(de,Ae={}){return this.request("OPTIONS",de,Ae)}patch(de,Ae,Te={}){return this.request("PATCH",de,Fe(Te,Ae))}post(de,Ae,Te={}){return this.request("POST",de,Fe(Te,Ae))}put(de,Ae,Te={}){return this.request("PUT",de,Fe(Te,Ae))}}return Ee.\u0275fac=function(de){return new(de||Ee)(f.LFG(x))},Ee.\u0275prov=f.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();function le(Ee,we){return we(Ee)}function N(Ee,we){return(de,Ae)=>we.intercept(de,{handle:Te=>Ee(Te,Ae)})}const X=new f.OlP("HTTP_INTERCEPTORS"),ce=new f.OlP("HTTP_INTERCEPTOR_FNS");function Me(){let Ee=null;return(we,de)=>(null===Ee&&(Ee=((0,f.f3M)(X,{optional:!0})??[]).reduceRight(N,le)),Ee(we,de))}let ue=(()=>{class Ee extends x{constructor(de,Ae){super(),this.backend=de,this.injector=Ae,this.chain=null}handle(de){if(null===this.chain){const Ae=Array.from(new Set(this.injector.get(ce)));this.chain=Ae.reduceRight((Te,ut)=>function U(Ee,we,de){return(Ae,Te)=>de.runInContext(()=>we(Ae,ut=>Ee(ut,Te)))}(Te,ut,this.injector),le)}return this.chain(de,Ae=>this.backend.handle(Ae))}}return Ee.\u0275fac=function(de){return new(de||Ee)(f.LFG(I),f.LFG(f.lqb))},Ee.\u0275prov=f.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();const Re=/^\)\]\}',?\n/;let ve=(()=>{class Ee{constructor(de){this.xhrFactory=de}handle(de){if("JSONP"===de.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new S.y(Ae=>{const Te=this.xhrFactory.build();if(Te.open(de.method,de.urlWithParams),de.withCredentials&&(Te.withCredentials=!0),de.headers.forEach((Tt,Se)=>Te.setRequestHeader(Tt,Se.join(","))),de.headers.has("Accept")||Te.setRequestHeader("Accept","application/json, text/plain, */*"),!de.headers.has("Content-Type")){const Tt=de.detectContentTypeHeader();null!==Tt&&Te.setRequestHeader("Content-Type",Tt)}if(de.responseType){const Tt=de.responseType.toLowerCase();Te.responseType="json"!==Tt?Tt:"text"}const ut=de.serializeBody();let bt=null;const Ht=()=>{if(null!==bt)return bt;const Tt=Te.statusText||"OK",Se=new F(Te.getAllResponseHeaders()),We=function He(Ee){return"responseURL"in Ee&&Ee.responseURL?Ee.responseURL:/^X-Request-URL:/m.test(Ee.getAllResponseHeaders())?Ee.getResponseHeader("X-Request-URL"):null}(Te)||de.url;return bt=new ke({headers:Se,status:Te.status,statusText:Tt,url:We}),bt},Mt=()=>{let{headers:Tt,status:Se,statusText:We,url:oe}=Ht(),et=null;204!==Se&&(et=typeof Te.response>"u"?Te.responseText:Te.response),0===Se&&(Se=et?200:0);let rt=Se>=200&&Se<300;if("json"===de.responseType&&"string"==typeof et){const Ft=et;et=et.replace(Re,"");try{et=""!==et?JSON.parse(et):null}catch(yt){et=Ft,rt&&(rt=!1,et={error:yt,text:et})}}rt?(Ae.next(new $e({body:et,headers:Tt,status:Se,statusText:We,url:oe||void 0})),Ae.complete()):Ae.error(new Je({error:et,headers:Tt,status:Se,statusText:We,url:oe||void 0}))},It=Tt=>{const{url:Se}=Ht(),We=new Je({error:Tt,status:Te.status||0,statusText:Te.statusText||"Unknown Error",url:Se||void 0});Ae.error(We)};let ai=!1;const pi=Tt=>{ai||(Ae.next(Ht()),ai=!0);let Se={type:ye.DownloadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(Se.total=Tt.total),"text"===de.responseType&&Te.responseText&&(Se.partialText=Te.responseText),Ae.next(Se)},Ut=Tt=>{let Se={type:ye.UploadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(Se.total=Tt.total),Ae.next(Se)};return Te.addEventListener("load",Mt),Te.addEventListener("error",It),Te.addEventListener("timeout",It),Te.addEventListener("abort",It),de.reportProgress&&(Te.addEventListener("progress",pi),null!==ut&&Te.upload&&Te.upload.addEventListener("progress",Ut)),Te.send(ut),Ae.next({type:ye.Sent}),()=>{Te.removeEventListener("error",It),Te.removeEventListener("abort",It),Te.removeEventListener("load",Mt),Te.removeEventListener("timeout",It),de.reportProgress&&(Te.removeEventListener("progress",pi),null!==ut&&Te.upload&&Te.upload.removeEventListener("progress",Ut)),Te.readyState!==Te.DONE&&Te.abort()}})}}return Ee.\u0275fac=function(de){return new(de||Ee)(f.LFG(e.JF))},Ee.\u0275prov=f.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();const Oe=new f.OlP("XSRF_ENABLED"),r="XSRF-TOKEN",u=new f.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>r}),_="X-XSRF-TOKEN",C=new f.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>_});class h{}let o=(()=>{class Ee{constructor(de,Ae,Te){this.doc=de,this.platform=Ae,this.cookieName=Te,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const de=this.doc.cookie||"";return de!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(de,this.cookieName),this.lastCookieString=de),this.lastToken}}return Ee.\u0275fac=function(de){return new(de||Ee)(f.LFG(e.K0),f.LFG(f.Lbi),f.LFG(u))},Ee.\u0275prov=f.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();function n(Ee,we){const de=Ee.url.toLowerCase();if(!(0,f.f3M)(Oe)||"GET"===Ee.method||"HEAD"===Ee.method||de.startsWith("http://")||de.startsWith("https://"))return we(Ee);const Ae=(0,f.f3M)(h).getToken(),Te=(0,f.f3M)(C);return null!=Ae&&!Ee.headers.has(Te)&&(Ee=Ee.clone({headers:Ee.headers.set(Te,Ae)})),we(Ee)}var i=(()=>((i=i||{})[i.Interceptors=0]="Interceptors",i[i.LegacyInterceptors=1]="LegacyInterceptors",i[i.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",i[i.NoXsrfProtection=3]="NoXsrfProtection",i[i.JsonpSupport=4]="JsonpSupport",i[i.RequestsMadeViaParent=5]="RequestsMadeViaParent",i))();function a(Ee,we){return{\u0275kind:Ee,\u0275providers:we}}function c(...Ee){const we=[Ve,ve,ue,{provide:x,useExisting:ue},{provide:I,useExisting:ve},{provide:ce,useValue:n,multi:!0},{provide:Oe,useValue:!0},{provide:h,useClass:o}];for(const de of Ee)we.push(...de.\u0275providers);return(0,f.MR2)(we)}const d=new f.OlP("LEGACY_INTERCEPTOR_FN");function E({cookieName:Ee,headerName:we}){const de=[];return void 0!==Ee&&de.push({provide:u,useValue:Ee}),void 0!==we&&de.push({provide:C,useValue:we}),a(i.CustomXsrfConfiguration,de)}let xt=(()=>{class Ee{}return Ee.\u0275fac=function(de){return new(de||Ee)},Ee.\u0275mod=f.oAB({type:Ee}),Ee.\u0275inj=f.cJS({providers:[c(a(i.LegacyInterceptors,[{provide:d,useFactory:Me},{provide:ce,useExisting:d,multi:!0}]),E({cookieName:r,headerName:_}))]}),Ee})()},94650:(Qe,ae,p)=>{"use strict";p.d(ae,{$8M:()=>so,$Z:()=>lp,AFp:()=>cg,ALo:()=>xm,AaK:()=>x,AsE:()=>Cu,B6R:()=>li,BQk:()=>Pc,CHM:()=>wa,CRH:()=>Nm,CZH:()=>zc,CqO:()=>Fp,D6c:()=>Gw,DdM:()=>_m,Dn7:()=>Dm,EJc:()=>ow,EiD:()=>yh,EpF:()=>Np,F$t:()=>Wp,F4k:()=>Vp,FYo:()=>Nh,FiY:()=>Wo,G48:()=>xw,Gf:()=>km,GfV:()=>Vh,GkF:()=>lu,Gpc:()=>T,Gre:()=>Ef,HOy:()=>Eu,Hsn:()=>Yp,Ikx:()=>yu,JOm:()=>fa,JVY:()=>Xg,JZr:()=>j,Jf7:()=>Fh,KtG:()=>ko,L6k:()=>e_,LAX:()=>i_,LFG:()=>ht,LSH:()=>Td,Lbi:()=>iw,Lck:()=>aC,MAs:()=>Up,MGl:()=>Ic,MMx:()=>Lu,MR2:()=>b_,NdJ:()=>du,O4$:()=>Vo,OlP:()=>dn,Oqu:()=>vu,P3R:()=>Mh,PXZ:()=>Cw,Q2q:()=>ru,Q6J:()=>au,QGY:()=>cu,QP$:()=>Dt,QbO:()=>nw,Qsj:()=>O_,R0b:()=>ba,RDi:()=>Wg,Rgc:()=>Ll,SBq:()=>Al,Sil:()=>lw,Suo:()=>Um,TTD:()=>Jr,TgZ:()=>Sc,Tol:()=>df,Udp:()=>_u,VKq:()=>bm,W1O:()=>Zm,WFA:()=>uu,WLB:()=>Am,XFs:()=>r,Xpm:()=>Zt,Xts:()=>xd,Y36:()=>Rs,YKP:()=>lm,YNc:()=>kp,Yjl:()=>ii,Yz7:()=>Ce,Z0I:()=>z,ZZ4:()=>rh,_Bn:()=>sm,_UZ:()=>su,_Vd:()=>bl,_c5:()=>jw,_uU:()=>_f,aQg:()=>ah,c2e:()=>rw,cJS:()=>Ue,cg1:()=>xu,d8E:()=>Tu,dDg:()=>_w,dqk:()=>n,eBb:()=>t_,eFA:()=>wg,ekj:()=>bu,eoX:()=>Ag,evT:()=>jh,f3M:()=>Ee,g9A:()=>ug,gM2:()=>Rm,h0i:()=>Gs,hGG:()=>Zw,hYB:()=>pu,hij:()=>Hc,iGM:()=>Bm,ifc:()=>pi,ip1:()=>lg,jDz:()=>dm,kEZ:()=>vm,kL8:()=>Of,kcU:()=>io,lG2:()=>Kt,lcZ:()=>Mm,lnq:()=>wu,lqb:()=>es,lri:()=>_g,mCW:()=>mc,n5z:()=>Ul,n_E:()=>Vc,oAB:()=>Nt,oJD:()=>Th,oxw:()=>zp,pB0:()=>n_,q3G:()=>jn,qLn:()=>vl,qOj:()=>eu,qZA:()=>Dc,qzn:()=>Ts,rWj:()=>bg,s9C:()=>hu,sBO:()=>Mw,sIi:()=>yl,s_b:()=>jc,soG:()=>Wc,tBr:()=>vs,tb:()=>hg,tp0:()=>Yo,uIk:()=>nu,vHH:()=>$,vpe:()=>Ka,wAp:()=>ki,xi3:()=>Sm,xp6:()=>Jh,ynx:()=>Rc,z2F:()=>Yc,z3N:()=>fo,zSh:()=>Rd,zs3:()=>ts});var e=p(77579),f=p(50727),A=p(69751),S=p(56451),m=p(13099);function M(g){for(let b in g)if(g[b]===M)return b;throw Error("Could not find renamed property on target object.")}function w(g,b){for(const y in b)b.hasOwnProperty(y)&&!g.hasOwnProperty(y)&&(g[y]=b[y])}function x(g){if("string"==typeof g)return g;if(Array.isArray(g))return"["+g.map(x).join(", ")+"]";if(null==g)return""+g;if(g.overriddenName)return`${g.overriddenName}`;if(g.name)return`${g.name}`;const b=g.toString();if(null==b)return""+b;const y=b.indexOf("\n");return-1===y?b:b.substring(0,y)}function I(g,b){return null==g||""===g?null===b?"":b:null==b||""===b?g:g+" "+b}const F=M({__forward_ref__:M});function T(g){return g.__forward_ref__=T,g.toString=function(){return x(this())},g}function H(g){return P(g)?g():g}function P(g){return"function"==typeof g&&g.hasOwnProperty(F)&&g.__forward_ref__===T}function J(g){return g&&!!g.\u0275providers}const j="https://g.co/ng/security#xss";class $ extends Error{constructor(b,y){super(_e(b,y)),this.code=b}}function _e(g,b){return`NG0${Math.abs(g)}${b?": "+b.trim():""}`}function ge(g){return"string"==typeof g?g:null==g?"":String(g)}function W(g,b){throw new $(-201,!1)}function ce(g,b){null==g&&function Me(g,b,y,D){throw new Error(`ASSERTION ERROR: ${g}`+(null==D?"":` [Expected=> ${y} ${D} ${b} <=Actual]`))}(b,g,null,"!=")}function Ce(g){return{token:g.token,providedIn:g.providedIn||null,factory:g.factory,value:void 0}}function Ue(g){return{providers:g.providers||[],imports:g.imports||[]}}function pt(g){return st(g,Re)||st(g,ve)}function z(g){return null!==pt(g)}function st(g,b){return g.hasOwnProperty(b)?g[b]:null}function he(g){return g&&(g.hasOwnProperty(He)||g.hasOwnProperty(Oe))?g[He]:null}const Re=M({\u0275prov:M}),He=M({\u0275inj:M}),ve=M({ngInjectableDef:M}),Oe=M({ngInjectorDef:M});var r=(()=>((r=r||{})[r.Default=0]="Default",r[r.Host=1]="Host",r[r.Self=2]="Self",r[r.SkipSelf=4]="SkipSelf",r[r.Optional=8]="Optional",r))();let u;function C(g){const b=u;return u=g,b}function h(g,b,y){const D=pt(g);return D&&"root"==D.providedIn?void 0===D.value?D.value=D.factory():D.value:y&r.Optional?null:void 0!==b?b:void W(x(g))}const n=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),c={},l="__NG_DI_FLAG__",d="ngTempTokenPath",s="ngTokenPath",E=/\n/gm,B="\u0275",q="__source";let qe;function it(g){const b=qe;return qe=g,b}function xt(g,b=r.Default){if(void 0===qe)throw new $(-203,!1);return null===qe?h(g,void 0,b):qe.get(g,b&r.Optional?null:void 0,b)}function ht(g,b=r.Default){return(function _(){return u}()||xt)(H(g),b)}function Ee(g,b=r.Default){return ht(g,we(b))}function we(g){return typeof g>"u"||"number"==typeof g?g:0|(g.optional&&8)|(g.host&&1)|(g.self&&2)|(g.skipSelf&&4)}function de(g){const b=[];for(let y=0;y((Mt=Mt||{})[Mt.OnPush=0]="OnPush",Mt[Mt.Default=1]="Default",Mt))(),pi=(()=>{return(g=pi||(pi={}))[g.Emulated=0]="Emulated",g[g.None=2]="None",g[g.ShadowDom=3]="ShadowDom",pi;var g})();const Ut={},Tt=[],Se=M({\u0275cmp:M}),We=M({\u0275dir:M}),oe=M({\u0275pipe:M}),et=M({\u0275mod:M}),rt=M({\u0275fac:M}),Ft=M({__NG_ELEMENT_ID__:M});let yt=0;function Zt(g){return Ht(()=>{const y=!0===g.standalone,D={},R={type:g.type,providersResolver:null,decls:g.decls,vars:g.vars,factory:null,template:g.template||null,consts:g.consts||null,ngContentSelectors:g.ngContentSelectors,hostBindings:g.hostBindings||null,hostVars:g.hostVars||0,hostAttrs:g.hostAttrs||null,contentQueries:g.contentQueries||null,declaredInputs:D,inputs:null,outputs:null,exportAs:g.exportAs||null,onPush:g.changeDetection===Mt.OnPush,directiveDefs:null,pipeDefs:null,standalone:y,dependencies:y&&g.dependencies||null,getStandaloneInjector:null,selectors:g.selectors||Tt,viewQuery:g.viewQuery||null,features:g.features||null,data:g.data||{},encapsulation:g.encapsulation||pi.Emulated,id:"c"+yt++,styles:g.styles||Tt,_:null,setInput:null,schemas:g.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},L=g.dependencies,Z=g.features;return R.inputs=Bt(g.inputs,D),R.outputs=Bt(g.outputs),Z&&Z.forEach(me=>me(R)),R.directiveDefs=L?()=>("function"==typeof L?L():L).map(Di).filter(At):null,R.pipeDefs=L?()=>("function"==typeof L?L():L).map(Ri).filter(At):null,R})}function li(g,b,y){const D=g.\u0275cmp;D.directiveDefs=()=>("function"==typeof b?b():b).map(Di),D.pipeDefs=()=>("function"==typeof y?y():y).map(Ri)}function Di(g){return di(g)||Ai(g)}function At(g){return null!==g}function Nt(g){return Ht(()=>({type:g.type,bootstrap:g.bootstrap||Tt,declarations:g.declarations||Tt,imports:g.imports||Tt,exports:g.exports||Tt,transitiveCompileScopes:null,schemas:g.schemas||null,id:g.id||null}))}function Bt(g,b){if(null==g)return Ut;const y={};for(const D in g)if(g.hasOwnProperty(D)){let R=g[D],L=R;Array.isArray(R)&&(L=R[1],R=R[0]),y[R]=D,b&&(b[R]=L)}return y}const Kt=Zt;function ii(g){return{type:g.type,name:g.name,factory:null,pure:!1!==g.pure,standalone:!0===g.standalone,onDestroy:g.type.prototype.ngOnDestroy||null}}function di(g){return g[Se]||null}function Ai(g){return g[We]||null}function Ri(g){return g[oe]||null}function Dt(g){const b=di(g)||Ai(g)||Ri(g);return null!==b&&b.standalone}function Gt(g,b){const y=g[et]||null;if(!y&&!0===b)throw new Error(`Type ${x(g)} does not have '\u0275mod' property.`);return y}const Q=0,Ie=1,gt=2,Pt=3,ci=4,bi=5,Vi=6,en=7,ji=8,on=9,wn=10,Hi=11,Qn=12,cr=13,Ur=14,Cr=15,bn=16,dr=17,On=18,hn=19,rr=20,fn=21,Ki=22,mn=1,Nr=2,ar=7,Gn=8,Un=9,St=10;function lt(g){return Array.isArray(g)&&"object"==typeof g[mn]}function jt(g){return Array.isArray(g)&&!0===g[mn]}function Jt(g){return 0!=(4&g.flags)}function ui(g){return g.componentOffset>-1}function Ii(g){return 1==(1&g.flags)}function Li(g){return null!==g.template}function Qi(g){return 0!=(256&g[gt])}function Pr(g,b){return g.hasOwnProperty(rt)?g[rt]:null}class Xn{constructor(b,y,D){this.previousValue=b,this.currentValue=y,this.firstChange=D}isFirstChange(){return this.firstChange}}function Jr(){return oa}function oa(g){return g.type.prototype.ngOnChanges&&(g.setInput=Kr),ur}function ur(){const g=Qr(this),b=g?.current;if(b){const y=g.previous;if(y===Ut)g.previous=b;else for(let D in b)y[D]=b[D];g.current=null,this.ngOnChanges(b)}}function Kr(g,b,y,D){const R=this.declaredInputs[y],L=Qr(g)||function $r(g,b){return g[Er]=b}(g,{previous:Ut,current:null}),Z=L.current||(L.current={}),me=L.previous,Le=me[R];Z[R]=new Xn(Le&&Le.currentValue,b,me===Ut),g[D]=b}Jr.ngInherit=!0;const Er="__ngSimpleChanges__";function Qr(g){return g[Er]||null}const yn=function(g,b,y){},Nn="svg";function gn(g){for(;Array.isArray(g);)g=g[Q];return g}function va(g,b){return gn(b[g])}function sn(g,b){return gn(b[g.index])}function Fr(g,b){return g.data[b]}function hr(g,b){return g[b]}function An(g,b){const y=b[g];return lt(y)?y:y[Q]}function Ia(g){return 64==(64&g[gt])}function Wn(g,b){return null==b?null:g[b]}function pr(g){g[On]=0}function Oa(g,b){g[bi]+=b;let y=g,D=g[Pt];for(;null!==D&&(1===b&&1===y[bi]||-1===b&&0===y[bi]);)D[bi]+=b,y=D,D=D[Pt]}const Ui={lFrame:yo(null),bindingsEnabled:!0};function Xt(){return Ui.bindingsEnabled}function oi(){return Ui.lFrame.lView}function zi(){return Ui.lFrame.tView}function wa(g){return Ui.lFrame.contextLView=g,g[ji]}function ko(g){return Ui.lFrame.contextLView=null,g}function Ln(){let g=Ao();for(;null!==g&&64===g.type;)g=g.parent;return g}function Ao(){return Ui.lFrame.currentTNode}function fr(g,b){const y=Ui.lFrame;y.currentTNode=g,y.isParent=b}function La(){return Ui.lFrame.isParent}function ea(){Ui.lFrame.isParent=!1}function Tn(){const g=Ui.lFrame;let b=g.bindingRootIndex;return-1===b&&(b=g.bindingRootIndex=g.tView.bindingStartIndex),b}function Tr(){return Ui.lFrame.bindingIndex}function ta(){return Ui.lFrame.bindingIndex++}function er(g){const b=Ui.lFrame,y=b.bindingIndex;return b.bindingIndex=b.bindingIndex+g,y}function Ba(g,b){const y=Ui.lFrame;y.bindingIndex=y.bindingRootIndex=g,$a(b)}function $a(g){Ui.lFrame.currentDirectiveIndex=g}function Ua(g){const b=Ui.lFrame.currentDirectiveIndex;return-1===b?null:g[b]}function da(){return Ui.lFrame.currentQueryIndex}function wo(g){Ui.lFrame.currentQueryIndex=g}function Na(g){const b=g[Ie];return 2===b.type?b.declTNode:1===b.type?g[Vi]:null}function Eo(g,b,y){if(y&r.SkipSelf){let R=b,L=g;for(;!(R=R.parent,null!==R||y&r.Host||(R=Na(L),null===R||(L=L[Cr],10&R.type))););if(null===R)return!1;b=R,g=L}const D=Ui.lFrame=eo();return D.currentTNode=b,D.lView=g,!0}function Xa(g){const b=eo(),y=g[Ie];Ui.lFrame=b,b.currentTNode=y.firstChild,b.lView=g,b.tView=y,b.contextLView=g,b.bindingIndex=y.bindingStartIndex,b.inI18n=!1}function eo(){const g=Ui.lFrame,b=null===g?null:g.child;return null===b?yo(g):b}function yo(g){const b={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:g,child:null,inI18n:!1};return null!==g&&(g.child=b),b}function ls(){const g=Ui.lFrame;return Ui.lFrame=g.parent,g.currentTNode=null,g.lView=null,g}const To=ls;function to(){const g=ls();g.isParent=!0,g.tView=null,g.selectedIndex=-1,g.contextLView=null,g.elementDepthCount=0,g.currentDirectiveIndex=-1,g.currentNamespace=null,g.bindingRootIndex=-1,g.bindingIndex=-1,g.currentQueryIndex=0}function Yn(){return Ui.lFrame.selectedIndex}function ua(g){Ui.lFrame.selectedIndex=g}function _n(){const g=Ui.lFrame;return Fr(g.tView,g.selectedIndex)}function Vo(){Ui.lFrame.currentNamespace=Nn}function io(){!function ds(){Ui.lFrame.currentNamespace=null}()}function ot(g,b){for(let y=b.directiveStart,D=b.directiveEnd;y=D)break}else b[Le]<0&&(g[On]+=65536),(me>11>16&&(3&g[gt])===b){g[gt]+=2048,yn(4,me,L);try{L.call(me)}finally{yn(5,me,L)}}}else{yn(4,me,L);try{L.call(me)}finally{yn(5,me,L)}}}const Ci=-1;class Wi{constructor(b,y,D){this.factory=b,this.resolving=!1,this.canSeeViewProviders=y,this.injectImpl=D}}function gr(g,b,y){let D=0;for(;Db){Z=L-1;break}}}for(;L>16}(g),D=b;for(;y>0;)D=D[Cr],y--;return D}let Mo=!0;function Gr(g){const b=Mo;return Mo=g,b}const ps=255,ao=5;let Ys=0;const Hr={};function So(g,b){const y=fs(g,b);if(-1!==y)return y;const D=b[Ie];D.firstCreatePass&&(g.injectorIndex=b.length,qn(D.data,g),qn(b,null),qn(D.blueprint,null));const R=Ea(g,b),L=g.injectorIndex;if(us(R)){const Z=ro(R),me=xo(R,b),Le=me[Ie].data;for(let nt=0;nt<8;nt++)b[L+nt]=me[Z+nt]|Le[Z+nt]}return b[L+8]=R,L}function qn(g,b){g.push(0,0,0,0,0,0,0,0,b)}function fs(g,b){return-1===g.injectorIndex||g.parent&&g.parent.injectorIndex===g.injectorIndex||null===b[g.injectorIndex+8]?-1:g.injectorIndex}function Ea(g,b){if(g.parent&&-1!==g.parent.injectorIndex)return g.parent.injectorIndex;let y=0,D=null,R=b;for(;null!==R;){if(D=Zo(R),null===D)return Ci;if(y++,R=R[Cr],-1!==D.injectorIndex)return D.injectorIndex|y<<16}return Ci}function Va(g,b,y){!function qs(g,b,y){let D;"string"==typeof y?D=y.charCodeAt(0)||0:y.hasOwnProperty(Ft)&&(D=y[Ft]),null==D&&(D=y[Ft]=Ys++);const R=D&ps;b.data[g+(R>>ao)]|=1<=0?b&ps:Js:b}(y);if("function"==typeof L){if(!Eo(b,g,D))return D&r.Host?Fo(R,0,D):gs(b,y,D,R);try{const Z=L(D);if(null!=Z||D&r.Optional)return Z;W()}finally{To()}}else if("number"==typeof L){let Z=null,me=fs(g,b),Le=Ci,nt=D&r.Host?b[bn][Vi]:null;for((-1===me||D&r.SkipSelf)&&(Le=-1===me?Ea(g,b):b[me+8],Le!==Ci&&ia(D,!1)?(Z=b[Ie],me=ro(Le),b=xo(Le,b)):me=-1);-1!==me;){const Ct=b[Ie];if(Do(L,me,Ct.data)){const Ot=jo(me,b,y,Z,D,nt);if(Ot!==Hr)return Ot}Le=b[me+8],Le!==Ci&&ia(D,b[Ie].data[me+8]===nt)&&Do(L,me,b)?(Z=Ct,me=ro(Le),b=xo(Le,b)):me=-1}}return R}function jo(g,b,y,D,R,L){const Z=b[Ie],me=Z.data[g+8],Ct=oo(me,Z,y,null==D?ui(me)&&Mo:D!=Z&&0!=(3&me.type),R&r.Host&&L===me);return null!==Ct?xr(b,Z,Ct,me):Hr}function oo(g,b,y,D,R){const L=g.providerIndexes,Z=b.data,me=1048575&L,Le=g.directiveStart,Ct=L>>20,Wt=R?me+Ct:g.directiveEnd;for(let $t=D?me:me+Ct;$t=Le&&si.type===y)return $t}if(R){const $t=Z[Le];if($t&&Li($t)&&$t.type===y)return Le}return null}function xr(g,b,y,D){let R=g[y];const L=b.data;if(function $i(g){return g instanceof Wi}(R)){const Z=R;Z.resolving&&function re(g,b){const y=b?`. Dependency path: ${b.join(" > ")} > ${g}`:"";throw new $(-200,`Circular dependency in DI detected for ${g}${y}`)}(function pe(g){return"function"==typeof g?g.name||g.toString():"object"==typeof g&&null!=g&&"function"==typeof g.type?g.type.name||g.type.toString():ge(g)}(L[y]));const me=Gr(Z.canSeeViewProviders);Z.resolving=!0;const Le=Z.injectImpl?C(Z.injectImpl):null;Eo(g,D,r.Default);try{R=g[y]=Z.factory(void 0,L,g,D),b.firstCreatePass&&y>=D.directiveStart&&function xe(g,b,y){const{ngOnChanges:D,ngOnInit:R,ngDoCheck:L}=b.type.prototype;if(D){const Z=oa(b);(y.preOrderHooks||(y.preOrderHooks=[])).push(g,Z),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(g,Z)}R&&(y.preOrderHooks||(y.preOrderHooks=[])).push(0-g,R),L&&((y.preOrderHooks||(y.preOrderHooks=[])).push(g,L),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(g,L))}(y,L[y],b)}finally{null!==Le&&C(Le),Gr(me),Z.resolving=!1,To()}}return R}function Do(g,b,y){return!!(y[b+(g>>ao)]&1<{const b=g.prototype.constructor,y=b[rt]||Ks(b),D=Object.prototype;let R=Object.getPrototypeOf(g.prototype).constructor;for(;R&&R!==D;){const L=R[rt]||Ks(R);if(L&&L!==y)return L;R=Object.getPrototypeOf(R)}return L=>new L})}function Ks(g){return P(g)?()=>{const b=Ks(H(g));return b&&b()}:Pr(g)}function Zo(g){const b=g[Ie],y=b.type;return 2===y?b.declTNode:1===y?g[Vi]:null}function so(g){return function ms(g,b){if("class"===b)return g.classes;if("style"===b)return g.styles;const y=g.attrs;if(y){const D=y.length;let R=0;for(;R{const D=function zo(g){return function(...y){if(g){const D=g(...y);for(const R in D)this[R]=D[R]}}}(b);function R(...L){if(this instanceof R)return D.apply(this,L),this;const Z=new R(...L);return me.annotation=Z,me;function me(Le,nt,Ct){const Ot=Le.hasOwnProperty(ja)?Le[ja]:Object.defineProperty(Le,ja,{value:[]})[ja];for(;Ot.length<=Ct;)Ot.push(null);return(Ot[Ct]=Ot[Ct]||[]).push(Z),Le}}return y&&(R.prototype=Object.create(y.prototype)),R.prototype.ngMetadataName=g,R.annotationCls=R,R})}class dn{constructor(b,y){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof y?this.__NG_ELEMENT_ID__=y:void 0!==y&&(this.\u0275prov=Ce({token:this,providedIn:y.providedIn||"root",factory:y.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Xe(g,b){g.forEach(y=>Array.isArray(y)?Xe(y,b):b(y))}function vt(g,b,y){b>=g.length?g.push(y):g.splice(b,0,y)}function Et(g,b){return b>=g.length-1?g.pop():g.splice(b,1)[0]}function qt(g,b){const y=[];for(let D=0;D=0?g[1|D]=y:(D=~D,function xi(g,b,y,D){let R=g.length;if(R==b)g.push(y,D);else if(1===R)g.push(D,g[0]),g[0]=y;else{for(R--,g.push(g[R-1],g[R]);R>b;)g[R]=g[R-2],R--;g[b]=y,g[b+1]=D}}(g,D,b,y)),D}function zr(g,b){const y=Dn(g,b);if(y>=0)return g[1|y]}function Dn(g,b){return function Vn(g,b,y){let D=0,R=g.length>>y;for(;R!==D;){const L=D+(R-D>>1),Z=g[L<b?R=L:D=L+1}return~(R<({token:g})),-1),Wo=Ae(lo("Optional"),8),Yo=Ae(lo("SkipSelf"),4);var fa=(()=>((fa=fa||{})[fa.Important=1]="Important",fa[fa.DashCase=2]="DashCase",fa))();const ll=new Map;let dd=0;const ul="__ngContext__";function sr(g,b){lt(b)?(g[ul]=b[rr],function hd(g){ll.set(g[rr],g)}(b)):g[ul]=b}let dt;function Lt(g,b){return dt(g,b)}function Qt(g){const b=g[Pt];return jt(b)?b[Pt]:b}function Ei(g){return Ji(g[cr])}function qi(g){return Ji(g[ci])}function Ji(g){for(;null!==g&&!jt(g);)g=g[ci];return g}function Oi(g,b,y,D,R){if(null!=D){let L,Z=!1;jt(D)?L=D:lt(D)&&(Z=!0,D=D[Q]);const me=gn(D);0===g&&null!==y?null==R?Bi(b,y,me):Pi(b,y,me,R||null,!0):1===g&&null!==y?Pi(b,y,me,R||null,!0):2===g?function _d(g,b,y){const D=lr(g,b);D&&function Jn(g,b,y,D){g.removeChild(b,y,D)}(g,D,b,y)}(b,me,Z):3===g&&b.destroyNode(me),null!=L&&function Vg(g,b,y,D,R){const L=y[ar];L!==gn(y)&&Oi(b,g,D,L,R);for(let me=St;me0&&(g[y-1][ci]=D[ci]);const L=Et(g,St+b);!function br(g,b){ml(g,b,b[Hi],2,null,null),b[Q]=null,b[Vi]=null}(D[Ie],D);const Z=L[hn];null!==Z&&Z.detachView(L[Ie]),D[Pt]=null,D[ci]=null,D[gt]&=-65}return D}function hl(g,b){if(!(128&b[gt])){const y=b[Hi];y.destroyNode&&ml(g,b,y,3,null,null),function ma(g){let b=g[cr];if(!b)return uo(g[Ie],g);for(;b;){let y=null;if(lt(b))y=b[cr];else{const D=b[St];D&&(y=D)}if(!y){for(;b&&!b[ci]&&b!==g;)lt(b)&&uo(b[Ie],b),b=b[Pt];null===b&&(b=g),lt(b)&&uo(b[Ie],b),y=b&&b[ci]}b=y}}(b)}}function uo(g,b){if(!(128&b[gt])){b[gt]&=-65,b[gt]|=128,function uc(g,b){let y;if(null!=g&&null!=(y=g.destroyHooks))for(let D=0;D=0?D[R=Z]():D[R=-Z].unsubscribe(),L+=2}else{const Z=D[R=y[L+1]];y[L].call(Z)}if(null!==D){for(let L=R+1;L-1){const{encapsulation:L}=g.data[D.directiveStart+R];if(L===pi.None||L===pi.Emulated)return null}return sn(D,y)}}(g,b.parent,y)}function Pi(g,b,y,D,R){g.insertBefore(b,y,D,R)}function Bi(g,b,y){g.appendChild(b,y)}function nn(g,b,y,D,R){null!==D?Pi(g,b,y,D,R):Bi(g,b,y)}function lr(g,b){return g.parentNode(b)}function Mn(g,b,y){return hc(g,b,y)}let Kn,pc,vd,fc,hc=function fl(g,b,y){return 40&g.type?sn(g,y):null};function vr(g,b,y,D){const R=pl(g,D,b),L=b[Hi],me=Mn(D.parent||b[Vi],D,b);if(null!=R)if(Array.isArray(y))for(let Le=0;Leg,createScript:g=>g,createScriptURL:g=>g})}catch{}return pc}()?.createHTML(g)||g}function Wg(g){vd=g}function Cd(){if(void 0===fc&&(fc=null,n.trustedTypes))try{fc=n.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:g=>g,createScript:g=>g,createScriptURL:g=>g})}catch{}return fc}function mh(g){return Cd()?.createHTML(g)||g}function _h(g){return Cd()?.createScriptURL(g)||g}class $o{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${j})`}}class Yg extends $o{getTypeName(){return"HTML"}}class qg extends $o{getTypeName(){return"Style"}}class Jg extends $o{getTypeName(){return"Script"}}class Kg extends $o{getTypeName(){return"URL"}}class Qg extends $o{getTypeName(){return"ResourceURL"}}function fo(g){return g instanceof $o?g.changingThisBreaksApplicationSecurity:g}function Ts(g,b){const y=function $g(g){return g instanceof $o&&g.getTypeName()||null}(g);if(null!=y&&y!==b){if("ResourceURL"===y&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${y} (see ${j})`)}return y===b}function Xg(g){return new Yg(g)}function e_(g){return new qg(g)}function t_(g){return new Jg(g)}function i_(g){return new Kg(g)}function n_(g){return new Qg(g)}class r_{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const y=(new window.DOMParser).parseFromString(Qo(b),"text/html").body;return null===y?this.inertDocumentHelper.getInertBodyElement(b):(y.removeChild(y.firstChild),y)}catch{return null}}}class a_{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const y=this.inertDocument.createElement("html");this.inertDocument.appendChild(y);const D=this.inertDocument.createElement("body");y.appendChild(D)}}getInertBodyElement(b){const y=this.inertDocument.createElement("template");if("content"in y)return y.innerHTML=Qo(b),y;const D=this.inertDocument.createElement("body");return D.innerHTML=Qo(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(D),D}stripCustomNsAttrs(b){const y=b.attributes;for(let R=y.length-1;0"),!0}endElement(b){const y=b.nodeName.toLowerCase();wd.hasOwnProperty(y)&&!Ah.hasOwnProperty(y)&&(this.buf.push(""))}chars(b){this.buf.push(Eh(b))}checkClobberedElement(b,y){if(y&&(b.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return y}}const d_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u_=/([^\#-~ |!])/g;function Eh(g){return g.replace(/&/g,"&").replace(d_,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(u_,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let gc;function yh(g,b){let y=null;try{gc=gc||function bh(g){const b=new a_(g);return function o_(){try{return!!(new window.DOMParser).parseFromString(Qo(""),"text/html")}catch{return!1}}()?new r_(b):b}(g);let D=b?String(b):"";y=gc.getInertBodyElement(D);let R=5,L=D;do{if(0===R)throw new Error("Failed to sanitize html because the input is unstable");R--,D=L,L=y.innerHTML,y=gc.getInertBodyElement(D)}while(D!==L);return Qo((new c_).sanitizeChildren(yd(y)||y))}finally{if(y){const D=yd(y)||y;for(;D.firstChild;)D.removeChild(D.firstChild)}}}function yd(g){return"content"in g&&function h_(g){return g.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===g.nodeName}(g)?g.content:null}var jn=(()=>((jn=jn||{})[jn.NONE=0]="NONE",jn[jn.HTML=1]="HTML",jn[jn.STYLE=2]="STYLE",jn[jn.SCRIPT=3]="SCRIPT",jn[jn.URL=4]="URL",jn[jn.RESOURCE_URL=5]="RESOURCE_URL",jn))();function Th(g){const b=_l();return b?mh(b.sanitize(jn.HTML,g)||""):Ts(g,"HTML")?mh(fo(g)):yh(function fh(){return void 0!==vd?vd:typeof document<"u"?document:void 0}(),ge(g))}function Td(g){const b=_l();return b?b.sanitize(jn.URL,g)||"":Ts(g,"URL")?fo(g):mc(ge(g))}function xh(g){const b=_l();if(b)return _h(b.sanitize(jn.RESOURCE_URL,g)||"");if(Ts(g,"ResourceURL"))return _h(fo(g));throw new $(904,!1)}function Mh(g,b,y){return function __(g,b){return"src"===b&&("embed"===g||"frame"===g||"iframe"===g||"media"===g||"script"===g)||"href"===b&&("base"===g||"link"===g)?xh:Td}(b,y)(g)}function _l(){const g=oi();return g&&g[Qn]}const xd=new dn("ENVIRONMENT_INITIALIZER"),Sh=new dn("INJECTOR",-1),Dh=new dn("INJECTOR_DEF_TYPES");class Rh{get(b,y=c){if(y===c){const D=new Error(`NullInjectorError: No provider for ${x(b)}!`);throw D.name="NullInjectorError",D}return y}}function b_(g){return{\u0275providers:g}}function A_(...g){return{\u0275providers:Ph(0,g),\u0275fromNgModule:!0}}function Ph(g,...b){const y=[],D=new Set;let R;return Xe(b,L=>{const Z=L;Md(Z,y,[],D)&&(R||(R=[]),R.push(Z))}),void 0!==R&&Ih(R,y),y}function Ih(g,b){for(let y=0;y{b.push(L)})}}function Md(g,b,y,D){if(!(g=H(g)))return!1;let R=null,L=he(g);const Z=!L&&di(g);if(L||Z){if(Z&&!Z.standalone)return!1;R=g}else{const Le=g.ngModule;if(L=he(Le),!L)return!1;R=Le}const me=D.has(R);if(Z){if(me)return!1;if(D.add(R),Z.dependencies){const Le="function"==typeof Z.dependencies?Z.dependencies():Z.dependencies;for(const nt of Le)Md(nt,b,y,D)}}else{if(!L)return!1;{if(null!=L.imports&&!me){let nt;D.add(R);try{Xe(L.imports,Ct=>{Md(Ct,b,y,D)&&(nt||(nt=[]),nt.push(Ct))})}finally{}void 0!==nt&&Ih(nt,b)}if(!me){const nt=Pr(R)||(()=>new R);b.push({provide:R,useFactory:nt,deps:Tt},{provide:Dh,useValue:R,multi:!0},{provide:xd,useValue:()=>ht(R),multi:!0})}const Le=L.providers;null==Le||me||Sd(Le,Ct=>{b.push(Ct)})}}return R!==g&&void 0!==g.providers}function Sd(g,b){for(let y of g)J(y)&&(y=y.\u0275providers),Array.isArray(y)?Sd(y,b):b(y)}const v_=M({provide:String,useValue:M});function Dd(g){return null!==g&&"object"==typeof g&&v_ in g}function Xo(g){return"function"==typeof g}const Rd=new dn("Set Injector scope."),_c={},w_={};let Pd;function bc(){return void 0===Pd&&(Pd=new Rh),Pd}class es{}class Hh extends es{constructor(b,y,D,R){super(),this.parent=y,this.source=D,this.scopes=R,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Od(b,Z=>this.processProvider(Z)),this.records.set(Sh,xs(void 0,this)),R.has("environment")&&this.records.set(es,xs(void 0,this));const L=this.records.get(Rd);null!=L&&"string"==typeof L.value&&this.scopes.add(L.value),this.injectorDefTypes=new Set(this.get(Dh.multi,Tt,r.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const y=it(this),D=C(void 0);try{return b()}finally{it(y),C(D)}}get(b,y=c,D=r.Default){this.assertNotDestroyed(),D=we(D);const R=it(this),L=C(void 0);try{if(!(D&r.SkipSelf)){let me=this.records.get(b);if(void 0===me){const Le=function M_(g){return"function"==typeof g||"object"==typeof g&&g instanceof dn}(b)&&pt(b);me=Le&&this.injectableDefInScope(Le)?xs(Id(b),_c):null,this.records.set(b,me)}if(null!=me)return this.hydrate(b,me)}return(D&r.Self?bc():this.parent).get(b,y=D&r.Optional&&y===c?null:y)}catch(Z){if("NullInjectorError"===Z.name){if((Z[d]=Z[d]||[]).unshift(x(b)),R)throw Z;return function ut(g,b,y,D){const R=g[d];throw b[q]&&R.unshift(b[q]),g.message=function bt(g,b,y,D=null){g=g&&"\n"===g.charAt(0)&&g.charAt(1)==B?g.slice(2):g;let R=x(b);if(Array.isArray(b))R=b.map(x).join(" -> ");else if("object"==typeof b){let L=[];for(let Z in b)if(b.hasOwnProperty(Z)){let me=b[Z];L.push(Z+":"+("string"==typeof me?JSON.stringify(me):x(me)))}R=`{${L.join(", ")}}`}return`${y}${D?"("+D+")":""}[${R}]: ${g.replace(E,"\n ")}`}("\n"+g.message,R,y,D),g[s]=R,g[d]=null,g}(Z,b,"R3InjectorError",this.source)}throw Z}finally{C(L),it(R)}}resolveInjectorInitializers(){const b=it(this),y=C(void 0);try{const D=this.get(xd.multi,Tt,r.Self);for(const R of D)R()}finally{it(b),C(y)}}toString(){const b=[],y=this.records;for(const D of y.keys())b.push(x(D));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new $(205,!1)}processProvider(b){let y=Xo(b=H(b))?b:H(b&&b.provide);const D=function y_(g){return Dd(g)?xs(void 0,g.useValue):xs(Bh(g),_c)}(b);if(Xo(b)||!0!==b.multi)this.records.get(y);else{let R=this.records.get(y);R||(R=xs(void 0,_c,!0),R.factory=()=>de(R.multi),this.records.set(y,R)),y=b,R.multi.push(b)}this.records.set(y,D)}hydrate(b,y){return y.value===_c&&(y.value=w_,y.value=y.factory()),"object"==typeof y.value&&y.value&&function x_(g){return null!==g&&"object"==typeof g&&"function"==typeof g.ngOnDestroy}(y.value)&&this._ngOnDestroyHooks.add(y.value),y.value}injectableDefInScope(b){if(!b.providedIn)return!1;const y=H(b.providedIn);return"string"==typeof y?"any"===y||this.scopes.has(y):this.injectorDefTypes.has(y)}}function Id(g){const b=pt(g),y=null!==b?b.factory:Pr(g);if(null!==y)return y;if(g instanceof dn)throw new $(204,!1);if(g instanceof Function)return function E_(g){const b=g.length;if(b>0)throw qt(b,"?"),new $(204,!1);const y=function be(g){const b=g&&(g[Re]||g[ve]);if(b){const y=function Ye(g){if(g.hasOwnProperty("name"))return g.name;const b=(""+g).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(g);return console.warn(`DEPRECATED: DI is instantiating a token "${y}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${y}" class.`),b}return null}(g);return null!==y?()=>y.factory(g):()=>new g}(g);throw new $(204,!1)}function Bh(g,b,y){let D;if(Xo(g)){const R=H(g);return Pr(R)||Id(R)}if(Dd(g))D=()=>H(g.useValue);else if(function Lh(g){return!(!g||!g.useFactory)}(g))D=()=>g.useFactory(...de(g.deps||[]));else if(function Oh(g){return!(!g||!g.useExisting)}(g))D=()=>ht(H(g.useExisting));else{const R=H(g&&(g.useClass||g.provide));if(!function T_(g){return!!g.deps}(g))return Pr(R)||Id(R);D=()=>new R(...de(g.deps))}return D}function xs(g,b,y=!1){return{factory:g,value:b,multi:y?[]:void 0}}function Od(g,b){for(const y of g)Array.isArray(y)?Od(y,b):y&&J(y)?Od(y.\u0275providers,b):b(y)}class S_{}class kh{}class R_{resolveComponentFactory(b){throw function D_(g){const b=Error(`No component factory found for ${x(g)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=g,b}(b)}}let bl=(()=>{class g{}return g.NULL=new R_,g})();function P_(){return Ms(Ln(),oi())}function Ms(g,b){return new Al(sn(g,b))}let Al=(()=>{class g{constructor(y){this.nativeElement=y}}return g.__NG_ELEMENT_ID__=P_,g})();function I_(g){return g instanceof Al?g.nativeElement:g}class Nh{}let O_=(()=>{class g{}return g.__NG_ELEMENT_ID__=()=>function L_(){const g=oi(),y=An(Ln().index,g);return(lt(y)?y:g)[Hi]}(),g})(),H_=(()=>{class g{}return g.\u0275prov=Ce({token:g,providedIn:"root",factory:()=>null}),g})();class Vh{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const B_=new Vh("15.0.4"),Ld={},Hd="ngOriginalError";function Bd(g){return g[Hd]}class vl{constructor(){this._console=console}handleError(b){const y=this._findOriginalError(b);this._console.error("ERROR",b),y&&this._console.error("ORIGINAL ERROR",y)}_findOriginalError(b){let y=b&&Bd(b);for(;y&&Bd(y);)y=Bd(y);return y||null}}function Fh(g){return g.ownerDocument.defaultView}function jh(g){return g.ownerDocument}function go(g){return g instanceof Function?g():g}function Gh(g,b,y){let D=g.length;for(;;){const R=g.indexOf(b,y);if(-1===R)return R;if(0===R||g.charCodeAt(R-1)<=32){const L=b.length;if(R+L===D||g.charCodeAt(R+L)<=32)return R}y=R+1}}const zh="ng-template";function z_(g,b,y){let D=0;for(;DL?"":R[Ot+1].toLowerCase();const $t=8&D?Wt:null;if($t&&-1!==Gh($t,nt,0)||2&D&&nt!==Wt){if(Ma(D))return!1;Z=!0}}}}else{if(!Z&&!Ma(D)&&!Ma(Le))return!1;if(Z&&Ma(Le))continue;Z=!1,D=Le|1&D}}return Ma(D)||Z}function Ma(g){return 0==(1&g)}function q_(g,b,y,D){if(null===b)return-1;let R=0;if(D||!y){let L=!1;for(;R-1)for(y++;y0?'="'+me+'"':"")+"]"}else 8&D?R+="."+Z:4&D&&(R+=" "+Z);else""!==R&&!Ma(Z)&&(b+=qh(L,R),R=""),D=Z,L=L||!Ma(D);y++}return""!==R&&(b+=qh(L,R)),b}const Yi={};function Jh(g){Kh(zi(),oi(),Yn()+g,!1)}function Kh(g,b,y,D){if(!D)if(3==(3&b[gt])){const L=g.preOrderCheckHooks;null!==L&&Ne(b,L,y)}else{const L=g.preOrderHooks;null!==L&&mt(b,L,0,y)}ua(y)}function ep(g,b=null,y=null,D){const R=tp(g,b,y,D);return R.resolveInjectorInitializers(),R}function tp(g,b=null,y=null,D,R=new Set){const L=[y||Tt,A_(g)];return D=D||("object"==typeof g?void 0:x(g)),new Hh(L,b||bc(),D||null,R)}let ts=(()=>{class g{static create(y,D){if(Array.isArray(y))return ep({name:""},D,y,"");{const R=y.name??"";return ep({name:R},y.parent,y.providers,R)}}}return g.THROW_IF_NOT_FOUND=c,g.NULL=new Rh,g.\u0275prov=Ce({token:g,providedIn:"any",factory:()=>ht(Sh)}),g.__NG_ELEMENT_ID__=-1,g})();function Rs(g,b=r.Default){const y=oi();return null===y?ht(g,b):_s(Ln(),y,H(g),b)}function lp(){throw new Error("invalid")}function cp(g,b){const y=g.contentQueries;if(null!==y)for(let D=0;DKi&&Kh(g,b,Ki,!1),yn(Z?2:0,R),y(D,R)}finally{ua(L),yn(Z?3:1,R)}}function Zd(g,b,y){if(Jt(b)){const R=b.directiveEnd;for(let L=b.directiveStart;L0;){const y=g[--b];if("number"==typeof y&&y<0)return y}return 0})(Z)!=me&&Z.push(me),Z.push(y,D,L)}}(g,b,D,Cl(g,y,R.hostVars,Yi),R)}function Wa(g,b,y,D,R,L){const Z=sn(g,b);!function Jd(g,b,y,D,R,L,Z){if(null==L)g.removeAttribute(b,R,y);else{const me=null==Z?ge(L):Z(L,D||"",R);g.setAttribute(b,R,me,y)}}(b[Hi],Z,L,g.value,y,D,R)}function Nb(g,b,y,D,R,L){const Z=L[b];if(null!==Z){const me=D.setInput;for(let Le=0;Le0&&Kd(y)}}function Kd(g){for(let D=Ei(g);null!==D;D=qi(D))for(let R=St;R0&&Kd(L)}const y=g[Ie].components;if(null!==y)for(let D=0;D0&&Kd(R)}}function Gb(g,b){const y=An(b,g),D=y[Ie];(function zb(g,b){for(let y=b.length;y-1&&(ra(b,D),Et(y,D))}this._attachedToViewContainer=!1}hl(this._lView[Ie],this._lView)}onDestroy(b){hp(this._lView[Ie],this._lView,null,b)}markForCheck(){Qd(this._cdRefInjectingView||this._lView)}detach(){this._lView[gt]&=-65}reattach(){this._lView[gt]|=64}detectChanges(){Ec(this._lView[Ie],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new $(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Oo(g,b){ml(g,b,b[Hi],2,null,null)}(this._lView[Ie],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new $(902,!1);this._appRef=b}}class Wb extends wl{constructor(b){super(b),this._view=b}detectChanges(){const b=this._view;Ec(b[Ie],b,b[ji],!1)}checkNoChanges(){}get context(){return null}}class Ep extends bl{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const y=di(b);return new El(y,this.ngModule)}}function yp(g){const b=[];for(let y in g)g.hasOwnProperty(y)&&b.push({propName:g[y],templateName:y});return b}class qb{constructor(b,y){this.injector=b,this.parentInjector=y}get(b,y,D){D=we(D);const R=this.injector.get(b,Ld,D);return R!==Ld||y===Ld?R:this.parentInjector.get(b,y,D)}}class El extends kh{constructor(b,y){super(),this.componentDef=b,this.ngModule=y,this.componentType=b.type,this.selector=function eb(g){return g.map(X_).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!y}get inputs(){return yp(this.componentDef.inputs)}get outputs(){return yp(this.componentDef.outputs)}create(b,y,D,R){let L=(R=R||this.ngModule)instanceof es?R:R?.injector;L&&null!==this.componentDef.getStandaloneInjector&&(L=this.componentDef.getStandaloneInjector(L)||L);const Z=L?new qb(b,L):b,me=Z.get(Nh,null);if(null===me)throw new $(407,!1);const Le=Z.get(H_,null),nt=me.createRenderer(null,this.componentDef),Ct=this.componentDef.selectors[0][0]||"div",Ot=D?function yb(g,b,y){return g.selectRootElement(b,y===pi.ShadowDom)}(nt,D,this.componentDef.encapsulation):Bn(nt,Ct,function Yb(g){const b=g.toLowerCase();return"svg"===b?Nn:"math"===b?"math":null}(Ct)),Wt=this.componentDef.onPush?288:272,$t=Wd(0,null,null,1,0,null,null,null,null,null),si=vc(null,$t,null,Wt,null,null,me,nt,Le,Z,null);let gi,vi;Xa(si);try{const Si=this.componentDef;let Ni,fi=null;Si.findHostDirectiveDefs?(Ni=[],fi=new Map,Si.findHostDirectiveDefs(Si,Ni,fi),Ni.push(Si)):Ni=[Si];const Gi=function Kb(g,b){const y=g[Ie],D=Ki;return g[D]=b,Ps(y,D,2,"#host",null)}(si,Ot),Rn=function Qb(g,b,y,D,R,L,Z,me){const Le=R[Ie];!function $b(g,b,y,D){for(const R of g)b.mergedAttrs=Sn(b.mergedAttrs,R.hostAttrs);null!==b.mergedAttrs&&(yc(b,b.mergedAttrs,!0),null!==y&&ph(D,y,b))}(D,g,b,Z);const nt=L.createRenderer(b,y),Ct=vc(R,up(y),null,y.onPush?32:16,R[g.index],g,L,nt,me||null,null,null);return Le.firstCreatePass&&qd(Le,g,D.length-1),wc(R,Ct),R[g.index]=Ct}(Gi,Ot,Si,Ni,si,me,nt);vi=Fr($t,Ki),Ot&&function eA(g,b,y,D){if(D)gr(g,y,["ng-version",B_.full]);else{const{attrs:R,classes:L}=function tb(g){const b=[],y=[];let D=1,R=2;for(;D0&&hh(g,y,L.join(" "))}}(nt,Si,Ot,D),void 0!==y&&function tA(g,b,y){const D=g.projection=[];for(let R=0;R=0;D--){const R=g[D];R.hostVars=b+=R.hostVars,R.hostAttrs=Sn(R.hostAttrs,y=Sn(y,R.hostAttrs))}}(D)}function tu(g){return g===Ut?{}:g===Tt?[]:g}function rA(g,b){const y=g.viewQuery;g.viewQuery=y?(D,R)=>{b(D,R),y(D,R)}:b}function aA(g,b){const y=g.contentQueries;g.contentQueries=y?(D,R,L)=>{b(D,R,L),y(D,R,L)}:b}function oA(g,b){const y=g.hostBindings;g.hostBindings=y?(D,R)=>{b(D,R),y(D,R)}:b}let xc=null;function is(){if(!xc){const g=n.Symbol;if(g&&g.iterator)xc=g.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let y=0;yZ(gn(Gi[D.index])):D.index;let fi=null;if(!Z&&me&&(fi=function vA(g,b,y,D){const R=g.cleanup;if(null!=R)for(let L=0;LLe?me[Le]:null}"string"==typeof Z&&(L+=2)}return null}(g,b,R,D.index)),null!==fi)(fi.__ngLastListenerFn__||fi).__ngNextListenerFn__=L,fi.__ngLastListenerFn__=L,Wt=!1;else{L=Gp(D,b,Ct,L,!1);const Gi=y.listen(vi,R,L);Ot.push(L,Gi),nt&&nt.push(R,Ni,Si,Si+1)}}else L=Gp(D,b,Ct,L,!1);const $t=D.outputs;let si;if(Wt&&null!==$t&&(si=$t[R])){const gi=si.length;if(gi)for(let vi=0;vi-1?An(g.index,b):b);let Le=Zp(b,y,D,Z),nt=L.__ngNextListenerFn__;for(;nt;)Le=Zp(b,y,nt,Z)&&Le,nt=nt.__ngNextListenerFn__;return R&&!1===Le&&(Z.preventDefault(),Z.returnValue=!1),Le}}function zp(g=1){return function Uo(g){return(Ui.lFrame.contextLView=function No(g,b){for(;g>0;)b=b[Cr],g--;return b}(g,Ui.lFrame.contextLView))[ji]}(g)}function CA(g,b){let y=null;const D=function J_(g){const b=g.attrs;if(null!=b){const y=b.indexOf(5);if(!(1&y))return b[y+1]}return null}(g);for(let R=0;R>17&32767}function fu(g){return 2|g}function rs(g){return(131068&g)>>2}function mu(g,b){return-131069&g|b<<2}function gu(g){return 1|g}function tf(g,b,y,D,R){const L=g[y+1],Z=null===b;let me=D?Lo(L):rs(L),Le=!1;for(;0!==me&&(!1===Le||Z);){const Ct=g[me+1];MA(g[me],b)&&(Le=!0,g[me+1]=D?gu(Ct):fu(Ct)),me=D?Lo(Ct):rs(Ct)}Le&&(g[y+1]=D?fu(L):gu(L))}function MA(g,b){return null===g||null==b||(Array.isArray(g)?g[1]:g)===b||!(!Array.isArray(g)||"string"!=typeof b)&&Dn(g,b)>=0}const nr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function nf(g){return g.substring(nr.key,nr.keyEnd)}function rf(g,b){const y=nr.textEnd;return y===b?-1:(b=nr.keyEnd=function PA(g,b,y){for(;b32;)b++;return b}(g,nr.key=b,y),Fs(g,b,y))}function Fs(g,b,y){for(;b=0;y=rf(b,y))Xi(g,nf(b),!0)}function Sa(g,b,y,D){const R=oi(),L=zi(),Z=er(2);L.firstUpdatePass&&hf(L,g,Z,D),b!==Yi&&Sr(R,Z,b)&&ff(L,L.data[Yn()],R,R[Hi],g,R[Z+1]=function FA(g,b){return null==g||("string"==typeof b?g+=b:"object"==typeof g&&(g=x(fo(g)))),g}(b,y),D,Z)}function Da(g,b,y,D){const R=zi(),L=er(2);R.firstUpdatePass&&hf(R,null,L,D);const Z=oi();if(y!==Yi&&Sr(Z,L,y)){const me=R.data[Yn()];if(gf(me,D)&&!uf(R,L)){let Le=D?me.classesWithoutHost:me.stylesWithoutHost;null!==Le&&(y=I(Le,y||"")),ou(R,me,Z,y,D)}else!function VA(g,b,y,D,R,L,Z,me){R===Yi&&(R=Tt);let Le=0,nt=0,Ct=0=g.expandoStartIndex}function hf(g,b,y,D){const R=g.data;if(null===R[y+1]){const L=R[Yn()],Z=uf(g,y);gf(L,D)&&null===b&&!Z&&(b=!1),b=function HA(g,b,y,D){const R=Ua(g);let L=D?b.residualClasses:b.residualStyles;if(null===R)0===(D?b.classBindings:b.styleBindings)&&(y=xl(y=Au(null,g,b,y,D),b.attrs,D),L=null);else{const Z=b.directiveStylingLast;if(-1===Z||g[Z]!==R)if(y=Au(R,g,b,y,D),null===L){let Le=function BA(g,b,y){const D=y?b.classBindings:b.styleBindings;if(0!==rs(D))return g[Lo(D)]}(g,b,D);void 0!==Le&&Array.isArray(Le)&&(Le=Au(null,g,b,Le[1],D),Le=xl(Le,b.attrs,D),function kA(g,b,y,D){g[Lo(y?b.classBindings:b.styleBindings)]=D}(g,b,D,Le))}else L=function UA(g,b,y){let D;const R=b.directiveEnd;for(let L=1+b.directiveStylingLast;L0)&&(nt=!0)):Ct=y,R)if(0!==Le){const Wt=Lo(g[me+1]);g[D+1]=Oc(Wt,me),0!==Wt&&(g[Wt+1]=mu(g[Wt+1],D)),g[me+1]=function EA(g,b){return 131071&g|b<<17}(g[me+1],D)}else g[D+1]=Oc(me,0),0!==me&&(g[me+1]=mu(g[me+1],D)),me=D;else g[D+1]=Oc(Le,0),0===me?me=D:g[Le+1]=mu(g[Le+1],D),Le=D;nt&&(g[D+1]=fu(g[D+1])),tf(g,Ct,D,!0),tf(g,Ct,D,!1),function xA(g,b,y,D,R){const L=R?g.residualClasses:g.residualStyles;null!=L&&"string"==typeof b&&Dn(L,b)>=0&&(y[D+1]=gu(y[D+1]))}(b,Ct,g,D,L),Z=Oc(me,Le),L?b.classBindings=Z:b.styleBindings=Z}(R,L,b,y,Z,D)}}function Au(g,b,y,D,R){let L=null;const Z=y.directiveEnd;let me=y.directiveStylingLast;for(-1===me?me=y.directiveStart:me++;me0;){const Le=g[R],nt=Array.isArray(Le),Ct=nt?Le[1]:Le,Ot=null===Ct;let Wt=y[R+1];Wt===Yi&&(Wt=Ot?Tt:void 0);let $t=Ot?zr(Wt,D):Ct===D?Wt:void 0;if(nt&&!Lc($t)&&($t=zr(Le,D)),Lc($t)&&(me=$t,Z))return me;const si=g[R+1];R=Z?Lo(si):rs(si)}if(null!==b){let Le=L?b.residualClasses:b.residualStyles;null!=Le&&(me=zr(Le,D))}return me}function Lc(g){return void 0!==g}function gf(g,b){return 0!=(g.flags&(b?8:16))}function _f(g,b=""){const y=oi(),D=zi(),R=g+Ki,L=D.firstCreatePass?Ps(D,R,1,b,null):D.data[R],Z=y[R]=function Fi(g,b){return g.createText(b)}(y[Hi],b);vr(D,y,Z,L),fr(L,!1)}function vu(g){return Hc("",g,""),vu}function Hc(g,b,y){const D=oi(),R=Os(D,g,b,y);return R!==Yi&&_o(D,Yn(),R),Hc}function Cu(g,b,y,D,R){const L=oi(),Z=Ls(L,g,b,y,D,R);return Z!==Yi&&_o(L,Yn(),Z),Cu}function wu(g,b,y,D,R,L,Z){const me=oi(),Le=function Hs(g,b,y,D,R,L,Z,me){const nt=Mc(g,Tr(),y,R,Z);return er(3),nt?b+ge(y)+D+ge(R)+L+ge(Z)+me:Yi}(me,g,b,y,D,R,L,Z);return Le!==Yi&&_o(me,Yn(),Le),wu}function Eu(g,b,y,D,R,L,Z,me,Le){const nt=oi(),Ct=function Bs(g,b,y,D,R,L,Z,me,Le,nt){const Ot=_a(g,Tr(),y,R,Z,Le);return er(4),Ot?b+ge(y)+D+ge(R)+L+ge(Z)+me+ge(Le)+nt:Yi}(nt,g,b,y,D,R,L,Z,me,Le);return Ct!==Yi&&_o(nt,Yn(),Ct),Eu}function Ef(g,b,y){Da(Xi,Ja,Os(oi(),g,b,y),!0)}function yu(g,b,y){const D=oi();return Sr(D,ta(),b)&&aa(zi(),_n(),D,g,b,D[Hi],y,!0),yu}function Tu(g,b,y){const D=oi();if(Sr(D,ta(),b)){const L=zi(),Z=_n();aa(L,Z,D,g,b,Cp(Ua(L.data),Z,D),y,!0)}return Tu}const as=void 0;var ov=["en",[["a","p"],["AM","PM"],as],[["AM","PM"],as,as],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],as,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],as,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",as,"{1} 'at' {0}",as],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function av(g){const y=Math.floor(Math.abs(g)),D=g.toString().replace(/^[^.]*\.?/,"").length;return 1===y&&0===D?1:5}];let js={};function xu(g){const b=function sv(g){return g.toLowerCase().replace(/_/g,"-")}(g);let y=Lf(b);if(y)return y;const D=b.split("-")[0];if(y=Lf(D),y)return y;if("en"===D)return ov;throw new $(701,!1)}function Of(g){return xu(g)[ki.PluralCase]}function Lf(g){return g in js||(js[g]=n.ng&&n.ng.common&&n.ng.common.locales&&n.ng.common.locales[g]),js[g]}var ki=(()=>((ki=ki||{})[ki.LocaleId=0]="LocaleId",ki[ki.DayPeriodsFormat=1]="DayPeriodsFormat",ki[ki.DayPeriodsStandalone=2]="DayPeriodsStandalone",ki[ki.DaysFormat=3]="DaysFormat",ki[ki.DaysStandalone=4]="DaysStandalone",ki[ki.MonthsFormat=5]="MonthsFormat",ki[ki.MonthsStandalone=6]="MonthsStandalone",ki[ki.Eras=7]="Eras",ki[ki.FirstDayOfWeek=8]="FirstDayOfWeek",ki[ki.WeekendRange=9]="WeekendRange",ki[ki.DateFormat=10]="DateFormat",ki[ki.TimeFormat=11]="TimeFormat",ki[ki.DateTimeFormat=12]="DateTimeFormat",ki[ki.NumberSymbols=13]="NumberSymbols",ki[ki.NumberFormats=14]="NumberFormats",ki[ki.CurrencyCode=15]="CurrencyCode",ki[ki.CurrencySymbol=16]="CurrencySymbol",ki[ki.CurrencyName=17]="CurrencyName",ki[ki.Currencies=18]="Currencies",ki[ki.Directionality=19]="Directionality",ki[ki.PluralCase=20]="PluralCase",ki[ki.ExtraData=21]="ExtraData",ki))();const Zs="en-US";let Hf=Zs;function Du(g,b,y,D,R){if(g=H(g),Array.isArray(g))for(let L=0;L>20;if(Xo(g)||!g.multi){const $t=new Wi(Le,R,Rs),si=Pu(me,b,R?Ct:Ct+Wt,Ot);-1===si?(Va(So(nt,Z),L,me),Ru(L,g,b.length),b.push(me),nt.directiveStart++,nt.directiveEnd++,R&&(nt.providerIndexes+=1048576),y.push($t),Z.push($t)):(y[si]=$t,Z[si]=$t)}else{const $t=Pu(me,b,Ct+Wt,Ot),si=Pu(me,b,Ct,Ct+Wt),vi=si>=0&&y[si];if(R&&!vi||!R&&!($t>=0&&y[$t])){Va(So(nt,Z),L,me);const Si=function rC(g,b,y,D,R){const L=new Wi(g,y,Rs);return L.multi=[],L.index=b,L.componentProviders=0,om(L,R,D&&!y),L}(R?nC:iC,y.length,R,D,Le);!R&&vi&&(y[si].providerFactory=Si),Ru(L,g,b.length,0),b.push(me),nt.directiveStart++,nt.directiveEnd++,R&&(nt.providerIndexes+=1048576),y.push(Si),Z.push(Si)}else Ru(L,g,$t>-1?$t:si,om(y[R?si:$t],Le,!R&&D));!R&&D&&vi&&y[si].componentProviders++}}}function Ru(g,b,y,D){const R=Xo(b),L=function C_(g){return!!g.useClass}(b);if(R||L){const Le=(L?H(b.useClass):b).prototype.ngOnDestroy;if(Le){const nt=g.destroyHooks||(g.destroyHooks=[]);if(!R&&b.multi){const Ct=nt.indexOf(y);-1===Ct?nt.push(y,[D,Le]):nt[Ct+1].push(D,Le)}else nt.push(y,Le)}}}function om(g,b,y){return y&&g.componentProviders++,g.multi.push(b)-1}function Pu(g,b,y,D){for(let R=y;R{y.providersResolver=(D,R)=>function tC(g,b,y){const D=zi();if(D.firstCreatePass){const R=Li(g);Du(y,D.data,D.blueprint,R,!0),Du(b,D.data,D.blueprint,R,!1)}}(D,R?R(g):g,b)}}class Gs{}class lm{}function aC(g,b){return new cm(g,b??null)}class cm extends Gs{constructor(b,y){super(),this._parent=y,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ep(this);const D=Gt(b);this._bootstrapComponents=go(D.bootstrap),this._r3Injector=tp(b,y,[{provide:Gs,useValue:this},{provide:bl,useValue:this.componentFactoryResolver}],x(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(y=>y()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class Ou extends lm{constructor(b){super(),this.moduleType=b}create(b){return new cm(this.moduleType,b)}}class oC extends Gs{constructor(b,y,D){super(),this.componentFactoryResolver=new Ep(this),this.instance=null;const R=new Hh([...b,{provide:Gs,useValue:this},{provide:bl,useValue:this.componentFactoryResolver}],y||bc(),D,new Set(["environment"]));this.injector=R,R.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function Lu(g,b,y=null){return new oC(g,b,y).injector}let sC=(()=>{class g{constructor(y){this._injector=y,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(y){if(!y.standalone)return null;if(!this.cachedInjectors.has(y.id)){const D=Ph(0,y.type),R=D.length>0?Lu([D],this._injector,`Standalone[${y.type.name}]`):null;this.cachedInjectors.set(y.id,R)}return this.cachedInjectors.get(y.id)}ngOnDestroy(){try{for(const y of this.cachedInjectors.values())null!==y&&y.destroy()}finally{this.cachedInjectors.clear()}}}return g.\u0275prov=Ce({token:g,providedIn:"environment",factory:()=>new g(ht(es))}),g})();function dm(g){g.getStandaloneInjector=b=>b.get(sC).getOrCreateStandaloneInjector(g)}function _m(g,b,y){const D=Tn()+g,R=oi();return R[D]===Yi?Ya(R,D,y?b.call(y):b()):function Tl(g,b){return g[b]}(R,D)}function bm(g,b,y,D){return Cm(oi(),Tn(),g,b,y,D)}function Am(g,b,y,D,R){return wm(oi(),Tn(),g,b,y,D,R)}function vm(g,b,y,D,R,L){return Em(oi(),Tn(),g,b,y,D,R,L)}function Il(g,b){const y=g[b];return y===Yi?void 0:y}function Cm(g,b,y,D,R,L){const Z=b+y;return Sr(g,Z,R)?Ya(g,Z+1,L?D.call(L,R):D(R)):Il(g,Z+1)}function wm(g,b,y,D,R,L,Z){const me=b+y;return ns(g,me,R,L)?Ya(g,me+2,Z?D.call(Z,R,L):D(R,L)):Il(g,me+2)}function Em(g,b,y,D,R,L,Z,me){const Le=b+y;return Mc(g,Le,R,L,Z)?Ya(g,Le+3,me?D.call(me,R,L,Z):D(R,L,Z)):Il(g,Le+3)}function xm(g,b){const y=zi();let D;const R=g+Ki;y.firstCreatePass?(D=function wC(g,b){if(b)for(let y=b.length-1;y>=0;y--){const D=b[y];if(g===D.name)return D}}(b,y.pipeRegistry),y.data[R]=D,D.onDestroy&&(y.destroyHooks||(y.destroyHooks=[])).push(R,D.onDestroy)):D=y.data[R];const L=D.factory||(D.factory=Pr(D.type)),Z=C(Rs);try{const me=Gr(!1),Le=L();return Gr(me),function _A(g,b,y,D){y>=g.data.length&&(g.data[y]=null,g.blueprint[y]=null),b[y]=D}(y,oi(),R,Le),Le}finally{C(Z)}}function Mm(g,b,y){const D=g+Ki,R=oi(),L=hr(R,D);return Ol(R,D)?Cm(R,Tn(),b,L.transform,y,L):L.transform(y)}function Sm(g,b,y,D){const R=g+Ki,L=oi(),Z=hr(L,R);return Ol(L,R)?wm(L,Tn(),b,Z.transform,y,D,Z):Z.transform(y,D)}function Dm(g,b,y,D,R){const L=g+Ki,Z=oi(),me=hr(Z,L);return Ol(Z,L)?Em(Z,Tn(),b,me.transform,y,D,R,me):me.transform(y,D,R)}function Rm(g,b,y,D,R,L){const Z=g+Ki,me=oi(),Le=hr(me,Z);return Ol(me,Z)?function ym(g,b,y,D,R,L,Z,me,Le){const nt=b+y;return _a(g,nt,R,L,Z,me)?Ya(g,nt+4,Le?D.call(Le,R,L,Z,me):D(R,L,Z,me)):Il(g,nt+4)}(me,Tn(),b,Le.transform,y,D,R,L,Le):Le.transform(y,D,R,L)}function Ol(g,b){return g[Ie].data[b].pure}function Bu(g){return b=>{setTimeout(g,void 0,b)}}const Ka=class yC extends e.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,y,D){let R=b,L=y||(()=>null),Z=D;if(b&&"object"==typeof b){const Le=b;R=Le.next?.bind(Le),L=Le.error?.bind(Le),Z=Le.complete?.bind(Le)}this.__isAsync&&(L=Bu(L),R&&(R=Bu(R)),Z&&(Z=Bu(Z)));const me=super.subscribe({next:R,error:L,complete:Z});return b instanceof f.w0&&b.add(me),me}};function TC(){return this._results[is()]()}class Vc{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const y=is(),D=Vc.prototype;D[y]||(D[y]=TC)}get changes(){return this._changes||(this._changes=new Ka)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,y){return this._results.reduce(b,y)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,y){const D=this;D.dirty=!1;const R=function De(g){return g.flat(Number.POSITIVE_INFINITY)}(b);(this._changesDetected=!function G(g,b,y){if(g.length!==b.length)return!1;for(let D=0;D{class g{}return g.__NG_ELEMENT_ID__=SC,g})();const xC=Ll,MC=class extends xC{constructor(b,y,D){super(),this._declarationLView=b,this._declarationTContainer=y,this.elementRef=D}createEmbeddedView(b,y){const D=this._declarationTContainer.tViews,R=vc(this._declarationLView,D,b,16,null,D.declTNode,null,null,null,null,y||null);R[dr]=this._declarationLView[this._declarationTContainer.index];const Z=this._declarationLView[hn];return null!==Z&&(R[hn]=Z.createEmbeddedView(D)),jd(D,R,b),new wl(R)}};function SC(){return Fc(Ln(),oi())}function Fc(g,b){return 4&g.type?new MC(b,g,Ms(g,b)):null}let jc=(()=>{class g{}return g.__NG_ELEMENT_ID__=DC,g})();function DC(){return Om(Ln(),oi())}const RC=jc,Pm=class extends RC{constructor(b,y,D){super(),this._lContainer=b,this._hostTNode=y,this._hostLView=D}get element(){return Ms(this._hostTNode,this._hostLView)}get injector(){return new na(this._hostTNode,this._hostLView)}get parentInjector(){const b=Ea(this._hostTNode,this._hostLView);if(us(b)){const y=xo(b,this._hostLView),D=ro(b);return new na(y[Ie].data[D+8],y)}return new na(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const y=Im(this._lContainer);return null!==y&&y[b]||null}get length(){return this._lContainer.length-St}createEmbeddedView(b,y,D){let R,L;"number"==typeof D?R=D:null!=D&&(R=D.index,L=D.injector);const Z=b.createEmbeddedView(y||{},L);return this.insert(Z,R),Z}createComponent(b,y,D,R,L){const Z=b&&!function se(g){return"function"==typeof g}(b);let me;if(Z)me=y;else{const Ot=y||{};me=Ot.index,D=Ot.injector,R=Ot.projectableNodes,L=Ot.environmentInjector||Ot.ngModuleRef}const Le=Z?b:new El(di(b)),nt=D||this.parentInjector;if(!L&&null==Le.ngModule){const Wt=(Z?nt:this.parentInjector).get(es,null);Wt&&(L=Wt)}const Ct=Le.create(nt,R,void 0,L);return this.insert(Ct.hostView,me),Ct}insert(b,y){const D=b._lView,R=D[Ie];if(function Bo(g){return jt(g[Pt])}(D)){const Ct=this.indexOf(b);if(-1!==Ct)this.detach(Ct);else{const Ot=D[Pt],Wt=new Pm(Ot,Ot[Vi],Ot[Pt]);Wt.detach(Wt.indexOf(b))}}const L=this._adjustIndex(y),Z=this._lContainer;!function Ar(g,b,y,D){const R=St+D,L=y.length;D>0&&(y[R-1][ci]=b),D0)D.push(Z[me/2]);else{const nt=L[me+1],Ct=b[-Le];for(let Ot=St;Ot{class g{constructor(y){this.appInits=y,this.resolve=Gc,this.reject=Gc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((D,R)=>{this.resolve=D,this.reject=R})}runInitializers(){if(this.initialized)return;const y=[],D=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let R=0;R{L.subscribe({complete:me,error:Le})});y.push(Z)}}Promise.all(y).then(()=>{D()}).catch(R=>{this.reject(R)}),0===y.length&&D(),this.initialized=!0}}return g.\u0275fac=function(y){return new(y||g)(ht(lg,8))},g.\u0275prov=Ce({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();const cg=new dn("AppId",{providedIn:"root",factory:function dg(){return`${Yu()}${Yu()}${Yu()}`}});function Yu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ug=new dn("Platform Initializer"),iw=new dn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),hg=new dn("appBootstrapListener"),nw=new dn("AnimationModuleType");let rw=(()=>{class g{log(y){console.log(y)}warn(y){console.warn(y)}}return g.\u0275fac=function(y){return new(y||g)},g.\u0275prov=Ce({token:g,factory:g.\u0275fac,providedIn:"platform"}),g})();const Wc=new dn("LocaleId",{providedIn:"root",factory:()=>Ee(Wc,r.Optional|r.SkipSelf)||function aw(){return typeof $localize<"u"&&$localize.locale||Zs}()}),ow=new dn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class sw{constructor(b,y){this.ngModuleFactory=b,this.componentFactories=y}}let lw=(()=>{class g{compileModuleSync(y){return new Ou(y)}compileModuleAsync(y){return Promise.resolve(this.compileModuleSync(y))}compileModuleAndAllComponentsSync(y){const D=this.compileModuleSync(y),L=go(Gt(y).declarations).reduce((Z,me)=>{const Le=di(me);return Le&&Z.push(new El(Le)),Z},[]);return new sw(D,L)}compileModuleAndAllComponentsAsync(y){return Promise.resolve(this.compileModuleAndAllComponentsSync(y))}clearCache(){}clearCacheFor(y){}getModuleId(y){}}return g.\u0275fac=function(y){return new(y||g)},g.\u0275prov=Ce({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();const uw=(()=>Promise.resolve(0))();function qu(g){typeof Zone>"u"?uw.then(()=>{g&&g.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",g)}class ba{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:y=!1,shouldCoalesceRunChangeDetection:D=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ka(!1),this.onMicrotaskEmpty=new Ka(!1),this.onStable=new Ka(!1),this.onError=new Ka(!1),typeof Zone>"u")throw new $(908,!1);Zone.assertZonePatched();const R=this;R._nesting=0,R._outer=R._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(R._inner=R._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(R._inner=R._inner.fork(Zone.longStackTraceZoneSpec)),R.shouldCoalesceEventChangeDetection=!D&&y,R.shouldCoalesceRunChangeDetection=D,R.lastRequestAnimationFrameId=-1,R.nativeRequestAnimationFrame=function hw(){let g=n.requestAnimationFrame,b=n.cancelAnimationFrame;if(typeof Zone<"u"&&g&&b){const y=g[Zone.__symbol__("OriginalDelegate")];y&&(g=y);const D=b[Zone.__symbol__("OriginalDelegate")];D&&(b=D)}return{nativeRequestAnimationFrame:g,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function mw(g){const b=()=>{!function fw(g){g.isCheckStableRunning||-1!==g.lastRequestAnimationFrameId||(g.lastRequestAnimationFrameId=g.nativeRequestAnimationFrame.call(n,()=>{g.fakeTopEventTask||(g.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{g.lastRequestAnimationFrameId=-1,Ku(g),g.isCheckStableRunning=!0,Ju(g),g.isCheckStableRunning=!1},void 0,()=>{},()=>{})),g.fakeTopEventTask.invoke()}),Ku(g))}(g)};g._inner=g._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(y,D,R,L,Z,me)=>{try{return mg(g),y.invokeTask(R,L,Z,me)}finally{(g.shouldCoalesceEventChangeDetection&&"eventTask"===L.type||g.shouldCoalesceRunChangeDetection)&&b(),gg(g)}},onInvoke:(y,D,R,L,Z,me,Le)=>{try{return mg(g),y.invoke(R,L,Z,me,Le)}finally{g.shouldCoalesceRunChangeDetection&&b(),gg(g)}},onHasTask:(y,D,R,L)=>{y.hasTask(R,L),D===R&&("microTask"==L.change?(g._hasPendingMicrotasks=L.microTask,Ku(g),Ju(g)):"macroTask"==L.change&&(g.hasPendingMacrotasks=L.macroTask))},onHandleError:(y,D,R,L)=>(y.handleError(R,L),g.runOutsideAngular(()=>g.onError.emit(L)),!1)})}(R)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ba.isInAngularZone())throw new $(909,!1)}static assertNotInAngularZone(){if(ba.isInAngularZone())throw new $(909,!1)}run(b,y,D){return this._inner.run(b,y,D)}runTask(b,y,D,R){const L=this._inner,Z=L.scheduleEventTask("NgZoneEvent: "+R,b,pw,Gc,Gc);try{return L.runTask(Z,y,D)}finally{L.cancelTask(Z)}}runGuarded(b,y,D){return this._inner.runGuarded(b,y,D)}runOutsideAngular(b){return this._outer.run(b)}}const pw={};function Ju(g){if(0==g._nesting&&!g.hasPendingMicrotasks&&!g.isStable)try{g._nesting++,g.onMicrotaskEmpty.emit(null)}finally{if(g._nesting--,!g.hasPendingMicrotasks)try{g.runOutsideAngular(()=>g.onStable.emit(null))}finally{g.isStable=!0}}}function Ku(g){g.hasPendingMicrotasks=!!(g._hasPendingMicrotasks||(g.shouldCoalesceEventChangeDetection||g.shouldCoalesceRunChangeDetection)&&-1!==g.lastRequestAnimationFrameId)}function mg(g){g._nesting++,g.isStable&&(g.isStable=!1,g.onUnstable.emit(null))}function gg(g){g._nesting--,Ju(g)}class gw{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ka,this.onMicrotaskEmpty=new Ka,this.onStable=new Ka,this.onError=new Ka}run(b,y,D){return b.apply(y,D)}runGuarded(b,y,D){return b.apply(y,D)}runOutsideAngular(b){return b()}runTask(b,y,D,R){return b.apply(y,D)}}const _g=new dn(""),bg=new dn("");let Qu,_w=(()=>{class g{constructor(y,D,R){this._ngZone=y,this.registry=D,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Qu||(function bw(g){Qu=g}(R),R.addToWindow(D)),this._watchAngularEvents(),y.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ba.assertNotInAngularZone(),qu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())qu(()=>{for(;0!==this._callbacks.length;){let y=this._callbacks.pop();clearTimeout(y.timeoutId),y.doneCb(this._didWork)}this._didWork=!1});else{let y=this.getPendingTasks();this._callbacks=this._callbacks.filter(D=>!D.updateCb||!D.updateCb(y)||(clearTimeout(D.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(y=>({source:y.source,creationLocation:y.creationLocation,data:y.data})):[]}addCallback(y,D,R){let L=-1;D&&D>0&&(L=setTimeout(()=>{this._callbacks=this._callbacks.filter(Z=>Z.timeoutId!==L),y(this._didWork,this.getPendingTasks())},D)),this._callbacks.push({doneCb:y,timeoutId:L,updateCb:R})}whenStable(y,D,R){if(R&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(y,D,R),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(y){this.registry.registerApplication(y,this)}unregisterApplication(y){this.registry.unregisterApplication(y)}findProviders(y,D,R){return[]}}return g.\u0275fac=function(y){return new(y||g)(ht(ba),ht(Ag),ht(bg))},g.\u0275prov=Ce({token:g,factory:g.\u0275fac}),g})(),Ag=(()=>{class g{constructor(){this._applications=new Map}registerApplication(y,D){this._applications.set(y,D)}unregisterApplication(y){this._applications.delete(y)}unregisterAllApplications(){this._applications.clear()}getTestability(y){return this._applications.get(y)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(y,D=!0){return Qu?.findTestabilityInTree(this,y,D)??null}}return g.\u0275fac=function(y){return new(y||g)},g.\u0275prov=Ce({token:g,factory:g.\u0275fac,providedIn:"platform"}),g})(),Ho=null;const vg=new dn("AllowMultipleToken"),$u=new dn("PlatformDestroyListeners"),bo=!1;class Cw{constructor(b,y){this.name=b,this.token=y}}function wg(g,b,y=[]){const D=`Platform: ${b}`,R=new dn(D);return(L=[])=>{let Z=Xu();if(!Z||Z.injector.get(vg,!1)){const me=[...y,...L,{provide:R,useValue:!0}];g?g(me):function ww(g){if(Ho&&!Ho.get(vg,!1))throw new $(400,!1);Ho=g;const b=g.get(yg);(function Cg(g){const b=g.get(ug,null);b&&b.forEach(y=>y())})(g)}(function Eg(g=[],b){return ts.create({name:b,providers:[{provide:Rd,useValue:"platform"},{provide:$u,useValue:new Set([()=>Ho=null])},...g]})}(me,D))}return function yw(g){const b=Xu();if(!b)throw new $(401,!1);return b}()}}function Xu(){return Ho?.get(yg)??null}let yg=(()=>{class g{constructor(y){this._injector=y,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(y,D){const R=function xg(g,b){let y;return y="noop"===g?new gw:("zone.js"===g?void 0:g)||new ba(b),y}(D?.ngZone,function Tg(g){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!g||!g.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!g||!g.ngZoneRunCoalescing)||!1}}(D)),L=[{provide:ba,useValue:R}];return R.run(()=>{const Z=ts.create({providers:L,parent:this.injector,name:y.moduleType.name}),me=y.create(Z),Le=me.injector.get(vl,null);if(!Le)throw new $(402,!1);return R.runOutsideAngular(()=>{const nt=R.onError.subscribe({next:Ct=>{Le.handleError(Ct)}});me.onDestroy(()=>{qc(this._modules,me),nt.unsubscribe()})}),function Mg(g,b,y){try{const D=y();return cu(D)?D.catch(R=>{throw b.runOutsideAngular(()=>g.handleError(R)),R}):D}catch(D){throw b.runOutsideAngular(()=>g.handleError(D)),D}}(Le,R,()=>{const nt=me.injector.get(zc);return nt.runInitializers(),nt.donePromise.then(()=>(function Bf(g){ce(g,"Expected localeId to be defined"),"string"==typeof g&&(Hf=g.toLowerCase().replace(/_/g,"-"))}(me.injector.get(Wc,Zs)||Zs),this._moduleDoBootstrap(me),me))})})}bootstrapModule(y,D=[]){const R=Sg({},D);return function Aw(g,b,y){const D=new Ou(y);return Promise.resolve(D)}(0,0,y).then(L=>this.bootstrapModuleFactory(L,R))}_moduleDoBootstrap(y){const D=y.injector.get(Yc);if(y._bootstrapComponents.length>0)y._bootstrapComponents.forEach(R=>D.bootstrap(R));else{if(!y.instance.ngDoBootstrap)throw new $(403,!1);y.instance.ngDoBootstrap(D)}this._modules.push(y)}onDestroy(y){this._destroyListeners.push(y)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new $(404,!1);this._modules.slice().forEach(D=>D.destroy()),this._destroyListeners.forEach(D=>D());const y=this._injector.get($u,null);y&&(y.forEach(D=>D()),y.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return g.\u0275fac=function(y){return new(y||g)(ht(ts))},g.\u0275prov=Ce({token:g,factory:g.\u0275fac,providedIn:"platform"}),g})();function Sg(g,b){return Array.isArray(b)?b.reduce(Sg,g):{...g,...b}}let Yc=(()=>{class g{constructor(y,D,R){this._zone=y,this._injector=D,this._exceptionHandler=R,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const L=new A.y(me=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{me.next(this._stable),me.complete()})}),Z=new A.y(me=>{let Le;this._zone.runOutsideAngular(()=>{Le=this._zone.onStable.subscribe(()=>{ba.assertNotInAngularZone(),qu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,me.next(!0))})})});const nt=this._zone.onUnstable.subscribe(()=>{ba.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{me.next(!1)}))});return()=>{Le.unsubscribe(),nt.unsubscribe()}});this.isStable=(0,S.T)(L,Z.pipe((0,m.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(y,D){const R=y instanceof kh;if(!this._injector.get(zc).done){!R&&Dt(y);throw new $(405,bo)}let Z;Z=R?y:this._injector.get(bl).resolveComponentFactory(y),this.componentTypes.push(Z.componentType);const me=function vw(g){return g.isBoundToModule}(Z)?void 0:this._injector.get(Gs),nt=Z.create(ts.NULL,[],D||Z.selector,me),Ct=nt.location.nativeElement,Ot=nt.injector.get(_g,null);return Ot?.registerApplication(Ct),nt.onDestroy(()=>{this.detachView(nt.hostView),qc(this.components,nt),Ot?.unregisterApplication(Ct)}),this._loadComponent(nt),nt}tick(){if(this._runningTick)throw new $(101,!1);try{this._runningTick=!0;for(let y of this._views)y.detectChanges()}catch(y){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(y))}finally{this._runningTick=!1}}attachView(y){const D=y;this._views.push(D),D.attachToAppRef(this)}detachView(y){const D=y;qc(this._views,D),D.detachFromAppRef()}_loadComponent(y){this.attachView(y.hostView),this.tick(),this.components.push(y);const D=this._injector.get(hg,[]);D.push(...this._bootstrapListeners),D.forEach(R=>R(y))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(y=>y()),this._views.slice().forEach(y=>y.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(y){return this._destroyListeners.push(y),()=>qc(this._destroyListeners,y)}destroy(){if(this._destroyed)throw new $(406,!1);const y=this._injector;y.destroy&&!y.destroyed&&y.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return g.\u0275fac=function(y){return new(y||g)(ht(ba),ht(es),ht(vl))},g.\u0275prov=Ce({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();function qc(g,b){const y=g.indexOf(b);y>-1&&g.splice(y,1)}function xw(){}let Mw=(()=>{class g{}return g.__NG_ELEMENT_ID__=Sw,g})();function Sw(g){return function Dw(g,b,y){if(ui(g)&&!y){const D=An(g.index,b);return new wl(D,D)}return 47&g.type?new wl(b[bn],b):null}(Ln(),oi(),16==(16&g))}class Og{constructor(){}supports(b){return yl(b)}create(b){return new Hw(b)}}const Lw=(g,b)=>b;class Hw{constructor(b){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=b||Lw}forEachItem(b){let y;for(y=this._itHead;null!==y;y=y._next)b(y)}forEachOperation(b){let y=this._itHead,D=this._removalsHead,R=0,L=null;for(;y||D;){const Z=!D||y&&y.currentIndex{Z=this._trackByFn(R,me),null!==y&&Object.is(y.trackById,Z)?(D&&(y=this._verifyReinsertion(y,me,Z,R)),Object.is(y.item,me)||this._addIdentityChange(y,me)):(y=this._mismatch(y,me,Z,R),D=!0),y=y._next,R++}),this.length=R;return this._truncate(y),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,y,D,R){let L;return null===b?L=this._itTail:(L=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(D,null))?(Object.is(b.item,y)||this._addIdentityChange(b,y),this._reinsertAfter(b,L,R)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(D,R))?(Object.is(b.item,y)||this._addIdentityChange(b,y),this._moveAfter(b,L,R)):b=this._addAfter(new Bw(y,D),L,R),b}_verifyReinsertion(b,y,D,R){let L=null===this._unlinkedRecords?null:this._unlinkedRecords.get(D,null);return null!==L?b=this._reinsertAfter(L,b._prev,R):b.currentIndex!=R&&(b.currentIndex=R,this._addToMoves(b,R)),b}_truncate(b){for(;null!==b;){const y=b._next;this._addToRemovals(this._unlink(b)),b=y}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(b,y,D){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const R=b._prevRemoved,L=b._nextRemoved;return null===R?this._removalsHead=L:R._nextRemoved=L,null===L?this._removalsTail=R:L._prevRemoved=R,this._insertAfter(b,y,D),this._addToMoves(b,D),b}_moveAfter(b,y,D){return this._unlink(b),this._insertAfter(b,y,D),this._addToMoves(b,D),b}_addAfter(b,y,D){return this._insertAfter(b,y,D),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,y,D){const R=null===y?this._itHead:y._next;return b._next=R,b._prev=y,null===R?this._itTail=b:R._prev=b,null===y?this._itHead=b:y._next=b,null===this._linkedRecords&&(this._linkedRecords=new Lg),this._linkedRecords.put(b),b.currentIndex=D,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const y=b._prev,D=b._next;return null===y?this._itHead=D:y._next=D,null===D?this._itTail=y:D._prev=y,b}_addToMoves(b,y){return b.previousIndex===y||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Lg),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,y){return b.item=y,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class Bw{constructor(b,y){this.item=b,this.trackById=y,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class kw{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,y){let D;for(D=this._head;null!==D;D=D._nextDup)if((null===y||y<=D.currentIndex)&&Object.is(D.trackById,b))return D;return null}remove(b){const y=b._prevDup,D=b._nextDup;return null===y?this._head=D:y._nextDup=D,null===D?this._tail=y:D._prevDup=y,null===this._head}}class Lg{constructor(){this.map=new Map}put(b){const y=b.trackById;let D=this.map.get(y);D||(D=new kw,this.map.set(y,D)),D.add(b)}get(b,y){const R=this.map.get(b);return R?R.get(b,y):null}remove(b){const y=b.trackById;return this.map.get(y).remove(b)&&this.map.delete(y),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Hg(g,b,y){const D=g.previousIndex;if(null===D)return D;let R=0;return y&&D{if(y&&y.key===R)this._maybeAddToChanges(y,D),this._appendAfter=y,y=y._next;else{const L=this._getOrCreateRecordForKey(R,D);y=this._insertBeforeOrAppend(y,L)}}),y){y._prev&&(y._prev._next=null),this._removalsHead=y;for(let D=y;null!==D;D=D._nextRemoved)D===this._mapHead&&(this._mapHead=null),this._records.delete(D.key),D._nextRemoved=D._next,D.previousValue=D.currentValue,D.currentValue=null,D._prev=null,D._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,y){if(b){const D=b._prev;return y._next=b,y._prev=D,b._prev=y,D&&(D._next=y),b===this._mapHead&&(this._mapHead=y),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=y,y._prev=this._appendAfter):this._mapHead=y,this._appendAfter=y,null}_getOrCreateRecordForKey(b,y){if(this._records.has(b)){const R=this._records.get(b);this._maybeAddToChanges(R,y);const L=R._prev,Z=R._next;return L&&(L._next=Z),Z&&(Z._prev=L),R._next=null,R._prev=null,R}const D=new Nw(b);return this._records.set(b,D),D.currentValue=y,this._addToAdditions(D),D}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,y){Object.is(y,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=y,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,y){b instanceof Map?b.forEach(y):Object.keys(b).forEach(D=>y(b[D],D))}}class Nw{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function kg(){return new rh([new Og])}let rh=(()=>{class g{constructor(y){this.factories=y}static create(y,D){if(null!=D){const R=D.factories.slice();y=y.concat(R)}return new g(y)}static extend(y){return{provide:g,useFactory:D=>g.create(y,D||kg()),deps:[[g,new Yo,new Wo]]}}find(y){const D=this.factories.find(R=>R.supports(y));if(null!=D)return D;throw new $(901,!1)}}return g.\u0275prov=Ce({token:g,providedIn:"root",factory:kg}),g})();function Ug(){return new ah([new Bg])}let ah=(()=>{class g{constructor(y){this.factories=y}static create(y,D){if(D){const R=D.factories.slice();y=y.concat(R)}return new g(y)}static extend(y){return{provide:g,useFactory:D=>g.create(y,D||Ug()),deps:[[g,new Yo,new Wo]]}}find(y){const D=this.factories.find(R=>R.supports(y));if(D)return D;throw new $(901,!1)}}return g.\u0275prov=Ce({token:g,providedIn:"root",factory:Ug}),g})();const jw=wg(null,"core",[]);let Zw=(()=>{class g{constructor(y){}}return g.\u0275fac=function(y){return new(y||g)(ht(Yc))},g.\u0275mod=Nt({type:g}),g.\u0275inj=Ue({}),g})();function Gw(g){return"boolean"==typeof g?g:null!=g&&"false"!==g}},24006:(Qe,ae,p)=>{"use strict";p.d(ae,{Cf:()=>_e,EJ:()=>Ge,F:()=>Vi,Fj:()=>J,JJ:()=>ve,JL:()=>Oe,JU:()=>x,Kr:()=>En,NI:()=>on,On:()=>fn,Q7:()=>Er,QS:()=>Ui,UX:()=>An,YN:()=>Rt,Zs:()=>Qr,_Y:()=>Ki,a5:()=>Ye,c5:()=>Vr,cw:()=>Mt,gN:()=>be,kI:()=>re,oH:()=>ui,p4:()=>wn,sg:()=>Li,u:()=>Rr,u5:()=>hr,wV:()=>mn});var e=p(94650),f=p(36895),A=p(32076),S=p(4128),m=p(54004);let M=(()=>{class Ke{constructor(Be,wt){this._renderer=Be,this._elementRef=wt,this.onChange=Xt=>{},this.onTouched=()=>{}}setProperty(Be,wt){this._renderer.setProperty(this._elementRef.nativeElement,Be,wt)}registerOnTouched(Be){this.onTouched=Be}registerOnChange(Be){this.onChange=Be}setDisabledState(Be){this.setProperty("disabled",Be)}}return Ke.\u0275fac=function(Be){return new(Be||Ke)(e.Y36(e.Qsj),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke}),Ke})(),w=(()=>{class Ke extends M{}return Ke.\u0275fac=function(){let Ze;return function(wt){return(Ze||(Ze=e.n5z(Ke)))(wt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,features:[e.qOj]}),Ke})();const x=new e.OlP("NgValueAccessor"),T={provide:x,useExisting:(0,e.Gpc)(()=>J),multi:!0},P=new e.OlP("CompositionEventMode");let J=(()=>{class Ke extends M{constructor(Be,wt,Xt){super(Be,wt),this._compositionMode=Xt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function H(){const Ke=(0,f.q)()?(0,f.q)().getUserAgent():"";return/android (\d+)/.test(Ke.toLowerCase())}())}writeValue(Be){this.setProperty("value",Be??"")}_handleInput(Be){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Be)}_compositionStart(){this._composing=!0}_compositionEnd(Be){this._composing=!1,this._compositionMode&&this.onChange(Be)}}return Ke.\u0275fac=function(Be){return new(Be||Ke)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(P,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Be,wt){1&Be&&e.NdJ("input",function(mi){return wt._handleInput(mi.target.value)})("blur",function(){return wt.onTouched()})("compositionstart",function(){return wt._compositionStart()})("compositionend",function(mi){return wt._compositionEnd(mi.target.value)})},features:[e._Bn([T]),e.qOj]}),Ke})();const fe=!1;function j(Ke){return null==Ke||("string"==typeof Ke||Array.isArray(Ke))&&0===Ke.length}function $(Ke){return null!=Ke&&"number"==typeof Ke.length}const _e=new e.OlP("NgValidators"),ge=new e.OlP("NgAsyncValidators"),pe=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class re{static min(Ze){return function v(Ke){return Ze=>{if(j(Ze.value)||j(Ke))return null;const Be=parseFloat(Ze.value);return!isNaN(Be)&&Be{if(j(Ze.value)||j(Ke))return null;const Be=parseFloat(Ze.value);return!isNaN(Be)&&Be>Ke?{max:{max:Ke,actual:Ze.value}}:null}}(Ze)}static required(Ze){return W(Ze)}static requiredTrue(Ze){return te(Ze)}static email(Ze){return function ne(Ke){return j(Ke.value)||pe.test(Ke.value)?null:{email:!0}}(Ze)}static minLength(Ze){return function ye(Ke){return Ze=>j(Ze.value)||!$(Ze.value)?null:Ze.value.length$(Ze.value)&&Ze.value.length>Ke?{maxlength:{requiredLength:Ke,actualLength:Ze.value.length}}:null}(Ze)}static pattern(Ze){return ke(Ze)}static nullValidator(Ze){return null}static compose(Ze){return X(Ze)}static composeAsync(Ze){return Me(Ze)}}function W(Ke){return j(Ke.value)?{required:!0}:null}function te(Ke){return!0===Ke.value?null:{required:!0}}function ke(Ke){if(!Ke)return $e;let Ze,Be;return"string"==typeof Ke?(Be="","^"!==Ke.charAt(0)&&(Be+="^"),Be+=Ke,"$"!==Ke.charAt(Ke.length-1)&&(Be+="$"),Ze=new RegExp(Be)):(Be=Ke.toString(),Ze=Ke),wt=>{if(j(wt.value))return null;const Xt=wt.value;return Ze.test(Xt)?null:{pattern:{requiredPattern:Be,actualValue:Xt}}}}function $e(Ke){return null}function Je(Ke){return null!=Ke}function Fe(Ke){const Ze=(0,e.QGY)(Ke)?(0,A.D)(Ke):Ke;if(fe&&!(0,e.CqO)(Ze)){let Be="Expected async validator to return Promise or Observable.";throw"object"==typeof Ke&&(Be+=" Are you using a synchronous validator where an async validator is expected?"),new e.vHH(-1101,Be)}return Ze}function Ve(Ke){let Ze={};return Ke.forEach(Be=>{Ze=null!=Be?{...Ze,...Be}:Ze}),0===Object.keys(Ze).length?null:Ze}function le(Ke,Ze){return Ze.map(Be=>Be(Ke))}function U(Ke){return Ke.map(Ze=>function N(Ke){return!Ke.validate}(Ze)?Ze:Be=>Ze.validate(Be))}function X(Ke){if(!Ke)return null;const Ze=Ke.filter(Je);return 0==Ze.length?null:function(Be){return Ve(le(Be,Ze))}}function ce(Ke){return null!=Ke?X(U(Ke)):null}function Me(Ke){if(!Ke)return null;const Ze=Ke.filter(Je);return 0==Ze.length?null:function(Be){const wt=le(Be,Ze).map(Fe);return(0,S.D)(wt).pipe((0,m.U)(Ve))}}function ue(Ke){return null!=Ke?Me(U(Ke)):null}function Pe(Ke,Ze){return null===Ke?[Ze]:Array.isArray(Ke)?[...Ke,Ze]:[Ke,Ze]}function tt(Ke){return Ke._rawValidators}function Ce(Ke){return Ke._rawAsyncValidators}function at(Ke){return Ke?Array.isArray(Ke)?Ke:[Ke]:[]}function Ue(Ke,Ze){return Array.isArray(Ke)?Ke.includes(Ze):Ke===Ze}function pt(Ke,Ze){const Be=at(Ze);return at(Ke).forEach(Xt=>{Ue(Be,Xt)||Be.push(Xt)}),Be}function z(Ke,Ze){return at(Ze).filter(Be=>!Ue(Ke,Be))}class st{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Ze){this._rawValidators=Ze||[],this._composedValidatorFn=ce(this._rawValidators)}_setAsyncValidators(Ze){this._rawAsyncValidators=Ze||[],this._composedAsyncValidatorFn=ue(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Ze){this._onDestroyCallbacks.push(Ze)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Ze=>Ze()),this._onDestroyCallbacks=[]}reset(Ze){this.control&&this.control.reset(Ze)}hasError(Ze,Be){return!!this.control&&this.control.hasError(Ze,Be)}getError(Ze,Be){return this.control?this.control.getError(Ze,Be):null}}class be extends st{get formDirective(){return null}get path(){return null}}class Ye extends st{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class he{constructor(Ze){this._cd=Ze}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let ve=(()=>{class Ke extends he{constructor(Be){super(Be)}}return Ke.\u0275fac=function(Be){return new(Be||Ke)(e.Y36(Ye,2))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Be,wt){2&Be&&e.ekj("ng-untouched",wt.isUntouched)("ng-touched",wt.isTouched)("ng-pristine",wt.isPristine)("ng-dirty",wt.isDirty)("ng-valid",wt.isValid)("ng-invalid",wt.isInvalid)("ng-pending",wt.isPending)},features:[e.qOj]}),Ke})(),Oe=(()=>{class Ke extends he{constructor(Be){super(Be)}}return Ke.\u0275fac=function(Be){return new(Be||Ke)(e.Y36(be,10))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Be,wt){2&Be&&e.ekj("ng-untouched",wt.isUntouched)("ng-touched",wt.isTouched)("ng-pristine",wt.isPristine)("ng-dirty",wt.isDirty)("ng-valid",wt.isValid)("ng-invalid",wt.isInvalid)("ng-pending",wt.isPending)("ng-submitted",wt.isSubmitted)},features:[e.qOj]}),Ke})();function s(Ke,Ze){return Ke?`with name: '${Ze}'`:`at index: ${Ze}`}const qe=!1,it="VALID",xt="INVALID",ht="PENDING",_t="DISABLED";function Ee(Ke){return(Te(Ke)?Ke.validators:Ke)||null}function de(Ke,Ze){return(Te(Ze)?Ze.asyncValidators:Ke)||null}function Te(Ke){return null!=Ke&&!Array.isArray(Ke)&&"object"==typeof Ke}function ut(Ke,Ze,Be){const wt=Ke.controls;if(!(Ze?Object.keys(wt):wt).length)throw new e.vHH(1e3,qe?function E(Ke){return`\n There are no form controls registered with this ${Ke?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(Ze):"");if(!wt[Be])throw new e.vHH(1001,qe?function B(Ke,Ze){return`Cannot find form control ${s(Ke,Ze)}`}(Ze,Be):"")}function bt(Ke,Ze,Be){Ke._forEachChild((wt,Xt)=>{if(void 0===Be[Xt])throw new e.vHH(1002,qe?function q(Ke,Ze){return`Must supply a value for form control ${s(Ke,Ze)}`}(Ze,Xt):"")})}class Ht{constructor(Ze,Be){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Ze),this._assignAsyncValidators(Be)}get validator(){return this._composedValidatorFn}set validator(Ze){this._rawValidators=this._composedValidatorFn=Ze}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Ze){this._rawAsyncValidators=this._composedAsyncValidatorFn=Ze}get parent(){return this._parent}get valid(){return this.status===it}get invalid(){return this.status===xt}get pending(){return this.status==ht}get disabled(){return this.status===_t}get enabled(){return this.status!==_t}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Ze){this._assignValidators(Ze)}setAsyncValidators(Ze){this._assignAsyncValidators(Ze)}addValidators(Ze){this.setValidators(pt(Ze,this._rawValidators))}addAsyncValidators(Ze){this.setAsyncValidators(pt(Ze,this._rawAsyncValidators))}removeValidators(Ze){this.setValidators(z(Ze,this._rawValidators))}removeAsyncValidators(Ze){this.setAsyncValidators(z(Ze,this._rawAsyncValidators))}hasValidator(Ze){return Ue(this._rawValidators,Ze)}hasAsyncValidator(Ze){return Ue(this._rawAsyncValidators,Ze)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Ze={}){this.touched=!0,this._parent&&!Ze.onlySelf&&this._parent.markAsTouched(Ze)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Ze=>Ze.markAllAsTouched())}markAsUntouched(Ze={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Be=>{Be.markAsUntouched({onlySelf:!0})}),this._parent&&!Ze.onlySelf&&this._parent._updateTouched(Ze)}markAsDirty(Ze={}){this.pristine=!1,this._parent&&!Ze.onlySelf&&this._parent.markAsDirty(Ze)}markAsPristine(Ze={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Be=>{Be.markAsPristine({onlySelf:!0})}),this._parent&&!Ze.onlySelf&&this._parent._updatePristine(Ze)}markAsPending(Ze={}){this.status=ht,!1!==Ze.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Ze.onlySelf&&this._parent.markAsPending(Ze)}disable(Ze={}){const Be=this._parentMarkedDirty(Ze.onlySelf);this.status=_t,this.errors=null,this._forEachChild(wt=>{wt.disable({...Ze,onlySelf:!0})}),this._updateValue(),!1!==Ze.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Ze,skipPristineCheck:Be}),this._onDisabledChange.forEach(wt=>wt(!0))}enable(Ze={}){const Be=this._parentMarkedDirty(Ze.onlySelf);this.status=it,this._forEachChild(wt=>{wt.enable({...Ze,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ze.emitEvent}),this._updateAncestors({...Ze,skipPristineCheck:Be}),this._onDisabledChange.forEach(wt=>wt(!1))}_updateAncestors(Ze){this._parent&&!Ze.onlySelf&&(this._parent.updateValueAndValidity(Ze),Ze.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Ze){this._parent=Ze}getRawValue(){return this.value}updateValueAndValidity(Ze={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===it||this.status===ht)&&this._runAsyncValidator(Ze.emitEvent)),!1!==Ze.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Ze.onlySelf&&this._parent.updateValueAndValidity(Ze)}_updateTreeValidity(Ze={emitEvent:!0}){this._forEachChild(Be=>Be._updateTreeValidity(Ze)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ze.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?_t:it}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Ze){if(this.asyncValidator){this.status=ht,this._hasOwnPendingAsyncValidator=!0;const Be=Fe(this.asyncValidator(this));this._asyncValidationSubscription=Be.subscribe(wt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(wt,{emitEvent:Ze})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Ze,Be={}){this.errors=Ze,this._updateControlsErrors(!1!==Be.emitEvent)}get(Ze){let Be=Ze;return null==Be||(Array.isArray(Be)||(Be=Be.split(".")),0===Be.length)?null:Be.reduce((wt,Xt)=>wt&&wt._find(Xt),this)}getError(Ze,Be){const wt=Be?this.get(Be):this;return wt&&wt.errors?wt.errors[Ze]:null}hasError(Ze,Be){return!!this.getError(Ze,Be)}get root(){let Ze=this;for(;Ze._parent;)Ze=Ze._parent;return Ze}_updateControlsErrors(Ze){this.status=this._calculateStatus(),Ze&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Ze)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?_t:this.errors?xt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ht)?ht:this._anyControlsHaveStatus(xt)?xt:it}_anyControlsHaveStatus(Ze){return this._anyControls(Be=>Be.status===Ze)}_anyControlsDirty(){return this._anyControls(Ze=>Ze.dirty)}_anyControlsTouched(){return this._anyControls(Ze=>Ze.touched)}_updatePristine(Ze={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Ze.onlySelf&&this._parent._updatePristine(Ze)}_updateTouched(Ze={}){this.touched=this._anyControlsTouched(),this._parent&&!Ze.onlySelf&&this._parent._updateTouched(Ze)}_registerOnCollectionChange(Ze){this._onCollectionChange=Ze}_setUpdateStrategy(Ze){Te(Ze)&&null!=Ze.updateOn&&(this._updateOn=Ze.updateOn)}_parentMarkedDirty(Ze){return!Ze&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Ze){return null}_assignValidators(Ze){this._rawValidators=Array.isArray(Ze)?Ze.slice():Ze,this._composedValidatorFn=function we(Ke){return Array.isArray(Ke)?ce(Ke):Ke||null}(this._rawValidators)}_assignAsyncValidators(Ze){this._rawAsyncValidators=Array.isArray(Ze)?Ze.slice():Ze,this._composedAsyncValidatorFn=function Ae(Ke){return Array.isArray(Ke)?ue(Ke):Ke||null}(this._rawAsyncValidators)}}class Mt extends Ht{constructor(Ze,Be,wt){super(Ee(Be),de(wt,Be)),this.controls=Ze,this._initObservables(),this._setUpdateStrategy(Be),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Ze,Be){return this.controls[Ze]?this.controls[Ze]:(this.controls[Ze]=Be,Be.setParent(this),Be._registerOnCollectionChange(this._onCollectionChange),Be)}addControl(Ze,Be,wt={}){this.registerControl(Ze,Be),this.updateValueAndValidity({emitEvent:wt.emitEvent}),this._onCollectionChange()}removeControl(Ze,Be={}){this.controls[Ze]&&this.controls[Ze]._registerOnCollectionChange(()=>{}),delete this.controls[Ze],this.updateValueAndValidity({emitEvent:Be.emitEvent}),this._onCollectionChange()}setControl(Ze,Be,wt={}){this.controls[Ze]&&this.controls[Ze]._registerOnCollectionChange(()=>{}),delete this.controls[Ze],Be&&this.registerControl(Ze,Be),this.updateValueAndValidity({emitEvent:wt.emitEvent}),this._onCollectionChange()}contains(Ze){return this.controls.hasOwnProperty(Ze)&&this.controls[Ze].enabled}setValue(Ze,Be={}){bt(this,!0,Ze),Object.keys(Ze).forEach(wt=>{ut(this,!0,wt),this.controls[wt].setValue(Ze[wt],{onlySelf:!0,emitEvent:Be.emitEvent})}),this.updateValueAndValidity(Be)}patchValue(Ze,Be={}){null!=Ze&&(Object.keys(Ze).forEach(wt=>{const Xt=this.controls[wt];Xt&&Xt.patchValue(Ze[wt],{onlySelf:!0,emitEvent:Be.emitEvent})}),this.updateValueAndValidity(Be))}reset(Ze={},Be={}){this._forEachChild((wt,Xt)=>{wt.reset(Ze[Xt],{onlySelf:!0,emitEvent:Be.emitEvent})}),this._updatePristine(Be),this._updateTouched(Be),this.updateValueAndValidity(Be)}getRawValue(){return this._reduceChildren({},(Ze,Be,wt)=>(Ze[wt]=Be.getRawValue(),Ze))}_syncPendingControls(){let Ze=this._reduceChildren(!1,(Be,wt)=>!!wt._syncPendingControls()||Be);return Ze&&this.updateValueAndValidity({onlySelf:!0}),Ze}_forEachChild(Ze){Object.keys(this.controls).forEach(Be=>{const wt=this.controls[Be];wt&&Ze(wt,Be)})}_setUpControls(){this._forEachChild(Ze=>{Ze.setParent(this),Ze._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Ze){for(const[Be,wt]of Object.entries(this.controls))if(this.contains(Be)&&Ze(wt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Be,wt,Xt)=>((wt.enabled||this.disabled)&&(Be[Xt]=wt.value),Be))}_reduceChildren(Ze,Be){let wt=Ze;return this._forEachChild((Xt,mi)=>{wt=Be(wt,Xt,mi)}),wt}_allControlsDisabled(){for(const Ze of Object.keys(this.controls))if(this.controls[Ze].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Ze){return this.controls.hasOwnProperty(Ze)?this.controls[Ze]:null}}class pi extends Mt{}const Tt=new e.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Se}),Se="always";function We(Ke,Ze){return[...Ze.path,Ke]}function oe(Ke,Ze,Be=Se){yt(Ke,Ze),Ze.valueAccessor.writeValue(Ke.value),(Ke.disabled||"always"===Be)&&Ze.valueAccessor.setDisabledState?.(Ke.disabled),function li(Ke,Ze){Ze.valueAccessor.registerOnChange(Be=>{Ke._pendingValue=Be,Ke._pendingChange=!0,Ke._pendingDirty=!0,"change"===Ke.updateOn&&At(Ke,Ze)})}(Ke,Ze),function Nt(Ke,Ze){const Be=(wt,Xt)=>{Ze.valueAccessor.writeValue(wt),Xt&&Ze.viewToModelUpdate(wt)};Ke.registerOnChange(Be),Ze._registerOnDestroy(()=>{Ke._unregisterOnChange(Be)})}(Ke,Ze),function Di(Ke,Ze){Ze.valueAccessor.registerOnTouched(()=>{Ke._pendingTouched=!0,"blur"===Ke.updateOn&&Ke._pendingChange&&At(Ke,Ze),"submit"!==Ke.updateOn&&Ke.markAsTouched()})}(Ke,Ze),function Ft(Ke,Ze){if(Ze.valueAccessor.setDisabledState){const Be=wt=>{Ze.valueAccessor.setDisabledState(wt)};Ke.registerOnDisabledChange(Be),Ze._registerOnDestroy(()=>{Ke._unregisterOnDisabledChange(Be)})}}(Ke,Ze)}function et(Ke,Ze,Be=!0){const wt=()=>{};Ze.valueAccessor&&(Ze.valueAccessor.registerOnChange(wt),Ze.valueAccessor.registerOnTouched(wt)),Zt(Ke,Ze),Ke&&(Ze._invokeOnDestroyCallbacks(),Ke._registerOnCollectionChange(()=>{}))}function rt(Ke,Ze){Ke.forEach(Be=>{Be.registerOnValidatorChange&&Be.registerOnValidatorChange(Ze)})}function yt(Ke,Ze){const Be=tt(Ke);null!==Ze.validator?Ke.setValidators(Pe(Be,Ze.validator)):"function"==typeof Be&&Ke.setValidators([Be]);const wt=Ce(Ke);null!==Ze.asyncValidator?Ke.setAsyncValidators(Pe(wt,Ze.asyncValidator)):"function"==typeof wt&&Ke.setAsyncValidators([wt]);const Xt=()=>Ke.updateValueAndValidity();rt(Ze._rawValidators,Xt),rt(Ze._rawAsyncValidators,Xt)}function Zt(Ke,Ze){let Be=!1;if(null!==Ke){if(null!==Ze.validator){const Xt=tt(Ke);if(Array.isArray(Xt)&&Xt.length>0){const mi=Xt.filter(pn=>pn!==Ze.validator);mi.length!==Xt.length&&(Be=!0,Ke.setValidators(mi))}}if(null!==Ze.asyncValidator){const Xt=Ce(Ke);if(Array.isArray(Xt)&&Xt.length>0){const mi=Xt.filter(pn=>pn!==Ze.asyncValidator);mi.length!==Xt.length&&(Be=!0,Ke.setAsyncValidators(mi))}}}const wt=()=>{};return rt(Ze._rawValidators,wt),rt(Ze._rawAsyncValidators,wt),Be}function At(Ke,Ze){Ke._pendingDirty&&Ke.markAsDirty(),Ke.setValue(Ke._pendingValue,{emitModelToViewChange:!1}),Ze.viewToModelUpdate(Ke._pendingValue),Ke._pendingChange=!1}function ft(Ke,Ze){yt(Ke,Ze)}function Dt(Ke,Ze){if(!Ke.hasOwnProperty("model"))return!1;const Be=Ke.model;return!!Be.isFirstChange()||!Object.is(Ze,Be.currentValue)}function Q(Ke,Ze){Ke._syncPendingControls(),Ze.forEach(Be=>{const wt=Be.control;"submit"===wt.updateOn&&wt._pendingChange&&(Be.viewToModelUpdate(wt._pendingValue),wt._pendingChange=!1)})}function Ie(Ke,Ze){if(!Ze)return null;let Be,wt,Xt;return Array.isArray(Ze),Ze.forEach(mi=>{mi.constructor===J?Be=mi:function Gt(Ke){return Object.getPrototypeOf(Ke.constructor)===w}(mi)?wt=mi:Xt=mi}),Xt||wt||Be||null}const ci={provide:be,useExisting:(0,e.Gpc)(()=>Vi)},bi=(()=>Promise.resolve())();let Vi=(()=>{class Ke extends be{constructor(Be,wt,Xt){super(),this.callSetDisabledState=Xt,this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new Mt({},ce(Be),ue(wt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Be){bi.then(()=>{const wt=this._findContainer(Be.path);Be.control=wt.registerControl(Be.name,Be.control),oe(Be.control,Be,this.callSetDisabledState),Be.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Be)})}getControl(Be){return this.form.get(Be.path)}removeControl(Be){bi.then(()=>{const wt=this._findContainer(Be.path);wt&&wt.removeControl(Be.name),this._directives.delete(Be)})}addFormGroup(Be){bi.then(()=>{const wt=this._findContainer(Be.path),Xt=new Mt({});ft(Xt,Be),wt.registerControl(Be.name,Xt),Xt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Be){bi.then(()=>{const wt=this._findContainer(Be.path);wt&&wt.removeControl(Be.name)})}getFormGroup(Be){return this.form.get(Be.path)}updateModel(Be,wt){bi.then(()=>{this.form.get(Be.path).setValue(wt)})}setValue(Be){this.control.setValue(Be)}onSubmit(Be){return this.submitted=!0,Q(this.form,this._directives),this.ngSubmit.emit(Be),"dialog"===Be?.target?.method}onReset(){this.resetForm()}resetForm(Be){this.form.reset(Be),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Be){return Be.pop(),Be.length?this.form.get(Be):this.form}}return Ke.\u0275fac=function(Be){return new(Be||Ke)(e.Y36(_e,10),e.Y36(ge,10),e.Y36(Tt,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Be,wt){1&Be&&e.NdJ("submit",function(mi){return wt.onSubmit(mi)})("reset",function(){return wt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([ci]),e.qOj]}),Ke})();function en(Ke,Ze){const Be=Ke.indexOf(Ze);Be>-1&&Ke.splice(Be,1)}function ji(Ke){return"object"==typeof Ke&&null!==Ke&&2===Object.keys(Ke).length&&"value"in Ke&&"disabled"in Ke}const on=class extends Ht{constructor(Ze=null,Be,wt){super(Ee(Be),de(wt,Be)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Ze),this._setUpdateStrategy(Be),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Te(Be)&&(Be.nonNullable||Be.initialValueIsDefault)&&(this.defaultValue=ji(Ze)?Ze.value:Ze)}setValue(Ze,Be={}){this.value=this._pendingValue=Ze,this._onChange.length&&!1!==Be.emitModelToViewChange&&this._onChange.forEach(wt=>wt(this.value,!1!==Be.emitViewToModelChange)),this.updateValueAndValidity(Be)}patchValue(Ze,Be={}){this.setValue(Ze,Be)}reset(Ze=this.defaultValue,Be={}){this._applyFormState(Ze),this.markAsPristine(Be),this.markAsUntouched(Be),this.setValue(this.value,Be),this._pendingChange=!1}_updateValue(){}_anyControls(Ze){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Ze){this._onChange.push(Ze)}_unregisterOnChange(Ze){en(this._onChange,Ze)}registerOnDisabledChange(Ze){this._onDisabledChange.push(Ze)}_unregisterOnDisabledChange(Ze){en(this._onDisabledChange,Ze)}_forEachChild(Ze){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Ze){ji(Ze)?(this.value=this._pendingValue=Ze.value,Ze.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ze}},wn=on,hn={provide:Ye,useExisting:(0,e.Gpc)(()=>fn)},rr=(()=>Promise.resolve())();let fn=(()=>{class Ke extends Ye{constructor(Be,wt,Xt,mi,pn,oi){super(),this._changeDetectorRef=pn,this.callSetDisabledState=oi,this.control=new on,this._registered=!1,this.update=new e.vpe,this._parent=Be,this._setValidators(wt),this._setAsyncValidators(Xt),this.valueAccessor=Ie(0,mi)}ngOnChanges(Be){if(this._checkForErrors(),!this._registered||"name"in Be){if(this._registered&&(this._checkName(),this.formDirective)){const wt=Be.name.previousValue;this.formDirective.removeControl({name:wt,path:this._getPath(wt)})}this._setUpControl()}"isDisabled"in Be&&this._updateDisabled(Be),Dt(Be,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Be){this.viewModel=Be,this.update.emit(Be)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){oe(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Be){rr.then(()=>{this.control.setValue(Be,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Be){const wt=Be.isDisabled.currentValue,Xt=0!==wt&&(0,e.D6c)(wt);rr.then(()=>{Xt&&!this.control.disabled?this.control.disable():!Xt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Be){return this._parent?We(Be,this._parent):[Be]}}return Ke.\u0275fac=function(Be){return new(Be||Ke)(e.Y36(be,9),e.Y36(_e,10),e.Y36(ge,10),e.Y36(x,10),e.Y36(e.sBO,8),e.Y36(Tt,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([hn]),e.qOj,e.TTD]}),Ke})(),Ki=(()=>{class Ke{}return Ke.\u0275fac=function(Be){return new(Be||Ke)},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ke})();const Yr={provide:x,useExisting:(0,e.Gpc)(()=>mn),multi:!0};let mn=(()=>{class Ke extends w{writeValue(Be){this.setProperty("value",Be??"")}registerOnChange(Be){this.onChange=wt=>{Be(""==wt?null:parseFloat(wt))}}}return Ke.\u0275fac=function(){let Ze;return function(wt){return(Ze||(Ze=e.n5z(Ke)))(wt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Be,wt){1&Be&&e.NdJ("input",function(mi){return wt.onChange(mi.target.value)})("blur",function(){return wt.onTouched()})},features:[e._Bn([Yr]),e.qOj]}),Ke})(),Gn=(()=>{class Ke{}return Ke.\u0275fac=function(Be){return new(Be||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({}),Ke})();const jt=new e.OlP("NgModelWithFormControlWarning"),Jt={provide:Ye,useExisting:(0,e.Gpc)(()=>ui)};let ui=(()=>{class Ke extends Ye{constructor(Be,wt,Xt,mi,pn){super(),this._ngModelWarningConfig=mi,this.callSetDisabledState=pn,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(Be),this._setAsyncValidators(wt),this.valueAccessor=Ie(0,Xt)}set isDisabled(Be){}ngOnChanges(Be){if(this._isControlChanged(Be)){const wt=Be.form.previousValue;wt&&et(wt,this,!1),oe(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Dt(Be,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&et(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Be){this.viewModel=Be,this.update.emit(Be)}_isControlChanged(Be){return Be.hasOwnProperty("form")}}return Ke._ngModelWarningSentOnce=!1,Ke.\u0275fac=function(Be){return new(Be||Ke)(e.Y36(_e,10),e.Y36(ge,10),e.Y36(x,10),e.Y36(jt,8),e.Y36(Tt,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Jt]),e.qOj,e.TTD]}),Ke})();const Ii={provide:be,useExisting:(0,e.Gpc)(()=>Li)};let Li=(()=>{class Ke extends be{constructor(Be,wt,Xt){super(),this.callSetDisabledState=Xt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(Be),this._setAsyncValidators(wt)}ngOnChanges(Be){this._checkFormPresent(),Be.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Zt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Be){const wt=this.form.get(Be.path);return oe(wt,Be,this.callSetDisabledState),wt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Be),wt}getControl(Be){return this.form.get(Be.path)}removeControl(Be){et(Be.control||null,Be,!1),function gt(Ke,Ze){const Be=Ke.indexOf(Ze);Be>-1&&Ke.splice(Be,1)}(this.directives,Be)}addFormGroup(Be){this._setUpFormContainer(Be)}removeFormGroup(Be){this._cleanUpFormContainer(Be)}getFormGroup(Be){return this.form.get(Be.path)}addFormArray(Be){this._setUpFormContainer(Be)}removeFormArray(Be){this._cleanUpFormContainer(Be)}getFormArray(Be){return this.form.get(Be.path)}updateModel(Be,wt){this.form.get(Be.path).setValue(wt)}onSubmit(Be){return this.submitted=!0,Q(this.form,this.directives),this.ngSubmit.emit(Be),"dialog"===Be?.target?.method}onReset(){this.resetForm()}resetForm(Be){this.form.reset(Be),this.submitted=!1}_updateDomValue(){this.directives.forEach(Be=>{const wt=Be.control,Xt=this.form.get(Be.path);wt!==Xt&&(et(wt||null,Be),(Ke=>Ke instanceof on)(Xt)&&(oe(Xt,Be,this.callSetDisabledState),Be.control=Xt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Be){const wt=this.form.get(Be.path);ft(wt,Be),wt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Be){if(this.form){const wt=this.form.get(Be.path);wt&&function Bt(Ke,Ze){return Zt(Ke,Ze)}(wt,Be)&&wt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){yt(this.form,this),this._oldForm&&Zt(this._oldForm,this)}_checkFormPresent(){}}return Ke.\u0275fac=function(Be){return new(Be||Ke)(e.Y36(_e,10),e.Y36(ge,10),e.Y36(Tt,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formGroup",""]],hostBindings:function(Be,wt){1&Be&&e.NdJ("submit",function(mi){return wt.onSubmit(mi)})("reset",function(){return wt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ii]),e.qOj,e.TTD]}),Ke})();const wr={provide:Ye,useExisting:(0,e.Gpc)(()=>Rr)};let Rr=(()=>{class Ke extends Ye{constructor(Be,wt,Xt,mi,pn){super(),this._ngModelWarningConfig=pn,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=Be,this._setValidators(wt),this._setAsyncValidators(Xt),this.valueAccessor=Ie(0,mi)}set isDisabled(Be){}ngOnChanges(Be){this._added||this._setUpControl(),Dt(Be,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Be){this.viewModel=Be,this.update.emit(Be)}get path(){return We(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return Ke._ngModelWarningSentOnce=!1,Ke.\u0275fac=function(Be){return new(Be||Ke)(e.Y36(be,13),e.Y36(_e,10),e.Y36(ge,10),e.Y36(x,10),e.Y36(jt,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([wr]),e.qOj,e.TTD]}),Ke})();const Pa={provide:x,useExisting:(0,e.Gpc)(()=>Ge),multi:!0};function ct(Ke,Ze){return null==Ke?`${Ze}`:(Ze&&"object"==typeof Ze&&(Ze="Object"),`${Ke}: ${Ze}`.slice(0,50))}let Ge=(()=>{class Ke extends w{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Be){this._compareWith=Be}writeValue(Be){this.value=Be;const Xt=ct(this._getOptionId(Be),Be);this.setProperty("value",Xt)}registerOnChange(Be){this.onChange=wt=>{this.value=this._getOptionValue(wt),Be(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(Be){for(const wt of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(wt),Be))return wt;return null}_getOptionValue(Be){const wt=function Yt(Ke){return Ke.split(":")[0]}(Be);return this._optionMap.has(wt)?this._optionMap.get(wt):Be}}return Ke.\u0275fac=function(){let Ze;return function(wt){return(Ze||(Ze=e.n5z(Ke)))(wt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Be,wt){1&Be&&e.NdJ("change",function(mi){return wt.onChange(mi.target.value)})("blur",function(){return wt.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([Pa]),e.qOj]}),Ke})(),Rt=(()=>{class Ke{constructor(Be,wt,Xt){this._element=Be,this._renderer=wt,this._select=Xt,this._select&&(this.id=this._select._registerOption())}set ngValue(Be){null!=this._select&&(this._select._optionMap.set(this.id,Be),this._setElementValue(ct(this.id,Be)),this._select.writeValue(this._select.value))}set value(Be){this._setElementValue(Be),this._select&&this._select.writeValue(this._select.value)}_setElementValue(Be){this._renderer.setProperty(this._element.nativeElement,"value",Be)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ke.\u0275fac=function(Be){return new(Be||Ke)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ge,9))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ke})();const zt={provide:x,useExisting:(0,e.Gpc)(()=>tn),multi:!0};function _i(Ke,Ze){return null==Ke?`${Ze}`:("string"==typeof Ze&&(Ze=`'${Ze}'`),Ze&&"object"==typeof Ze&&(Ze="Object"),`${Ke}: ${Ze}`.slice(0,50))}let tn=(()=>{class Ke extends w{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Be){this._compareWith=Be}writeValue(Be){let wt;if(this.value=Be,Array.isArray(Be)){const Xt=Be.map(mi=>this._getOptionId(mi));wt=(mi,pn)=>{mi._setSelected(Xt.indexOf(pn.toString())>-1)}}else wt=(Xt,mi)=>{Xt._setSelected(!1)};this._optionMap.forEach(wt)}registerOnChange(Be){this.onChange=wt=>{const Xt=[],mi=wt.selectedOptions;if(void 0!==mi){const pn=mi;for(let oi=0;oi{class Ke{constructor(Be,wt,Xt){this._element=Be,this._renderer=wt,this._select=Xt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(Be){null!=this._select&&(this._value=Be,this._setElementValue(_i(this.id,Be)),this._select.writeValue(this._select.value))}set value(Be){this._select?(this._value=Be,this._setElementValue(_i(this.id,Be)),this._select.writeValue(this._select.value)):this._setElementValue(Be)}_setElementValue(Be){this._renderer.setProperty(this._element.nativeElement,"value",Be)}_setSelected(Be){this._renderer.setProperty(this._element.nativeElement,"selected",Be)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ke.\u0275fac=function(Be){return new(Be||Ke)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(tn,9))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ke})(),qr=(()=>{class Ke{constructor(){this._validator=$e}ngOnChanges(Be){if(this.inputName in Be){const wt=this.normalizeInput(Be[this.inputName].currentValue);this._enabled=this.enabled(wt),this._validator=this._enabled?this.createValidator(wt):$e,this._onChange&&this._onChange()}}validate(Be){return this._validator(Be)}registerOnValidatorChange(Be){this._onChange=Be}enabled(Be){return null!=Be}}return Ke.\u0275fac=function(Be){return new(Be||Ke)},Ke.\u0275dir=e.lG2({type:Ke,features:[e.TTD]}),Ke})();const ur={provide:_e,useExisting:(0,e.Gpc)(()=>Er),multi:!0},Kr={provide:_e,useExisting:(0,e.Gpc)(()=>Qr),multi:!0};let Er=(()=>{class Ke extends qr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.D6c,this.createValidator=Be=>W}enabled(Be){return Be}}return Ke.\u0275fac=function(){let Ze;return function(wt){return(Ze||(Ze=e.n5z(Ke)))(wt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Be,wt){2&Be&&e.uIk("required",wt._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([ur]),e.qOj]}),Ke})(),Qr=(()=>{class Ke extends Er{constructor(){super(...arguments),this.createValidator=Be=>te}}return Ke.\u0275fac=function(){let Ze;return function(wt){return(Ze||(Ze=e.n5z(Ke)))(wt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Be,wt){2&Be&&e.uIk("required",wt._enabled?"":null)},features:[e._Bn([Kr]),e.qOj]}),Ke})();const gn={provide:_e,useExisting:(0,e.Gpc)(()=>Vr),multi:!0};let Vr=(()=>{class Ke extends qr{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=Be=>Be,this.createValidator=Be=>ke(Be)}}return Ke.\u0275fac=function(){let Ze;return function(wt){return(Ze||(Ze=e.n5z(Ke)))(wt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Be,wt){2&Be&&e.uIk("pattern",wt._enabled?wt.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([gn]),e.qOj]}),Ke})(),Fr=(()=>{class Ke{}return Ke.\u0275fac=function(Be){return new(Be||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[Gn]}),Ke})(),hr=(()=>{class Ke{static withConfig(Be){return{ngModule:Ke,providers:[{provide:Tt,useValue:Be.callSetDisabledState??Se}]}}}return Ke.\u0275fac=function(Be){return new(Be||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[Fr]}),Ke})(),An=(()=>{class Ke{static withConfig(Be){return{ngModule:Ke,providers:[{provide:jt,useValue:Be.warnOnNgModelWithFormControl??"always"},{provide:Tt,useValue:Be.callSetDisabledState??Se}]}}}return Ke.\u0275fac=function(Be){return new(Be||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[Fr]}),Ke})();class jr extends Ht{constructor(Ze,Be,wt){super(Ee(Be),de(wt,Be)),this.controls=Ze,this._initObservables(),this._setUpdateStrategy(Be),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Ze){return this.controls[this._adjustIndex(Ze)]}push(Ze,Be={}){this.controls.push(Ze),this._registerControl(Ze),this.updateValueAndValidity({emitEvent:Be.emitEvent}),this._onCollectionChange()}insert(Ze,Be,wt={}){this.controls.splice(Ze,0,Be),this._registerControl(Be),this.updateValueAndValidity({emitEvent:wt.emitEvent})}removeAt(Ze,Be={}){let wt=this._adjustIndex(Ze);wt<0&&(wt=0),this.controls[wt]&&this.controls[wt]._registerOnCollectionChange(()=>{}),this.controls.splice(wt,1),this.updateValueAndValidity({emitEvent:Be.emitEvent})}setControl(Ze,Be,wt={}){let Xt=this._adjustIndex(Ze);Xt<0&&(Xt=0),this.controls[Xt]&&this.controls[Xt]._registerOnCollectionChange(()=>{}),this.controls.splice(Xt,1),Be&&(this.controls.splice(Xt,0,Be),this._registerControl(Be)),this.updateValueAndValidity({emitEvent:wt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Ze,Be={}){bt(this,!1,Ze),Ze.forEach((wt,Xt)=>{ut(this,!1,Xt),this.at(Xt).setValue(wt,{onlySelf:!0,emitEvent:Be.emitEvent})}),this.updateValueAndValidity(Be)}patchValue(Ze,Be={}){null!=Ze&&(Ze.forEach((wt,Xt)=>{this.at(Xt)&&this.at(Xt).patchValue(wt,{onlySelf:!0,emitEvent:Be.emitEvent})}),this.updateValueAndValidity(Be))}reset(Ze=[],Be={}){this._forEachChild((wt,Xt)=>{wt.reset(Ze[Xt],{onlySelf:!0,emitEvent:Be.emitEvent})}),this._updatePristine(Be),this._updateTouched(Be),this.updateValueAndValidity(Be)}getRawValue(){return this.controls.map(Ze=>Ze.getRawValue())}clear(Ze={}){this.controls.length<1||(this._forEachChild(Be=>Be._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Ze.emitEvent}))}_adjustIndex(Ze){return Ze<0?Ze+this.length:Ze}_syncPendingControls(){let Ze=this.controls.reduce((Be,wt)=>!!wt._syncPendingControls()||Be,!1);return Ze&&this.updateValueAndValidity({onlySelf:!0}),Ze}_forEachChild(Ze){this.controls.forEach((Be,wt)=>{Ze(Be,wt)})}_updateValue(){this.value=this.controls.filter(Ze=>Ze.enabled||this.disabled).map(Ze=>Ze.value)}_anyControls(Ze){return this.controls.some(Be=>Be.enabled&&Ze(Be))}_setUpControls(){this._forEachChild(Ze=>this._registerControl(Ze))}_allControlsDisabled(){for(const Ze of this.controls)if(Ze.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Ze){Ze.setParent(this),Ze._registerOnCollectionChange(this._onCollectionChange)}_find(Ze){return this.at(Ze)??null}}function Wn(Ke){return!!Ke&&(void 0!==Ke.asyncValidators||void 0!==Ke.validators||void 0!==Ke.updateOn)}let pr=(()=>{class Ke{constructor(){this.useNonNullable=!1}get nonNullable(){const Be=new Ke;return Be.useNonNullable=!0,Be}group(Be,wt=null){const Xt=this._reduceControls(Be);let mi={};return Wn(wt)?mi=wt:null!==wt&&(mi.validators=wt.validator,mi.asyncValidators=wt.asyncValidator),new Mt(Xt,mi)}record(Be,wt=null){const Xt=this._reduceControls(Be);return new pi(Xt,wt)}control(Be,wt,Xt){let mi={};return this.useNonNullable?(Wn(wt)?mi=wt:(mi.validators=wt,mi.asyncValidators=Xt),new on(Be,{...mi,nonNullable:!0})):new on(Be,wt,Xt)}array(Be,wt,Xt){const mi=Be.map(pn=>this._createControl(pn));return new jr(mi,wt,Xt)}_reduceControls(Be){const wt={};return Object.keys(Be).forEach(Xt=>{wt[Xt]=this._createControl(Be[Xt])}),wt}_createControl(Be){return Be instanceof on||Be instanceof Ht?Be:Array.isArray(Be)?this.control(Be[0],Be.length>1?Be[1]:null,Be.length>2?Be[2]:null):this.control(Be)}}return Ke.\u0275fac=function(Be){return new(Be||Ke)},Ke.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:An}),Ke})(),Ui=(()=>{class Ke extends pr{group(Be,wt=null){return super.group(Be,wt)}control(Be,wt,Xt){return super.control(Be,wt,Xt)}array(Be,wt,Xt){return super.array(Be,wt,Xt)}}return Ke.\u0275fac=function(){let Ze;return function(wt){return(Ze||(Ze=e.n5z(Ke)))(wt||Ke)}}(),Ke.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:An}),Ke})()},47957:(Qe,ae,p)=>{"use strict";p.d(ae,{Bb:()=>st,XC:()=>ce,ZL:()=>z});var e=p(94650),f=p(3238),A=p(36895),S=p(67376),m=p(98184),M=p(12693),w=p(21281),x=p(83353),I=p(37340),F=p(50727),T=p(77579),H=p(49770),P=p(56451),J=p(39646),fe=p(54968),j=p(40445),$=p(29521),_e=p(84080),ge=p(24006),pe=p(59549),re=p(68675),v=p(63900),V=p(95698),W=p(39300),te=p(54004),ne=p(18505),ye=p(91005);const ze=["panel"];function ke(be,Ye){if(1&be&&(e.TgZ(0,"div",0,1),e.Hsn(2),e.qZA()),2&be){const he=Ye.id,Re=e.oxw();e.Q6J("id",Re.id)("ngClass",Re._classList)("@panelAnimation",Re.isOpen?"visible":"hidden"),e.uIk("aria-label",Re.ariaLabel||null)("aria-labelledby",Re._getPanelAriaLabelledby(he))}}const $e=["*"],Je=(0,I.X$)("panelAnimation",[(0,I.SB)("void, hidden",(0,I.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,I.eR)(":enter, hidden => visible",[(0,I.ru)([(0,I.jt)("0.03s linear",(0,I.oB)({opacity:1})),(0,I.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,I.oB)({transform:"scaleY(1)"}))])]),(0,I.eR)(":leave, visible => hidden",[(0,I.jt)("0.075s linear",(0,I.oB)({opacity:0}))])]);let Fe=0;class Ve{constructor(Ye,he){this.source=Ye,this.option=he}}const le=(0,f.Kr)(class{}),N=new e.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function U(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let X=(()=>{class be extends le{constructor(he,Re,He,ve){super(),this._changeDetectorRef=he,this._elementRef=Re,this._activeOptionChanges=F.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new e.vpe,this.opened=new e.vpe,this.closed=new e.vpe,this.optionActivated=new e.vpe,this._classList={},this.id="mat-autocomplete-"+Fe++,this.inertGroups=ve?.SAFARI||!1,this._autoActiveFirstOption=!!He.autoActiveFirstOption,this._autoSelectActiveOption=!!He.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(he){this._autoActiveFirstOption=(0,w.Ig)(he)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(he){this._autoSelectActiveOption=(0,w.Ig)(he)}set classList(he){this._classList=he&&he.length?(0,w.du)(he).reduce((Re,He)=>(Re[He]=!0,Re),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new M.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(he=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[he]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(he){this.panel&&(this.panel.nativeElement.scrollTop=he)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(he){const Re=new Ve(this,he);this.optionSelected.emit(Re)}_getPanelAriaLabelledby(he){return this.ariaLabel?null:this.ariaLabelledby?(he?he+" ":"")+this.ariaLabelledby:he}_setVisibilityClasses(he){he[this._visibleClass]=this.showPanel,he[this._hiddenClass]=!this.showPanel}}return be.\u0275fac=function(he){return new(he||be)(e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(N),e.Y36(x.t4))},be.\u0275dir=e.lG2({type:be,viewQuery:function(he,Re){if(1&he&&(e.Gf(e.Rgc,7),e.Gf(ze,5)),2&he){let He;e.iGM(He=e.CRH())&&(Re.template=He.first),e.iGM(He=e.CRH())&&(Re.panel=He.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[e.qOj]}),be})(),ce=(()=>{class be extends X{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden"}}return be.\u0275fac=function(){let Ye;return function(Re){return(Ye||(Ye=e.n5z(be)))(Re||be)}}(),be.\u0275cmp=e.Xpm({type:be,selectors:[["mat-autocomplete"]],contentQueries:function(he,Re,He){if(1&he&&(e.Suo(He,f.K7,5),e.Suo(He,f.ey,5)),2&he){let ve;e.iGM(ve=e.CRH())&&(Re.optionGroups=ve),e.iGM(ve=e.CRH())&&(Re.options=ve)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[e._Bn([{provide:f.HF,useExisting:be}]),e.qOj],ngContentSelectors:$e,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(he,Re){1&he&&(e.F$t(),e.YNc(0,ke,3,5,"ng-template"))},dependencies:[A.mk],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Je]},changeDetection:0}),be})();const Pe={provide:ge.JU,useExisting:(0,e.Gpc)(()=>z),multi:!0},Ce=new e.OlP("mat-autocomplete-scroll-strategy"),Ue={provide:Ce,deps:[m.aV],useFactory:function at(be){return()=>be.scrollStrategies.reposition()}};let pt=(()=>{class be{constructor(he,Re,He,ve,Oe,r,u,_,C,h,o){this._element=he,this._overlay=Re,this._viewContainerRef=He,this._zone=ve,this._changeDetectorRef=Oe,this._dir=u,this._formField=_,this._document=C,this._viewportRuler=h,this._defaults=o,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=F.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new T.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,H.P)(()=>{const n=this.autocomplete?this.autocomplete.options:null;return n?n.changes.pipe((0,re.O)(n),(0,v.w)(()=>(0,P.T)(...n.map(t=>t.onSelectionChange)))):this._zone.onStable.pipe((0,V.q)(1),(0,v.w)(()=>this.optionSelections))}),this._scrollStrategy=r}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(he){this._autocompleteDisabled=(0,w.Ig)(he)}ngAfterViewInit(){const he=this._getWindow();typeof he<"u"&&this._zone.runOutsideAngular(()=>he.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(he){he.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const he=this._getWindow();typeof he<"u"&&he.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,P.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,W.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,W.h)(()=>this._overlayAttached)):(0,J.of)()).pipe((0,te.U)(he=>he instanceof f.rN?he:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,P.T)((0,fe.R)(this._document,"click"),(0,fe.R)(this._document,"auxclick"),(0,fe.R)(this._document,"touchend")).pipe((0,W.h)(he=>{const Re=(0,x.sA)(he),He=this._formField?this._formField._elementRef.nativeElement:null,ve=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Re!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!He||!He.contains(Re))&&(!ve||!ve.contains(Re))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Re)}))}writeValue(he){Promise.resolve(null).then(()=>this._assignOptionValue(he))}registerOnChange(he){this._onChange=he}registerOnTouched(he){this._onTouched=he}setDisabledState(he){this._element.nativeElement.disabled=he}_handleKeydown(he){const Re=he.keyCode,He=(0,$.Vb)(he);if(Re===$.hY&&!He&&he.preventDefault(),this.activeOption&&Re===$.K5&&this.panelOpen&&!He)this.activeOption._selectViaInteraction(),this._resetActiveItem(),he.preventDefault();else if(this.autocomplete){const ve=this.autocomplete._keyManager.activeItem,Oe=Re===$.LH||Re===$.JH;Re===$.Mf||Oe&&!He&&this.panelOpen?this.autocomplete._keyManager.onKeydown(he):Oe&&this._canOpen()&&this.openPanel(),(Oe||this.autocomplete._keyManager.activeItem!==ve)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(he){let Re=he.target,He=Re.value;"number"===Re.type&&(He=""==He?null:parseFloat(He)),this._previousValue!==He&&(this._previousValue=He,this._pendingAutoselectedOption=null,this._onChange(He),this._canOpen()&&this._document.activeElement===he.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(he=!1){this._formField&&"auto"===this._formField.floatLabel&&(he?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const he=this._zone.onStable.pipe((0,V.q)(1)),Re=this.autocomplete.options.changes.pipe((0,ne.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ye.g)(0));return(0,P.T)(he,Re).pipe((0,v.w)(()=>(this._zone.run(()=>{const He=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),He!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,V.q)(1)).subscribe(He=>this._setValueAndClose(He))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(he){const Re=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(he):he;this._updateNativeInputValue(Re??"")}_updateNativeInputValue(he){this._formField?this._formField._control.value=he:this._element.nativeElement.value=he,this._previousValue=he}_setValueAndClose(he){const Re=he?he.source:this._pendingAutoselectedOption;Re&&(this._clearPreviousSelectedOption(Re),this._assignOptionValue(Re.value),this._onChange(Re.value),this.autocomplete._emitSelectEvent(Re),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(he){this.autocomplete.options.forEach(Re=>{Re!==he&&Re.selected&&Re.deselect()})}_attachOverlay(){let he=this._overlayRef;he?(this._positionStrategy.setOrigin(this._getConnectedElement()),he.updateSize({width:this._getPanelWidth()})):(this._portal=new _e.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),he=this._overlay.create(this._getOverlayConfig()),this._overlayRef=he,this._handleOverlayEvents(he),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&he&&he.updateSize({width:this._getPanelWidth()})})),he&&!he.hasAttached()&&(he.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Re=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&Re!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new m.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const he=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(he),this._positionStrategy=he,he}_setStrategyPositions(he){const Re=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],He=this._aboveClass,ve=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:He},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:He}];let Oe;Oe="above"===this.position?ve:"below"===this.position?Re:[...Re,...ve],he.withPositions(Oe)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const he=this.autocomplete;he.autoActiveFirstOption?he._keyManager.setFirstItemActive():he._keyManager.setActiveItem(-1)}_canOpen(){const he=this._element.nativeElement;return!he.readOnly&&!he.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(he){const Re=this.autocomplete,He=(0,f.CB)(he,Re.options,Re.optionGroups);if(0===he&&1===He)Re._setScrollTop(0);else if(Re.panel){const ve=Re.options.toArray()[he];if(ve){const Oe=ve._getHostElement(),r=(0,f.jH)(Oe.offsetTop,Oe.offsetHeight,Re._getScrollTop(),Re.panel.nativeElement.offsetHeight);Re._setScrollTop(r)}}}_handleOverlayEvents(he){he.keydownEvents().subscribe(Re=>{(Re.keyCode===$.hY&&!(0,$.Vb)(Re)||Re.keyCode===$.LH&&(0,$.Vb)(Re,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),Re.stopPropagation(),Re.preventDefault())}),he.outsidePointerEvents().subscribe()}}return be.\u0275fac=function(he){return new(he||be)(e.Y36(e.SBq),e.Y36(m.aV),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(Ce),e.Y36(j.Is,8),e.Y36(pe.G_,9),e.Y36(A.K0,8),e.Y36(S.rL),e.Y36(N,8))},be.\u0275dir=e.lG2({type:be,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[e.TTD]}),be})(),z=(()=>{class be extends pt{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return be.\u0275fac=function(){let Ye;return function(Re){return(Ye||(Ye=e.n5z(be)))(Re||be)}}(),be.\u0275dir=e.lG2({type:be,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(he,Re){1&he&&e.NdJ("focusin",function(){return Re._handleFocus()})("blur",function(){return Re._onTouched()})("input",function(ve){return Re._handleInput(ve)})("keydown",function(ve){return Re._handleKeydown(ve)})("click",function(){return Re._handleClick()}),2&he&&e.uIk("autocomplete",Re.autocompleteAttribute)("role",Re.autocompleteDisabled?null:"combobox")("aria-autocomplete",Re.autocompleteDisabled?null:"list")("aria-activedescendant",Re.panelOpen&&Re.activeOption?Re.activeOption.id:null)("aria-expanded",Re.autocompleteDisabled?null:Re.panelOpen.toString())("aria-owns",Re.autocompleteDisabled||!Re.panelOpen||null==Re.autocomplete?null:Re.autocomplete.id)("aria-haspopup",Re.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[e._Bn([Pe]),e.qOj]}),be})(),st=(()=>{class be{}return be.\u0275fac=function(he){return new(he||be)},be.\u0275mod=e.oAB({type:be}),be.\u0275inj=e.cJS({providers:[Ue],imports:[m.U8,f.Ng,f.BQ,A.ez,S.ZD,f.Ng,f.BQ]}),be})()},42673:(Qe,ae,p)=>{"use strict";p.d(ae,{g:()=>I,k:()=>x});var e=p(94650),f=p(3238),A=p(12693),S=p(21281);let m=0;const M=(0,f.Id)(class{}),w="mat-badge-content";let x=(()=>{class F extends M{constructor(H,P,J,fe,j){super(),this._ngZone=H,this._elementRef=P,this._ariaDescriber=J,this._renderer=fe,this._animationMode=j,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=m++,this._isInitialized=!1}get color(){return this._color}set color(H){this._setColor(H),this._color=H}get overlap(){return this._overlap}set overlap(H){this._overlap=(0,S.Ig)(H)}get content(){return this._content}set content(H){this._updateRenderedContent(H)}get description(){return this._description}set description(H){this._updateHostAriaDescription(H)}get hidden(){return this._hidden}set hidden(H){this._hidden=(0,S.Ig)(H)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const H=this._renderer.createElement("span"),P="mat-badge-active";return H.setAttribute("id",`mat-badge-content-${this._id}`),H.setAttribute("aria-hidden","true"),H.classList.add(w),"NoopAnimations"===this._animationMode&&H.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(H),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{H.classList.add(P)})}):H.classList.add(P),H}_updateRenderedContent(H){const P=`${H??""}`.trim();this._isInitialized&&P&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=P),this._content=P}_updateHostAriaDescription(H){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),H&&this._ariaDescriber.describe(this._elementRef.nativeElement,H),this._description=H}_setColor(H){const P=this._elementRef.nativeElement.classList;P.remove(`mat-badge-${this._color}`),H&&P.add(`mat-badge-${H}`)}_clearExistingBadges(){const H=this._elementRef.nativeElement.querySelectorAll(`:scope > .${w}`);for(const P of Array.from(H))P!==this._badgeElement&&P.remove()}}return F.\u0275fac=function(H){return new(H||F)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(A.$s),e.Y36(e.Qsj),e.Y36(e.QbO,8))},F.\u0275dir=e.lG2({type:F,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(H,P){2&H&&e.ekj("mat-badge-overlap",P.overlap)("mat-badge-above",P.isAbove())("mat-badge-below",!P.isAbove())("mat-badge-before",!P.isAfter())("mat-badge-after",P.isAfter())("mat-badge-small","small"===P.size)("mat-badge-medium","medium"===P.size)("mat-badge-large","large"===P.size)("mat-badge-hidden",P.hidden||!P.content)("mat-badge-disabled",P.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),F})(),I=(()=>{class F{}return F.\u0275fac=function(H){return new(H||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({imports:[A.rt,f.BQ,f.BQ]}),F})()},4859:(Qe,ae,p)=>{"use strict";p.d(ae,{RK:()=>le,lW:()=>W,ot:()=>U});var e=p(83353),f=p(94650),A=p(12693),S=p(3238);const m=["mat-button",""],M=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],w=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],P=["mat-icon-button",""],J=["*"],_e=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],ge=(0,S.pj)((0,S.Id)((0,S.Kr)(class{constructor(X){this._elementRef=X}})));let pe=(()=>{class X extends ge{constructor(Me,ue,Pe,tt){super(Me),this._platform=ue,this._ngZone=Pe,this._animationMode=tt,this._focusMonitor=(0,f.f3M)(A.tE),this._isFab=!1;const Ce=Me.nativeElement.classList;for(const at of _e)this._hasHostAttributes(at.selector)&&at.mdcClasses.forEach(Ue=>{Ce.add(Ue)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(Me="program",ue){Me?this._focusMonitor.focusVia(this._elementRef.nativeElement,Me,ue):this._elementRef.nativeElement.focus(ue)}_hasHostAttributes(...Me){return Me.some(ue=>this._elementRef.nativeElement.hasAttribute(ue))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return X.\u0275fac=function(Me){f.$Z()},X.\u0275dir=f.lG2({type:X,viewQuery:function(Me,ue){if(1&Me&&f.Gf(S.wG,5),2&Me){let Pe;f.iGM(Pe=f.CRH())&&(ue.ripple=Pe.first)}},features:[f.qOj]}),X})(),W=(()=>{class X extends pe{constructor(Me,ue,Pe,tt){super(Me,ue,Pe,tt)}}return X.\u0275fac=function(Me){return new(Me||X)(f.Y36(f.SBq),f.Y36(e.t4),f.Y36(f.R0b),f.Y36(f.QbO,8))},X.\u0275cmp=f.Xpm({type:X,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(Me,ue){2&Me&&(f.uIk("disabled",ue.disabled||null),f.ekj("_mat-animation-noopable","NoopAnimations"===ue._animationMode)("mat-unthemed",!ue.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[f.qOj],attrs:m,ngContentSelectors:w,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(Me,ue){1&Me&&(f.F$t(M),f._UZ(0,"span",0),f.Hsn(1),f.TgZ(2,"span",1),f.Hsn(3,1),f.qZA(),f.Hsn(4,2),f._UZ(5,"span",2)(6,"span",3)(7,"span",4)),2&Me&&(f.ekj("mdc-button__ripple",!ue._isFab)("mdc-fab__ripple",ue._isFab),f.xp6(6),f.Q6J("matRippleDisabled",ue._isRippleDisabled())("matRippleTrigger",ue._elementRef.nativeElement))},dependencies:[S.wG],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),X})(),le=(()=>{class X extends pe{constructor(Me,ue,Pe,tt){super(Me,ue,Pe,tt)}}return X.\u0275fac=function(Me){return new(Me||X)(f.Y36(f.SBq),f.Y36(e.t4),f.Y36(f.R0b),f.Y36(f.QbO,8))},X.\u0275cmp=f.Xpm({type:X,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(Me,ue){2&Me&&(f.uIk("disabled",ue.disabled||null),f.ekj("_mat-animation-noopable","NoopAnimations"===ue._animationMode)("mat-unthemed",!ue.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[f.qOj],attrs:P,ngContentSelectors:J,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(Me,ue){1&Me&&(f.F$t(),f._UZ(0,"span",0),f.Hsn(1),f._UZ(2,"span",1)(3,"span",2)(4,"span",3)),2&Me&&(f.xp6(3),f.Q6J("matRippleDisabled",ue._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",ue._elementRef.nativeElement))},dependencies:[S.wG],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),X})(),U=(()=>{class X{}return X.\u0275fac=function(Me){return new(Me||X)},X.\u0275mod=f.oAB({type:X}),X.\u0275inj=f.cJS({imports:[S.BQ,S.si,S.BQ]}),X})()},73546:(Qe,ae,p)=>{"use strict";p.d(ae,{$j:()=>J,QW:()=>te,a8:()=>F,dk:()=>j,dn:()=>P,kc:()=>V,n5:()=>T});var e=p(94650),f=p(36895),A=p(3238);const S=["*"],w=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],x=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],I=new e.OlP("MAT_CARD_CONFIG");let F=(()=>{class ne{constructor(ze){this.appearance=ze?.appearance||"raised"}}return ne.\u0275fac=function(ze){return new(ze||ne)(e.Y36(I,8))},ne.\u0275cmp=e.Xpm({type:ne,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(ze,ke){2&ze&&e.ekj("mat-mdc-card-outlined","outlined"===ke.appearance)("mdc-card--outlined","outlined"===ke.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:S,decls:1,vars:0,template:function(ze,ke){1&ze&&(e.F$t(),e.Hsn(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),ne})(),T=(()=>{class ne{}return ne.\u0275fac=function(ze){return new(ze||ne)},ne.\u0275dir=e.lG2({type:ne,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]}),ne})(),P=(()=>{class ne{}return ne.\u0275fac=function(ze){return new(ze||ne)},ne.\u0275dir=e.lG2({type:ne,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}),ne})(),J=(()=>{class ne{}return ne.\u0275fac=function(ze){return new(ze||ne)},ne.\u0275dir=e.lG2({type:ne,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]}),ne})(),j=(()=>{class ne{}return ne.\u0275fac=function(ze){return new(ze||ne)},ne.\u0275cmp=e.Xpm({type:ne,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:x,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(ze,ke){1&ze&&(e.F$t(w),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),ne})(),V=(()=>{class ne{}return ne.\u0275fac=function(ze){return new(ze||ne)},ne.\u0275dir=e.lG2({type:ne,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"]}),ne})(),te=(()=>{class ne{}return ne.\u0275fac=function(ze){return new(ze||ne)},ne.\u0275mod=e.oAB({type:ne}),ne.\u0275inj=e.cJS({imports:[A.BQ,f.ez,A.BQ]}),ne})()},56709:(Qe,ae,p)=>{"use strict";p.d(ae,{oG:()=>j,p9:()=>pe});var e=p(94650),f=p(24006),A=p(3238),S=p(21281);const m=["input"],M=["label"],w=["*"],x=new e.OlP("mat-checkbox-default-options",{providedIn:"root",factory:I});function I(){return{color:"accent",clickAction:"check-indeterminate"}}const F={provide:f.JU,useExisting:(0,e.Gpc)(()=>j),multi:!0};class T{}let H=0;const P=I(),J=(0,A.sb)((0,A.pj)((0,A.Kr)((0,A.Id)(class{constructor(re){this._elementRef=re}}))));let fe=(()=>{class re extends J{constructor(V,W,te,ne,ye,ze,ke){super(W),this._changeDetectorRef=te,this._ngZone=ne,this._animationMode=ze,this._options=ke,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new e.vpe,this.indeterminateChange=new e.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||P,this.color=this.defaultColor=this._options.color||P.color,this.tabIndex=parseInt(ye)||0,this.id=this._uniqueId=`${V}${++H}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(V){this._required=(0,S.Ig)(V)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(V){const W=(0,S.Ig)(V);W!=this.checked&&(this._checked=W,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(V){const W=(0,S.Ig)(V);W!==this.disabled&&(this._disabled=W,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(V){const W=V!=this._indeterminate;this._indeterminate=(0,S.Ig)(V),W&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(V){this.checked=!!V}registerOnChange(V){this._controlValueAccessorChangeFn=V}registerOnTouched(V){this._onTouched=V}setDisabledState(V){this.disabled=V}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(V){let W=this._currentCheckState,te=this._getAnimationTargetElement();if(W!==V&&te&&(this._currentAnimationClass&&te.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(W,V),this._currentCheckState=V,this._currentAnimationClass.length>0)){te.classList.add(this._currentAnimationClass);const ne=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{te.classList.remove(ne)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const V=this._options?.clickAction;this.disabled||"noop"===V?!this.disabled&&"noop"===V&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==V&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(V){V.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(V,W){if("NoopAnimations"===this._animationMode)return"";switch(V){case 0:if(1===W)return this._animationClasses.uncheckedToChecked;if(3==W)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===W?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===W?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===W?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(V){const W=this._inputElement;W&&(W.nativeElement.indeterminate=V)}}return re.\u0275fac=function(V){e.$Z()},re.\u0275dir=e.lG2({type:re,viewQuery:function(V,W){if(1&V&&(e.Gf(m,5),e.Gf(M,5),e.Gf(A.wG,5)),2&V){let te;e.iGM(te=e.CRH())&&(W._inputElement=te.first),e.iGM(te=e.CRH())&&(W._labelElement=te.first),e.iGM(te=e.CRH())&&(W.ripple=te.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[e.qOj]}),re})(),j=(()=>{class re extends fe{constructor(V,W,te,ne,ye,ze){super("mat-mdc-checkbox-",V,W,te,ne,ye,ze),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(V){const W=new T;return W.source=this,W.checked=V,W}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_preventBubblingFromLabel(V){V.target&&this._labelElement.nativeElement.contains(V.target)&&V.stopPropagation()}}return re.\u0275fac=function(V){return new(V||re)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.$8M("tabindex"),e.Y36(e.QbO,8),e.Y36(x,8))},re.\u0275cmp=e.Xpm({type:re,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(V,W){2&V&&(e.Ikx("id",W.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),e.ekj("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mdc-checkbox--disabled",W.disabled)("mat-mdc-checkbox-disabled",W.disabled)("mat-mdc-checkbox-checked",W.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[e._Bn([F]),e.qOj],ngContentSelectors:w,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(V,W){if(1&V&&(e.F$t(),e.TgZ(0,"div",0),e.NdJ("click",function(ne){return W._preventBubblingFromLabel(ne)}),e.TgZ(1,"div",1,2)(3,"div",3),e.NdJ("click",function(){return W._onInputClick()}),e.qZA(),e.TgZ(4,"input",4,5),e.NdJ("blur",function(){return W._onBlur()})("click",function(){return W._onInputClick()})("change",function(ne){return W._onInteractionEvent(ne)}),e.qZA(),e._UZ(6,"div",6),e.TgZ(7,"div",7),e.O4$(),e.TgZ(8,"svg",8),e._UZ(9,"path",9),e.qZA(),e.kcU(),e._UZ(10,"div",10),e.qZA(),e._UZ(11,"div",11),e.qZA(),e.TgZ(12,"label",12,13),e.Hsn(14),e.qZA()()),2&V){const te=e.MAs(2);e.ekj("mdc-form-field--align-end","before"==W.labelPosition),e.xp6(4),e.ekj("mdc-checkbox--selected",W.checked),e.Q6J("checked",W.checked)("disabled",W.disabled)("id",W.inputId)("required",W.required)("tabIndex",W.tabIndex),e.uIk("aria-checked",W._getAriaChecked())("aria-label",W.ariaLabel||null)("aria-labelledby",W.ariaLabelledby)("aria-describedby",W.ariaDescribedby)("name",W.name)("value",W.value),e.xp6(7),e.Q6J("matRippleTrigger",te)("matRippleDisabled",W.disableRipple||W.disabled)("matRippleCentered",!0),e.xp6(1),e.Q6J("for",W.inputId)}},dependencies:[A.wG],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),re})(),ge=(()=>{class re{}return re.\u0275fac=function(V){return new(V||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})(),pe=(()=>{class re{}return re.\u0275fac=function(V){return new(V||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({imports:[A.BQ,A.si,ge,A.BQ,ge]}),re})()},77331:(Qe,ae,p)=>{"use strict";p.d(ae,{Hi:()=>c,RA:()=>n,T:()=>at,oH:()=>i,qH:()=>Ue,z3:()=>Re});var e=p(21281),f=p(94650),A=p(36895),S=p(3238),m=p(12693),M=p(77579),w=p(56451),x=p(95698),I=p(82722),F=p(68675),T=p(63900),H=p(29521),P=p(40445),J=p(24006),fe=p(59549);function j(l,d){1&l&&(f.TgZ(0,"span",8),f.Hsn(1,1),f.qZA())}function $(l,d){1&l&&(f.TgZ(0,"span",9),f.Hsn(1,2),f.qZA())}const _e=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],ge=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function W(l,d){if(1&l&&(f.ynx(0),f._UZ(1,"span",8)(2,"span",9),f.BQk()),2&l){const s=f.oxw();f.xp6(1),f.Q6J("matRippleDisabled",s._isRippleDisabled())("matRippleCentered",s._isRippleCentered)("matRippleTrigger",s._elementRef.nativeElement)}}function te(l,d){1&l&&(f.TgZ(0,"span",10),f.Hsn(1),f.qZA())}function ne(l,d){1&l&&(f.ynx(0),f.Hsn(1,1),f.BQk())}function ye(l,d){1&l&&f.Hsn(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function ze(l,d){1&l&&f._UZ(0,"span",13)}function ke(l,d){if(1&l&&(f.ynx(0),f.YNc(1,ye,1,0,"ng-content",11),f.YNc(2,ze,1,0,"ng-template",null,12,f.W1O),f.BQk()),2&l){const s=f.MAs(3),E=f.oxw();f.xp6(1),f.Q6J("ngIf",E.contentEditInput)("ngIfElse",s)}}function $e(l,d){1&l&&(f.TgZ(0,"span",14),f.Hsn(1,3),f.qZA())}const Je=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Fe=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],Ve=["*"],N=new f.OlP("mat-chips-default-options"),U=new f.OlP("MatChipAvatar"),X=new f.OlP("MatChipTrailingIcon"),ce=new f.OlP("MatChipRemove"),Me=new f.OlP("MatChip");class ue{}const Pe=(0,S.sb)(ue,-1);let tt=(()=>{class l extends Pe{constructor(s,E){super(),this._elementRef=s,this._parentChip=E,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===s.nativeElement.nodeName&&s.nativeElement.setAttribute("type","button")}get disabled(){return this._disabled||this._parentChip.disabled}set disabled(s){this._disabled=(0,e.Ig)(s)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}focus(){this._elementRef.nativeElement.focus()}_handleClick(s){!this.disabled&&this.isInteractive&&this._isPrimary&&(s.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(s){(s.keyCode===H.K5||s.keyCode===H.L_)&&!this.disabled&&this.isInteractive&&this._isPrimary&&(s.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return l.\u0275fac=function(s){return new(s||l)(f.Y36(f.SBq),f.Y36(Me))},l.\u0275dir=f.lG2({type:l,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(s,E){1&s&&f.NdJ("click",function(q){return E._handleClick(q)})("keydown",function(q){return E._handleKeydown(q)}),2&s&&(f.uIk("tabindex",E._getTabindex())("disabled",E._getDisabledAttribute())("aria-disabled",E.disabled),f.ekj("mdc-evolution-chip__action--primary",E._isPrimary)("mdc-evolution-chip__action--presentational",!E.isInteractive)("mdc-evolution-chip__action--trailing",!E._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[f.qOj]}),l})(),at=(()=>{class l extends tt{constructor(){super(...arguments),this.isInteractive=!1,this._isPrimary=!1}}return l.\u0275fac=function(){let d;return function(E){return(d||(d=f.n5z(l)))(E||l)}}(),l.\u0275dir=f.lG2({type:l,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:["aria-hidden","true",1,"mat-mdc-chip-trailing-icon","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],features:[f._Bn([{provide:X,useExisting:l}]),f.qOj]}),l})(),Ue=(()=>{class l extends tt{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(s){this.disabled||(s.stopPropagation(),s.preventDefault(),this._parentChip.remove())}_handleKeydown(s){(s.keyCode===H.K5||s.keyCode===H.L_)&&!this.disabled&&(s.stopPropagation(),s.preventDefault(),this._parentChip.remove())}}return l.\u0275fac=function(){let d;return function(E){return(d||(d=f.n5z(l)))(E||l)}}(),l.\u0275dir=f.lG2({type:l,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(s,E){2&s&&f.uIk("aria-hidden",null)},features:[f._Bn([{provide:ce,useExisting:l}]),f.qOj]}),l})(),pt=0;const z=(0,S.sb)((0,S.pj)((0,S.Kr)((0,S.Id)(class{constructor(l){this._elementRef=l}})),"primary"),-1);let st=(()=>{class l extends z{constructor(s,E,B,q,qe,it,xt,ht){super(E),this._changeDetectorRef=s,this._ngZone=B,this._focusMonitor=q,this._globalRippleOptions=xt,this._isRippleCentered=!1,this._onFocus=new M.x,this._onBlur=new M.x,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+pt++,this.ariaLabel=null,this._removable=!0,this._highlighted=!1,this.removed=new f.vpe,this.destroyed=new f.vpe,this.basicChipAttrName="mat-basic-chip";const _t=E.nativeElement;this._document=qe,this._animationsDisabled="NoopAnimations"===it,this._isBasicChip=_t.hasAttribute(this.basicChipAttrName)||_t.tagName.toLowerCase()===this.basicChipAttrName,null!=ht&&(this.tabIndex=parseInt(ht)??this.defaultTabIndex),this._monitorFocus()}_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(s){this._value=s}get removable(){return this._removable}set removable(s){this._removable=(0,e.Ig)(s)}get highlighted(){return this._highlighted}set highlighted(s){this._highlighted=(0,e.Ig)(s)}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(s){(s.keyCode===H.ZH||s.keyCode===H.yY)&&(s.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(s){return this._getActions().find(E=>{const B=E._elementRef.nativeElement;return B===s||B.contains(s)})}_getActions(){const s=[];return this.primaryAction&&s.push(this.primaryAction),this.removeIcon&&s.push(this.removeIcon),this.trailingIcon&&s.push(this.trailingIcon),s}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(s=>{const E=null!==s;E!==this._hasFocusInternal&&(this._hasFocusInternal=E,E?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return l.\u0275fac=function(s){return new(s||l)(f.Y36(f.sBO),f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(m.tE),f.Y36(A.K0),f.Y36(f.QbO,8),f.Y36(S.Y2,8),f.$8M("tabindex"))},l.\u0275cmp=f.Xpm({type:l,selectors:[["mat-basic-chip"],["mat-chip"]],contentQueries:function(s,E,B){if(1&s&&(f.Suo(B,U,5),f.Suo(B,X,5),f.Suo(B,ce,5)),2&s){let q;f.iGM(q=f.CRH())&&(E.leadingIcon=q.first),f.iGM(q=f.CRH())&&(E.trailingIcon=q.first),f.iGM(q=f.CRH())&&(E.removeIcon=q.first)}},viewQuery:function(s,E){if(1&s&&(f.Gf(S.wG,5),f.Gf(tt,5)),2&s){let B;f.iGM(B=f.CRH())&&(E.ripple=B.first),f.iGM(B=f.CRH())&&(E.primaryAction=B.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(s,E){1&s&&f.NdJ("keydown",function(q){return E._handleKeydown(q)}),2&s&&(f.Ikx("id",E.id),f.uIk("role",E.role)("tabindex",E.role?E.tabIndex:null)("aria-label",E.ariaLabel),f.ekj("mdc-evolution-chip",!E._isBasicChip)("mdc-evolution-chip--disabled",E.disabled)("mdc-evolution-chip--with-trailing-action",E._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",E.leadingIcon)("mdc-evolution-chip--with-primary-icon",E.leadingIcon)("mdc-evolution-chip--with-avatar",E.leadingIcon)("mat-mdc-chip-with-avatar",E.leadingIcon)("mat-mdc-chip-highlighted",E.highlighted)("mat-mdc-chip-disabled",E.disabled)("mat-mdc-basic-chip",E._isBasicChip)("mat-mdc-standard-chip",!E._isBasicChip)("mat-mdc-chip-with-trailing-icon",E._hasTrailingIcon())("_mat-animation-noopable",E._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[f._Bn([{provide:Me,useExisting:l}]),f.qOj],ngContentSelectors:ge,decls:9,vars:6,consts:[["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(s,E){1&s&&(f.F$t(_e),f._UZ(0,"span",0)(1,"span",1),f.TgZ(2,"span",2)(3,"div",3),f.YNc(4,j,2,0,"span",4),f.TgZ(5,"span",5),f.Hsn(6),f._UZ(7,"span",6),f.qZA()()(),f.YNc(8,$,2,0,"span",7)),2&s&&(f.Q6J("matRippleDisabled",E._isRippleDisabled())("matRippleCentered",E._isRippleCentered)("matRippleTrigger",E._elementRef.nativeElement),f.xp6(3),f.Q6J("isInteractive",!1),f.xp6(1),f.Q6J("ngIf",E.leadingIcon),f.xp6(4),f.Q6J("ngIf",E._hasTrailingIcon()))},dependencies:[A.O5,S.wG,tt],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),l})(),he=(()=>{class l{constructor(s,E){this._elementRef=s,this._document=E}initialize(s){this.getNativeElement().focus(),this.setValue(s)}getNativeElement(){return this._elementRef.nativeElement}setValue(s){this.getNativeElement().textContent=s,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const s=this._document.createRange();s.selectNodeContents(this.getNativeElement()),s.collapse(!1);const E=window.getSelection();E.removeAllRanges(),E.addRange(s)}}return l.\u0275fac=function(s){return new(s||l)(f.Y36(f.SBq),f.Y36(A.K0))},l.\u0275dir=f.lG2({type:l,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]}),l})(),Re=(()=>{class l extends st{constructor(s,E,B,q,qe,it,xt,ht){super(s,E,B,q,qe,it,xt,ht),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new f.vpe,this._isEditing=!1,this.role="row",this._onBlur.pipe((0,I.R)(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_mousedown(s){this._isEditing||(this.disabled||this.focus(),s.preventDefault())}_handleKeydown(s){s.keyCode!==H.K5||this.disabled?this._isEditing?s.stopPropagation():super._handleKeydown(s):this._isEditing?(s.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(s)}_doubleclick(s){!this.disabled&&this.editable&&this._startEditing(s)}_startEditing(s){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(s.target)===this.removeIcon)return;const E=this.value;this._isEditing=!0,this._editStartPending=!0,setTimeout(()=>{this._getEditInput().initialize(E),this._editStartPending=!1})}_onEditFinish(){this._isEditing=!1,this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_getEditInput(){return this.contentEditInput||this.defaultEditInput}}return l.\u0275fac=function(s){return new(s||l)(f.Y36(f.sBO),f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(m.tE),f.Y36(A.K0),f.Y36(f.QbO,8),f.Y36(S.Y2,8),f.$8M("tabindex"))},l.\u0275cmp=f.Xpm({type:l,selectors:[["mat-chip-row"],["mat-basic-chip-row"]],contentQueries:function(s,E,B){if(1&s&&f.Suo(B,he,5),2&s){let q;f.iGM(q=f.CRH())&&(E.contentEditInput=q.first)}},viewQuery:function(s,E){if(1&s&&f.Gf(he,5),2&s){let B;f.iGM(B=f.CRH())&&(E.defaultEditInput=B.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:26,hostBindings:function(s,E){1&s&&f.NdJ("mousedown",function(q){return E._mousedown(q)})("dblclick",function(q){return E._doubleclick(q)}),2&s&&(f.Ikx("id",E.id),f.uIk("tabindex",null)("aria-label",null)("role",E.role),f.ekj("mat-mdc-chip-with-avatar",E.leadingIcon)("mat-mdc-chip-disabled",E.disabled)("mat-mdc-chip-editing",E._isEditing)("mat-mdc-chip-editable",E.editable)("mdc-evolution-chip--disabled",E.disabled)("mdc-evolution-chip--with-trailing-action",E._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",E.leadingIcon)("mdc-evolution-chip--with-primary-icon",E.leadingIcon)("mdc-evolution-chip--with-avatar",E.leadingIcon)("mat-mdc-chip-highlighted",E.highlighted)("mat-mdc-chip-with-trailing-icon",E._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[f._Bn([{provide:st,useExisting:l},{provide:Me,useExisting:l}]),f.qOj],ngContentSelectors:Fe,decls:9,vars:10,consts:[[4,"ngIf"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(s,E){1&s&&(f.F$t(Je),f.YNc(0,W,3,3,"ng-container",0),f.TgZ(1,"span",1)(2,"span",2),f.YNc(3,te,2,0,"span",3),f.TgZ(4,"span",4),f.YNc(5,ne,2,0,"ng-container",5),f.YNc(6,ke,4,2,"ng-container",5),f._UZ(7,"span",6),f.qZA()()(),f.YNc(8,$e,2,0,"span",7)),2&s&&(f.Q6J("ngIf",!E._isEditing),f.xp6(2),f.Q6J("tabIndex",E.tabIndex)("disabled",E.disabled),f.uIk("role",E.editable?"button":null)("aria-label",E.ariaLabel),f.xp6(1),f.Q6J("ngIf",E.leadingIcon),f.xp6(1),f.Q6J("ngSwitch",E._isEditing),f.xp6(1),f.Q6J("ngSwitchCase",!1),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(2),f.Q6J("ngIf",E._hasTrailingIcon()))},dependencies:[A.O5,A.RF,A.n9,S.wG,tt,he],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),l})();class He{constructor(d){}}const ve=(0,S.sb)(He);let Oe=(()=>{class l extends ve{constructor(s,E,B){super(s),this._elementRef=s,this._changeDetectorRef=E,this._dir=B,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new M.x,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new f.n_E}get chipFocusChanges(){return this._getChipStream(s=>s._onFocus)}get chipDestroyedChanges(){return this._getChipStream(s=>s.destroyed)}get disabled(){return this._disabled}set disabled(s){this._disabled=(0,e.Ig)(s),this._syncChipsState()}get empty(){return 0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(s){this._explicitRole=s}get focused(){return this._hasFocusedChip()}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(s=>s._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(s=>{s.disabled=this._disabled,s._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(s){this._originatesFromChip(s)&&this._keyManager.onKeydown(s)}_isValidIndex(s){return s>=0&&s{this.tabIndex=s,this._changeDetectorRef.markForCheck()}))}_getChipStream(s){return this._chips.changes.pipe((0,F.O)(null),(0,T.w)(()=>(0,w.T)(...this._chips.map(s))))}_originatesFromChip(s){let E=s.target;for(;E&&E!==this._elementRef.nativeElement;){if(E.classList&&E.classList.contains("mdc-evolution-chip"))return!0;E=E.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe((0,F.O)(this._chips)).subscribe(s=>{const E=[];s.forEach(B=>B._getActions().forEach(q=>E.push(q))),this._chipActions.reset(E),this._chipActions.notifyOnChanges()}),this._keyManager=new m.Em(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(s=>this._skipPredicate(s)),this.chipFocusChanges.pipe((0,I.R)(this._destroyed)).subscribe(({chip:s})=>{const E=s._getSourceAction(document.activeElement);E&&this._keyManager.updateActiveItem(E)}),this._dir?.change.pipe((0,I.R)(this._destroyed)).subscribe(s=>this._keyManager.withHorizontalOrientation(s))}_skipPredicate(s){return!s.isInteractive||s.disabled}_trackChipSetChanges(){this._chips.changes.pipe((0,F.O)(null),(0,I.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe((0,I.R)(this._destroyed)).subscribe(s=>{const B=this._chips.toArray().indexOf(s.chip);this._isValidIndex(B)&&s.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=B)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const s=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),E=this._chips.toArray()[s];E.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():E.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}}return l.\u0275fac=function(s){return new(s||l)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(P.Is,8))},l.\u0275cmp=f.Xpm({type:l,selectors:[["mat-chip-set"]],contentQueries:function(s,E,B){if(1&s&&f.Suo(B,st,5),2&s){let q;f.iGM(q=f.CRH())&&(E._chips=q)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(s,E){1&s&&f.NdJ("keydown",function(q){return E._handleKeydown(q)}),2&s&&f.uIk("role",E.role)},inputs:{disabled:"disabled",role:"role"},features:[f.qOj],ngContentSelectors:Ve,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(s,E){1&s&&(f.F$t(),f.TgZ(0,"span",0),f.Hsn(1),f.qZA())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),l})();class C{constructor(d,s){this.source=d,this.value=s}}class h extends Oe{constructor(d,s,E,B,q,qe,it){super(d,s,E),this._defaultErrorStateMatcher=B,this._parentForm=q,this._parentFormGroup=qe,this.ngControl=it,this.stateChanges=new M.x}}const o=(0,S.FD)(h);let n=(()=>{class l extends o{constructor(s,E,B,q,qe,it,xt){super(s,E,B,it,q,qe,xt),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new f.vpe,this.valueChange=new f.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(s){this._disabled=(0,e.Ig)(s),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(s){this._placeholder=s,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(J.kI.required)??!1}set required(s){this._required=(0,e.Ig)(s),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(s){this._value=s}get chipBlurChanges(){return this._getChipStream(s=>s._onBlur)}ngAfterContentInit(){this.chipBlurChanges.pipe((0,I.R)(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),(0,w.T)(this.chipFocusChanges,this._chips.changes).pipe((0,I.R)(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(s){this._chipInput=s,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(s){!this.disabled&&!this._originatesFromChip(s)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(s){this._ariaDescribedbyIds=s,this._chipInput?.setDescribedByIds(s)}writeValue(s){this._value=s}registerOnChange(s){this._onChange=s}registerOnTouched(s){this._onTouched=s}setDisabledState(s){this.disabled=s,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(s){s.keyCode===H.Mf?this._chipInput.focused&&(0,H.Vb)(s,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(s.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(s),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const s=this._chips.length?this._chips.toArray().map(E=>E.value):[];this._value=s,this.change.emit(new C(this,s)),this.valueChange.emit(s),this._onChange(s),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}}return l.\u0275fac=function(s){return new(s||l)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(P.Is,8),f.Y36(J.F,8),f.Y36(J.sg,8),f.Y36(S.rD),f.Y36(J.a5,10))},l.\u0275cmp=f.Xpm({type:l,selectors:[["mat-chip-grid"]],contentQueries:function(s,E,B){if(1&s&&f.Suo(B,Re,5),2&s){let q;f.iGM(q=f.CRH())&&(E._chips=q)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(s,E){1&s&&f.NdJ("focus",function(){return E.focus()})("blur",function(){return E._blur()}),2&s&&(f.Ikx("tabIndex",E._chips&&0===E._chips.length?-1:E.tabIndex),f.uIk("role",E.role)("aria-disabled",E.disabled.toString())("aria-invalid",E.errorState),f.ekj("mat-mdc-chip-list-disabled",E.disabled)("mat-mdc-chip-list-invalid",E.errorState)("mat-mdc-chip-list-required",E.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[f._Bn([{provide:fe.Eo,useExisting:l}]),f.qOj],ngContentSelectors:Ve,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(s,E){1&s&&(f.F$t(),f.TgZ(0,"span",0),f.Hsn(1),f.qZA())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),l})(),t=0,i=(()=>{class l{constructor(s,E,B){this._elementRef=s,this._defaultOptions=E,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new f.vpe,this.placeholder="",this.id="mat-mdc-chip-list-input-"+t++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,B&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}set chipGrid(s){s&&(this._chipGrid=s,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(s){this._addOnBlur=(0,e.Ig)(s)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(s){this._disabled=(0,e.Ig)(s)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(s){if(s){if(s.keyCode===H.ZH&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void s.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(s)}_keyup(s){!this._focusLastChipOnBackspace&&s.keyCode===H.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,s.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(s){(!s||this._isSeparatorKey(s))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),s?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(s){const E=this._elementRef.nativeElement;s.length?E.setAttribute("aria-describedby",s.join(" ")):E.removeAttribute("aria-describedby")}_isSeparatorKey(s){return!(0,H.Vb)(s)&&new Set(this.separatorKeyCodes).has(s.keyCode)}}return l.\u0275fac=function(s){return new(s||l)(f.Y36(f.SBq),f.Y36(N),f.Y36(fe.G_,8))},l.\u0275dir=f.lG2({type:l,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(s,E){1&s&&f.NdJ("keydown",function(q){return E._keydown(q)})("keyup",function(q){return E._keyup(q)})("blur",function(){return E._blur()})("focus",function(){return E._focus()})("input",function(){return E._onInput()}),2&s&&(f.Ikx("id",E.id),f.uIk("disabled",E.disabled||null)("placeholder",E.placeholder||null)("aria-invalid",E._chipGrid&&E._chipGrid.ngControl?E._chipGrid.ngControl.invalid:null)("aria-required",E._chipGrid&&E._chipGrid.required||null)("required",E._chipGrid&&E._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[f.TTD]}),l})(),c=(()=>{class l{}return l.\u0275fac=function(s){return new(s||l)},l.\u0275mod=f.oAB({type:l}),l.\u0275inj=f.cJS({providers:[S.rD,{provide:N,useValue:{separatorKeyCodes:[H.K5]}}],imports:[S.BQ,A.ez,S.si,S.BQ]}),l})()},3238:(Qe,ae,p)=>{"use strict";p.d(ae,{yN:()=>ge,mZ:()=>pe,_A:()=>N,rD:()=>at,sG:()=>U,K7:()=>d,HF:()=>i,Y2:()=>C,BQ:()=>V,uc:()=>st,XK:()=>tt,ey:()=>qe,Ng:()=>ht,rN:()=>B,us:()=>t,wG:()=>h,si:()=>o,LF:()=>Me,IR:()=>u,CB:()=>it,jH:()=>xt,pj:()=>ze,Kr:()=>ke,Id:()=>ye,FD:()=>Je,dB:()=>Fe,sb:()=>$e});var e=p(94650),f=p(12693),A=p(40445),m=p(36895),M=p(83353),w=p(21281),x=p(69751),I=p(77579),F=p(29521);const P=["text"];function J(_t,Ee){if(1&_t&&e._UZ(0,"mat-pseudo-checkbox",5),2&_t){const we=e.oxw();e.Q6J("state",we.selected?"checked":"unchecked")("disabled",we.disabled)}}function fe(_t,Ee){if(1&_t&&(e.TgZ(0,"span",6),e._uU(1),e.qZA()),2&_t){const we=e.oxw();e.xp6(1),e.hij("(",we.group.label,")")}}const j=[[["mat-icon"]],"*"],$=["mat-icon","*"];let ge=(()=>{class _t{}return _t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",_t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",_t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",_t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",_t})(),pe=(()=>{class _t{}return _t.COMPLEX="375ms",_t.ENTERING="225ms",_t.EXITING="195ms",_t})();const v=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function re(){return!0}});let V=(()=>{class _t{constructor(we,de,Ae){this._sanityChecks=de,this._document=Ae,this._hasDoneGlobalChecks=!1,we._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(we){return!(0,M.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[we])}}return _t.\u0275fac=function(we){return new(we||_t)(e.LFG(f.qm),e.LFG(v,8),e.LFG(m.K0))},_t.\u0275mod=e.oAB({type:_t}),_t.\u0275inj=e.cJS({imports:[A.vT,A.vT]}),_t})();function ye(_t){return class extends _t{constructor(...Ee){super(...Ee),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ee){this._disabled=(0,w.Ig)(Ee)}}}function ze(_t,Ee){return class extends _t{constructor(...we){super(...we),this.defaultColor=Ee,this.color=Ee}get color(){return this._color}set color(we){const de=we||this.defaultColor;de!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),de&&this._elementRef.nativeElement.classList.add(`mat-${de}`),this._color=de)}}}function ke(_t){return class extends _t{constructor(...Ee){super(...Ee),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ee){this._disableRipple=(0,w.Ig)(Ee)}}}function $e(_t,Ee=0){return class extends _t{constructor(...we){super(...we),this._tabIndex=Ee,this.defaultTabIndex=Ee}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(we){this._tabIndex=null!=we?(0,w.su)(we):this.defaultTabIndex}}}function Je(_t){return class extends _t{constructor(...Ee){super(...Ee),this.errorState=!1}updateErrorState(){const Ee=this.errorState,Te=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Te!==Ee&&(this.errorState=Te,this.stateChanges.next())}}}function Fe(_t){return class extends _t{constructor(...Ee){super(...Ee),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new x.y(we=>{this._isInitialized?this._notifySubscriber(we):this._pendingSubscribers.push(we)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ee){Ee.next(),Ee.complete()}}}const Ve=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function le(){return(0,e.f3M)(e.soG)}});class N{constructor(){this._localeChanges=new I.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Ee){return this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:null}deserialize(Ee){return null==Ee||this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:this.invalid()}setLocale(Ee){this.locale=Ee,this._localeChanges.next()}compareDate(Ee,we){return this.getYear(Ee)-this.getYear(we)||this.getMonth(Ee)-this.getMonth(we)||this.getDate(Ee)-this.getDate(we)}sameDate(Ee,we){if(Ee&&we){let de=this.isValid(Ee),Ae=this.isValid(we);return de&&Ae?!this.compareDate(Ee,we):de==Ae}return Ee==we}clampDate(Ee,we,de){return we&&this.compareDate(Ee,we)<0?we:de&&this.compareDate(Ee,de)>0?de:Ee}}const U=new e.OlP("mat-date-formats"),X=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ce(_t,Ee){const we=Array(_t);for(let de=0;de<_t;de++)we[de]=Ee(de);return we}let Me=(()=>{class _t extends N{constructor(we,de){super(),this.useUtcForDisplay=!1,super.setLocale(we)}getYear(we){return we.getFullYear()}getMonth(we){return we.getMonth()}getDate(we){return we.getDate()}getDayOfWeek(we){return we.getDay()}getMonthNames(we){const de=new Intl.DateTimeFormat(this.locale,{month:we,timeZone:"utc"});return ce(12,Ae=>this._format(de,new Date(2017,Ae,1)))}getDateNames(){const we=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return ce(31,de=>this._format(we,new Date(2017,0,de+1)))}getDayOfWeekNames(we){const de=new Intl.DateTimeFormat(this.locale,{weekday:we,timeZone:"utc"});return ce(7,Ae=>this._format(de,new Date(2017,0,Ae+1)))}getYearName(we){const de=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(de,we)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(we){return this.getDate(this._createDateWithOverflow(this.getYear(we),this.getMonth(we)+1,0))}clone(we){return new Date(we.getTime())}createDate(we,de,Ae){let Te=this._createDateWithOverflow(we,de,Ae);return Te.getMonth(),Te}today(){return new Date}parse(we,de){return"number"==typeof we?new Date(we):we?new Date(Date.parse(we)):null}format(we,de){if(!this.isValid(we))throw Error("NativeDateAdapter: Cannot format invalid date.");const Ae=new Intl.DateTimeFormat(this.locale,{...de,timeZone:"utc"});return this._format(Ae,we)}addCalendarYears(we,de){return this.addCalendarMonths(we,12*de)}addCalendarMonths(we,de){let Ae=this._createDateWithOverflow(this.getYear(we),this.getMonth(we)+de,this.getDate(we));return this.getMonth(Ae)!=((this.getMonth(we)+de)%12+12)%12&&(Ae=this._createDateWithOverflow(this.getYear(Ae),this.getMonth(Ae),0)),Ae}addCalendarDays(we,de){return this._createDateWithOverflow(this.getYear(we),this.getMonth(we),this.getDate(we)+de)}toIso8601(we){return[we.getUTCFullYear(),this._2digit(we.getUTCMonth()+1),this._2digit(we.getUTCDate())].join("-")}deserialize(we){if("string"==typeof we){if(!we)return null;if(X.test(we)){let de=new Date(we);if(this.isValid(de))return de}}return super.deserialize(we)}isDateInstance(we){return we instanceof Date}isValid(we){return!isNaN(we.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(we,de,Ae){const Te=new Date;return Te.setFullYear(we,de,Ae),Te.setHours(0,0,0,0),Te}_2digit(we){return("00"+we).slice(-2)}_format(we,de){const Ae=new Date;return Ae.setUTCFullYear(de.getFullYear(),de.getMonth(),de.getDate()),Ae.setUTCHours(de.getHours(),de.getMinutes(),de.getSeconds(),de.getMilliseconds()),we.format(Ae)}}return _t.\u0275fac=function(we){return new(we||_t)(e.LFG(Ve,8),e.LFG(M.t4))},_t.\u0275prov=e.Yz7({token:_t,factory:_t.\u0275fac}),_t})();const ue={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Pe=(()=>{class _t{}return _t.\u0275fac=function(we){return new(we||_t)},_t.\u0275mod=e.oAB({type:_t}),_t.\u0275inj=e.cJS({providers:[{provide:N,useClass:Me}]}),_t})(),tt=(()=>{class _t{}return _t.\u0275fac=function(we){return new(we||_t)},_t.\u0275mod=e.oAB({type:_t}),_t.\u0275inj=e.cJS({providers:[{provide:U,useValue:ue}],imports:[Pe]}),_t})(),at=(()=>{class _t{isErrorState(we,de){return!!(we&&we.invalid&&(we.touched||de&&de.submitted))}}return _t.\u0275fac=function(we){return new(we||_t)},_t.\u0275prov=e.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"}),_t})(),st=(()=>{class _t{}return _t.\u0275fac=function(we){return new(we||_t)},_t.\u0275mod=e.oAB({type:_t}),_t.\u0275inj=e.cJS({imports:[V,V]}),_t})();class be{constructor(Ee,we,de,Ae=!1){this._renderer=Ee,this.element=we,this.config=de,this._animationForciblyDisabledThroughCss=Ae,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ye=(0,M.i$)({passive:!0,capture:!0});class he{constructor(){this._events=new Map,this._delegateEventHandler=Ee=>{const we=(0,M.sA)(Ee);we&&this._events.get(Ee.type)?.forEach((de,Ae)=>{(Ae===we||Ae.contains(we))&&de.forEach(Te=>Te.handleEvent(Ee))})}}addHandler(Ee,we,de,Ae){const Te=this._events.get(we);if(Te){const ut=Te.get(de);ut?ut.add(Ae):Te.set(de,new Set([Ae]))}else this._events.set(we,new Map([[de,new Set([Ae])]])),Ee.runOutsideAngular(()=>{document.addEventListener(we,this._delegateEventHandler,Ye)})}removeHandler(Ee,we,de){const Ae=this._events.get(Ee);if(!Ae)return;const Te=Ae.get(we);Te&&(Te.delete(de),0===Te.size&&Ae.delete(we),0===Ae.size&&(this._events.delete(Ee),document.removeEventListener(Ee,this._delegateEventHandler,Ye)))}}const Re={enterDuration:225,exitDuration:150},ve=(0,M.i$)({passive:!0,capture:!0}),Oe=["mousedown","touchstart"],r=["mouseup","mouseleave","touchend","touchcancel"];class u{constructor(Ee,we,de,Ae){this._target=Ee,this._ngZone=we,this._platform=Ae,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Ae.isBrowser&&(this._containerElement=(0,w.fI)(de))}fadeInRipple(Ee,we,de={}){const Ae=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Te={...Re,...de.animation};de.centered&&(Ee=Ae.left+Ae.width/2,we=Ae.top+Ae.height/2);const ut=de.radius||function _(_t,Ee,we){const de=Math.max(Math.abs(_t-we.left),Math.abs(_t-we.right)),Ae=Math.max(Math.abs(Ee-we.top),Math.abs(Ee-we.bottom));return Math.sqrt(de*de+Ae*Ae)}(Ee,we,Ae),bt=Ee-Ae.left,Ht=we-Ae.top,Mt=Te.enterDuration,It=document.createElement("div");It.classList.add("mat-ripple-element"),It.style.left=bt-ut+"px",It.style.top=Ht-ut+"px",It.style.height=2*ut+"px",It.style.width=2*ut+"px",null!=de.color&&(It.style.backgroundColor=de.color),It.style.transitionDuration=`${Mt}ms`,this._containerElement.appendChild(It);const ai=window.getComputedStyle(It),Ut=ai.transitionDuration,Tt="none"===ai.transitionProperty||"0s"===Ut||"0s, 0s"===Ut||0===Ae.width&&0===Ae.height,Se=new be(this,It,de,Tt);It.style.transform="scale3d(1, 1, 1)",Se.state=0,de.persistent||(this._mostRecentTransientRipple=Se);let We=null;return!Tt&&(Mt||Te.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const oe=()=>this._finishRippleTransition(Se),et=()=>this._destroyRipple(Se);It.addEventListener("transitionend",oe),It.addEventListener("transitioncancel",et),We={onTransitionEnd:oe,onTransitionCancel:et}}),this._activeRipples.set(Se,We),(Tt||!Mt)&&this._finishRippleTransition(Se),Se}fadeOutRipple(Ee){if(2===Ee.state||3===Ee.state)return;const we=Ee.element,de={...Re,...Ee.config.animation};we.style.transitionDuration=`${de.exitDuration}ms`,we.style.opacity="0",Ee.state=2,(Ee._animationForciblyDisabledThroughCss||!de.exitDuration)&&this._finishRippleTransition(Ee)}fadeOutAll(){this._getActiveRipples().forEach(Ee=>Ee.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Ee=>{Ee.config.persistent||Ee.fadeOut()})}setupTriggerEvents(Ee){const we=(0,w.fI)(Ee);!this._platform.isBrowser||!we||we===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=we,Oe.forEach(de=>{u._eventManager.addHandler(this._ngZone,de,we,this)}))}handleEvent(Ee){"mousedown"===Ee.type?this._onMousedown(Ee):"touchstart"===Ee.type?this._onTouchStart(Ee):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{r.forEach(we=>{this._triggerElement.addEventListener(we,this,ve)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Ee){0===Ee.state?this._startFadeOutTransition(Ee):2===Ee.state&&this._destroyRipple(Ee)}_startFadeOutTransition(Ee){const we=Ee===this._mostRecentTransientRipple,{persistent:de}=Ee.config;Ee.state=1,!de&&(!we||!this._isPointerDown)&&Ee.fadeOut()}_destroyRipple(Ee){const we=this._activeRipples.get(Ee)??null;this._activeRipples.delete(Ee),this._activeRipples.size||(this._containerRect=null),Ee===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Ee.state=3,null!==we&&(Ee.element.removeEventListener("transitionend",we.onTransitionEnd),Ee.element.removeEventListener("transitioncancel",we.onTransitionCancel)),Ee.element.remove()}_onMousedown(Ee){const we=(0,f.X6)(Ee),de=this._lastTouchStartEvent&&Date.now(){!Ee.config.persistent&&(1===Ee.state||Ee.config.terminateOnPointerUp&&0===Ee.state)&&Ee.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Ee=this._triggerElement;Ee&&(Oe.forEach(we=>u._eventManager.removeHandler(we,Ee,this)),this._pointerUpEventsRegistered&&r.forEach(we=>Ee.removeEventListener(we,this,ve)))}}u._eventManager=new he;const C=new e.OlP("mat-ripple-global-options");let h=(()=>{class _t{constructor(we,de,Ae,Te,ut){this._elementRef=we,this._animationMode=ut,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Te||{},this._rippleRenderer=new u(this,de,we,Ae)}get disabled(){return this._disabled}set disabled(we){we&&this.fadeOutAllNonPersistent(),this._disabled=we,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(we){this._trigger=we,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(we,de=0,Ae){return"number"==typeof we?this._rippleRenderer.fadeInRipple(we,de,{...this.rippleConfig,...Ae}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...we})}}return _t.\u0275fac=function(we){return new(we||_t)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(M.t4),e.Y36(C,8),e.Y36(e.QbO,8))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(we,de){2&we&&e.ekj("mat-ripple-unbounded",de.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),_t})(),o=(()=>{class _t{}return _t.\u0275fac=function(we){return new(we||_t)},_t.\u0275mod=e.oAB({type:_t}),_t.\u0275inj=e.cJS({imports:[V,V]}),_t})(),n=(()=>{class _t{constructor(we){this._animationMode=we,this.state="unchecked",this.disabled=!1}}return _t.\u0275fac=function(we){return new(we||_t)(e.Y36(e.QbO,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(we,de){2&we&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===de.state)("mat-pseudo-checkbox-checked","checked"===de.state)("mat-pseudo-checkbox-disabled",de.disabled)("_mat-animation-noopable","NoopAnimations"===de._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(we,de){},styles:['.mat-pseudo-checkbox{border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}.mat-pseudo-checkbox-checked::after{top:2.7px;width:10px;height:4px}'],encapsulation:2,changeDetection:0}),_t})(),t=(()=>{class _t{}return _t.\u0275fac=function(we){return new(we||_t)},_t.\u0275mod=e.oAB({type:_t}),_t.\u0275inj=e.cJS({imports:[V]}),_t})();const i=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),d=new e.OlP("MatOptgroup");let E=0;class B{constructor(Ee,we=!1){this.source=Ee,this.isUserInput=we}}let q=(()=>{class _t{constructor(we,de,Ae,Te){this._element=we,this._changeDetectorRef=de,this._parent=Ae,this.group=Te,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+E++,this.onSelectionChange=new e.vpe,this._stateChanges=new I.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(we){this._disabled=(0,w.Ig)(we)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(we,de){const Ae=this._getHostElement();"function"==typeof Ae.focus&&Ae.focus(de)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(we){(we.keyCode===F.K5||we.keyCode===F.L_)&&!(0,F.Vb)(we)&&(this._selectViaInteraction(),we.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const we=this.viewValue;we!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=we)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(we=!1){this.onSelectionChange.emit(new B(this,we))}}return _t.\u0275fac=function(we){e.$Z()},_t.\u0275dir=e.lG2({type:_t,viewQuery:function(we,de){if(1&we&&e.Gf(P,7),2&we){let Ae;e.iGM(Ae=e.CRH())&&(de._text=Ae.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),_t})(),qe=(()=>{class _t extends q{constructor(we,de,Ae,Te){super(we,de,Ae,Te)}}return _t.\u0275fac=function(we){return new(we||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(i,8),e.Y36(d,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mat-mdc-focus-indicator","mdc-list-item"],hostVars:12,hostBindings:function(we,de){1&we&&e.NdJ("click",function(){return de._selectViaInteraction()})("keydown",function(Te){return de._handleKeydown(Te)}),2&we&&(e.Ikx("id",de.id),e.uIk("tabindex",de._getTabIndex())("aria-selected",de._getAriaSelected())("aria-disabled",de.disabled.toString()),e.ekj("mdc-list-item--selected",de.selected)("mat-mdc-option-multiple",de.multiple)("mat-mdc-option-active",de.active)("mdc-list-item--disabled",de.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:$,decls:7,vars:4,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(we,de){1&we&&(e.F$t(j),e.YNc(0,J,1,2,"mat-pseudo-checkbox",0),e.Hsn(1),e.TgZ(2,"span",1,2),e.Hsn(4,1),e.qZA(),e.YNc(5,fe,2,1,"span",3),e._UZ(6,"div",4)),2&we&&(e.Q6J("ngIf",de.multiple),e.xp6(5),e.Q6J("ngIf",de.group&&de.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",de._getHostElement())("matRippleDisabled",de.disabled||de.disableRipple))},dependencies:[h,m.O5,n],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox{margin-right:0;margin-left:16px}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active::before{content:""}'],encapsulation:2,changeDetection:0}),_t})();function it(_t,Ee,we){if(we.length){let de=Ee.toArray(),Ae=we.toArray(),Te=0;for(let ut=0;ut<_t+1;ut++)de[ut].group&&de[ut].group===Ae[Te]&&Te++;return Te}return 0}function xt(_t,Ee,we,de){return _twe+de?Math.max(0,_t-de+Ee):we}let ht=(()=>{class _t{}return _t.\u0275fac=function(we){return new(we||_t)},_t.\u0275mod=e.oAB({type:_t}),_t.\u0275inj=e.cJS({imports:[o,m.ez,V,t]}),_t})()},99602:(Qe,ae,p)=>{"use strict";p.d(ae,{By:()=>Nt,FA:()=>Ri,Mq:()=>Ht,_g:()=>Kt,hl:()=>Tt,nW:()=>We,wx:()=>Bt,zY:()=>At});var e=p(12693),f=p(98184),A=p(84080),S=p(36895),m=p(94650),M=p(4859),w=p(67376),x=p(3238),I=p(77579),F=p(50727),T=p(56451),H=p(39646),P=p(29521),J=p(40445),fe=p(95698),j=p(68675),$=p(39300),_e=p(21281),ge=p(83353),pe=p(37340),re=p(24006),v=p(59549),V=p(284);const W=["mat-calendar-body",""];function te(Dt,Gt){if(1&Dt&&(m.TgZ(0,"tr",3)(1,"td",4),m._uU(2),m.qZA()()),2&Dt){const Q=m.oxw();m.xp6(1),m.Udp("padding-top",Q._cellPadding)("padding-bottom",Q._cellPadding),m.uIk("colspan",Q.numCols),m.xp6(1),m.hij(" ",Q.label," ")}}function ne(Dt,Gt){if(1&Dt&&(m.TgZ(0,"td",4),m._uU(1),m.qZA()),2&Dt){const Q=m.oxw(2);m.Udp("padding-top",Q._cellPadding)("padding-bottom",Q._cellPadding),m.uIk("colspan",Q._firstRowOffset),m.xp6(1),m.hij(" ",Q._firstRowOffset>=Q.labelMinRequiredCells?Q.label:""," ")}}function ye(Dt,Gt){if(1&Dt){const Q=m.EpF();m.TgZ(0,"td",8)(1,"button",9),m.NdJ("click",function(gt){const ci=m.CHM(Q).$implicit,bi=m.oxw(2);return m.KtG(bi._cellClicked(ci,gt))})("focus",function(gt){const ci=m.CHM(Q).$implicit,bi=m.oxw(2);return m.KtG(bi._emitActiveDateChange(ci,gt))}),m.TgZ(2,"div",10),m._uU(3),m.qZA(),m._UZ(4,"div",11),m.qZA()()}if(2&Dt){const Q=Gt.$implicit,Ie=Gt.index,gt=m.oxw().index,Pt=m.oxw();m.Udp("width",Pt._cellWidth)("padding-top",Pt._cellPadding)("padding-bottom",Pt._cellPadding),m.uIk("data-mat-row",gt)("data-mat-col",Ie),m.xp6(1),m.ekj("mat-calendar-body-disabled",!Q.enabled)("mat-calendar-body-active",Pt._isActiveCell(gt,Ie))("mat-calendar-body-range-start",Pt._isRangeStart(Q.compareValue))("mat-calendar-body-range-end",Pt._isRangeEnd(Q.compareValue))("mat-calendar-body-in-range",Pt._isInRange(Q.compareValue))("mat-calendar-body-comparison-bridge-start",Pt._isComparisonBridgeStart(Q.compareValue,gt,Ie))("mat-calendar-body-comparison-bridge-end",Pt._isComparisonBridgeEnd(Q.compareValue,gt,Ie))("mat-calendar-body-comparison-start",Pt._isComparisonStart(Q.compareValue))("mat-calendar-body-comparison-end",Pt._isComparisonEnd(Q.compareValue))("mat-calendar-body-in-comparison-range",Pt._isInComparisonRange(Q.compareValue))("mat-calendar-body-preview-start",Pt._isPreviewStart(Q.compareValue))("mat-calendar-body-preview-end",Pt._isPreviewEnd(Q.compareValue))("mat-calendar-body-in-preview",Pt._isInPreview(Q.compareValue)),m.Q6J("ngClass",Q.cssClasses)("tabindex",Pt._isActiveCell(gt,Ie)?0:-1),m.uIk("aria-label",Q.ariaLabel)("aria-disabled",!Q.enabled||null)("aria-pressed",Pt._isSelected(Q.compareValue))("aria-current",Pt.todayValue===Q.compareValue?"date":null)("aria-describedby",Pt._getDescribedby(Q.compareValue)),m.xp6(1),m.ekj("mat-calendar-body-selected",Pt._isSelected(Q.compareValue))("mat-calendar-body-comparison-identical",Pt._isComparisonIdentical(Q.compareValue))("mat-calendar-body-today",Pt.todayValue===Q.compareValue),m.xp6(1),m.hij(" ",Q.displayValue," ")}}function ze(Dt,Gt){if(1&Dt&&(m.TgZ(0,"tr",5),m.YNc(1,ne,2,6,"td",6),m.YNc(2,ye,5,48,"td",7),m.qZA()),2&Dt){const Q=Gt.$implicit,Ie=Gt.index,gt=m.oxw();m.xp6(1),m.Q6J("ngIf",0===Ie&>._firstRowOffset),m.xp6(1),m.Q6J("ngForOf",Q)}}function ke(Dt,Gt){if(1&Dt&&(m.TgZ(0,"th",5)(1,"span",6),m._uU(2),m.qZA(),m.TgZ(3,"span",7),m._uU(4),m.qZA()()),2&Dt){const Q=Gt.$implicit;m.xp6(2),m.Oqu(Q.long),m.xp6(2),m.Oqu(Q.narrow)}}const $e=["*"];function Je(Dt,Gt){}function Fe(Dt,Gt){if(1&Dt){const Q=m.EpF();m.TgZ(0,"mat-month-view",5),m.NdJ("activeDateChange",function(gt){m.CHM(Q);const Pt=m.oxw();return m.KtG(Pt.activeDate=gt)})("_userSelection",function(gt){m.CHM(Q);const Pt=m.oxw();return m.KtG(Pt._dateSelected(gt))}),m.qZA()}if(2&Dt){const Q=m.oxw();m.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)("dateClass",Q.dateClass)("comparisonStart",Q.comparisonStart)("comparisonEnd",Q.comparisonEnd)("startDateAccessibleName",Q.startDateAccessibleName)("endDateAccessibleName",Q.endDateAccessibleName)}}function Ve(Dt,Gt){if(1&Dt){const Q=m.EpF();m.TgZ(0,"mat-year-view",6),m.NdJ("activeDateChange",function(gt){m.CHM(Q);const Pt=m.oxw();return m.KtG(Pt.activeDate=gt)})("monthSelected",function(gt){m.CHM(Q);const Pt=m.oxw();return m.KtG(Pt._monthSelectedInYearView(gt))})("selectedChange",function(gt){m.CHM(Q);const Pt=m.oxw();return m.KtG(Pt._goToDateInView(gt,"month"))}),m.qZA()}if(2&Dt){const Q=m.oxw();m.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)("dateClass",Q.dateClass)}}function le(Dt,Gt){if(1&Dt){const Q=m.EpF();m.TgZ(0,"mat-multi-year-view",7),m.NdJ("activeDateChange",function(gt){m.CHM(Q);const Pt=m.oxw();return m.KtG(Pt.activeDate=gt)})("yearSelected",function(gt){m.CHM(Q);const Pt=m.oxw();return m.KtG(Pt._yearSelectedInMultiYearView(gt))})("selectedChange",function(gt){m.CHM(Q);const Pt=m.oxw();return m.KtG(Pt._goToDateInView(gt,"year"))}),m.qZA()}if(2&Dt){const Q=m.oxw();m.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)("dateClass",Q.dateClass)}}function N(Dt,Gt){}const U=["button"];function X(Dt,Gt){1&Dt&&(m.O4$(),m.TgZ(0,"svg",3),m._UZ(1,"path",4),m.qZA())}const ce=[[["","matDatepickerToggleIcon",""]]],Me=["[matDatepickerToggleIcon]"],ue=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Pe=["input[matStartDate]","input[matEndDate]"];let at=(()=>{class Dt{constructor(){this.changes=new I.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(Q,Ie){return`${Q} \u2013 ${Ie}`}formatYearRangeLabel(Q,Ie){return`${Q} to ${Ie}`}}return Dt.\u0275fac=function(Q){return new(Q||Dt)},Dt.\u0275prov=m.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();class Ue{constructor(Gt,Q,Ie,gt,Pt={},ci=Gt,bi){this.value=Gt,this.displayValue=Q,this.ariaLabel=Ie,this.enabled=gt,this.cssClasses=Pt,this.compareValue=ci,this.rawValue=bi}}let pt=1,z=(()=>{class Dt{constructor(Q,Ie){this._elementRef=Q,this._ngZone=Ie,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new m.vpe,this.previewChange=new m.vpe,this.activeDateChange=new m.vpe,this._enterHandler=gt=>{if(this._skipNextFocus&&"focus"===gt.type)this._skipNextFocus=!1;else if(gt.target&&this.isRange){const Pt=this._getCellFromElement(gt.target);Pt&&this._ngZone.run(()=>this.previewChange.emit({value:Pt.enabled?Pt:null,event:gt}))}},this._leaveHandler=gt=>{null!==this.previewEnd&&this.isRange&>.target&&this._getCellFromElement(gt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:gt}))},this._id="mat-calendar-body-"+pt++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,Ie.runOutsideAngular(()=>{const gt=Q.nativeElement;gt.addEventListener("mouseenter",this._enterHandler,!0),gt.addEventListener("focus",this._enterHandler,!0),gt.addEventListener("mouseleave",this._leaveHandler,!0),gt.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(Q,Ie){Q.enabled&&this.selectedValueChange.emit({value:Q.value,event:Ie})}_emitActiveDateChange(Q,Ie){Q.enabled&&this.activeDateChange.emit({value:Q.value,event:Ie})}_isSelected(Q){return this.startValue===Q||this.endValue===Q}ngOnChanges(Q){const Ie=Q.numCols,{rows:gt,numCols:Pt}=this;(Q.rows||Ie)&&(this._firstRowOffset=gt&>.length&>[0].length?Pt-gt[0].length:0),(Q.cellAspectRatio||Ie||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Pt+"%"),(Ie||!this._cellWidth)&&(this._cellWidth=100/Pt+"%")}ngOnDestroy(){const Q=this._elementRef.nativeElement;Q.removeEventListener("mouseenter",this._enterHandler,!0),Q.removeEventListener("focus",this._enterHandler,!0),Q.removeEventListener("mouseleave",this._leaveHandler,!0),Q.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(Q,Ie){let gt=Q*this.numCols+Ie;return Q&&(gt-=this._firstRowOffset),gt==this.activeCell}_focusActiveCell(Q=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,fe.q)(1)).subscribe(()=>{setTimeout(()=>{const Ie=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Ie&&(Q||(this._skipNextFocus=!0),Ie.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(Q){return be(Q,this.startValue,this.endValue)}_isRangeEnd(Q){return Ye(Q,this.startValue,this.endValue)}_isInRange(Q){return he(Q,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Q){return be(Q,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Q,Ie,gt){if(!this._isComparisonStart(Q)||this._isRangeStart(Q)||!this._isInRange(Q))return!1;let Pt=this.rows[Ie][gt-1];if(!Pt){const ci=this.rows[Ie-1];Pt=ci&&ci[ci.length-1]}return Pt&&!this._isRangeEnd(Pt.compareValue)}_isComparisonBridgeEnd(Q,Ie,gt){if(!this._isComparisonEnd(Q)||this._isRangeEnd(Q)||!this._isInRange(Q))return!1;let Pt=this.rows[Ie][gt+1];if(!Pt){const ci=this.rows[Ie+1];Pt=ci&&ci[0]}return Pt&&!this._isRangeStart(Pt.compareValue)}_isComparisonEnd(Q){return Ye(Q,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Q){return he(Q,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(Q){return this.comparisonStart===this.comparisonEnd&&Q===this.comparisonStart}_isPreviewStart(Q){return be(Q,this.previewStart,this.previewEnd)}_isPreviewEnd(Q){return Ye(Q,this.previewStart,this.previewEnd)}_isInPreview(Q){return he(Q,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(Q){return this.isRange?this.startValue===Q&&this.endValue===Q?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===Q?this._startDateLabelId:this.endValue===Q?this._endDateLabelId:null:null}_getCellFromElement(Q){let Ie;if(st(Q)?Ie=Q:st(Q.parentNode)&&(Ie=Q.parentNode),Ie){const gt=Ie.getAttribute("data-mat-row"),Pt=Ie.getAttribute("data-mat-col");if(gt&&Pt)return this.rows[parseInt(gt)][parseInt(Pt)]}return null}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.Y36(m.SBq),m.Y36(m.R0b))},Dt.\u0275cmp=m.Xpm({type:Dt,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[m.TTD],attrs:W,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(Q,Ie){1&Q&&(m.YNc(0,te,3,6,"tr",0),m.YNc(1,ze,3,2,"tr",1),m.TgZ(2,"label",2),m._uU(3),m.qZA(),m.TgZ(4,"label",2),m._uU(5),m.qZA()),2&Q&&(m.Q6J("ngIf",Ie._firstRowOffset=Gt&&Dt===Q}function he(Dt,Gt,Q,Ie){return Ie&&null!==Gt&&null!==Q&&Gt!==Q&&Dt>=Gt&&Dt<=Q}class Re{constructor(Gt,Q){this.start=Gt,this.end=Q}}let He=(()=>{class Dt{constructor(Q,Ie){this.selection=Q,this._adapter=Ie,this._selectionChanged=new I.x,this.selectionChanged=this._selectionChanged,this.selection=Q}updateSelection(Q,Ie){const gt=this.selection;this.selection=Q,this._selectionChanged.next({selection:Q,source:Ie,oldValue:gt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(Q){return this._adapter.isDateInstance(Q)&&this._adapter.isValid(Q)}}return Dt.\u0275fac=function(Q){m.$Z()},Dt.\u0275prov=m.Yz7({token:Dt,factory:Dt.\u0275fac}),Dt})(),ve=(()=>{class Dt extends He{constructor(Q){super(null,Q)}add(Q){super.updateSelection(Q,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const Q=new Dt(this._adapter);return Q.updateSelection(this.selection,this),Q}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.LFG(x._A))},Dt.\u0275prov=m.Yz7({token:Dt,factory:Dt.\u0275fac}),Dt})(),Oe=(()=>{class Dt extends He{constructor(Q){super(new Re(null,null),Q)}add(Q){let{start:Ie,end:gt}=this.selection;null==Ie?Ie=Q:null==gt?gt=Q:(Ie=Q,gt=null),super.updateSelection(new Re(Ie,gt),this)}isValid(){const{start:Q,end:Ie}=this.selection;return null==Q&&null==Ie||(null!=Q&&null!=Ie?this._isValidDateInstance(Q)&&this._isValidDateInstance(Ie)&&this._adapter.compareDate(Q,Ie)<=0:(null==Q||this._isValidDateInstance(Q))&&(null==Ie||this._isValidDateInstance(Ie)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const Q=new Dt(this._adapter);return Q.updateSelection(this.selection,this),Q}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.LFG(x._A))},Dt.\u0275prov=m.Yz7({token:Dt,factory:Dt.\u0275fac}),Dt})();const u={provide:He,deps:[[new m.FiY,new m.tp0,He],x._A],useFactory:function r(Dt,Gt){return Dt||new ve(Gt)}},C={provide:He,deps:[[new m.FiY,new m.tp0,He],x._A],useFactory:function _(Dt,Gt){return Dt||new Oe(Gt)}},h=new m.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let o=(()=>{class Dt{constructor(Q){this._dateAdapter=Q}selectionFinished(Q,Ie){let{start:gt,end:Pt}=Ie;return null==gt?gt=Q:null==Pt&&Q&&this._dateAdapter.compareDate(Q,gt)>=0?Pt=Q:(gt=Q,Pt=null),new Re(gt,Pt)}createPreview(Q,Ie){let gt=null,Pt=null;return Ie.start&&!Ie.end&&Q&&(gt=Ie.start,Pt=Q),new Re(gt,Pt)}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.LFG(x._A))},Dt.\u0275prov=m.Yz7({token:Dt,factory:Dt.\u0275fac}),Dt})();const t={provide:h,deps:[[new m.FiY,new m.tp0,h],x._A],useFactory:function n(Dt,Gt){return Dt||new o(Gt)}};let a=(()=>{class Dt{constructor(Q,Ie,gt,Pt,ci){this._changeDetectorRef=Q,this._dateFormats=Ie,this._dateAdapter=gt,this._dir=Pt,this._rangeStrategy=ci,this._rerenderSubscription=F.w0.EMPTY,this.selectedChange=new m.vpe,this._userSelection=new m.vpe,this.activeDateChange=new m.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){const Ie=this._activeDate,gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),this._hasSameMonthAndYear(Ie,this._activeDate)||this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof Re?Q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,j.O)(null)).subscribe(()=>this._init())}ngOnChanges(Q){const Ie=Q.comparisonStart||Q.comparisonEnd;Ie&&!Ie.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Q){const Ie=Q.value,gt=this._getDateFromDayOfMonth(Ie);let Pt,ci;this._selected instanceof Re?(Pt=this._getDateInCurrentMonth(this._selected.start),ci=this._getDateInCurrentMonth(this._selected.end)):Pt=ci=this._getDateInCurrentMonth(this._selected),(Pt!==Ie||ci!==Ie)&&this.selectedChange.emit(gt),this._userSelection.emit({value:gt,event:Q.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(Q){const gt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(Q.value),this._dateAdapter.compareDate(gt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(Q){const Ie=this._activeDate,gt=this._isRtl();switch(Q.keyCode){case P.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,gt?1:-1);break;case P.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,gt?-1:1);break;case P.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case P.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case P.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case P.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case P.Ku:this.activeDate=Q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case P.VM:this.activeDate=Q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case P.K5:case P.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&Q.preventDefault());case P.hY:return void(null!=this._previewEnd&&!(0,P.Vb)(Q)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:Q}),Q.preventDefault(),Q.stopPropagation()));default:return}this._dateAdapter.compareDate(Ie,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Q.preventDefault()}_handleCalendarBodyKeyup(Q){(Q.keyCode===P.L_||Q.keyCode===P.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:Q}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(Q)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(Q){this._matCalendarBody._focusActiveCell(Q)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:Q,value:Ie}){if(this._rangeStrategy){const Pt=this._rangeStrategy.createPreview(Ie?Ie.rawValue:null,this.selected,Q);this._previewStart=this._getCellCompareValue(Pt.start),this._previewEnd=this._getCellCompareValue(Pt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(Q){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Q)}_initWeekdays(){const Q=this._dateAdapter.getFirstDayOfWeek(),Ie=this._dateAdapter.getDayOfWeekNames("narrow");let Pt=this._dateAdapter.getDayOfWeekNames("long").map((ci,bi)=>({long:ci,narrow:Ie[bi]}));this._weekdays=Pt.slice(Q).concat(Pt.slice(0,Q))}_createWeekCells(){const Q=this._dateAdapter.getNumDaysInMonth(this.activeDate),Ie=this._dateAdapter.getDateNames();this._weeks=[[]];for(let gt=0,Pt=this._firstWeekOffset;gt=0)&&(!this.maxDate||this._dateAdapter.compareDate(Q,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Q))}_getDateInCurrentMonth(Q){return Q&&this._hasSameMonthAndYear(Q,this.activeDate)?this._dateAdapter.getDate(Q):null}_hasSameMonthAndYear(Q,Ie){return!(!Q||!Ie||this._dateAdapter.getMonth(Q)!=this._dateAdapter.getMonth(Ie)||this._dateAdapter.getYear(Q)!=this._dateAdapter.getYear(Ie))}_getCellCompareValue(Q){if(Q){const Ie=this._dateAdapter.getYear(Q),gt=this._dateAdapter.getMonth(Q),Pt=this._dateAdapter.getDate(Q);return new Date(Ie,gt,Pt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(Q){Q instanceof Re?(this._rangeStart=this._getCellCompareValue(Q.start),this._rangeEnd=this._getCellCompareValue(Q.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(Q),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(Q){return!this.dateFilter||this.dateFilter(Q)}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.Y36(m.sBO),m.Y36(x.sG,8),m.Y36(x._A,8),m.Y36(J.Is,8),m.Y36(h,8))},Dt.\u0275cmp=m.Xpm({type:Dt,selectors:[["mat-month-view"]],viewQuery:function(Q,Ie){if(1&Q&&m.Gf(z,5),2&Q){let gt;m.iGM(gt=m.CRH())&&(Ie._matCalendarBody=gt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[m.TTD],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(Q,Ie){1&Q&&(m.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),m.YNc(3,ke,5,2,"th",2),m.qZA(),m.TgZ(4,"tr"),m._UZ(5,"th",3),m.qZA()(),m.TgZ(6,"tbody",4),m.NdJ("selectedValueChange",function(Pt){return Ie._dateSelected(Pt)})("activeDateChange",function(Pt){return Ie._updateActiveDate(Pt)})("previewChange",function(Pt){return Ie._previewChanged(Pt)})("keyup",function(Pt){return Ie._handleCalendarBodyKeyup(Pt)})("keydown",function(Pt){return Ie._handleCalendarBodyKeydown(Pt)}),m.qZA()()),2&Q&&(m.xp6(3),m.Q6J("ngForOf",Ie._weekdays),m.xp6(3),m.Q6J("label",Ie._monthLabel)("rows",Ie._weeks)("todayValue",Ie._todayDate)("startValue",Ie._rangeStart)("endValue",Ie._rangeEnd)("comparisonStart",Ie._comparisonRangeStart)("comparisonEnd",Ie._comparisonRangeEnd)("previewStart",Ie._previewStart)("previewEnd",Ie._previewEnd)("isRange",Ie._isRange)("labelMinRequiredCells",3)("activeCell",Ie._dateAdapter.getDate(Ie.activeDate)-1)("startDateAccessibleName",Ie.startDateAccessibleName)("endDateAccessibleName",Ie.endDateAccessibleName))},dependencies:[S.sg,z],encapsulation:2,changeDetection:0}),Dt})();const c=24;let d=(()=>{class Dt{constructor(Q,Ie,gt){this._changeDetectorRef=Q,this._dateAdapter=Ie,this._dir=gt,this._rerenderSubscription=F.w0.EMPTY,this.selectedChange=new m.vpe,this.yearSelected=new m.vpe,this.activeDateChange=new m.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){let Ie=this._activeDate;const gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),s(this._dateAdapter,Ie,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof Re?Q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setSelectedYear(Q)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,j.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Ie=this._dateAdapter.getYear(this._activeDate)-E(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let gt=0,Pt=[];gtthis._createCellForYear(ci))),Pt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(Q){const Ie=Q.value,gt=this._dateAdapter.createDate(Ie,0,1),Pt=this._getDateFromYear(Ie);this.yearSelected.emit(gt),this.selectedChange.emit(Pt)}_updateActiveDate(Q){const gt=this._activeDate;this.activeDate=this._getDateFromYear(Q.value),this._dateAdapter.compareDate(gt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Q){const Ie=this._activeDate,gt=this._isRtl();switch(Q.keyCode){case P.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,gt?1:-1);break;case P.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,gt?-1:1);break;case P.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case P.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case P.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-E(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case P.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c-E(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case P.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?10*-c:-c);break;case P.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?10*c:c);break;case P.K5:case P.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ie,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),Q.preventDefault()}_handleCalendarBodyKeyup(Q){(Q.keyCode===P.L_||Q.keyCode===P.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:Q}),this._selectionKeyPressed=!1)}_getActiveCell(){return E(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(Q){const Ie=this._dateAdapter.getMonth(this.activeDate),gt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Q,Ie,1));return this._dateAdapter.createDate(Q,Ie,Math.min(this._dateAdapter.getDate(this.activeDate),gt))}_createCellForYear(Q){const Ie=this._dateAdapter.createDate(Q,0,1),gt=this._dateAdapter.getYearName(Ie),Pt=this.dateClass?this.dateClass(Ie,"multi-year"):void 0;return new Ue(Q,gt,gt,this._shouldEnableYear(Q),Pt)}_shouldEnableYear(Q){if(null==Q||this.maxDate&&Q>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Q{class Dt{constructor(Q,Ie,gt,Pt){this._changeDetectorRef=Q,this._dateFormats=Ie,this._dateAdapter=gt,this._dir=Pt,this._rerenderSubscription=F.w0.EMPTY,this.selectedChange=new m.vpe,this.monthSelected=new m.vpe,this.activeDateChange=new m.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){let Ie=this._activeDate;const gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),this._dateAdapter.getYear(Ie)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof Re?Q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setSelectedMonth(Q)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,j.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Q){const Ie=Q.value,gt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ie,1);this.monthSelected.emit(gt);const Pt=this._getDateFromMonth(Ie);this.selectedChange.emit(Pt)}_updateActiveDate(Q){const gt=this._activeDate;this.activeDate=this._getDateFromMonth(Q.value),this._dateAdapter.compareDate(gt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Q){const Ie=this._activeDate,gt=this._isRtl();switch(Q.keyCode){case P.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,gt?1:-1);break;case P.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,gt?-1:1);break;case P.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case P.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case P.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case P.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case P.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?-10:-1);break;case P.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?10:1);break;case P.K5:case P.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ie,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Q.preventDefault()}_handleCalendarBodyKeyup(Q){(Q.keyCode===P.L_||Q.keyCode===P.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:Q}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let Q=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Ie=>Ie.map(gt=>this._createCellForMonth(gt,Q[gt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(Q){return Q&&this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(Q):null}_getDateFromMonth(Q){const Ie=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,1),gt=this._dateAdapter.getNumDaysInMonth(Ie);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,Math.min(this._dateAdapter.getDate(this.activeDate),gt))}_createCellForMonth(Q,Ie){const gt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,1),Pt=this._dateAdapter.format(gt,this._dateFormats.display.monthYearA11yLabel),ci=this.dateClass?this.dateClass(gt,"year"):void 0;return new Ue(Q,Ie.toLocaleUpperCase(),Pt,this._shouldEnableMonth(Q),ci)}_shouldEnableMonth(Q){const Ie=this._dateAdapter.getYear(this.activeDate);if(null==Q||this._isYearAndMonthAfterMaxDate(Ie,Q)||this._isYearAndMonthBeforeMinDate(Ie,Q))return!1;if(!this.dateFilter)return!0;for(let Pt=this._dateAdapter.createDate(Ie,Q,1);this._dateAdapter.getMonth(Pt)==Q;Pt=this._dateAdapter.addCalendarDays(Pt,1))if(this.dateFilter(Pt))return!0;return!1}_isYearAndMonthAfterMaxDate(Q,Ie){if(this.maxDate){const gt=this._dateAdapter.getYear(this.maxDate),Pt=this._dateAdapter.getMonth(this.maxDate);return Q>gt||Q===gt&&Ie>Pt}return!1}_isYearAndMonthBeforeMinDate(Q,Ie){if(this.minDate){const gt=this._dateAdapter.getYear(this.minDate),Pt=this._dateAdapter.getMonth(this.minDate);return Q{class Dt{constructor(Q,Ie,gt,Pt,ci){this._intl=Q,this.calendar=Ie,this._dateAdapter=gt,this._dateFormats=Pt,this._id="mat-calendar-header-"+it++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>ci.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-c)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:c)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(Q,Ie){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(Ie)&&this._dateAdapter.getMonth(Q)==this._dateAdapter.getMonth(Ie):"year"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(Ie):s(this._dateAdapter,Q,Ie,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const Ie=this._dateAdapter.getYear(this.calendar.activeDate)-E(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),gt=Ie+c-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(Ie,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(gt,0,1))]}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.Y36(at),m.Y36((0,m.Gpc)(()=>ht)),m.Y36(x._A,8),m.Y36(x.sG,8),m.Y36(m.sBO))},Dt.\u0275cmp=m.Xpm({type:Dt,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:$e,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(Q,Ie){1&Q&&(m.F$t(),m.TgZ(0,"div",0)(1,"div",1)(2,"button",2),m.NdJ("click",function(){return Ie.currentPeriodClicked()}),m.TgZ(3,"span",3),m._uU(4),m.qZA(),m.O4$(),m.TgZ(5,"svg",4),m._UZ(6,"polygon",5),m.qZA()(),m.kcU(),m._UZ(7,"div",6),m.Hsn(8),m.TgZ(9,"button",7),m.NdJ("click",function(){return Ie.previousClicked()}),m.qZA(),m.TgZ(10,"button",8),m.NdJ("click",function(){return Ie.nextClicked()}),m.qZA()()(),m.TgZ(11,"label",9),m._uU(12),m.qZA()),2&Q&&(m.xp6(2),m.uIk("aria-label",Ie.periodButtonLabel)("aria-describedby",Ie._periodButtonLabelId),m.xp6(2),m.Oqu(Ie.periodButtonText),m.xp6(1),m.ekj("mat-calendar-invert","month"!==Ie.calendar.currentView),m.xp6(4),m.Q6J("disabled",!Ie.previousEnabled()),m.uIk("aria-label",Ie.prevButtonLabel),m.xp6(1),m.Q6J("disabled",!Ie.nextEnabled()),m.uIk("aria-label",Ie.nextButtonLabel),m.xp6(1),m.Q6J("id",Ie._periodButtonLabelId),m.xp6(1),m.Oqu(Ie.periodButtonDescription))},dependencies:[M.lW,M.RK],encapsulation:2,changeDetection:0}),Dt})(),ht=(()=>{class Dt{constructor(Q,Ie,gt,Pt){this._dateAdapter=Ie,this._dateFormats=gt,this._changeDetectorRef=Pt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new m.vpe,this.yearSelected=new m.vpe,this.monthSelected=new m.vpe,this.viewChanged=new m.vpe(!0),this._userSelection=new m.vpe,this.stateChanges=new I.x,this._intlChanges=Q.changes.subscribe(()=>{Pt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(Q){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof Re?Q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get activeDate(){return this._clampedActiveDate}set activeDate(Q){this._clampedActiveDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(Q){const Ie=this._currentView!==Q?Q:null;this._currentView=Q,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Ie&&this.viewChanged.emit(Ie)}ngAfterContentInit(){this._calendarHeaderPortal=new A.C5(this.headerComponent||xt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(Q){const Ie=Q.minDate&&!this._dateAdapter.sameDate(Q.minDate.previousValue,Q.minDate.currentValue)?Q.minDate:void 0,gt=Q.maxDate&&!this._dateAdapter.sameDate(Q.maxDate.previousValue,Q.maxDate.currentValue)?Q.maxDate:void 0,Pt=Ie||gt||Q.dateFilter;if(Pt&&!Pt.firstChange){const ci=this._getCurrentViewComponent();ci&&(this._changeDetectorRef.detectChanges(),ci._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(Q){const Ie=Q.value;(this.selected instanceof Re||Ie&&!this._dateAdapter.sameDate(Ie,this.selected))&&this.selectedChange.emit(Ie),this._userSelection.emit(Q)}_yearSelectedInMultiYearView(Q){this.yearSelected.emit(Q)}_monthSelectedInYearView(Q){this.monthSelected.emit(Q)}_goToDateInView(Q,Ie){this.activeDate=Q,this.currentView=Ie}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.Y36(at),m.Y36(x._A,8),m.Y36(x.sG,8),m.Y36(m.sBO))},Dt.\u0275cmp=m.Xpm({type:Dt,selectors:[["mat-calendar"]],viewQuery:function(Q,Ie){if(1&Q&&(m.Gf(a,5),m.Gf(qe,5),m.Gf(d,5)),2&Q){let gt;m.iGM(gt=m.CRH())&&(Ie.monthView=gt.first),m.iGM(gt=m.CRH())&&(Ie.yearView=gt.first),m.iGM(gt=m.CRH())&&(Ie.multiYearView=gt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[m._Bn([u]),m.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(Q,Ie){1&Q&&(m.YNc(0,Je,0,0,"ng-template",0),m.TgZ(1,"div",1),m.YNc(2,Fe,1,10,"mat-month-view",2),m.YNc(3,Ve,1,6,"mat-year-view",3),m.YNc(4,le,1,6,"mat-multi-year-view",4),m.qZA()),2&Q&&(m.Q6J("cdkPortalOutlet",Ie._calendarHeaderPortal),m.xp6(1),m.Q6J("ngSwitch",Ie.currentView),m.xp6(1),m.Q6J("ngSwitchCase","month"),m.xp6(1),m.Q6J("ngSwitchCase","year"),m.xp6(1),m.Q6J("ngSwitchCase","multi-year"))},dependencies:[S.RF,S.n9,e.kH,A.Pl,a,qe,d],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0}),Dt})();const _t={transformPanel:(0,pe.X$)("transformPanel",[(0,pe.eR)("void => enter-dropdown",(0,pe.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,pe.F4)([(0,pe.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,pe.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,pe.eR)("void => enter-dialog",(0,pe.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,pe.F4)([(0,pe.oB)({opacity:0,transform:"scale(0.7)"}),(0,pe.oB)({transform:"none",opacity:1})]))),(0,pe.eR)("* => void",(0,pe.jt)("100ms linear",(0,pe.oB)({opacity:0})))]),fadeInCalendar:(0,pe.X$)("fadeInCalendar",[(0,pe.SB)("void",(0,pe.oB)({opacity:0})),(0,pe.SB)("enter",(0,pe.oB)({opacity:1})),(0,pe.eR)("void => *",(0,pe.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ee=0;const we=new m.OlP("mat-datepicker-scroll-strategy"),Ae={provide:we,deps:[f.aV],useFactory:function de(Dt){return()=>Dt.scrollStrategies.reposition()}},Te=(0,x.pj)(class{constructor(Dt){this._elementRef=Dt}});let ut=(()=>{class Dt extends Te{constructor(Q,Ie,gt,Pt,ci,bi){super(Q),this._changeDetectorRef=Ie,this._globalModel=gt,this._dateAdapter=Pt,this._rangeSelectionStrategy=ci,this._subscriptions=new F.w0,this._animationDone=new I.x,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=bi.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(Q){const Ie=this._model.selection,gt=Q.value,Pt=Ie instanceof Re;if(Pt&&this._rangeSelectionStrategy){const ci=this._rangeSelectionStrategy.selectionFinished(gt,Ie,Q.event);this._model.updateSelection(ci,this)}else gt&&(Pt||!this._dateAdapter.sameDate(gt,Ie))&&this._model.add(gt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(Q){this._isAnimating="start"===Q.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(Q,Ie){this._model=Q?this._globalModel.clone():this._globalModel,this._actionsPortal=Q,Ie&&this._changeDetectorRef.detectChanges()}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(He),m.Y36(x._A),m.Y36(h,8),m.Y36(at))},Dt.\u0275cmp=m.Xpm({type:Dt,selectors:[["mat-datepicker-content"]],viewQuery:function(Q,Ie){if(1&Q&&m.Gf(ht,5),2&Q){let gt;m.iGM(gt=m.CRH())&&(Ie._calendar=gt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(Q,Ie){1&Q&&m.WFA("@transformPanel.start",function(Pt){return Ie._handleAnimationEvent(Pt)})("@transformPanel.done",function(Pt){return Ie._handleAnimationEvent(Pt)}),2&Q&&(m.d8E("@transformPanel",Ie._animationState),m.ekj("mat-datepicker-content-touch",Ie.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[m.qOj],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(Q,Ie){if(1&Q&&(m.TgZ(0,"div",0)(1,"mat-calendar",1),m.NdJ("yearSelected",function(Pt){return Ie.datepicker._selectYear(Pt)})("monthSelected",function(Pt){return Ie.datepicker._selectMonth(Pt)})("viewChanged",function(Pt){return Ie.datepicker._viewChanged(Pt)})("_userSelection",function(Pt){return Ie._handleUserSelection(Pt)}),m.qZA(),m.YNc(2,N,0,0,"ng-template",2),m.TgZ(3,"button",3),m.NdJ("focus",function(){return Ie._closeButtonFocused=!0})("blur",function(){return Ie._closeButtonFocused=!1})("click",function(){return Ie.datepicker.close()}),m._uU(4),m.qZA()()),2&Q){let gt;m.ekj("mat-datepicker-content-container-with-custom-header",Ie.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Ie._actionsPortal),m.uIk("aria-modal",!0)("aria-labelledby",null!==(gt=Ie._dialogLabelId)&&void 0!==gt?gt:void 0),m.xp6(1),m.Q6J("id",Ie.datepicker.id)("ngClass",Ie.datepicker.panelClass)("startAt",Ie.datepicker.startAt)("startView",Ie.datepicker.startView)("minDate",Ie.datepicker._getMinDate())("maxDate",Ie.datepicker._getMaxDate())("dateFilter",Ie.datepicker._getDateFilter())("headerComponent",Ie.datepicker.calendarHeaderComponent)("selected",Ie._getSelected())("dateClass",Ie.datepicker.dateClass)("comparisonStart",Ie.comparisonStart)("comparisonEnd",Ie.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",Ie.startDateAccessibleName)("endDateAccessibleName",Ie.endDateAccessibleName),m.xp6(1),m.Q6J("cdkPortalOutlet",Ie._actionsPortal),m.xp6(1),m.ekj("cdk-visually-hidden",!Ie._closeButtonFocused),m.Q6J("color",Ie.color||"primary"),m.xp6(1),m.Oqu(Ie._closeButtonText)}},dependencies:[S.mk,M.lW,e.mK,A.Pl,ht],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[_t.transformPanel,_t.fadeInCalendar]},changeDetection:0}),Dt})(),bt=(()=>{class Dt{constructor(Q,Ie,gt,Pt,ci,bi,Vi){this._overlay=Q,this._ngZone=Ie,this._viewContainerRef=gt,this._dateAdapter=ci,this._dir=bi,this._model=Vi,this._inputStateChanges=F.w0.EMPTY,this._document=(0,m.f3M)(S.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new m.vpe,this.monthSelected=new m.vpe,this.viewChanged=new m.vpe(!0),this.openedStream=new m.vpe,this.closedStream=new m.vpe,this._opened=!1,this.id="mat-datepicker-"+Ee++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new I.x,this._scrollStrategy=Pt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(Q){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(Q){this._color=Q}get touchUi(){return this._touchUi}set touchUi(Q){this._touchUi=(0,_e.Ig)(Q)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Q){const Ie=(0,_e.Ig)(Q);Ie!==this._disabled&&(this._disabled=Ie,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(Q){this._restoreFocus=(0,_e.Ig)(Q)}get panelClass(){return this._panelClass}set panelClass(Q){this._panelClass=(0,_e.du)(Q)}get opened(){return this._opened}set opened(Q){(0,_e.Ig)(Q)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(Q){const Ie=Q.xPosition||Q.yPosition;if(Ie&&!Ie.firstChange&&this._overlayRef){const gt=this._overlayRef.getConfig().positionStrategy;gt instanceof f._G&&(this._setConnectedPositions(gt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(Q){this._model.add(Q)}_selectYear(Q){this.yearSelected.emit(Q)}_selectMonth(Q){this.monthSelected.emit(Q)}_viewChanged(Q){this.viewChanged.emit(Q)}registerInput(Q){return this._inputStateChanges.unsubscribe(),this.datepickerInput=Q,this._inputStateChanges=Q.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(Q){this._actionsPortal=Q,this._componentRef?.instance._assignActions(Q,!0)}removeActions(Q){Q===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,ge.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const Q=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Ie=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:gt,location:Pt}=this._componentRef;gt._startExitAnimation(),gt._animationDone.pipe((0,fe.q)(1)).subscribe(()=>{const ci=this._document.activeElement;Q&&(!ci||ci===this._document.activeElement||Pt.nativeElement.contains(ci))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}Q?setTimeout(Ie):Ie()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(Q){Q.datepicker=this,Q.color=this.color,Q._dialogLabelId=this.datepickerInput.getOverlayLabelId(),Q._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const Q=this.touchUi,Ie=new A.C5(ut,this._viewContainerRef),gt=this._overlayRef=this._overlay.create(new f.X_({positionStrategy:Q?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[Q?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:Q?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(Q?"dialog":"popup")}));this._getCloseStream(gt).subscribe(Pt=>{Pt&&Pt.preventDefault(),this.close()}),gt.keydownEvents().subscribe(Pt=>{const ci=Pt.keyCode;(ci===P.LH||ci===P.JH||ci===P.oh||ci===P.SV||ci===P.Ku||ci===P.VM)&&Pt.preventDefault()}),this._componentRef=gt.attach(Ie),this._forwardContentValues(this._componentRef.instance),Q||this._ngZone.onStable.pipe((0,fe.q)(1)).subscribe(()=>gt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const Q=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(Q)}_setConnectedPositions(Q){const Ie="end"===this.xPosition?"end":"start",gt="start"===Ie?"end":"start",Pt="above"===this.yPosition?"bottom":"top",ci="top"===Pt?"bottom":"top";return Q.withPositions([{originX:Ie,originY:ci,overlayX:Ie,overlayY:Pt},{originX:Ie,originY:Pt,overlayX:Ie,overlayY:ci},{originX:gt,originY:ci,overlayX:gt,overlayY:Pt},{originX:gt,originY:Pt,overlayX:gt,overlayY:ci}])}_getCloseStream(Q){return(0,T.T)(Q.backdropClick(),Q.detachments(),Q.keydownEvents().pipe((0,$.h)(Ie=>Ie.keyCode===P.hY&&!(0,P.Vb)(Ie)||this.datepickerInput&&(0,P.Vb)(Ie,"altKey")&&Ie.keyCode===P.LH)))}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.Y36(f.aV),m.Y36(m.R0b),m.Y36(m.s_b),m.Y36(we),m.Y36(x._A,8),m.Y36(J.Is,8),m.Y36(He))},Dt.\u0275dir=m.lG2({type:Dt,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[m.TTD]}),Dt})(),Ht=(()=>{class Dt extends bt{}return Dt.\u0275fac=function(){let Gt;return function(Ie){return(Gt||(Gt=m.n5z(Dt)))(Ie||Dt)}}(),Dt.\u0275cmp=m.Xpm({type:Dt,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[m._Bn([u,{provide:bt,useExisting:Dt}]),m.qOj],decls:0,vars:0,template:function(Q,Ie){},encapsulation:2,changeDetection:0}),Dt})();class Mt{constructor(Gt,Q){this.target=Gt,this.targetElement=Q,this.value=this.target.value}}let It=(()=>{class Dt{constructor(Q,Ie,gt){this._elementRef=Q,this._dateAdapter=Ie,this._dateFormats=gt,this.dateChange=new m.vpe,this.dateInput=new m.vpe,this.stateChanges=new I.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=F.w0.EMPTY,this._localeSubscription=F.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Pt=>{const ci=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value));return!ci||this._matchesFilter(ci)?null:{matDatepickerFilter:!0}},this._minValidator=Pt=>{const ci=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value)),bi=this._getMinDate();return!bi||!ci||this._dateAdapter.compareDate(bi,ci)<=0?null:{matDatepickerMin:{min:bi,actual:ci}}},this._maxValidator=Pt=>{const ci=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value)),bi=this._getMaxDate();return!bi||!ci||this._dateAdapter.compareDate(bi,ci)>=0?null:{matDatepickerMax:{max:bi,actual:ci}}},this._lastValueValid=!1,this._localeSubscription=Ie.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(Q){this._assignValueProgrammatically(Q)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(Q){const Ie=(0,_e.Ig)(Q),gt=this._elementRef.nativeElement;this._disabled!==Ie&&(this._disabled=Ie,this.stateChanges.next(void 0)),Ie&&this._isInitialized&>.blur&>.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(Q){this._model=Q,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Ie=>{if(this._shouldHandleChangeEvent(Ie)){const gt=this._getValueFromModel(Ie.selection);this._lastValueValid=this._isValidValue(gt),this._cvaOnChange(gt),this._onTouched(),this._formatValue(gt),this.dateInput.emit(new Mt(this,this._elementRef.nativeElement)),this.dateChange.emit(new Mt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(Q){ai(Q,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(Q){this._validatorOnChange=Q}validate(Q){return this._validator?this._validator(Q):null}writeValue(Q){this._assignValueProgrammatically(Q)}registerOnChange(Q){this._cvaOnChange=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){this.disabled=Q}_onKeydown(Q){Q.altKey&&Q.keyCode===P.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),Q.preventDefault())}_onInput(Q){const Ie=this._lastValueValid;let gt=this._dateAdapter.parse(Q,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(gt),gt=this._dateAdapter.getValidDateOrNull(gt);const Pt=!this._dateAdapter.sameDate(gt,this.value);!gt||Pt?this._cvaOnChange(gt):(Q&&!this.value&&this._cvaOnChange(gt),Ie!==this._lastValueValid&&this._validatorOnChange()),Pt&&(this._assignValue(gt),this.dateInput.emit(new Mt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Mt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(Q){this._elementRef.nativeElement.value=null!=Q?this._dateAdapter.format(Q,this._dateFormats.display.dateInput):""}_assignValue(Q){this._model?(this._assignValueToModel(Q),this._pendingValue=null):this._pendingValue=Q}_isValidValue(Q){return!Q||this._dateAdapter.isValid(Q)}_parentDisabled(){return!1}_assignValueProgrammatically(Q){Q=this._dateAdapter.deserialize(Q),this._lastValueValid=this._isValidValue(Q),Q=this._dateAdapter.getValidDateOrNull(Q),this._assignValue(Q),this._formatValue(Q)}_matchesFilter(Q){const Ie=this._getDateFilter();return!Ie||Ie(Q)}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.Y36(m.SBq),m.Y36(x._A,8),m.Y36(x.sG,8))},Dt.\u0275dir=m.lG2({type:Dt,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[m.TTD]}),Dt})();function ai(Dt,Gt){const Q=Object.keys(Dt);for(let Ie of Q){const{previousValue:gt,currentValue:Pt}=Dt[Ie];if(!Gt.isDateInstance(gt)||!Gt.isDateInstance(Pt))return!0;if(!Gt.sameDate(gt,Pt))return!0}return!1}const pi={provide:re.JU,useExisting:(0,m.Gpc)(()=>Tt),multi:!0},Ut={provide:re.Cf,useExisting:(0,m.Gpc)(()=>Tt),multi:!0};let Tt=(()=>{class Dt extends It{constructor(Q,Ie,gt,Pt){super(Q,Ie,gt),this._formField=Pt,this._closedSubscription=F.w0.EMPTY,this._validator=re.kI.compose(super._getValidators())}set matDatepicker(Q){Q&&(this._datepicker=Q,this._closedSubscription=Q.closedStream.subscribe(()=>this._onTouched()),this._registerModel(Q.registerInput(this)))}get min(){return this._min}set min(Q){const Ie=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q));this._dateAdapter.sameDate(Ie,this._min)||(this._min=Ie,this._validatorOnChange())}get max(){return this._max}set max(Q){const Ie=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q));this._dateAdapter.sameDate(Ie,this._max)||(this._max=Ie,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(Q){const Ie=this._matchesFilter(this.value);this._dateFilter=Q,this._matchesFilter(this.value)!==Ie&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(Q){return Q}_assignValueToModel(Q){this._model&&this._model.updateSelection(Q,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(Q){return Q.source!==this}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.Y36(m.SBq),m.Y36(x._A,8),m.Y36(x.sG,8),m.Y36(v.G_,8))},Dt.\u0275dir=m.lG2({type:Dt,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(Q,Ie){1&Q&&m.NdJ("input",function(Pt){return Ie._onInput(Pt.target.value)})("change",function(){return Ie._onChange()})("blur",function(){return Ie._onBlur()})("keydown",function(Pt){return Ie._onKeydown(Pt)}),2&Q&&(m.Ikx("disabled",Ie.disabled),m.uIk("aria-haspopup",Ie._datepicker?"dialog":null)("aria-owns",(null==Ie._datepicker?null:Ie._datepicker.opened)&&Ie._datepicker.id||null)("min",Ie.min?Ie._dateAdapter.toIso8601(Ie.min):null)("max",Ie.max?Ie._dateAdapter.toIso8601(Ie.max):null)("data-mat-calendar",Ie._datepicker?Ie._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[m._Bn([pi,Ut,{provide:V.Jk,useExisting:Dt}]),m.qOj]}),Dt})(),Se=(()=>{class Dt{}return Dt.\u0275fac=function(Q){return new(Q||Dt)},Dt.\u0275dir=m.lG2({type:Dt,selectors:[["","matDatepickerToggleIcon",""]]}),Dt})(),We=(()=>{class Dt{constructor(Q,Ie,gt){this._intl=Q,this._changeDetectorRef=Ie,this._stateChanges=F.w0.EMPTY;const Pt=Number(gt);this.tabIndex=Pt||0===Pt?Pt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(Q){this._disabled=(0,_e.Ig)(Q)}ngOnChanges(Q){Q.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(Q){this.datepicker&&!this.disabled&&(this.datepicker.open(),Q.stopPropagation())}_watchStateChanges(){const Q=this.datepicker?this.datepicker.stateChanges:(0,H.of)(),Ie=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,H.of)(),gt=this.datepicker?(0,T.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,H.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,T.T)(this._intl.changes,Q,Ie,gt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.Y36(at),m.Y36(m.sBO),m.$8M("tabindex"))},Dt.\u0275cmp=m.Xpm({type:Dt,selectors:[["mat-datepicker-toggle"]],contentQueries:function(Q,Ie,gt){if(1&Q&&m.Suo(gt,Se,5),2&Q){let Pt;m.iGM(Pt=m.CRH())&&(Ie._customIcon=Pt.first)}},viewQuery:function(Q,Ie){if(1&Q&&m.Gf(U,5),2&Q){let gt;m.iGM(gt=m.CRH())&&(Ie._button=gt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(Q,Ie){1&Q&&m.NdJ("click",function(Pt){return Ie._open(Pt)}),2&Q&&(m.uIk("tabindex",null)("data-mat-calendar",Ie.datepicker?Ie.datepicker.id:null),m.ekj("mat-datepicker-toggle-active",Ie.datepicker&&Ie.datepicker.opened)("mat-accent",Ie.datepicker&&"accent"===Ie.datepicker.color)("mat-warn",Ie.datepicker&&"warn"===Ie.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[m.TTD],ngContentSelectors:Me,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(Q,Ie){1&Q&&(m.F$t(ce),m.TgZ(0,"button",0,1),m.YNc(2,X,2,0,"svg",2),m.Hsn(3),m.qZA()),2&Q&&(m.Q6J("disabled",Ie.disabled)("disableRipple",Ie.disableRipple),m.uIk("aria-haspopup",Ie.datepicker?"dialog":null)("aria-label",Ie.ariaLabel||Ie._intl.openCalendarLabel)("tabindex",Ie.disabled?-1:Ie.tabIndex),m.xp6(2),m.Q6J("ngIf",!Ie._customIcon))},dependencies:[S.O5,M.RK],styles:[".mat-datepicker-toggle{pointer-events:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Dt})();function oe(Dt){return yt(Dt,!0)}function et(Dt){return Dt.nodeType===Node.ELEMENT_NODE}function yt(Dt,Gt){if(et(Dt)&&Gt){const Ie=(Dt.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((gt,Pt)=>{const ci=document.getElementById(Pt);return ci&>.push(ci),gt},[]);if(Ie.length)return Ie.map(gt=>yt(gt,!1)).join(" ")}if(et(Dt)){const Q=Dt.getAttribute("aria-label")?.trim();if(Q)return Q}if(function rt(Dt){return"INPUT"===Dt.nodeName}(Dt)||function Ft(Dt){return"TEXTAREA"===Dt.nodeName}(Dt)){if(Dt.labels?.length)return Array.from(Dt.labels).map(gt=>yt(gt,!1)).join(" ");const Q=Dt.getAttribute("placeholder")?.trim();if(Q)return Q;const Ie=Dt.getAttribute("title")?.trim();if(Ie)return Ie}return(Dt.textContent||"").replace(/\s+/g," ").trim()}const Zt=new m.OlP("MAT_DATE_RANGE_INPUT_PARENT"),Di=(0,x.FD)((()=>{class Dt extends It{constructor(Q,Ie,gt,Pt,ci,bi,Vi,en){super(Ie,Vi,en),this._rangeInput=Q,this._elementRef=Ie,this._defaultErrorStateMatcher=gt,this._injector=Pt,this._parentForm=ci,this._parentFormGroup=bi,this._dir=(0,m.f3M)(J.Is,{optional:!0})}ngOnInit(){const Q=this._injector.get(re.a5,null,{optional:!0,self:!0});Q&&(this.ngControl=Q)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){const Q=this._elementRef.nativeElement,Ie=Q.value;return Ie.length>0?Ie:Q.placeholder}_onInput(Q){super._onInput(Q),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:Q}){return Q!==this._rangeInput._startInput&&Q!==this._rangeInput._endInput}_assignValueProgrammatically(Q){super._assignValueProgrammatically(Q),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}_getAccessibleName(){return oe(this._elementRef.nativeElement)}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.Y36(Zt),m.Y36(m.SBq),m.Y36(x.rD),m.Y36(m.zs3),m.Y36(re.F,8),m.Y36(re.sg,8),m.Y36(x._A,8),m.Y36(x.sG,8))},Dt.\u0275dir=m.lG2({type:Dt,features:[m.qOj]}),Dt})());let At=(()=>{class Dt extends Di{constructor(Q,Ie,gt,Pt,ci,bi,Vi,en){super(Q,Ie,gt,Pt,ci,bi,Vi,en),this._startValidator=ji=>{const on=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ji.value)),wn=this._model?this._model.selection.end:null;return!on||!wn||this._dateAdapter.compareDate(on,wn)<=0?null:{matStartDateInvalid:{end:wn,actual:on}}},this._validator=re.kI.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(Q){return Q.start}_shouldHandleChangeEvent(Q){return!(!super._shouldHandleChangeEvent(Q)||(Q.oldValue?.start?Q.selection.start&&!this._dateAdapter.compareDate(Q.oldValue.start,Q.selection.start):!Q.selection.start))}_assignValueToModel(Q){if(this._model){const Ie=new Re(Q,this._model.selection.end);this._model.updateSelection(Ie,this)}}_formatValue(Q){super._formatValue(Q),this._rangeInput._handleChildValueChange()}_onKeydown(Q){const Ie=this._rangeInput._endInput,gt=this._elementRef.nativeElement,Pt="rtl"!==this._dir?.value;(Q.keyCode===P.SV&&Pt||Q.keyCode===P.oh&&!Pt)&>.selectionStart===gt.value.length&>.selectionEnd===gt.value.length?(Q.preventDefault(),Ie._elementRef.nativeElement.setSelectionRange(0,0),Ie.focus()):super._onKeydown(Q)}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.Y36(Zt),m.Y36(m.SBq),m.Y36(x.rD),m.Y36(m.zs3),m.Y36(re.F,8),m.Y36(re.sg,8),m.Y36(x._A,8),m.Y36(x.sG,8))},Dt.\u0275dir=m.lG2({type:Dt,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(Q,Ie){1&Q&&m.NdJ("input",function(Pt){return Ie._onInput(Pt.target.value)})("change",function(){return Ie._onChange()})("keydown",function(Pt){return Ie._onKeydown(Pt)})("blur",function(){return Ie._onBlur()}),2&Q&&(m.Ikx("disabled",Ie.disabled),m.uIk("aria-haspopup",Ie._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==Ie._rangeInput.rangePicker?null:Ie._rangeInput.rangePicker.opened)&&Ie._rangeInput.rangePicker.id||null)("min",Ie._getMinDate()?Ie._dateAdapter.toIso8601(Ie._getMinDate()):null)("max",Ie._getMaxDate()?Ie._dateAdapter.toIso8601(Ie._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[m._Bn([{provide:re.JU,useExisting:Dt,multi:!0},{provide:re.Cf,useExisting:Dt,multi:!0}]),m.qOj]}),Dt})(),Nt=(()=>{class Dt extends Di{constructor(Q,Ie,gt,Pt,ci,bi,Vi,en){super(Q,Ie,gt,Pt,ci,bi,Vi,en),this._endValidator=ji=>{const on=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ji.value)),wn=this._model?this._model.selection.start:null;return!on||!wn||this._dateAdapter.compareDate(on,wn)>=0?null:{matEndDateInvalid:{start:wn,actual:on}}},this._validator=re.kI.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(Q){return Q.end}_shouldHandleChangeEvent(Q){return!(!super._shouldHandleChangeEvent(Q)||(Q.oldValue?.end?Q.selection.end&&!this._dateAdapter.compareDate(Q.oldValue.end,Q.selection.end):!Q.selection.end))}_assignValueToModel(Q){if(this._model){const Ie=new Re(this._model.selection.start,Q);this._model.updateSelection(Ie,this)}}_onKeydown(Q){const Ie=this._rangeInput._startInput,gt=this._elementRef.nativeElement,Pt="rtl"!==this._dir?.value;if(Q.keyCode!==P.ZH||gt.value)if((Q.keyCode===P.oh&&Pt||Q.keyCode===P.SV&&!Pt)&&0===gt.selectionStart&&0===gt.selectionEnd){Q.preventDefault();const ci=Ie._elementRef.nativeElement.value.length;Ie._elementRef.nativeElement.setSelectionRange(ci,ci),Ie.focus()}else super._onKeydown(Q);else Ie.focus()}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.Y36(Zt),m.Y36(m.SBq),m.Y36(x.rD),m.Y36(m.zs3),m.Y36(re.F,8),m.Y36(re.sg,8),m.Y36(x._A,8),m.Y36(x.sG,8))},Dt.\u0275dir=m.lG2({type:Dt,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(Q,Ie){1&Q&&m.NdJ("input",function(Pt){return Ie._onInput(Pt.target.value)})("change",function(){return Ie._onChange()})("keydown",function(Pt){return Ie._onKeydown(Pt)})("blur",function(){return Ie._onBlur()}),2&Q&&(m.Ikx("disabled",Ie.disabled),m.uIk("aria-haspopup",Ie._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==Ie._rangeInput.rangePicker?null:Ie._rangeInput.rangePicker.opened)&&Ie._rangeInput.rangePicker.id||null)("min",Ie._getMinDate()?Ie._dateAdapter.toIso8601(Ie._getMinDate()):null)("max",Ie._getMaxDate()?Ie._dateAdapter.toIso8601(Ie._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[m._Bn([{provide:re.JU,useExisting:Dt,multi:!0},{provide:re.Cf,useExisting:Dt,multi:!0}]),m.qOj]}),Dt})(),ft=0,Bt=(()=>{class Dt{constructor(Q,Ie,gt,Pt,ci){if(this._changeDetectorRef=Q,this._elementRef=Ie,this._dateAdapter=Pt,this._formField=ci,this._closedSubscription=F.w0.EMPTY,this.id="mat-date-range-input-"+ft++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new I.x,ci?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")){const bi=Ie.nativeElement.classList;bi.add("mat-mdc-input-element"),bi.add("mat-mdc-form-field-input-control")}this.ngControl=gt}get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){const Q=this._startInput?._getPlaceholder()||"",Ie=this._endInput?._getPlaceholder()||"";return Q||Ie?`${Q} ${this.separator} ${Ie}`:""}get rangePicker(){return this._rangePicker}set rangePicker(Q){Q&&(this._model=Q.registerInput(this),this._rangePicker=Q,this._closedSubscription.unsubscribe(),this._closedSubscription=Q.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return!!this._required}set required(Q){this._required=(0,_e.Ig)(Q)}get dateFilter(){return this._dateFilter}set dateFilter(Q){const Ie=this._startInput,gt=this._endInput,Pt=Ie&&Ie._matchesFilter(Ie.value),ci=gt&>._matchesFilter(Ie.value);this._dateFilter=Q,Ie&&Ie._matchesFilter(Ie.value)!==Pt&&Ie._validatorOnChange(),gt&>._matchesFilter(gt.value)!==ci&>._validatorOnChange()}get min(){return this._min}set min(Q){const Ie=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q));this._dateAdapter.sameDate(Ie,this._min)||(this._min=Ie,this._revalidate())}get max(){return this._max}set max(Q){const Ie=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Q));this._dateAdapter.sameDate(Ie,this._max)||(this._max=Ie,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(Q){const Ie=(0,_e.Ig)(Q);Ie!==this._groupDisabled&&(this._groupDisabled=Ie,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const Q=!!this._startInput&&this._startInput.isEmpty(),Ie=!!this._endInput&&this._endInput.isEmpty();return Q&&Ie}setDescribedByIds(Q){this._ariaDescribedBy=Q.length?Q.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),(0,T.T)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(Q){ai(Q,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(Q){const Ie="start"===Q?this._startInput:this._endInput;return Ie?Ie.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const Q=this._formField;return Q&&Q._hasFloatingLabel()?Q._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(Q){this.focused=null!==Q,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(Q){this._startInput&&this._startInput._registerModel(Q),this._endInput&&this._endInput._registerModel(Q)}}return Dt.\u0275fac=function(Q){return new(Q||Dt)(m.Y36(m.sBO),m.Y36(m.SBq),m.Y36(re.gN,10),m.Y36(x._A,8),m.Y36(v.G_,8))},Dt.\u0275cmp=m.Xpm({type:Dt,selectors:[["mat-date-range-input"]],contentQueries:function(Q,Ie,gt){if(1&Q&&(m.Suo(gt,At,5),m.Suo(gt,Nt,5)),2&Q){let Pt;m.iGM(Pt=m.CRH())&&(Ie._startInput=Pt.first),m.iGM(Pt=m.CRH())&&(Ie._endInput=Pt.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(Q,Ie){2&Q&&(m.uIk("id",Ie.id)("aria-labelledby",Ie._getAriaLabelledby())("aria-describedby",Ie._ariaDescribedBy)("data-mat-calendar",Ie.rangePicker?Ie.rangePicker.id:null),m.ekj("mat-date-range-input-hide-placeholders",Ie._shouldHidePlaceholders())("mat-date-range-input-required",Ie.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[m._Bn([{provide:v.Eo,useExisting:Dt},{provide:Zt,useExisting:Dt}]),m.TTD],ngContentSelectors:Pe,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(Q,Ie){1&Q&&(m.F$t(ue),m.TgZ(0,"div",0),m.NdJ("cdkFocusChange",function(Pt){return Ie._updateFocus(Pt)}),m.TgZ(1,"div",1),m.Hsn(2),m.TgZ(3,"span",2),m._uU(4),m.qZA()(),m.TgZ(5,"span",3),m._uU(6),m.qZA(),m.TgZ(7,"div",4),m.Hsn(8,1),m.TgZ(9,"span",2),m._uU(10),m.qZA()()()),2&Q&&(m.xp6(4),m.Oqu(Ie._getInputMirrorValue("start")),m.xp6(1),m.ekj("mat-date-range-input-separator-hidden",Ie._shouldHideSeparator()),m.xp6(1),m.Oqu(Ie.separator),m.xp6(4),m.Oqu(Ie._getInputMirrorValue("end")))},dependencies:[e.kH],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0}),Dt})(),Kt=(()=>{class Dt extends bt{_forwardContentValues(Q){super._forwardContentValues(Q);const Ie=this.datepickerInput;Ie&&(Q.comparisonStart=Ie.comparisonStart,Q.comparisonEnd=Ie.comparisonEnd,Q.startDateAccessibleName=Ie._getStartDateAccessibleName(),Q.endDateAccessibleName=Ie._getEndDateAccessibleName())}}return Dt.\u0275fac=function(){let Gt;return function(Ie){return(Gt||(Gt=m.n5z(Dt)))(Ie||Dt)}}(),Dt.\u0275cmp=m.Xpm({type:Dt,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[m._Bn([C,t,{provide:bt,useExisting:Dt}]),m.qOj],decls:0,vars:0,template:function(Q,Ie){},encapsulation:2,changeDetection:0}),Dt})(),Ri=(()=>{class Dt{}return Dt.\u0275fac=function(Q){return new(Q||Dt)},Dt.\u0275mod=m.oAB({type:Dt}),Dt.\u0275inj=m.cJS({providers:[at,Ae],imports:[S.ez,M.ot,f.U8,e.rt,A.eL,x.BQ,w.ZD]}),Dt})()},7274:(Qe,ae,p)=>{"use strict";p.d(ae,{WI:()=>at,uw:()=>Re,H8:()=>u,vA:()=>X,xY:()=>r,Is:()=>C,so:()=>tt,uh:()=>Oe});var e=p(98184),f=p(36895),A=p(94650),S=p(12693),m_OPEN="mdc-dialog--open",w_DIALOG_ANIMATION_CLOSE_TIME_MS=(["textarea",".mdc-menu .mdc-list-item",".mdc-menu .mdc-deprecated-list-item"].join(", "),75),x=p(83353),I=p(84080),F=p(29521),T=p(77579),H=p(49770),P=p(39646),J=p(40445),fe=p(68675);function j(n,t){}class ${constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let ge=(()=>{class n extends I.en{constructor(i,a,c,l,d,s,E,B){super(),this._elementRef=i,this._focusTrapFactory=a,this._config=l,this._interactivityChecker=d,this._ngZone=s,this._overlayRef=E,this._focusMonitor=B,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=q=>{this._portalOutlet.hasAttached();const qe=this._portalOutlet.attachDomPortal(q);return this._contentAttached(),qe},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=c}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(i){this._portalOutlet.hasAttached();const a=this._portalOutlet.attachComponentPortal(i);return this._contentAttached(),a}attachTemplatePortal(i){this._portalOutlet.hasAttached();const a=this._portalOutlet.attachTemplatePortal(i);return this._contentAttached(),a}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(i,a){this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const c=()=>{i.removeEventListener("blur",c),i.removeEventListener("mousedown",c),i.removeAttribute("tabindex")};i.addEventListener("blur",c),i.addEventListener("mousedown",c)})),i.focus(a)}_focusByCssSelector(i,a){let c=this._elementRef.nativeElement.querySelector(i);c&&this._forceFocus(c,a)}_trapFocus(){const i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(a=>{a||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const i=this._config.restoreFocus;let a=null;if("string"==typeof i?a=this._document.querySelector(i):"boolean"==typeof i?a=i?this._elementFocusedBeforeDialogWasOpened:null:i&&(a=i),this._config.restoreFocus&&a&&"function"==typeof a.focus){const c=(0,x.ht)(),l=this._elementRef.nativeElement;(!c||c===this._document.body||c===l||l.contains(c))&&(this._focusMonitor?(this._focusMonitor.focusVia(a,this._closeInteractionType),this._closeInteractionType=null):a.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const i=this._elementRef.nativeElement,a=(0,x.ht)();return i===a||i.contains(a)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,x.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(i){return new(i||n)(A.Y36(A.SBq),A.Y36(S.qV),A.Y36(f.K0,8),A.Y36($),A.Y36(S.ic),A.Y36(A.R0b),A.Y36(e.Iu),A.Y36(S.tE))},n.\u0275cmp=A.Xpm({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(i,a){if(1&i&&A.Gf(I.Pl,7),2&i){let c;A.iGM(c=A.CRH())&&(a._portalOutlet=c.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,a){2&i&&A.uIk("id",a._config.id||null)("role",a._config.role)("aria-modal",a._config.ariaModal)("aria-labelledby",a._config.ariaLabel?null:a._ariaLabelledBy)("aria-label",a._config.ariaLabel)("aria-describedby",a._config.ariaDescribedBy||null)},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,a){1&i&&A.YNc(0,j,0,0,"ng-template",0)},dependencies:[I.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class pe{constructor(t,i){this.overlayRef=t,this.config=i,this.closed=new T.x,this.disableClose=i.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=i.id,this.keydownEvents.subscribe(a=>{a.keyCode===F.hY&&!this.disableClose&&!(0,F.Vb)(a)&&(a.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(t,i){if(this.containerInstance){const a=this.closed;this.containerInstance._closeInteractionType=i?.focusOrigin||"program",this.overlayRef.dispose(),a.next(t),a.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",i=""){return this.overlayRef.updateSize({width:t,height:i}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}}const re=new A.OlP("DialogScrollStrategy"),v=new A.OlP("DialogData"),V=new A.OlP("DefaultDialogConfig"),te={provide:re,deps:[e.aV],useFactory:function W(n){return()=>n.scrollStrategies.block()}};let ne=0,ye=(()=>{class n{constructor(i,a,c,l,d,s){this._overlay=i,this._injector=a,this._defaultOptions=c,this._parentDialog=l,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new T.x,this._afterOpenedAtThisLevel=new T.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,H.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,fe.O)(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(i,a){(a={...this._defaultOptions||new $,...a}).id=a.id||"cdk-dialog-"+ne++,a.id&&this.getDialogById(a.id);const l=this._getOverlayConfig(a),d=this._overlay.create(l),s=new pe(d,a),E=this._attachContainer(d,s,a);return s.containerInstance=E,this._attachDialogContent(i,s,E,a),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){ze(this.openDialogs,i=>i.close())}getDialogById(i){return this.openDialogs.find(a=>a.id===i)}ngOnDestroy(){ze(this._openDialogsAtThisLevel,i=>{!1===i.config.closeOnDestroy&&this._removeOpenDialog(i,!1)}),ze(this._openDialogsAtThisLevel,i=>i.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(i){const a=new e.X_({positionStrategy:i.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:i.scrollStrategy||this._scrollStrategy(),panelClass:i.panelClass,hasBackdrop:i.hasBackdrop,direction:i.direction,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,width:i.width,height:i.height,disposeOnNavigation:i.closeOnNavigation});return i.backdropClass&&(a.backdropClass=i.backdropClass),a}_attachContainer(i,a,c){const l=c.injector||c.viewContainerRef?.injector,d=[{provide:$,useValue:c},{provide:pe,useValue:a},{provide:e.Iu,useValue:i}];let s;c.container?"function"==typeof c.container?s=c.container:(s=c.container.type,d.push(...c.container.providers(c))):s=ge;const E=new I.C5(s,c.viewContainerRef,A.zs3.create({parent:l||this._injector,providers:d}),c.componentFactoryResolver);return i.attach(E).instance}_attachDialogContent(i,a,c,l){if(i instanceof A.Rgc){const d=this._createInjector(l,a,c,void 0);let s={$implicit:l.data,dialogRef:a};l.templateContext&&(s={...s,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),c.attachTemplatePortal(new I.UE(i,null,s,d))}else{const d=this._createInjector(l,a,c,this._injector),s=c.attachComponentPortal(new I.C5(i,l.viewContainerRef,d,l.componentFactoryResolver));a.componentInstance=s.instance}}_createInjector(i,a,c,l){const d=i.injector||i.viewContainerRef?.injector,s=[{provide:v,useValue:i.data},{provide:pe,useValue:a}];return i.providers&&("function"==typeof i.providers?s.push(...i.providers(a,i,c)):s.push(...i.providers)),i.direction&&(!d||!d.get(J.Is,null,{optional:!0}))&&s.push({provide:J.Is,useValue:{value:i.direction,change:(0,P.of)()}}),A.zs3.create({parent:d||l,providers:s})}_removeOpenDialog(i,a){const c=this.openDialogs.indexOf(i);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,d)=>{l?d.setAttribute("aria-hidden",l):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),a&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const i=this._overlayContainer.getContainerElement();if(i.parentElement){const a=i.parentElement.children;for(let c=a.length-1;c>-1;c--){const l=a[c];l!==i&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(i){return new(i||n)(A.LFG(e.aV),A.LFG(A.zs3),A.LFG(V,8),A.LFG(n,12),A.LFG(e.Xj),A.LFG(re))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac}),n})();function ze(n,t){let i=n.length;for(;i--;)t(n[i])}let ke=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=A.oAB({type:n}),n.\u0275inj=A.cJS({providers:[ye,te],imports:[e.U8,I.eL,S.rt,I.eL]}),n})();var $e=p(21281),Je=p(56451),Fe=p(39300),Ve=p(95698),le=p(3238);function U(n,t){}p(37340);class X{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}let ce=(()=>{class n extends ge{constructor(i,a,c,l,d,s,E,B){super(i,a,c,l,d,s,E,B),this._animationStateChanged=new A.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(i){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})}}return n.\u0275fac=function(i){return new(i||n)(A.Y36(A.SBq),A.Y36(S.qV),A.Y36(f.K0,8),A.Y36(X),A.Y36(S.ic),A.Y36(A.R0b),A.Y36(e.Iu),A.Y36(S.tE))},n.\u0275cmp=A.Xpm({type:n,selectors:[["ng-component"]],features:[A.qOj],decls:0,vars:0,template:function(i,a){},encapsulation:2}),n})();const Me="--mat-dialog-transition-duration";function ue(n){return null==n?null:"number"==typeof n?n:n.endsWith("ms")?(0,$e.su)(n.substring(0,n.length-2)):n.endsWith("s")?1e3*(0,$e.su)(n.substring(0,n.length-1)):"0"===n?0:null}let Pe=(()=>{class n extends ce{constructor(i,a,c,l,d,s,E,B,q){super(i,a,c,l,d,s,E,q),this._animationMode=B,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?ue(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?ue(this._config.exitAnimationDuration)??w_DIALOG_ANIMATION_CLOSE_TIME_MS:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Me,`${this._openAnimationDuration}ms`),this._hostElement.classList.add("mdc-dialog--opening"),this._hostElement.classList.add(m_OPEN),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(m_OPEN),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(m_OPEN),this._animationsEnabled?(this._hostElement.style.setProperty(Me,`${this._openAnimationDuration}ms`),this._hostElement.classList.add("mdc-dialog--closing"),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove("mdc-dialog--opening"),this._hostElement.classList.remove("mdc-dialog--closing")}_waitForAnimationToComplete(i,a){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(a,i)}}return n.\u0275fac=function(i){return new(i||n)(A.Y36(A.SBq),A.Y36(S.qV),A.Y36(f.K0,8),A.Y36(X),A.Y36(S.ic),A.Y36(A.R0b),A.Y36(e.Iu),A.Y36(A.QbO,8),A.Y36(S.tE))},n.\u0275cmp=A.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(i,a){2&i&&(A.Ikx("id",a._config.id),A.uIk("aria-modal",a._config.ariaModal)("role",a._config.role)("aria-labelledby",a._config.ariaLabel?null:a._ariaLabelledBy)("aria-label",a._config.ariaLabel)("aria-describedby",a._config.ariaDescribedBy||null),A.ekj("_mat-animation-noopable",!a._animationsEnabled))},features:[A.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,a){1&i&&(A.TgZ(0,"div",0)(1,"div",1),A.YNc(2,U,0,0,"ng-template",2),A.qZA()())},dependencies:[I.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),n})();class tt{constructor(t,i,a){this._ref=t,this._containerInstance=a,this._afterOpened=new T.x,this._beforeClosed=new T.x,this._state=0,this.disableClose=i.disableClose,this.id=t.id,a._animationStateChanged.pipe((0,Fe.h)(c=>"opened"===c.state),(0,Ve.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),a._animationStateChanged.pipe((0,Fe.h)(c=>"closed"===c.state),(0,Ve.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Je.T)(this.backdropClick(),this.keydownEvents().pipe((0,Fe.h)(c=>c.keyCode===F.hY&&!this.disableClose&&!(0,F.Vb)(c)))).subscribe(c=>{this.disableClose||(c.preventDefault(),function Ce(n,t,i){n._closeInteractionType=t,n.close(i)}(this,"keydown"===c.type?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,Fe.h)(i=>"closing"===i.state),(0,Ve.q)(1)).subscribe(i=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let i=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?i.left(t.left):i.right(t.right):i.centerHorizontally(),t&&(t.top||t.bottom)?t.top?i.top(t.top):i.bottom(t.bottom):i.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",i=""){return this._ref.updateSize(t,i),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const at=new A.OlP("MatMdcDialogData"),Ue=new A.OlP("mat-mdc-dialog-default-options"),pt=new A.OlP("mat-mdc-dialog-scroll-strategy"),st={provide:pt,deps:[e.aV],useFactory:function z(n){return()=>n.scrollStrategies.block()}};let Ye=0,he=(()=>{class n{constructor(i,a,c,l,d,s,E,B,q,qe){this._overlay=i,this._defaultOptions=c,this._parentDialog=l,this._dialogRefConstructor=E,this._dialogContainerType=B,this._dialogDataToken=q,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new T.x,this._afterOpenedAtThisLevel=new T.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=X,this.afterAllClosed=(0,H.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,fe.O)(void 0))),this._scrollStrategy=s,this._dialog=a.get(ye)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(i,a){let c;(a={...this._defaultOptions||new X,...a}).id=a.id||`${this._idPrefix}${Ye++}`,a.scrollStrategy=a.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(i,{...a,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:a},{provide:$,useValue:a}]},templateContext:()=>({dialogRef:c}),providers:(d,s,E)=>(c=new this._dialogRefConstructor(d,a,E),c.updatePosition(a?.position),[{provide:this._dialogContainerType,useValue:E},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:c}])});return c.componentInstance=l.componentInstance,this.openDialogs.push(c),this.afterOpened.next(c),c.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(c);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),c}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(i){return this.openDialogs.find(a=>a.id===i)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(i){let a=i.length;for(;a--;)i[a].close()}}return n.\u0275fac=function(i){A.$Z()},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac}),n})(),Re=(()=>{class n extends he{constructor(i,a,c,l,d,s,E,B){super(i,a,l,s,E,d,tt,Pe,at,B),this._idPrefix="mat-mdc-dialog-"}}return n.\u0275fac=function(i){return new(i||n)(A.LFG(e.aV),A.LFG(A.zs3),A.LFG(f.Ye,8),A.LFG(Ue,8),A.LFG(pt),A.LFG(n,12),A.LFG(e.Xj),A.LFG(A.QbO,8))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac}),n})(),He=0,Oe=(()=>{class n{constructor(i,a,c){this._dialogRef=i,this._elementRef=a,this._dialog=c,this.id="mat-mdc-dialog-title-"+He++}ngOnInit(){this._dialogRef||(this._dialogRef=function _(n,t){let i=n.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-mdc-dialog-container");)i=i.parentElement;return i?t.find(a=>a.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const i=this._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(i){return new(i||n)(A.Y36(tt,8),A.Y36(A.SBq),A.Y36(Re))},n.\u0275dir=A.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,a){2&i&&A.Ikx("id",a.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),r=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=A.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),n})(),u=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=A.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(i,a){2&i&&A.ekj("mat-mdc-dialog-actions-align-center","center"===a.align)("mat-mdc-dialog-actions-align-end","end"===a.align)},inputs:{align:"align"}}),n})(),C=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=A.oAB({type:n}),n.\u0275inj=A.cJS({providers:[Re,st],imports:[ke,e.U8,I.eL,le.BQ,le.BQ]}),n})()},44850:(Qe,ae,p)=>{"use strict";p.d(ae,{d:()=>S,t:()=>m});var e=p(94650),f=p(21281),A=p(3238);let S=(()=>{class M{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(x){this._vertical=(0,f.Ig)(x)}get inset(){return this._inset}set inset(x){this._inset=(0,f.Ig)(x)}}return M.\u0275fac=function(x){return new(x||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(x,I){2&x&&(e.uIk("aria-orientation",I.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",I.vertical)("mat-divider-horizontal",!I.vertical)("mat-divider-inset",I.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(x,I){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),M})(),m=(()=>{class M{}return M.\u0275fac=function(x){return new(x||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[A.BQ,A.BQ]}),M})()},37084:(Qe,ae,p)=>{"use strict";p.d(ae,{pp:()=>Ue,To:()=>pt,ib:()=>ce,HS:()=>N,u4:()=>Ce,yz:()=>tt,yK:()=>at});var e=p(94650),f=p(95017),A=p(21281),S=p(77579),m=p(50727);let M=0;const w=new e.OlP("CdkAccordion");let x=(()=>{class z{constructor(){this._stateChanges=new S.x,this._openCloseAllActions=new S.x,this.id="cdk-accordion-"+M++,this._multi=!1}get multi(){return this._multi}set multi(be){this._multi=(0,A.Ig)(be)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(be){this._stateChanges.next(be)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return z.\u0275fac=function(be){return new(be||z)},z.\u0275dir=e.lG2({type:z,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:w,useExisting:z}]),e.TTD]}),z})(),I=0,F=(()=>{class z{constructor(be,Ye,he){this.accordion=be,this._changeDetectorRef=Ye,this._expansionDispatcher=he,this._openCloseAllSubscription=m.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+I++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=he.listen((Re,He)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===He&&this.id!==Re&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(be){be=(0,A.Ig)(be),this._expanded!==be&&(this._expanded=be,this.expandedChange.emit(be),be?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(be){this._disabled=(0,A.Ig)(be)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(be=>{this.disabled||(this.expanded=be)})}}return z.\u0275fac=function(be){return new(be||z)(e.Y36(w,12),e.Y36(e.sBO),e.Y36(f.A8))},z.\u0275dir=e.lG2({type:z,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:w,useValue:void 0}])]}),z})(),T=(()=>{class z{}return z.\u0275fac=function(be){return new(be||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({}),z})();var H=p(84080),P=p(36895),J=p(3238),fe=p(12693),j=p(71884),$=p(68675),_e=p(39300),ge=p(95698),pe=p(29521),re=p(60515),v=p(56451),V=p(37340);const W=["body"];function te(z,st){}const ne=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ye=["mat-expansion-panel-header","*","mat-action-row"];function ze(z,st){if(1&z&&e._UZ(0,"span",2),2&z){const be=e.oxw();e.Q6J("@indicatorRotate",be._getExpandedState())}}const ke=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],$e=["mat-panel-title","mat-panel-description","*"],Je=new e.OlP("MAT_ACCORDION"),Fe="225ms cubic-bezier(0.4,0.0,0.2,1)",Ve={indicatorRotate:(0,V.X$)("indicatorRotate",[(0,V.SB)("collapsed, void",(0,V.oB)({transform:"rotate(0deg)"})),(0,V.SB)("expanded",(0,V.oB)({transform:"rotate(180deg)"})),(0,V.eR)("expanded <=> collapsed, void => collapsed",(0,V.jt)(Fe))]),bodyExpansion:(0,V.X$)("bodyExpansion",[(0,V.SB)("collapsed, void",(0,V.oB)({height:"0px",visibility:"hidden"})),(0,V.SB)("expanded",(0,V.oB)({height:"*",visibility:"visible"})),(0,V.eR)("expanded <=> collapsed, void => collapsed",(0,V.jt)(Fe))])},le=new e.OlP("MAT_EXPANSION_PANEL");let N=(()=>{class z{constructor(be,Ye){this._template=be,this._expansionPanel=Ye}}return z.\u0275fac=function(be){return new(be||z)(e.Y36(e.Rgc),e.Y36(le,8))},z.\u0275dir=e.lG2({type:z,selectors:[["ng-template","matExpansionPanelContent",""]]}),z})(),U=0;const X=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let ce=(()=>{class z extends F{constructor(be,Ye,he,Re,He,ve,Oe){super(be,Ye,he),this._viewContainerRef=Re,this._animationMode=ve,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new S.x,this._headerId="mat-expansion-panel-header-"+U++,this._bodyAnimationDone=new S.x,this.accordion=be,this._document=He,this._bodyAnimationDone.pipe((0,j.x)((r,u)=>r.fromState===u.fromState&&r.toState===u.toState)).subscribe(r=>{"void"!==r.fromState&&("expanded"===r.toState?this.afterExpand.emit():"collapsed"===r.toState&&this.afterCollapse.emit())}),Oe&&(this.hideToggle=Oe.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(be){this._hideToggle=(0,A.Ig)(be)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(be){this._togglePosition=be}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,$.O)(null),(0,_e.h)(()=>this.expanded&&!this._portal),(0,ge.q)(1)).subscribe(()=>{this._portal=new H.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(be){this._inputChanges.next(be)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const be=this._document.activeElement,Ye=this._body.nativeElement;return be===Ye||Ye.contains(be)}return!1}}return z.\u0275fac=function(be){return new(be||z)(e.Y36(Je,12),e.Y36(e.sBO),e.Y36(f.A8),e.Y36(e.s_b),e.Y36(P.K0),e.Y36(e.QbO,8),e.Y36(X,8))},z.\u0275cmp=e.Xpm({type:z,selectors:[["mat-expansion-panel"]],contentQueries:function(be,Ye,he){if(1&be&&e.Suo(he,N,5),2&be){let Re;e.iGM(Re=e.CRH())&&(Ye._lazyContent=Re.first)}},viewQuery:function(be,Ye){if(1&be&&e.Gf(W,5),2&be){let he;e.iGM(he=e.CRH())&&(Ye._body=he.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(be,Ye){2&be&&e.ekj("mat-expanded",Ye.expanded)("_mat-animation-noopable","NoopAnimations"===Ye._animationMode)("mat-expansion-panel-spacing",Ye._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:Je,useValue:void 0},{provide:le,useExisting:z}]),e.qOj,e.TTD],ngContentSelectors:ye,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(be,Ye){1&be&&(e.F$t(ne),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Re){return Ye._bodyAnimationDone.next(Re)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,te,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&be&&(e.xp6(1),e.Q6J("@bodyExpansion",Ye._getExpandedState())("id",Ye.id),e.uIk("aria-labelledby",Ye._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",Ye._portal))},dependencies:[H.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[Ve.bodyExpansion]},changeDetection:0}),z})();class ue{}const Pe=(0,J.sb)(ue);let tt=(()=>{class z extends Pe{constructor(be,Ye,he,Re,He,ve,Oe){super(),this.panel=be,this._element=Ye,this._focusMonitor=he,this._changeDetectorRef=Re,this._animationMode=ve,this._parentChangeSubscription=m.w0.EMPTY;const r=be.accordion?be.accordion._stateChanges.pipe((0,_e.h)(u=>!(!u.hideToggle&&!u.togglePosition))):re.E;this.tabIndex=parseInt(Oe||"")||0,this._parentChangeSubscription=(0,v.T)(be.opened,be.closed,r,be._inputChanges.pipe((0,_e.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),be.closed.pipe((0,_e.h)(()=>be._containsFocus())).subscribe(()=>he.focusVia(Ye,"program")),He&&(this.expandedHeight=He.expandedHeight,this.collapsedHeight=He.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const be=this._isExpanded();return be&&this.expandedHeight?this.expandedHeight:!be&&this.collapsedHeight?this.collapsedHeight:null}_keydown(be){switch(be.keyCode){case pe.L_:case pe.K5:(0,pe.Vb)(be)||(be.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(be))}}focus(be,Ye){be?this._focusMonitor.focusVia(this._element,be,Ye):this._element.nativeElement.focus(Ye)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(be=>{be&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return z.\u0275fac=function(be){return new(be||z)(e.Y36(ce,1),e.Y36(e.SBq),e.Y36(fe.tE),e.Y36(e.sBO),e.Y36(X,8),e.Y36(e.QbO,8),e.$8M("tabindex"))},z.\u0275cmp=e.Xpm({type:z,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(be,Ye){1&be&&e.NdJ("click",function(){return Ye._toggle()})("keydown",function(Re){return Ye._keydown(Re)}),2&be&&(e.uIk("id",Ye.panel._headerId)("tabindex",Ye.tabIndex)("aria-controls",Ye._getPanelId())("aria-expanded",Ye._isExpanded())("aria-disabled",Ye.panel.disabled),e.Udp("height",Ye._getHeaderHeight()),e.ekj("mat-expanded",Ye._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ye._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ye._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ye._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:$e,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(be,Ye){1&be&&(e.F$t(ke),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,ze,1,1,"span",1)),2&be&&(e.ekj("mat-content-hide-toggle",!Ye._showToggle()),e.xp6(4),e.Q6J("ngIf",Ye._showToggle()))},dependencies:[P.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[Ve.indicatorRotate]},changeDetection:0}),z})(),Ce=(()=>{class z{}return z.\u0275fac=function(be){return new(be||z)},z.\u0275dir=e.lG2({type:z,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),z})(),at=(()=>{class z{}return z.\u0275fac=function(be){return new(be||z)},z.\u0275dir=e.lG2({type:z,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),z})(),Ue=(()=>{class z extends x{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(be){this._hideToggle=(0,A.Ig)(be)}ngAfterContentInit(){this._headers.changes.pipe((0,$.O)(this._headers)).subscribe(be=>{this._ownHeaders.reset(be.filter(Ye=>Ye.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new fe.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(be){this._keyManager.onKeydown(be)}_handleHeaderFocus(be){this._keyManager.updateActiveItem(be)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}}return z.\u0275fac=function(){let st;return function(Ye){return(st||(st=e.n5z(z)))(Ye||z)}}(),z.\u0275dir=e.lG2({type:z,selectors:[["mat-accordion"]],contentQueries:function(be,Ye,he){if(1&be&&e.Suo(he,tt,5),2&be){let Re;e.iGM(Re=e.CRH())&&(Ye._headers=Re)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(be,Ye){2&be&&e.ekj("mat-accordion-multi",Ye.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:Je,useExisting:z}]),e.qOj]}),z})(),pt=(()=>{class z{}return z.\u0275fac=function(be){return new(be||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({imports:[P.ez,J.BQ,T,H.eL]}),z})()},59549:(Qe,ae,p)=>{"use strict";p.d(ae,{Eo:()=>He,G_:()=>u,KE:()=>i,R9:()=>Ue,TO:()=>Me,bx:()=>Pe,hX:()=>U,lN:()=>a});var e=p(94650),f=p(40445),A=p(83353),S=p(77579),m=p(56451),M=p(82722),w=p(36895),x=p(21281),I=p(37340),F=p(49643),T=p(3238);const H=["matFormFieldNotchedOutline",""],P=["*"],J=["textField"],fe=["iconPrefixContainer"],j=["textPrefixContainer"];function $(c,l){1&c&&e._UZ(0,"span",19)}function _e(c,l){if(1&c){const d=e.EpF();e.TgZ(0,"label",17),e.NdJ("cdkObserveContent",function(){e.CHM(d);const E=e.oxw(2);return e.KtG(E._refreshOutlineNotchWidth())}),e.Hsn(1,1),e.YNc(2,$,1,0,"span",18),e.qZA()}if(2&c){const d=e.oxw(2);e.Q6J("floating",d._shouldLabelFloat())("cdkObserveContentDisabled",!d._hasOutline())("id",d._labelId),e.uIk("for",d._control.id)("aria-owns",d._control.id),e.xp6(2),e.Q6J("ngIf",!d.hideRequiredMarker&&d._control.required)}}function ge(c,l){if(1&c&&e.YNc(0,_e,3,6,"label",16),2&c){const d=e.oxw();e.Q6J("ngIf",d._hasFloatingLabel())}}function pe(c,l){1&c&&e._UZ(0,"div",20)}function re(c,l){}function v(c,l){if(1&c&&e.YNc(0,re,0,0,"ng-template",22),2&c){e.oxw(2);const d=e.MAs(1);e.Q6J("ngTemplateOutlet",d)}}function V(c,l){if(1&c&&(e.TgZ(0,"div",21),e.YNc(1,v,1,1,"ng-template",9),e.qZA()),2&c){const d=e.oxw();e.Q6J("matFormFieldNotchedOutlineOpen",d._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",d._labelWidth),e.xp6(1),e.Q6J("ngIf",!d._forceDisplayInfixLabel())}}function W(c,l){1&c&&(e.TgZ(0,"div",23,24),e.Hsn(2,2),e.qZA())}function te(c,l){1&c&&(e.TgZ(0,"div",25,26),e.Hsn(2,3),e.qZA())}function ne(c,l){}function ye(c,l){if(1&c&&e.YNc(0,ne,0,0,"ng-template",22),2&c){e.oxw();const d=e.MAs(1);e.Q6J("ngTemplateOutlet",d)}}function ze(c,l){1&c&&(e.TgZ(0,"div",27),e.Hsn(1,4),e.qZA())}function ke(c,l){1&c&&(e.TgZ(0,"div",28),e.Hsn(1,5),e.qZA())}function $e(c,l){1&c&&e._UZ(0,"div",29)}function Je(c,l){if(1&c&&(e.TgZ(0,"div",30),e.Hsn(1,6),e.qZA()),2&c){const d=e.oxw();e.Q6J("@transitionMessages",d._subscriptAnimationState)}}function Fe(c,l){if(1&c&&(e.TgZ(0,"mat-hint",34),e._uU(1),e.qZA()),2&c){const d=e.oxw(2);e.Q6J("id",d._hintLabelId),e.xp6(1),e.Oqu(d.hintLabel)}}function Ve(c,l){if(1&c&&(e.TgZ(0,"div",31),e.YNc(1,Fe,2,2,"mat-hint",32),e.Hsn(2,7),e._UZ(3,"div",33),e.Hsn(4,8),e.qZA()),2&c){const d=e.oxw();e.Q6J("@transitionMessages",d._subscriptAnimationState),e.xp6(1),e.Q6J("ngIf",d.hintLabel)}}const le=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],N=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let U=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275dir=e.lG2({type:c,selectors:[["mat-label"]]}),c})(),X=0;const ce=new e.OlP("MatError");let Me=(()=>{class c{constructor(d,s){this.id="mat-mdc-error-"+X++,d||s.nativeElement.setAttribute("aria-live","polite")}}return c.\u0275fac=function(d){return new(d||c)(e.$8M("aria-live"),e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(d,s){2&d&&e.Ikx("id",s.id)},inputs:{id:"id"},features:[e._Bn([{provide:ce,useExisting:c}])]}),c})(),ue=0,Pe=(()=>{class c{constructor(){this.align="start",this.id="mat-mdc-hint-"+ue++}}return c.\u0275fac=function(d){return new(d||c)},c.\u0275dir=e.lG2({type:c,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(d,s){2&d&&(e.Ikx("id",s.id),e.uIk("align",null),e.ekj("mat-mdc-form-field-hint-end","end"===s.align))},inputs:{align:"align",id:"id"}}),c})();const tt=new e.OlP("MatPrefix"),at=new e.OlP("MatSuffix");let Ue=(()=>{class c{constructor(){this._isText=!1}set _isTextSelector(d){this._isText=!0}}return c.\u0275fac=function(d){return new(d||c)},c.\u0275dir=e.lG2({type:c,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[e._Bn([{provide:at,useExisting:c}])]}),c})(),pt=(()=>{class c{constructor(d){this._elementRef=d,this.floating=!1}getWidth(){return function z(c){if(null!==c.offsetParent)return c.scrollWidth;const d=c.cloneNode(!0);d.style.setProperty("position","absolute"),d.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(d);const s=d.scrollWidth;return d.remove(),s}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return c.\u0275fac=function(d){return new(d||c)(e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(d,s){2&d&&e.ekj("mdc-floating-label--float-above",s.floating)},inputs:{floating:"floating"}}),c})();const st="mdc-line-ripple--active",be="mdc-line-ripple--deactivating";let Ye=(()=>{class c{constructor(d,s){this._elementRef=d,this._handleTransitionEnd=E=>{const B=this._elementRef.nativeElement.classList,q=B.contains(be);"opacity"===E.propertyName&&q&&B.remove(st,be)},s.runOutsideAngular(()=>{d.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const d=this._elementRef.nativeElement.classList;d.remove(be),d.add(st)}deactivate(){this._elementRef.nativeElement.classList.add(be)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return c.\u0275fac=function(d){return new(d||c)(e.Y36(e.SBq),e.Y36(e.R0b))},c.\u0275dir=e.lG2({type:c,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),c})(),he=(()=>{class c{constructor(d,s){this._elementRef=d,this._ngZone=s,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const d=this._elementRef.nativeElement.querySelector(".mdc-floating-label");d?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(d.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>d.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return c.\u0275fac=function(d){return new(d||c)(e.Y36(e.SBq),e.Y36(e.R0b))},c.\u0275cmp=e.Xpm({type:c,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(d,s){2&d&&e.ekj("mdc-notched-outline--notched",s.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:H,ngContentSelectors:P,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(d,s){1&d&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e._UZ(3,"div",2)),2&d&&(e.xp6(1),e.Udp("width",s._getNotchWidth()))},encapsulation:2,changeDetection:0}),c})();const Re={transitionMessages:(0,I.X$)("transitionMessages",[(0,I.SB)("enter",(0,I.oB)({opacity:1,transform:"translateY(0%)"})),(0,I.eR)("void => enter",[(0,I.oB)({opacity:0,transform:"translateY(-5px)"}),(0,I.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let He=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275dir=e.lG2({type:c}),c})();const u=new e.OlP("MatFormField"),_=new e.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let C=0;const h="fill",n="fixed";let i=(()=>{class c{constructor(d,s,E,B,q,qe,it,xt){this._elementRef=d,this._changeDetectorRef=s,this._ngZone=E,this._dir=B,this._platform=q,this._defaults=qe,this._animationMode=it,this._document=xt,this._hideRequiredMarker=!1,this.color="primary",this._appearance=h,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+C++,this._hintLabelId="mat-mdc-hint-"+C++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new S.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,qe&&(qe.appearance&&(this.appearance=qe.appearance),this._hideRequiredMarker=Boolean(qe?.hideRequiredMarker),qe.color&&(this.color=qe.color))}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(d){this._hideRequiredMarker=(0,x.Ig)(d)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(d){d!==this._floatLabel&&(this._floatLabel=d,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(d){const s=this._appearance;this._appearance=d||this._defaults?.appearance||h,"outline"===this._appearance&&this._appearance!==s&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||n}set subscriptSizing(d){this._subscriptSizing=d||this._defaults?.subscriptSizing||n}get hintLabel(){return this._hintLabel}set hintLabel(d){this._hintLabel=d,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(d){this._explicitFormFieldControl=d}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const d=this._control;d.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${d.controlType}`),d.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),d.ngControl&&d.ngControl.valueChanges&&d.ngControl.valueChanges.pipe((0,M.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(d=>!d._isText),this._hasTextPrefix=!!this._prefixChildren.find(d=>d._isText),this._hasIconSuffix=!!this._suffixChildren.find(d=>!d._isText),this._hasTextSuffix=!!this._suffixChildren.find(d=>d._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,m.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,M.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(d){const s=this._control?this._control.ngControl:null;return s&&s[d]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let d=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&d.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const s=this._hintChildren?this._hintChildren.find(B=>"start"===B.align):null,E=this._hintChildren?this._hintChildren.find(B=>"end"===B.align):null;s?d.push(s.id):this._hintLabel&&d.push(this._hintLabelId),E&&d.push(E.id)}else this._errorChildren&&d.push(...this._errorChildren.map(s=>s.id));this._control.setDescribedByIds(d)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const d=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(d.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const s=this._iconPrefixContainer?.nativeElement,E=this._textPrefixContainer?.nativeElement,B=s?.getBoundingClientRect().width??0,q=E?.getBoundingClientRect().width??0;d.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${B+q}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const d=this._elementRef.nativeElement;if(d.getRootNode){const s=d.getRootNode();return s&&s!==d}return document.documentElement.contains(d)}}return c.\u0275fac=function(d){return new(d||c)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(f.Is),e.Y36(A.t4),e.Y36(_,8),e.Y36(e.QbO,8),e.Y36(w.K0))},c.\u0275cmp=e.Xpm({type:c,selectors:[["mat-form-field"]],contentQueries:function(d,s,E){if(1&d&&(e.Suo(E,U,5),e.Suo(E,U,7),e.Suo(E,He,5),e.Suo(E,tt,5),e.Suo(E,at,5),e.Suo(E,ce,5),e.Suo(E,Pe,5)),2&d){let B;e.iGM(B=e.CRH())&&(s._labelChildNonStatic=B.first),e.iGM(B=e.CRH())&&(s._labelChildStatic=B.first),e.iGM(B=e.CRH())&&(s._formFieldControl=B.first),e.iGM(B=e.CRH())&&(s._prefixChildren=B),e.iGM(B=e.CRH())&&(s._suffixChildren=B),e.iGM(B=e.CRH())&&(s._errorChildren=B),e.iGM(B=e.CRH())&&(s._hintChildren=B)}},viewQuery:function(d,s){if(1&d&&(e.Gf(J,5),e.Gf(fe,5),e.Gf(j,5),e.Gf(pt,5),e.Gf(he,5),e.Gf(Ye,5)),2&d){let E;e.iGM(E=e.CRH())&&(s._textField=E.first),e.iGM(E=e.CRH())&&(s._iconPrefixContainer=E.first),e.iGM(E=e.CRH())&&(s._textPrefixContainer=E.first),e.iGM(E=e.CRH())&&(s._floatingLabel=E.first),e.iGM(E=e.CRH())&&(s._notchedOutline=E.first),e.iGM(E=e.CRH())&&(s._lineRipple=E.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(d,s){2&d&&e.ekj("mat-mdc-form-field-label-always-float",s._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",s._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",s._hasIconSuffix)("mat-form-field-invalid",s._control.errorState)("mat-form-field-disabled",s._control.disabled)("mat-form-field-autofilled",s._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===s._animationMode)("mat-form-field-appearance-fill","fill"==s.appearance)("mat-form-field-appearance-outline","outline"==s.appearance)("mat-form-field-hide-placeholder",s._hasFloatingLabel()&&!s._shouldLabelFloat())("mat-focused",s._control.focused)("mat-primary","accent"!==s.color&&"warn"!==s.color)("mat-accent","accent"===s.color)("mat-warn","warn"===s.color)("ng-untouched",s._shouldForward("untouched"))("ng-touched",s._shouldForward("touched"))("ng-pristine",s._shouldForward("pristine"))("ng-dirty",s._shouldForward("dirty"))("ng-valid",s._shouldForward("valid"))("ng-invalid",s._shouldForward("invalid"))("ng-pending",s._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[e._Bn([{provide:u,useExisting:c}])],ngContentSelectors:N,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(d,s){1&d&&(e.F$t(le),e.YNc(0,ge,1,1,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.NdJ("click",function(B){return s._control.onContainerClick&&s._control.onContainerClick(B)}),e.YNc(4,pe,1,0,"div",3),e.TgZ(5,"div",4),e.YNc(6,V,2,3,"div",5),e.YNc(7,W,3,0,"div",6),e.YNc(8,te,3,0,"div",7),e.TgZ(9,"div",8),e.YNc(10,ye,1,1,"ng-template",9),e.Hsn(11),e.qZA(),e.YNc(12,ze,2,0,"div",10),e.YNc(13,ke,2,0,"div",11),e.qZA(),e.YNc(14,$e,1,0,"div",12),e.qZA(),e.TgZ(15,"div",13),e.YNc(16,Je,2,1,"div",14),e.YNc(17,Ve,5,2,"div",15),e.qZA()),2&d&&(e.xp6(2),e.ekj("mdc-text-field--filled",!s._hasOutline())("mdc-text-field--outlined",s._hasOutline())("mdc-text-field--no-label",!s._hasFloatingLabel())("mdc-text-field--disabled",s._control.disabled)("mdc-text-field--invalid",s._control.errorState),e.xp6(2),e.Q6J("ngIf",!s._hasOutline()&&!s._control.disabled),e.xp6(2),e.Q6J("ngIf",s._hasOutline()),e.xp6(1),e.Q6J("ngIf",s._hasIconPrefix),e.xp6(1),e.Q6J("ngIf",s._hasTextPrefix),e.xp6(2),e.Q6J("ngIf",!s._hasOutline()||s._forceDisplayInfixLabel()),e.xp6(2),e.Q6J("ngIf",s._hasTextSuffix),e.xp6(1),e.Q6J("ngIf",s._hasIconSuffix),e.xp6(1),e.Q6J("ngIf",!s._hasOutline()),e.xp6(1),e.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===s.subscriptSizing),e.Q6J("ngSwitch",s._getDisplayedMessages()),e.xp6(1),e.Q6J("ngSwitchCase","error"),e.xp6(1),e.Q6J("ngSwitchCase","hint"))},dependencies:[w.O5,w.tP,w.RF,w.n9,F.wD,Pe,pt,he,Ye],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[Re.transitionMessages]},changeDetection:0}),c})(),a=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[T.BQ,w.ez,F.Q8,T.BQ]}),c})()},97392:(Qe,ae,p)=>{"use strict";p.d(ae,{Hw:()=>Me,Ps:()=>ue,jv:()=>ne});var e=p(94650),f=p(3238),A=p(21281),S=p(36895),m=p(39646),M=p(62843),w=p(4128),x=p(50727),I=p(18505),F=p(54004),T=p(70262),H=p(28746),P=p(13099),J=p(95698),fe=p(80529),j=p(11481);const $=["*"];let _e;function pe(Pe){return function ge(){if(void 0===_e&&(_e=null,typeof window<"u")){const Pe=window;void 0!==Pe.trustedTypes&&(_e=Pe.trustedTypes.createPolicy("angular#components",{createHTML:tt=>tt}))}return _e}()?.createHTML(Pe)||Pe}function re(Pe){return Error(`Unable to find icon with the name "${Pe}"`)}function V(Pe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Pe}".`)}function W(Pe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Pe}".`)}class te{constructor(tt,Ce,at){this.url=tt,this.svgText=Ce,this.options=at}}let ne=(()=>{class Pe{constructor(Ce,at,Ue,pt){this._httpClient=Ce,this._sanitizer=at,this._errorHandler=pt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Ue}addSvgIcon(Ce,at,Ue){return this.addSvgIconInNamespace("",Ce,at,Ue)}addSvgIconLiteral(Ce,at,Ue){return this.addSvgIconLiteralInNamespace("",Ce,at,Ue)}addSvgIconInNamespace(Ce,at,Ue,pt){return this._addSvgIconConfig(Ce,at,new te(Ue,null,pt))}addSvgIconResolver(Ce){return this._resolvers.push(Ce),this}addSvgIconLiteralInNamespace(Ce,at,Ue,pt){const z=this._sanitizer.sanitize(e.q3G.HTML,Ue);if(!z)throw W(Ue);const st=pe(z);return this._addSvgIconConfig(Ce,at,new te("",st,pt))}addSvgIconSet(Ce,at){return this.addSvgIconSetInNamespace("",Ce,at)}addSvgIconSetLiteral(Ce,at){return this.addSvgIconSetLiteralInNamespace("",Ce,at)}addSvgIconSetInNamespace(Ce,at,Ue){return this._addSvgIconSetConfig(Ce,new te(at,null,Ue))}addSvgIconSetLiteralInNamespace(Ce,at,Ue){const pt=this._sanitizer.sanitize(e.q3G.HTML,at);if(!pt)throw W(at);const z=pe(pt);return this._addSvgIconSetConfig(Ce,new te("",z,Ue))}registerFontClassAlias(Ce,at=Ce){return this._fontCssClassesByAlias.set(Ce,at),this}classNameForFontAlias(Ce){return this._fontCssClassesByAlias.get(Ce)||Ce}setDefaultFontSetClass(...Ce){return this._defaultFontSetClass=Ce,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ce){const at=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Ce);if(!at)throw V(Ce);const Ue=this._cachedIconsByUrl.get(at);return Ue?(0,m.of)(ke(Ue)):this._loadSvgIconFromConfig(new te(Ce,null)).pipe((0,I.b)(pt=>this._cachedIconsByUrl.set(at,pt)),(0,F.U)(pt=>ke(pt)))}getNamedSvgIcon(Ce,at=""){const Ue=$e(at,Ce);let pt=this._svgIconConfigs.get(Ue);if(pt)return this._getSvgFromConfig(pt);if(pt=this._getIconConfigFromResolvers(at,Ce),pt)return this._svgIconConfigs.set(Ue,pt),this._getSvgFromConfig(pt);const z=this._iconSetConfigs.get(at);return z?this._getSvgFromIconSetConfigs(Ce,z):(0,M._)(re(Ue))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ce){return Ce.svgText?(0,m.of)(ke(this._svgElementFromConfig(Ce))):this._loadSvgIconFromConfig(Ce).pipe((0,F.U)(at=>ke(at)))}_getSvgFromIconSetConfigs(Ce,at){const Ue=this._extractIconWithNameFromAnySet(Ce,at);if(Ue)return(0,m.of)(Ue);const pt=at.filter(z=>!z.svgText).map(z=>this._loadSvgIconSetFromConfig(z).pipe((0,T.K)(st=>{const Ye=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,z.url)} failed: ${st.message}`;return this._errorHandler.handleError(new Error(Ye)),(0,m.of)(null)})));return(0,w.D)(pt).pipe((0,F.U)(()=>{const z=this._extractIconWithNameFromAnySet(Ce,at);if(!z)throw re(Ce);return z}))}_extractIconWithNameFromAnySet(Ce,at){for(let Ue=at.length-1;Ue>=0;Ue--){const pt=at[Ue];if(pt.svgText&&pt.svgText.toString().indexOf(Ce)>-1){const z=this._svgElementFromConfig(pt),st=this._extractSvgIconFromSet(z,Ce,pt.options);if(st)return st}}return null}_loadSvgIconFromConfig(Ce){return this._fetchIcon(Ce).pipe((0,I.b)(at=>Ce.svgText=at),(0,F.U)(()=>this._svgElementFromConfig(Ce)))}_loadSvgIconSetFromConfig(Ce){return Ce.svgText?(0,m.of)(null):this._fetchIcon(Ce).pipe((0,I.b)(at=>Ce.svgText=at))}_extractSvgIconFromSet(Ce,at,Ue){const pt=Ce.querySelector(`[id="${at}"]`);if(!pt)return null;const z=pt.cloneNode(!0);if(z.removeAttribute("id"),"svg"===z.nodeName.toLowerCase())return this._setSvgAttributes(z,Ue);if("symbol"===z.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(z),Ue);const st=this._svgElementFromString(pe(""));return st.appendChild(z),this._setSvgAttributes(st,Ue)}_svgElementFromString(Ce){const at=this._document.createElement("DIV");at.innerHTML=Ce;const Ue=at.querySelector("svg");if(!Ue)throw Error(" tag not found");return Ue}_toSvgElement(Ce){const at=this._svgElementFromString(pe("")),Ue=Ce.attributes;for(let pt=0;ptpe(Ye)),(0,H.x)(()=>this._inProgressUrlFetches.delete(z)),(0,P.B)());return this._inProgressUrlFetches.set(z,be),be}_addSvgIconConfig(Ce,at,Ue){return this._svgIconConfigs.set($e(Ce,at),Ue),this}_addSvgIconSetConfig(Ce,at){const Ue=this._iconSetConfigs.get(Ce);return Ue?Ue.push(at):this._iconSetConfigs.set(Ce,[at]),this}_svgElementFromConfig(Ce){if(!Ce.svgElement){const at=this._svgElementFromString(Ce.svgText);this._setSvgAttributes(at,Ce.options),Ce.svgElement=at}return Ce.svgElement}_getIconConfigFromResolvers(Ce,at){for(let Ue=0;Uett?tt.pathname+tt.search:""}}}),U=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],X=U.map(Pe=>`[${Pe}]`).join(", "),ce=/^url\(['"]?#(.*?)['"]?\)$/;let Me=(()=>{class Pe extends Fe{constructor(Ce,at,Ue,pt,z,st){super(Ce),this._iconRegistry=at,this._location=pt,this._errorHandler=z,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=x.w0.EMPTY,st&&(st.color&&(this.color=this.defaultColor=st.color),st.fontSet&&(this.fontSet=st.fontSet)),Ue||Ce.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Ce){this._inline=(0,A.Ig)(Ce)}get svgIcon(){return this._svgIcon}set svgIcon(Ce){Ce!==this._svgIcon&&(Ce?this._updateSvgIcon(Ce):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ce)}get fontSet(){return this._fontSet}set fontSet(Ce){const at=this._cleanupFontValue(Ce);at!==this._fontSet&&(this._fontSet=at,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Ce){const at=this._cleanupFontValue(Ce);at!==this._fontIcon&&(this._fontIcon=at,this._updateFontIconClasses())}_splitIconName(Ce){if(!Ce)return["",""];const at=Ce.split(":");switch(at.length){case 1:return["",at[0]];case 2:return at;default:throw Error(`Invalid icon name: "${Ce}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ce=this._elementsWithExternalReferences;if(Ce&&Ce.size){const at=this._location.getPathname();at!==this._previousPath&&(this._previousPath=at,this._prependPathToReferences(at))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ce){this._clearSvgElement();const at=this._location.getPathname();this._previousPath=at,this._cacheChildrenWithExternalReferences(Ce),this._prependPathToReferences(at),this._elementRef.nativeElement.appendChild(Ce)}_clearSvgElement(){const Ce=this._elementRef.nativeElement;let at=Ce.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();at--;){const Ue=Ce.childNodes[at];(1!==Ue.nodeType||"svg"===Ue.nodeName.toLowerCase())&&Ue.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ce=this._elementRef.nativeElement,at=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Ue=>Ue.length>0);this._previousFontSetClass.forEach(Ue=>Ce.classList.remove(Ue)),at.forEach(Ue=>Ce.classList.add(Ue)),this._previousFontSetClass=at,this.fontIcon!==this._previousFontIconClass&&!at.includes("mat-ligature-font")&&(this._previousFontIconClass&&Ce.classList.remove(this._previousFontIconClass),this.fontIcon&&Ce.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Ce){return"string"==typeof Ce?Ce.trim().split(" ")[0]:Ce}_prependPathToReferences(Ce){const at=this._elementsWithExternalReferences;at&&at.forEach((Ue,pt)=>{Ue.forEach(z=>{pt.setAttribute(z.name,`url('${Ce}#${z.value}')`)})})}_cacheChildrenWithExternalReferences(Ce){const at=Ce.querySelectorAll(X),Ue=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let pt=0;pt{const st=at[pt],be=st.getAttribute(z),Ye=be?be.match(ce):null;if(Ye){let he=Ue.get(st);he||(he=[],Ue.set(st,he)),he.push({name:z,value:Ye[1]})}})}_updateSvgIcon(Ce){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ce){const[at,Ue]=this._splitIconName(Ce);at&&(this._svgNamespace=at),Ue&&(this._svgName=Ue),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ue,at).pipe((0,J.q)(1)).subscribe(pt=>this._setSvgElement(pt),pt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${at}:${Ue}! ${pt.message}`))})}}}return Pe.\u0275fac=function(Ce){return new(Ce||Pe)(e.Y36(e.SBq),e.Y36(ne),e.$8M("aria-hidden"),e.Y36(le),e.Y36(e.qLn),e.Y36(Ve,8))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(Ce,at){2&Ce&&(e.uIk("data-mat-icon-type",at._usingFontIcon()?"font":"svg")("data-mat-icon-name",at._svgName||at.fontIcon)("data-mat-icon-namespace",at._svgNamespace||at.fontSet)("fontIcon",at._usingFontIcon()?at.fontIcon:null),e.ekj("mat-icon-inline",at.inline)("mat-icon-no-color","primary"!==at.color&&"accent"!==at.color&&"warn"!==at.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:$,decls:1,vars:0,template:function(Ce,at){1&Ce&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),Pe})(),ue=(()=>{class Pe{}return Pe.\u0275fac=function(Ce){return new(Ce||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[f.BQ,f.BQ]}),Pe})()},284:(Qe,ae,p)=>{"use strict";p.d(ae,{Jk:()=>F,Nt:()=>J,c:()=>fe});var e=p(21281),f=p(83353),A=p(39349),S=p(94650),m=p(24006),M=p(3238),w=p(59549),x=p(77579);const F=new S.OlP("MAT_INPUT_VALUE_ACCESSOR"),T=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let H=0;const P=(0,M.FD)(class{constructor(j,$,_e,ge){this._defaultErrorStateMatcher=j,this._parentForm=$,this._parentFormGroup=_e,this.ngControl=ge,this.stateChanges=new x.x}});let J=(()=>{class j extends P{constructor(_e,ge,pe,re,v,V,W,te,ne,ye){super(V,re,v,pe),this._elementRef=_e,this._platform=ge,this._autofillMonitor=te,this._formField=ye,this._uid="mat-input-"+H++,this.focused=!1,this.stateChanges=new x.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter($e=>(0,f.qK)().has($e)),this._iOSKeyupListener=$e=>{const Je=$e.target;!Je.value&&0===Je.selectionStart&&0===Je.selectionEnd&&(Je.setSelectionRange(1,1),Je.setSelectionRange(0,0))};const ze=this._elementRef.nativeElement,ke=ze.nodeName.toLowerCase();this._inputValueAccessor=W||ze,this._previousNativeValue=this.value,this.id=this.id,ge.IOS&&ne.runOutsideAngular(()=>{_e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ke,this._isTextarea="textarea"===ke,this._isInFormField=!!ye,this._isNativeSelect&&(this.controlType=ze.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this._disabled}set disabled(_e){this._disabled=(0,e.Ig)(_e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(_e){this._id=_e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(m.kI.required)??!1}set required(_e){this._required=(0,e.Ig)(_e)}get type(){return this._type}set type(_e){this._type=_e||"text",this._validateType(),!this._isTextarea&&(0,f.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(_e){_e!==this.value&&(this._inputValueAccessor.value=_e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(_e){this._readonly=(0,e.Ig)(_e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(_e=>{this.autofilled=_e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(_e){this._elementRef.nativeElement.focus(_e)}_focusChanged(_e){_e!==this.focused&&(this.focused=_e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const _e=this._elementRef.nativeElement.value;this._previousNativeValue!==_e&&(this._previousNativeValue=_e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const _e=this._getPlaceholder();if(_e!==this._previousPlaceholder){const ge=this._elementRef.nativeElement;this._previousPlaceholder=_e,_e?ge.setAttribute("placeholder",_e):ge.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){T.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let _e=this._elementRef.nativeElement.validity;return _e&&_e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const _e=this._elementRef.nativeElement,ge=_e.options[0];return this.focused||_e.multiple||!this.empty||!!(_e.selectedIndex>-1&&ge&&ge.label)}return this.focused||!this.empty}setDescribedByIds(_e){_e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",_e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const _e=this._elementRef.nativeElement;return this._isNativeSelect&&(_e.multiple||_e.size>1)}}return j.\u0275fac=function(_e){return new(_e||j)(S.Y36(S.SBq),S.Y36(f.t4),S.Y36(m.a5,10),S.Y36(m.F,8),S.Y36(m.sg,8),S.Y36(M.rD),S.Y36(F,10),S.Y36(A.Lq),S.Y36(S.R0b),S.Y36(w.G_,8))},j.\u0275dir=S.lG2({type:j,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(_e,ge){1&_e&&S.NdJ("focus",function(){return ge._focusChanged(!0)})("blur",function(){return ge._focusChanged(!1)})("input",function(){return ge._onInput()}),2&_e&&(S.Ikx("id",ge.id)("disabled",ge.disabled)("required",ge.required),S.uIk("name",ge.name||null)("readonly",ge.readonly&&!ge._isNativeSelect||null)("aria-invalid",ge.empty&&ge.required?null:ge.errorState)("aria-required",ge.required)("id",ge.id),S.ekj("mat-input-server",ge._isServer)("mat-mdc-form-field-textarea-control",ge._isInFormField&&ge._isTextarea)("mat-mdc-form-field-input-control",ge._isInFormField)("mdc-text-field__input",ge._isInFormField)("mat-mdc-native-select-inline",ge._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[S._Bn([{provide:w.Eo,useExisting:j}]),S.qOj,S.TTD]}),j})(),fe=(()=>{class j{}return j.\u0275fac=function(_e){return new(_e||j)},j.\u0275mod=S.oAB({type:j}),j.\u0275inj=S.cJS({imports:[M.BQ,w.lN,w.lN,A.Ky,M.BQ]}),j})()},96338:(Qe,ae,p)=>{"use strict";p.d(ae,{Tg:()=>z,i$:()=>pt,ie:()=>r});var e=p(94650),f=p(21281),A=p(83353),S=p(3238),m=p(50727),M=p(56451),x=(p(77579),p(49643)),I=p(36895),F=p(44850);p(12693),p(95017),p(29521),p(24006),p(82722);const j=["*"],_e=["unscopedContent"],ge=["text"],pe=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],re=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],le=new e.OlP("ListOption");let N=(()=>{class u{constructor(C){this._elementRef=C}}return u.\u0275fac=function(C){return new(C||u)(e.Y36(e.SBq))},u.\u0275dir=e.lG2({type:u,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]}),u})(),U=(()=>{class u{constructor(C){this._elementRef=C}}return u.\u0275fac=function(C){return new(C||u)(e.Y36(e.SBq))},u.\u0275dir=e.lG2({type:u,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]}),u})(),X=(()=>{class u{}return u.\u0275fac=function(C){return new(C||u)},u.\u0275dir=e.lG2({type:u,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]}),u})(),ce=(()=>{class u{constructor(C){this._listOption=C}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getCheckboxPosition()}}return u.\u0275fac=function(C){return new(C||u)(e.Y36(le,8))},u.\u0275dir=e.lG2({type:u,hostVars:4,hostBindings:function(C,h){2&C&&e.ekj("mdc-list-item__start",h._isAlignedAtStart())("mdc-list-item__end",!h._isAlignedAtStart())}}),u})(),Me=(()=>{class u extends ce{}return u.\u0275fac=function(){let _;return function(h){return(_||(_=e.n5z(u)))(h||u)}}(),u.\u0275dir=e.lG2({type:u,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[e.qOj]}),u})(),ue=(()=>{class u extends ce{}return u.\u0275fac=function(){let _;return function(h){return(_||(_=e.n5z(u)))(h||u)}}(),u.\u0275dir=e.lG2({type:u,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[e.qOj]}),u})(),Pe=(()=>{class u{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1}get disableRipple(){return this._disableRipple}set disableRipple(C){this._disableRipple=(0,f.Ig)(C)}get disabled(){return this._disabled}set disabled(C){this._disabled=(0,f.Ig)(C)}}return u.\u0275fac=function(C){return new(C||u)},u.\u0275dir=e.lG2({type:u,hostVars:1,hostBindings:function(C,h){2&C&&e.uIk("aria-disabled",h.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}}),u})(),tt=(()=>{class u{constructor(C,h,o,n,t,i){this._elementRef=C,this._ngZone=h,this._listBase=o,this._platform=n,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new m.w0,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=t||{},this._hostElement=this._elementRef.nativeElement,this._noopAnimations="NoopAnimations"===i,o&&!o._isNonInteractive&&this._initInteractiveListItem(),"button"===this._hostElement.nodeName.toLowerCase()&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}set lines(C){this._explicitLines=(0,f.su)(C,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(C){this._disableRipple=(0,f.Ig)(C)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(C){this._disabled=(0,f.Ig)(C)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new S.IR(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add((0,M.T)(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(C){if(!this._lines||!this._titles||!this._unscopedContent)return;C&&this._checkDomForUnscopedTextContent();const h=this._explicitLines??this._inferLinesFromContent(),o=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",h<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",h<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===h),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===h),this._hasUnscopedTextContent){const n=0===this._titles.length&&1===h;o.classList.toggle("mdc-list-item__primary-text",n),o.classList.toggle("mdc-list-item__secondary-text",!n)}else o.classList.remove("mdc-list-item__primary-text"),o.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let C=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(C+=1),C}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(C=>C.nodeType!==C.COMMENT_NODE).some(C=>!(!C.textContent||!C.textContent.trim()))}}return u.\u0275fac=function(C){return new(C||u)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(Pe,8),e.Y36(A.t4),e.Y36(S.Y2,8),e.Y36(e.QbO,8))},u.\u0275dir=e.lG2({type:u,contentQueries:function(C,h,o){if(1&C&&(e.Suo(o,Me,4),e.Suo(o,ue,4)),2&C){let n;e.iGM(n=e.CRH())&&(h._avatars=n),e.iGM(n=e.CRH())&&(h._icons=n)}},hostVars:3,hostBindings:function(C,h){2&C&&(e.uIk("aria-disabled",h.disabled),e.ekj("mdc-list-item--disabled",h.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}}),u})(),pt=(()=>{class u extends Pe{}return u.\u0275fac=function(){let _;return function(h){return(_||(_=e.n5z(u)))(h||u)}}(),u.\u0275cmp=e.Xpm({type:u,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[e._Bn([{provide:Pe,useExisting:u}]),e.qOj],ngContentSelectors:j,decls:1,vars:0,template:function(C,h){1&C&&(e.F$t(),e.Hsn(0))},styles:['.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:24px;height:24px}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-image .mdc-list-item__start{width:56px;height:56px}.mdc-list-item--with-leading-video .mdc-list-item__start{width:100px;height:56px}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-radio .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-switch .mdc-list-item__start{width:36px;height:20px}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:24px;height:24px}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{width:40px;height:40px}.mdc-list-item--with-trailing-radio .mdc-list-item__end{width:40px;height:40px}.mdc-list-item--with-trailing-switch .mdc-list-item__end{width:36px;height:20px}.mdc-list-divider{height:1px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}'],encapsulation:2,changeDetection:0}),u})(),z=(()=>{class u extends tt{constructor(C,h,o,n,t,i){super(C,h,o,n,t,i),this._activated=!1}get activated(){return this._activated}set activated(C){this._activated=(0,f.Ig)(C)}_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}}return u.\u0275fac=function(C){return new(C||u)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(Pe,8),e.Y36(A.t4),e.Y36(S.Y2,8),e.Y36(e.QbO,8))},u.\u0275cmp=e.Xpm({type:u,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(C,h,o){if(1&C&&(e.Suo(o,U,5),e.Suo(o,N,5),e.Suo(o,X,5)),2&C){let n;e.iGM(n=e.CRH())&&(h._lines=n),e.iGM(n=e.CRH())&&(h._titles=n),e.iGM(n=e.CRH())&&(h._meta=n)}},viewQuery:function(C,h){if(1&C&&(e.Gf(_e,5),e.Gf(ge,5)),2&C){let o;e.iGM(o=e.CRH())&&(h._unscopedContent=o.first),e.iGM(o=e.CRH())&&(h._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:11,hostBindings:function(C,h){2&C&&(e.uIk("aria-current",h._getAriaCurrent()),e.ekj("mdc-list-item--activated",h.activated)("mdc-list-item--with-leading-avatar",0!==h._avatars.length)("mdc-list-item--with-leading-icon",0!==h._icons.length)("mdc-list-item--with-trailing-meta",0!==h._meta.length)("_mat-animation-noopable",h._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[e.qOj],ngContentSelectors:re,decls:10,vars:0,consts:[[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],["unscopedContent",""],[1,"mat-mdc-focus-indicator"]],template:function(C,h){1&C&&(e.F$t(pe),e.Hsn(0),e.TgZ(1,"span",0),e.Hsn(2,1),e.Hsn(3,2),e.TgZ(4,"span",1,2),e.NdJ("cdkObserveContent",function(){return h._updateItemLines(!0)}),e.Hsn(6,3),e.qZA()(),e.Hsn(7,4),e.Hsn(8,5),e._UZ(9,"div",3))},dependencies:[x.wD],encapsulation:2,changeDetection:0}),u})(),r=(()=>{class u{}return u.\u0275fac=function(C){return new(C||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[x.Q8,I.ez,S.BQ,S.si,S.us,F.t]}),u})()},28255:(Qe,ae,p)=>{"use strict";p.d(ae,{OP:()=>Fe,Tx:()=>ve,VK:()=>pt,p6:()=>He});var e=p(94650),f=p(12693),A=p(21281),S=p(29521),m=p(77579),M=p(56451),w=p(50727),x=p(39646),I=p(53101),F=p(68675),T=p(63900),H=p(95698),P=p(82722),J=p(39300),fe=p(91005),j=p(3238),$=p(36895),_e=p(84080),ge=p(37340),pe=p(40445),re=p(98184),v=p(83353),V=p(67376);const W=["mat-menu-item",""];function te(Oe,r){1&Oe&&(e.O4$(),e.TgZ(0,"svg",3),e._UZ(1,"polygon",4),e.qZA())}const ne=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],ye=["mat-icon, [matMenuItemIcon]","*"];function ze(Oe,r){if(1&Oe){const u=e.EpF();e.TgZ(0,"div",0),e.NdJ("keydown",function(C){e.CHM(u);const h=e.oxw();return e.KtG(h._handleKeydown(C))})("click",function(){e.CHM(u);const C=e.oxw();return e.KtG(C.closed.emit("click"))})("@transformMenu.start",function(C){e.CHM(u);const h=e.oxw();return e.KtG(h._onAnimationStart(C))})("@transformMenu.done",function(C){e.CHM(u);const h=e.oxw();return e.KtG(h._onAnimationDone(C))}),e.TgZ(1,"div",1),e.Hsn(2),e.qZA()()}if(2&Oe){const u=e.oxw();e.Q6J("id",u.panelId)("ngClass",u._classList)("@transformMenu",u._panelAnimationState),e.uIk("aria-label",u.ariaLabel||null)("aria-labelledby",u.ariaLabelledby||null)("aria-describedby",u.ariaDescribedby||null)}}const ke=["*"],$e=new e.OlP("MAT_MENU_PANEL"),Je=(0,j.Kr)((0,j.Id)(class{}));let Fe=(()=>{class Oe extends Je{constructor(u,_,C,h,o){super(),this._elementRef=u,this._document=_,this._focusMonitor=C,this._parentMenu=h,this._changeDetectorRef=o,this.role="menuitem",this._hovered=new m.x,this._focused=new m.x,this._highlighted=!1,this._triggersSubmenu=!1,h?.addItem?.(this)}focus(u,_){this._focusMonitor&&u?this._focusMonitor.focusVia(this._getHostElement(),u,_):this._getHostElement().focus(_),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(u){this.disabled&&(u.preventDefault(),u.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const u=this._elementRef.nativeElement.cloneNode(!0),_=u.querySelectorAll("mat-icon, .material-icons");for(let C=0;C<_.length;C++)_[C].remove();return u.textContent?.trim()||""}_setHighlighted(u){this._highlighted=u,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(u){this._triggersSubmenu=u,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return Oe.\u0275fac=function(u){return new(u||Oe)(e.Y36(e.SBq),e.Y36($.K0),e.Y36(f.tE),e.Y36($e,8),e.Y36(e.sBO))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator","mdc-list-item"],hostVars:8,hostBindings:function(u,_){1&u&&e.NdJ("click",function(h){return _._checkDisabled(h)})("mouseenter",function(){return _._handleMouseEnter()}),2&u&&(e.uIk("role",_.role)("tabindex",_._getTabIndex())("aria-disabled",_.disabled)("disabled",_.disabled||null),e.ekj("mat-mdc-menu-item-highlighted",_._highlighted)("mat-mdc-menu-item-submenu-trigger",_._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[e.qOj],attrs:W,ngContentSelectors:ye,decls:5,vars:3,consts:[[1,"mdc-list-item__primary-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(u,_){1&u&&(e.F$t(ne),e.Hsn(0),e.TgZ(1,"span",0),e.Hsn(2,1),e.qZA(),e._UZ(3,"div",1),e.YNc(4,te,2,0,"svg",2)),2&u&&(e.xp6(3),e.Q6J("matRippleDisabled",_.disableRipple||_.disabled)("matRippleTrigger",_._getHostElement()),e.xp6(1),e.Q6J("ngIf",_._triggersSubmenu))},dependencies:[$.O5,j.wG],encapsulation:2,changeDetection:0}),Oe})();const U=new e.OlP("MatMenuContent"),Me={transformMenu:(0,ge.X$)("transformMenu",[(0,ge.SB)("void",(0,ge.oB)({opacity:0,transform:"scale(0.8)"})),(0,ge.eR)("void => enter",(0,ge.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ge.oB)({opacity:1,transform:"scale(1)"}))),(0,ge.eR)("* => void",(0,ge.jt)("100ms 25ms linear",(0,ge.oB)({opacity:0})))]),fadeInItems:(0,ge.X$)("fadeInItems",[(0,ge.SB)("showing",(0,ge.oB)({opacity:1})),(0,ge.eR)("void => *",[(0,ge.oB)({opacity:0}),(0,ge.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let tt=0;const Ce=new e.OlP("mat-menu-default-options",{providedIn:"root",factory:function at(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Ue=(()=>{class Oe{constructor(u,_,C,h){this._elementRef=u,this._ngZone=_,this._defaultOptions=C,this._changeDetectorRef=h,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new e.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new m.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new e.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+tt++}get xPosition(){return this._xPosition}set xPosition(u){this._xPosition=u,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(u){this._yPosition=u,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(u){this._overlapTrigger=(0,A.Ig)(u)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(u){this._hasBackdrop=(0,A.Ig)(u)}set panelClass(u){const _=this._previousPanelClass;_&&_.length&&_.split(" ").forEach(C=>{this._classList[C]=!1}),this._previousPanelClass=u,u&&u.length&&(u.split(" ").forEach(C=>{this._classList[C]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(u){this.panelClass=u}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new f.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,F.O)(this._directDescendantItems),(0,T.w)(u=>(0,M.T)(...u.map(_=>_._focused)))).subscribe(u=>this._keyManager.updateActiveItem(u)),this._directDescendantItems.changes.subscribe(u=>{const _=this._keyManager;if("enter"===this._panelAnimationState&&_.activeItem?._hasFocus()){const C=u.toArray(),h=Math.max(0,Math.min(C.length-1,_.activeItemIndex||0));C[h]&&!C[h].disabled?_.setActiveItem(h):_.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,F.O)(this._directDescendantItems),(0,T.w)(_=>(0,M.T)(..._.map(C=>C._hovered))))}addItem(u){}removeItem(u){}_handleKeydown(u){const _=u.keyCode,C=this._keyManager;switch(_){case S.hY:(0,S.Vb)(u)||(u.preventDefault(),this.closed.emit("keydown"));break;case S.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case S.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(_===S.LH||_===S.JH)&&C.setFocusOrigin("keyboard"),void C.onKeydown(u)}u.stopPropagation()}focusFirstItem(u="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,H.q)(1)).subscribe(()=>{let _=null;if(this._directDescendantItems.length&&(_=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!_||!_.contains(document.activeElement)){const C=this._keyManager;C.setFocusOrigin(u).setFirstItemActive(),!C.activeItem&&_&&_.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(u){const _=Math.min(this._baseElevation+u,24),C=`${this._elevationPrefix}${_}`,h=Object.keys(this._classList).find(o=>o.startsWith(this._elevationPrefix));(!h||h===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[C]=!0,this._previousElevation=C)}setPositionClasses(u=this.xPosition,_=this.yPosition){const C=this._classList;C["mat-menu-before"]="before"===u,C["mat-menu-after"]="after"===u,C["mat-menu-above"]="above"===_,C["mat-menu-below"]="below"===_,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(u){this._animationDone.next(u),this._isAnimating=!1}_onAnimationStart(u){this._isAnimating=!0,"enter"===u.toState&&0===this._keyManager.activeItemIndex&&(u.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,F.O)(this._allItems)).subscribe(u=>{this._directDescendantItems.reset(u.filter(_=>_._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Oe.\u0275fac=function(u){return new(u||Oe)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(Ce),e.Y36(e.sBO))},Oe.\u0275dir=e.lG2({type:Oe,contentQueries:function(u,_,C){if(1&u&&(e.Suo(C,U,5),e.Suo(C,Fe,5),e.Suo(C,Fe,4)),2&u){let h;e.iGM(h=e.CRH())&&(_.lazyContent=h.first),e.iGM(h=e.CRH())&&(_._allItems=h),e.iGM(h=e.CRH())&&(_.items=h)}},viewQuery:function(u,_){if(1&u&&e.Gf(e.Rgc,5),2&u){let C;e.iGM(C=e.CRH())&&(_.templateRef=C.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Oe})(),pt=(()=>{class Oe extends Ue{constructor(u,_,C,h){super(u,_,C,h),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return Oe.\u0275fac=function(u){return new(u||Oe)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(Ce),e.Y36(e.sBO))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(u,_){2&u&&e.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[e._Bn([{provide:$e,useExisting:Oe}]),e.qOj],ngContentSelectors:ke,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(u,_){1&u&&(e.F$t(),e.YNc(0,ze,3,6,"ng-template"))},dependencies:[$.mk],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Me.transformMenu,Me.fadeInItems]},changeDetection:0}),Oe})();const z=new e.OlP("mat-menu-scroll-strategy"),be={provide:z,deps:[re.aV],useFactory:function st(Oe){return()=>Oe.scrollStrategies.reposition()}},Ye=(0,v.i$)({passive:!0});let Re=(()=>{class Oe{constructor(u,_,C,h,o,n,t,i,a){this._overlay=u,this._element=_,this._viewContainerRef=C,this._menuItemInstance=n,this._dir=t,this._focusMonitor=i,this._ngZone=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=w.w0.EMPTY,this._hoverSubscription=w.w0.EMPTY,this._menuCloseSubscription=w.w0.EMPTY,this._handleTouchStart=c=>{(0,f.yG)(c)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new e.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new e.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=h,this._parentMaterialMenu=o instanceof Ue?o:void 0,_.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ye)}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(u){this.menu=u}get menu(){return this._menu}set menu(u){u!==this._menu&&(this._menu=u,this._menuCloseSubscription.unsubscribe(),u&&(this._menuCloseSubscription=u.close.subscribe(_=>{this._destroyMenu(_),("click"===_||"tab"===_)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(_)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ye),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const u=this.menu;if(this._menuOpen||!u)return;const _=this._createOverlay(u),C=_.getConfig(),h=C.positionStrategy;this._setPosition(u,h),C.hasBackdrop=null==u.hasBackdrop?!this.triggersSubmenu():u.hasBackdrop,_.attach(this._getPortal(u)),u.lazyContent&&u.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(u),u instanceof Ue&&(u._startAnimation(),u._directDescendantItems.changes.pipe((0,P.R)(u.close)).subscribe(()=>{h.withLockedPosition(!1).reapplyLastPosition(),h.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(u,_){this._focusMonitor&&u?this._focusMonitor.focusVia(this._element,u,_):this._element.nativeElement.focus(_)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(u){if(!this._overlayRef||!this.menuOpen)return;const _=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===u||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,_ instanceof Ue?(_._resetAnimation(),_.lazyContent?_._animationDone.pipe((0,J.h)(C=>"void"===C.toState),(0,H.q)(1),(0,P.R)(_.lazyContent._attached)).subscribe({next:()=>_.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),_?.lazyContent?.detach())}_initMenu(u){u.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,u.direction=this.dir,this._setMenuElevation(u),u.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(u){if(u.setElevation){let _=0,C=u.parentMenu;for(;C;)_++,C=C.parentMenu;u.setElevation(_)}}_setIsMenuOpen(u){this._menuOpen=u,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(u)}_createOverlay(u){if(!this._overlayRef){const _=this._getOverlayConfig(u);this._subscribeToPositions(u,_.positionStrategy),this._overlayRef=this._overlay.create(_),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(u){return new re.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:u.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:u.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(u,_){u.setPositionClasses&&_.positionChanges.subscribe(C=>{const h="start"===C.connectionPair.overlayX?"after":"before",o="top"===C.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>u.setPositionClasses(h,o)):u.setPositionClasses(h,o)})}_setPosition(u,_){let[C,h]="before"===u.xPosition?["end","start"]:["start","end"],[o,n]="above"===u.yPosition?["bottom","top"]:["top","bottom"],[t,i]=[o,n],[a,c]=[C,h],l=0;if(this.triggersSubmenu()){if(c=C="before"===u.xPosition?"start":"end",h=a="end"===C?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const d=this._parentMaterialMenu.items.first;this._parentInnerPadding=d?d._getHostElement().offsetTop:0}l="bottom"===o?this._parentInnerPadding:-this._parentInnerPadding}}else u.overlapTrigger||(t="top"===o?"bottom":"top",i="top"===n?"bottom":"top");_.withPositions([{originX:C,originY:t,overlayX:a,overlayY:o,offsetY:l},{originX:h,originY:t,overlayX:c,overlayY:o,offsetY:l},{originX:C,originY:i,overlayX:a,overlayY:n,offsetY:-l},{originX:h,originY:i,overlayX:c,overlayY:n,offsetY:-l}])}_menuClosingActions(){const u=this._overlayRef.backdropClick(),_=this._overlayRef.detachments(),C=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,x.of)(),h=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,J.h)(o=>o!==this._menuItemInstance),(0,J.h)(()=>this._menuOpen)):(0,x.of)();return(0,M.T)(u,C,h,_)}_handleMousedown(u){(0,f.X6)(u)||(this._openedBy=0===u.button?"mouse":void 0,this.triggersSubmenu()&&u.preventDefault())}_handleKeydown(u){const _=u.keyCode;(_===S.K5||_===S.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(_===S.SV&&"ltr"===this.dir||_===S.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(u){this.triggersSubmenu()?(u.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,J.h)(u=>u===this._menuItemInstance&&!u.disabled),(0,fe.g)(0,I.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ue&&this.menu._isAnimating?this.menu._animationDone.pipe((0,H.q)(1),(0,fe.g)(0,I.E),(0,P.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(u){return(!this._portal||this._portal.templateRef!==u.templateRef)&&(this._portal=new _e.UE(u.templateRef,this._viewContainerRef)),this._portal}}return Oe.\u0275fac=function(u){return new(u||Oe)(e.Y36(re.aV),e.Y36(e.SBq),e.Y36(e.s_b),e.Y36(z),e.Y36($e,8),e.Y36(Fe,10),e.Y36(pe.Is,8),e.Y36(f.tE),e.Y36(e.R0b))},Oe.\u0275dir=e.lG2({type:Oe,hostVars:3,hostBindings:function(u,_){1&u&&e.NdJ("click",function(h){return _._handleClick(h)})("mousedown",function(h){return _._handleMousedown(h)})("keydown",function(h){return _._handleKeydown(h)}),2&u&&e.uIk("aria-haspopup",_.menu?"menu":null)("aria-expanded",_.menuOpen)("aria-controls",_.menuOpen?_.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),Oe})(),He=(()=>{class Oe extends Re{}return Oe.\u0275fac=function(){let r;return function(_){return(r||(r=e.n5z(Oe)))(_||Oe)}}(),Oe.\u0275dir=e.lG2({type:Oe,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[e.qOj]}),Oe})(),ve=(()=>{class Oe{}return Oe.\u0275fac=function(u){return new(u||Oe)},Oe.\u0275mod=e.oAB({type:Oe}),Oe.\u0275inj=e.cJS({providers:[be],imports:[$.ez,j.si,j.BQ,re.U8,V.ZD,j.BQ]}),Oe})()},98739:(Qe,ae,p)=>{"use strict";p.d(ae,{NW:()=>te,TU:()=>ne,Zf:()=>re,ye:()=>j});var e=p(36895),f=p(94650),A=p(77579),S=p(4859),m=p(84385),M=p(10266),w=p(3238),x=p(21281),I=p(59549);function F(ye,ze){if(1&ye&&(f.TgZ(0,"mat-option",19),f._uU(1),f.qZA()),2&ye){const ke=ze.$implicit;f.Q6J("value",ke),f.xp6(1),f.hij(" ",ke," ")}}function T(ye,ze){if(1&ye){const ke=f.EpF();f.TgZ(0,"mat-form-field",16)(1,"mat-select",17),f.NdJ("selectionChange",function(Je){f.CHM(ke);const Fe=f.oxw(2);return f.KtG(Fe._changePageSize(Je.value))}),f.YNc(2,F,2,2,"mat-option",18),f.qZA()()}if(2&ye){const ke=f.oxw(2);f.Q6J("appearance",ke._formFieldAppearance)("color",ke.color),f.xp6(1),f.Q6J("value",ke.pageSize)("disabled",ke.disabled)("aria-labelledby",ke._pageSizeLabelId)("panelClass",ke.selectConfig.panelClass||"")("disableOptionCentering",ke.selectConfig.disableOptionCentering),f.xp6(1),f.Q6J("ngForOf",ke._displayedPageSizeOptions)}}function H(ye,ze){if(1&ye&&(f.TgZ(0,"div",20),f._uU(1),f.qZA()),2&ye){const ke=f.oxw(2);f.xp6(1),f.Oqu(ke.pageSize)}}function P(ye,ze){if(1&ye&&(f.TgZ(0,"div",12)(1,"div",13),f._uU(2),f.qZA(),f.YNc(3,T,3,8,"mat-form-field",14),f.YNc(4,H,2,1,"div",15),f.qZA()),2&ye){const ke=f.oxw();f.xp6(1),f.s9C("id",ke._pageSizeLabelId),f.xp6(1),f.hij(" ",ke._intl.itemsPerPageLabel," "),f.xp6(1),f.Q6J("ngIf",ke._displayedPageSizeOptions.length>1),f.xp6(1),f.Q6J("ngIf",ke._displayedPageSizeOptions.length<=1)}}function J(ye,ze){if(1&ye){const ke=f.EpF();f.TgZ(0,"button",21),f.NdJ("click",function(){f.CHM(ke);const Je=f.oxw();return f.KtG(Je.firstPage())}),f.O4$(),f.TgZ(1,"svg",7),f._UZ(2,"path",22),f.qZA()()}if(2&ye){const ke=f.oxw();f.Q6J("matTooltip",ke._intl.firstPageLabel)("matTooltipDisabled",ke._previousButtonsDisabled())("matTooltipPosition","above")("disabled",ke._previousButtonsDisabled()),f.uIk("aria-label",ke._intl.firstPageLabel)}}function fe(ye,ze){if(1&ye){const ke=f.EpF();f.O4$(),f.kcU(),f.TgZ(0,"button",23),f.NdJ("click",function(){f.CHM(ke);const Je=f.oxw();return f.KtG(Je.lastPage())}),f.O4$(),f.TgZ(1,"svg",7),f._UZ(2,"path",24),f.qZA()()}if(2&ye){const ke=f.oxw();f.Q6J("matTooltip",ke._intl.lastPageLabel)("matTooltipDisabled",ke._nextButtonsDisabled())("matTooltipPosition","above")("disabled",ke._nextButtonsDisabled()),f.uIk("aria-label",ke._intl.lastPageLabel)}}let j=(()=>{class ye{constructor(){this.changes=new A.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(ke,$e,Je)=>{if(0==Je||0==$e)return`0 of ${Je}`;const Fe=ke*$e;return`${Fe+1} \u2013 ${Fe<(Je=Math.max(Je,0))?Math.min(Fe+$e,Je):Fe+$e} of ${Je}`}}}return ye.\u0275fac=function(ke){return new(ke||ye)},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();const _e={provide:j,deps:[[new f.FiY,new f.tp0,j]],useFactory:function $(ye){return ye||new j}},re=new f.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),v=(0,w.Id)((0,w.dB)(class{}));let V=(()=>{class ye extends v{constructor(ke,$e,Je){if(super(),this._intl=ke,this._changeDetectorRef=$e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new f.vpe,this._intlChanges=ke.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Je){const{pageSize:Fe,pageSizeOptions:Ve,hidePageSize:le,showFirstLastButtons:N}=Je;null!=Fe&&(this._pageSize=Fe),null!=Ve&&(this._pageSizeOptions=Ve),null!=le&&(this._hidePageSize=le),null!=N&&(this._showFirstLastButtons=N)}}get pageIndex(){return this._pageIndex}set pageIndex(ke){this._pageIndex=Math.max((0,x.su)(ke),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(ke){this._length=(0,x.su)(ke),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(ke){this._pageSize=Math.max((0,x.su)(ke),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(ke){this._pageSizeOptions=(ke||[]).map($e=>(0,x.su)($e)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(ke){this._hidePageSize=(0,x.Ig)(ke)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(ke){this._showFirstLastButtons=(0,x.Ig)(ke)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const ke=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(ke)}previousPage(){if(!this.hasPreviousPage())return;const ke=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(ke)}firstPage(){if(!this.hasPreviousPage())return;const ke=this.pageIndex;this.pageIndex=0,this._emitPageEvent(ke)}lastPage(){if(!this.hasNextPage())return;const ke=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(ke)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const ke=this.getNumberOfPages()-1;return this.pageIndexke-$e),this._changeDetectorRef.markForCheck())}_emitPageEvent(ke){this.page.emit({previousPageIndex:ke,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ye.\u0275fac=function(ke){f.$Z()},ye.\u0275dir=f.lG2({type:ye,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[f.qOj]}),ye})(),W=0,te=(()=>{class ye extends V{constructor(ke,$e,Je){super(ke,$e,Je),this._pageSizeLabelId="mat-paginator-page-size-label-"+W++,this._formFieldAppearance=Je?.formFieldAppearance||"outline"}}return ye.\u0275fac=function(ke){return new(ke||ye)(f.Y36(j),f.Y36(f.sBO),f.Y36(re,8))},ye.\u0275cmp=f.Xpm({type:ye,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[f.qOj],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(ke,$e){1&ke&&(f.TgZ(0,"div",0)(1,"div",1),f.YNc(2,P,5,4,"div",2),f.TgZ(3,"div",3)(4,"div",4),f._uU(5),f.qZA(),f.YNc(6,J,3,5,"button",5),f.TgZ(7,"button",6),f.NdJ("click",function(){return $e.previousPage()}),f.O4$(),f.TgZ(8,"svg",7),f._UZ(9,"path",8),f.qZA()(),f.kcU(),f.TgZ(10,"button",9),f.NdJ("click",function(){return $e.nextPage()}),f.O4$(),f.TgZ(11,"svg",7),f._UZ(12,"path",10),f.qZA()(),f.YNc(13,fe,3,5,"button",11),f.qZA()()()),2&ke&&(f.xp6(2),f.Q6J("ngIf",!$e.hidePageSize),f.xp6(3),f.hij(" ",$e._intl.getRangeLabel($e.pageIndex,$e.pageSize,$e.length)," "),f.xp6(1),f.Q6J("ngIf",$e.showFirstLastButtons),f.xp6(1),f.Q6J("matTooltip",$e._intl.previousPageLabel)("matTooltipDisabled",$e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",$e._previousButtonsDisabled()),f.uIk("aria-label",$e._intl.previousPageLabel),f.xp6(3),f.Q6J("matTooltip",$e._intl.nextPageLabel)("matTooltipDisabled",$e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",$e._nextButtonsDisabled()),f.uIk("aria-label",$e._intl.nextPageLabel),f.xp6(3),f.Q6J("ngIf",$e.showFirstLastButtons))},dependencies:[e.sg,e.O5,S.RK,I.KE,m.gD,w.ey,M.gM],styles:[".mat-mdc-paginator{display:block}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),ye})(),ne=(()=>{class ye{}return ye.\u0275fac=function(ke){return new(ke||ye)},ye.\u0275mod=f.oAB({type:ye}),ye.\u0275inj=f.cJS({providers:[_e],imports:[e.ez,S.ot,m.LD,M.AV]}),ye})()},73162:(Qe,ae,p)=>{"use strict";p.d(ae,{Cv:()=>F});var e=p(94650),A=(p(36895),p(3238));let F=(()=>{class T{}return T.\u0275fac=function(P){return new(P||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({imports:[A.BQ]}),T})()},51572:(Qe,ae,p)=>{"use strict";p.d(ae,{Cq:()=>J,Ou:()=>H});var e=p(94650),f=p(3238),A=p(21281),S=p(36895);const m=["determinateSpinner"];function M(fe,j){if(1&fe&&(e.O4$(),e.TgZ(0,"svg",11),e._UZ(1,"circle",12),e.qZA()),2&fe){const $=e.oxw();e.uIk("viewBox",$._viewBox()),e.xp6(1),e.Udp("stroke-dasharray",$._strokeCircumference(),"px")("stroke-dashoffset",$._strokeCircumference()/2,"px")("stroke-width",$._circleStrokeWidth(),"%"),e.uIk("r",$._circleRadius())}}const w=(0,f.pj)(class{constructor(fe){this._elementRef=fe}},"primary"),x=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function I(){return{diameter:F}}}),F=100;let H=(()=>{class fe extends w{constructor($,_e,ge){super($),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=F,this._noopAnimations="NoopAnimations"===_e&&!!ge&&!ge._forceAnimations,ge&&(ge.color&&(this.color=this.defaultColor=ge.color),ge.diameter&&(this.diameter=ge.diameter),ge.strokeWidth&&(this.strokeWidth=ge.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value($){this._value=Math.max(0,Math.min(100,(0,A.su)($)))}get diameter(){return this._diameter}set diameter($){this._diameter=(0,A.su)($)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth($){this._strokeWidth=(0,A.su)($)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const $=2*this._circleRadius()+this.strokeWidth;return`0 0 ${$} ${$}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return fe.\u0275fac=function($){return new($||fe)(e.Y36(e.SBq),e.Y36(e.QbO,8),e.Y36(x))},fe.\u0275cmp=e.Xpm({type:fe,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function($,_e){if(1&$&&e.Gf(m,5),2&$){let ge;e.iGM(ge=e.CRH())&&(_e._determinateCircle=ge.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:12,hostBindings:function($,_e){2&$&&(e.uIk("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===_e.mode?_e.value:null)("mode",_e.mode),e.Udp("width",_e.diameter,"px")("height",_e.diameter,"px"),e.ekj("_mat-animation-noopable",_e._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===_e.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function($,_e){if(1&$&&(e.YNc(0,M,2,8,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.O4$(),e.TgZ(4,"svg",3),e._UZ(5,"circle",4),e.qZA()(),e.kcU(),e.TgZ(6,"div",5)(7,"div",6)(8,"div",7),e.GkF(9,8),e.qZA(),e.TgZ(10,"div",9),e.GkF(11,8),e.qZA(),e.TgZ(12,"div",10),e.GkF(13,8),e.qZA()()()),2&$){const ge=e.MAs(1);e.xp6(4),e.uIk("viewBox",_e._viewBox()),e.xp6(1),e.Udp("stroke-dasharray",_e._strokeCircumference(),"px")("stroke-dashoffset",_e._strokeDashOffset(),"px")("stroke-width",_e._circleStrokeWidth(),"%"),e.uIk("r",_e._circleRadius()),e.xp6(4),e.Q6J("ngTemplateOutlet",ge),e.xp6(2),e.Q6J("ngTemplateOutlet",ge),e.xp6(2),e.Q6J("ngTemplateOutlet",ge)}},dependencies:[S.tP],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, transparent)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),fe})(),J=(()=>{class fe{}return fe.\u0275fac=function($){return new($||fe)},fe.\u0275mod=e.oAB({type:fe}),fe.\u0275inj=e.cJS({imports:[S.ez,f.BQ]}),fe})()},71948:(Qe,ae,p)=>{"use strict";p.d(ae,{Fk:()=>v,U0:()=>re,VQ:()=>pe});var e=p(94650),f=p(3238),A=p(12693),S=p(21281),m=p(95017),M=p(24006),w=p(36895);const x=["input"],I=["*"];let F=0;class T{constructor(W,te){this.source=W,this.value=te}}const H={provide:M.JU,useExisting:(0,e.Gpc)(()=>pe),multi:!0},P=new e.OlP("MatRadioGroup"),J=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function fe(){return{color:"accent"}}});let j=(()=>{class V{constructor(te){this._changeDetector=te,this._value=null,this._name="mat-radio-group-"+F++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(te){this._name=te,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(te){this._labelPosition="before"===te?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(te){this._value!==te&&(this._value=te,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(te){this._selected=te,this.value=te?te.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(te){this._disabled=(0,S.Ig)(te),this._markRadiosForCheck()}get required(){return this._required}set required(te){this._required=(0,S.Ig)(te),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(te=>{te.name=this.name,te._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(ne=>{ne.checked=this.value===ne.value,ne.checked&&(this._selected=ne)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new T(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(te=>te._markForCheck())}writeValue(te){this.value=te,this._changeDetector.markForCheck()}registerOnChange(te){this._controlValueAccessorChangeFn=te}registerOnTouched(te){this.onTouched=te}setDisabledState(te){this.disabled=te,this._changeDetector.markForCheck()}}return V.\u0275fac=function(te){return new(te||V)(e.Y36(e.sBO))},V.\u0275dir=e.lG2({type:V,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),V})();class ${constructor(W){this._elementRef=W}}const _e=(0,f.Kr)((0,f.sb)($));let ge=(()=>{class V extends _e{constructor(te,ne,ye,ze,ke,$e,Je,Fe){super(ne),this._changeDetector=ye,this._focusMonitor=ze,this._radioDispatcher=ke,this._providerOverride=Je,this._uniqueId="mat-radio-"+ ++F,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=te,this._noopAnimations="NoopAnimations"===$e,Fe&&(this.tabIndex=(0,S.su)(Fe,0))}get checked(){return this._checked}set checked(te){const ne=(0,S.Ig)(te);this._checked!==ne&&(this._checked=ne,ne&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!ne&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),ne&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(te){this._value!==te&&(this._value=te,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===te),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(te){this._labelPosition=te}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(te){this._setDisabled((0,S.Ig)(te))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(te){this._required=(0,S.Ig)(te)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(te){this._color=te}get inputId(){return`${this.id||this._uniqueId}-input`}focus(te,ne){ne?this._focusMonitor.focusVia(this._inputElement,ne,te):this._inputElement.nativeElement.focus(te)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((te,ne)=>{te!==this.id&&ne===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(te=>{!te&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new T(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(te){te.stopPropagation()}_onInputInteraction(te){if(te.stopPropagation(),!this.checked&&!this.disabled){const ne=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),ne&&this.radioGroup._emitChangeEvent())}}_setDisabled(te){this._disabled!==te&&(this._disabled=te,this._changeDetector.markForCheck())}_updateTabIndex(){const te=this.radioGroup;let ne;if(ne=te&&te.selected&&!this.disabled?te.selected===this?this.tabIndex:-1:this.tabIndex,ne!==this._previousTabIndex){const ye=this._inputElement?.nativeElement;ye&&(ye.setAttribute("tabindex",ne+""),this._previousTabIndex=ne)}}}return V.\u0275fac=function(te){e.$Z()},V.\u0275dir=e.lG2({type:V,viewQuery:function(te,ne){if(1&te&&e.Gf(x,5),2&te){let ye;e.iGM(ye=e.CRH())&&(ne._inputElement=ye.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]}),V})(),pe=(()=>{class V extends j{}return V.\u0275fac=function(){let W;return function(ne){return(W||(W=e.n5z(V)))(ne||V)}}(),V.\u0275dir=e.lG2({type:V,selectors:[["mat-radio-group"]],contentQueries:function(te,ne,ye){if(1&te&&e.Suo(ye,re,5),2&te){let ze;e.iGM(ze=e.CRH())&&(ne._radios=ze)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([H,{provide:P,useExisting:V}]),e.qOj]}),V})(),re=(()=>{class V extends ge{constructor(te,ne,ye,ze,ke,$e,Je,Fe){super(te,ne,ye,ze,ke,$e,Je,Fe)}}return V.\u0275fac=function(te){return new(te||V)(e.Y36(P,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(A.tE),e.Y36(m.A8),e.Y36(e.QbO,8),e.Y36(J,8),e.$8M("tabindex"))},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(te,ne){1&te&&e.NdJ("focus",function(){return ne._inputElement.nativeElement.focus()}),2&te&&(e.uIk("id",ne.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-primary","primary"===ne.color)("mat-accent","accent"===ne.color)("mat-warn","warn"===ne.color)("mat-mdc-radio-checked",ne.checked)("_mat-animation-noopable",ne._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:I,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[3,"for"]],template:function(te,ne){if(1&te&&(e.F$t(),e.TgZ(0,"div",0,1)(2,"div",2)(3,"div",3),e.NdJ("click",function(ze){return ne._onInputInteraction(ze)}),e.qZA(),e.TgZ(4,"input",4,5),e.NdJ("change",function(ze){return ne._onInputInteraction(ze)}),e.qZA(),e.TgZ(6,"div",6),e._UZ(7,"div",7)(8,"div",8),e.qZA(),e.TgZ(9,"div",9),e._UZ(10,"div",10),e.qZA()(),e.TgZ(11,"label",11),e.Hsn(12),e.qZA()()),2&te){const ye=e.MAs(1);e.ekj("mdc-form-field--align-end","before"==ne.labelPosition),e.xp6(2),e.ekj("mdc-radio--disabled",ne.disabled),e.xp6(2),e.Q6J("id",ne.inputId)("checked",ne.checked)("disabled",ne.disabled)("required",ne.required),e.uIk("name",ne.name)("value",ne.value)("aria-label",ne.ariaLabel)("aria-labelledby",ne.ariaLabelledby)("aria-describedby",ne.ariaDescribedby),e.xp6(5),e.Q6J("matRippleTrigger",ye)("matRippleDisabled",ne._isRippleDisabled())("matRippleCentered",!0),e.xp6(2),e.Q6J("for",ne.inputId)}},dependencies:[f.wG],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);right:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);left:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-mdc-radio-ripple-color, transparent)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0}),V})(),v=(()=>{class V{}return V.\u0275fac=function(te){return new(te||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({imports:[f.BQ,w.ez,f.si,f.BQ]}),V})()},84385:(Qe,ae,p)=>{"use strict";p.d(ae,{$L:()=>pt,LD:()=>st,gD:()=>z});var e=p(98184),f=p(36895),A=p(94650),S=p(3238),m=p(59549),M=p(67376),w=p(12693),x=p(40445),I=p(21281),F=p(95017),T=p(29521),H=p(24006),P=p(77579),J=p(49770),fe=p(56451),j=p(68675),$=p(63900),_e=p(95698),ge=p(39300),pe=p(54004),re=p(71884),v=p(82722),V=p(37340);const W=["trigger"],te=["panel"];function ne(be,Ye){if(1&be&&(A.TgZ(0,"span",10),A._uU(1),A.qZA()),2&be){const he=A.oxw();A.xp6(1),A.Oqu(he.placeholder)}}function ye(be,Ye){if(1&be&&(A.TgZ(0,"span",14),A._uU(1),A.qZA()),2&be){const he=A.oxw(2);A.xp6(1),A.Oqu(he.triggerValue)}}function ze(be,Ye){1&be&&A.Hsn(0,0,["*ngSwitchCase","true"])}function ke(be,Ye){if(1&be&&(A.TgZ(0,"span",11),A.YNc(1,ye,2,1,"span",12),A.YNc(2,ze,1,0,"ng-content",13),A.qZA()),2&be){const he=A.oxw();A.Q6J("ngSwitch",!!he.customTrigger),A.xp6(2),A.Q6J("ngSwitchCase",!0)}}function $e(be,Ye){if(1&be){const he=A.EpF();A.O4$(),A.kcU(),A.TgZ(0,"div",15,16),A.NdJ("@transformPanel.done",function(He){A.CHM(he);const ve=A.oxw();return A.KtG(ve._panelDoneAnimatingStream.next(He.toState))})("keydown",function(He){A.CHM(he);const ve=A.oxw();return A.KtG(ve._handleKeydown(He))}),A.Hsn(2,1),A.qZA()}if(2&be){const he=A.oxw();A.Gre("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",he._getPanelTheme(),""),A.Q6J("ngClass",he.panelClass)("@transformPanel","showing"),A.uIk("id",he.id+"-panel")("aria-multiselectable",he.multiple)("aria-label",he.ariaLabel||null)("aria-labelledby",he._getPanelAriaLabelledby())}}const Je=[[["mat-select-trigger"]],"*"],Fe=["mat-select-trigger","*"],Ve={transformPanelWrap:(0,V.X$)("transformPanelWrap",[(0,V.eR)("* => void",(0,V.IO)("@transformPanel",[(0,V.pV)()],{optional:!0}))]),transformPanel:(0,V.X$)("transformPanel",[(0,V.SB)("void",(0,V.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,V.eR)("void => showing",(0,V.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,V.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,V.eR)("* => void",(0,V.jt)("100ms linear",(0,V.oB)({opacity:0})))])};let X=0;const ce=new A.OlP("mat-select-scroll-strategy"),ue=new A.OlP("MAT_SELECT_CONFIG"),Pe={provide:ce,deps:[e.aV],useFactory:function Me(be){return()=>be.scrollStrategies.reposition()}},tt=new A.OlP("MatSelectTrigger");class Ce{constructor(Ye,he){this.source=Ye,this.value=he}}const at=(0,S.Kr)((0,S.sb)((0,S.Id)((0,S.FD)(class{constructor(be,Ye,he,Re,He){this._elementRef=be,this._defaultErrorStateMatcher=Ye,this._parentForm=he,this._parentFormGroup=Re,this.ngControl=He,this.stateChanges=new P.x}}))));let Ue=(()=>{class be extends at{constructor(he,Re,He,ve,Oe,r,u,_,C,h,o,n,t,i){super(Oe,ve,u,_,h),this._viewportRuler=he,this._changeDetectorRef=Re,this._ngZone=He,this._dir=r,this._parentFormField=C,this._liveAnnouncer=t,this._defaultOptions=i,this._panelOpen=!1,this._compareWith=(a,c)=>a===c,this._uid="mat-select-"+X++,this._triggerAriaLabelledBy=null,this._destroy=new P.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+X++,this._panelDoneAnimatingStream=new P.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,J.P)(()=>{const a=this.options;return a?a.changes.pipe((0,j.O)(a),(0,$.w)(()=>(0,fe.T)(...a.map(c=>c.onSelectionChange)))):this._ngZone.onStable.pipe((0,_e.q)(1),(0,$.w)(()=>this.optionSelectionChanges))}),this.openedChange=new A.vpe,this._openedStream=this.openedChange.pipe((0,ge.h)(a=>a),(0,pe.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,ge.h)(a=>!a),(0,pe.U)(()=>{})),this.selectionChange=new A.vpe,this.valueChange=new A.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=i?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=i.typeaheadDebounceInterval),this._scrollStrategyFactory=n,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(o)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(he){this._placeholder=he,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(H.kI.required)??!1}set required(he){this._required=(0,I.Ig)(he),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(he){this._multiple=(0,I.Ig)(he)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(he){this._disableOptionCentering=(0,I.Ig)(he)}get compareWith(){return this._compareWith}set compareWith(he){this._compareWith=he,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(he){this._assignValue(he)&&this._onChange(he)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(he){this._typeaheadDebounceInterval=(0,I.su)(he)}get id(){return this._id}set id(he){this._id=he||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new F.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,re.x)(),(0,v.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,v.R)(this._destroy)).subscribe(he=>{he.added.forEach(Re=>Re.select()),he.removed.forEach(Re=>Re.deselect())}),this.options.changes.pipe((0,j.O)(null),(0,v.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const he=this._getTriggerAriaLabelledby(),Re=this.ngControl;if(he!==this._triggerAriaLabelledBy){const He=this._elementRef.nativeElement;this._triggerAriaLabelledBy=he,he?He.setAttribute("aria-labelledby",he):He.removeAttribute("aria-labelledby")}Re&&(this._previousControl!==Re.control&&(void 0!==this._previousControl&&null!==Re.disabled&&Re.disabled!==this.disabled&&(this.disabled=Re.disabled),this._previousControl=Re.control),this.updateErrorState())}ngOnChanges(he){(he.disabled||he.userAriaDescribedBy)&&this.stateChanges.next(),he.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(he){this._assignValue(he)}registerOnChange(he){this._onChange=he}registerOnTouched(he){this._onTouched=he}setDisabledState(he){this.disabled=he,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const he=this._selectionModel.selected.map(Re=>Re.viewValue);return this._isRtl()&&he.reverse(),he.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(he){this.disabled||(this.panelOpen?this._handleOpenKeydown(he):this._handleClosedKeydown(he))}_handleClosedKeydown(he){const Re=he.keyCode,He=Re===T.JH||Re===T.LH||Re===T.oh||Re===T.SV,ve=Re===T.K5||Re===T.L_,Oe=this._keyManager;if(!Oe.isTyping()&&ve&&!(0,T.Vb)(he)||(this.multiple||he.altKey)&&He)he.preventDefault(),this.open();else if(!this.multiple){const r=this.selected;Oe.onKeydown(he);const u=this.selected;u&&r!==u&&this._liveAnnouncer.announce(u.viewValue,1e4)}}_handleOpenKeydown(he){const Re=this._keyManager,He=he.keyCode,ve=He===T.JH||He===T.LH,Oe=Re.isTyping();if(ve&&he.altKey)he.preventDefault(),this.close();else if(Oe||He!==T.K5&&He!==T.L_||!Re.activeItem||(0,T.Vb)(he))if(!Oe&&this._multiple&&He===T.A&&he.ctrlKey){he.preventDefault();const r=this.options.some(u=>!u.disabled&&!u.selected);this.options.forEach(u=>{u.disabled||(r?u.select():u.deselect())})}else{const r=Re.activeItemIndex;Re.onKeydown(he),this._multiple&&ve&&he.shiftKey&&Re.activeItem&&Re.activeItemIndex!==r&&Re.activeItem._selectViaInteraction()}else he.preventDefault(),Re.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,_e.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(he){if(this._selectionModel.selected.forEach(Re=>Re.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&he)Array.isArray(he),he.forEach(Re=>this._selectOptionByValue(Re)),this._sortValues();else{const Re=this._selectOptionByValue(he);Re?this._keyManager.updateActiveItem(Re):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(he){const Re=this.options.find(He=>{if(this._selectionModel.isSelected(He))return!1;try{return null!=He.value&&this._compareWith(He.value,he)}catch{return!1}});return Re&&this._selectionModel.select(Re),Re}_assignValue(he){return!!(he!==this._value||this._multiple&&Array.isArray(he))&&(this.options&&this._setSelectionByValue(he),this._value=he,!0)}_initKeyManager(){this._keyManager=new w.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const he=(0,fe.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,v.R)(he)).subscribe(Re=>{this._onSelect(Re.source,Re.isUserInput),Re.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,fe.T)(...this.options.map(Re=>Re._stateChanges)).pipe((0,v.R)(he)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(he,Re){const He=this._selectionModel.isSelected(he);null!=he.value||this._multiple?(He!==he.selected&&(he.selected?this._selectionModel.select(he):this._selectionModel.deselect(he)),Re&&this._keyManager.setActiveItem(he),this.multiple&&(this._sortValues(),Re&&this.focus())):(he.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(he.value)),He!==this._selectionModel.isSelected(he)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const he=this.options.toArray();this._selectionModel.sort((Re,He)=>this.sortComparator?this.sortComparator(Re,He,he):he.indexOf(Re)-he.indexOf(He)),this.stateChanges.next()}}_propagateChanges(he){let Re=null;Re=this.multiple?this.selected.map(He=>He.value):this.selected?this.selected.value:he,this._value=Re,this.valueChange.emit(Re),this._onChange(Re),this.selectionChange.emit(this._getChangeEvent(Re)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(he){this._elementRef.nativeElement.focus(he)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const he=this._parentFormField?.getLabelId();return this.ariaLabelledby?(he?he+" ":"")+this.ariaLabelledby:he}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const he=this._parentFormField?.getLabelId();let Re=(he?he+" ":"")+this._valueId;return this.ariaLabelledby&&(Re+=" "+this.ariaLabelledby),Re}_panelDoneAnimating(he){this.openedChange.emit(he)}setDescribedByIds(he){he.length?this._elementRef.nativeElement.setAttribute("aria-describedby",he.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return be.\u0275fac=function(he){return new(he||be)(A.Y36(M.rL),A.Y36(A.sBO),A.Y36(A.R0b),A.Y36(S.rD),A.Y36(A.SBq),A.Y36(x.Is,8),A.Y36(H.F,8),A.Y36(H.sg,8),A.Y36(m.G_,8),A.Y36(H.a5,10),A.$8M("tabindex"),A.Y36(ce),A.Y36(w.Kd),A.Y36(ue,8))},be.\u0275dir=A.lG2({type:be,viewQuery:function(he,Re){if(1&he&&(A.Gf(W,5),A.Gf(te,5),A.Gf(e.pI,5)),2&he){let He;A.iGM(He=A.CRH())&&(Re.trigger=He.first),A.iGM(He=A.CRH())&&(Re.panel=He.first),A.iGM(He=A.CRH())&&(Re._overlayDir=He.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[A.qOj,A.TTD]}),be})(),pt=(()=>{class be{}return be.\u0275fac=function(he){return new(he||be)},be.\u0275dir=A.lG2({type:be,selectors:[["mat-select-trigger"]],features:[A._Bn([{provide:tt,useExisting:be}])]}),be})(),z=(()=>{class be extends Ue{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}]}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,v.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(he){const Re=this.options.toArray()[he];if(Re){const He=this.panel.nativeElement,ve=(0,S.CB)(he,this.options,this.optionGroups),Oe=Re._getHostElement();He.scrollTop=0===he&&1===ve?0:(0,S.jH)(Oe.offsetTop,Oe.offsetHeight,He.scrollTop,He.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(he){return new Ce(this,he)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof e.xu?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}}return be.\u0275fac=function(){let Ye;return function(Re){return(Ye||(Ye=A.n5z(be)))(Re||be)}}(),be.\u0275cmp=A.Xpm({type:be,selectors:[["mat-select"]],contentQueries:function(he,Re,He){if(1&he&&(A.Suo(He,tt,5),A.Suo(He,S.ey,5),A.Suo(He,S.K7,5)),2&he){let ve;A.iGM(ve=A.CRH())&&(Re.customTrigger=ve.first),A.iGM(ve=A.CRH())&&(Re.options=ve),A.iGM(ve=A.CRH())&&(Re.optionGroups=ve)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(he,Re){1&he&&A.NdJ("keydown",function(ve){return Re._handleKeydown(ve)})("focus",function(){return Re._onFocus()})("blur",function(){return Re._onBlur()}),2&he&&(A.uIk("id",Re.id)("tabindex",Re.tabIndex)("aria-controls",Re.panelOpen?Re.id+"-panel":null)("aria-expanded",Re.panelOpen)("aria-label",Re.ariaLabel||null)("aria-required",Re.required.toString())("aria-disabled",Re.disabled.toString())("aria-invalid",Re.errorState)("aria-activedescendant",Re._getAriaActiveDescendant()),A.ekj("mat-mdc-select-disabled",Re.disabled)("mat-mdc-select-invalid",Re.errorState)("mat-mdc-select-required",Re.required)("mat-mdc-select-empty",Re.empty)("mat-mdc-select-multiple",Re.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[A._Bn([{provide:m.Eo,useExisting:be},{provide:S.HF,useExisting:be}]),A.qOj],ngContentSelectors:Fe,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(he,Re){if(1&he&&(A.F$t(Je),A.TgZ(0,"div",0,1),A.NdJ("click",function(){return Re.toggle()}),A.TgZ(3,"div",2),A.YNc(4,ne,2,1,"span",3),A.YNc(5,ke,3,2,"span",4),A.qZA(),A.TgZ(6,"div",5)(7,"div",6),A.O4$(),A.TgZ(8,"svg",7),A._UZ(9,"path",8),A.qZA()()()(),A.YNc(10,$e,3,9,"ng-template",9),A.NdJ("backdropClick",function(){return Re.close()})("attach",function(){return Re._onAttached()})("detach",function(){return Re.close()})),2&he){const He=A.MAs(1);A.uIk("aria-owns",Re.panelOpen?Re.id+"-panel":null),A.xp6(3),A.Q6J("ngSwitch",Re.empty),A.uIk("id",Re._valueId),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(1),A.Q6J("ngSwitchCase",!1),A.xp6(5),A.Q6J("cdkConnectedOverlayPanelClass",Re._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Re._scrollStrategy)("cdkConnectedOverlayOrigin",Re._preferredOverlayOrigin||He)("cdkConnectedOverlayOpen",Re.panelOpen)("cdkConnectedOverlayPositions",Re._positions)("cdkConnectedOverlayWidth",Re._overlayWidth)}},dependencies:[f.mk,f.RF,f.n9,f.ED,e.pI,e.xu],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Ve.transformPanel]},changeDetection:0}),be})(),st=(()=>{class be{}return be.\u0275fac=function(he){return new(he||be)},be.\u0275mod=A.oAB({type:be}),be.\u0275inj=A.cJS({providers:[Pe],imports:[f.ez,e.U8,S.Ng,S.BQ,M.ZD,m.lN,S.Ng,S.BQ]}),be})()},23267:(Qe,ae,p)=>{"use strict";p.d(ae,{JX:()=>tt,Rh:()=>Pe,SJ:()=>at,TM:()=>Ce});var e=p(67376),f=p(36895),A=p(94650),S=p(3238),m=p(12693),M=p(40445),w=p(21281),x=p(29521),I=p(83353),F=p(77579),T=p(54968),H=p(56451),P=p(39300),J=p(54004),fe=p(69718),j=p(82722),$=p(71884),_e=p(95698),ge=p(68675),pe=p(78372),re=p(37340);const v=["*"],V=["content"];function W(Ue,pt){if(1&Ue){const z=A.EpF();A.TgZ(0,"div",2),A.NdJ("click",function(){A.CHM(z);const be=A.oxw();return A.KtG(be._onBackdropClicked())}),A.qZA()}if(2&Ue){const z=A.oxw();A.ekj("mat-drawer-shown",z._isShowingBackdrop())}}function te(Ue,pt){1&Ue&&(A.TgZ(0,"mat-drawer-content"),A.Hsn(1,2),A.qZA())}const ne=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ye=["mat-drawer","mat-drawer-content","*"];function ze(Ue,pt){if(1&Ue){const z=A.EpF();A.TgZ(0,"div",2),A.NdJ("click",function(){A.CHM(z);const be=A.oxw();return A.KtG(be._onBackdropClicked())}),A.qZA()}if(2&Ue){const z=A.oxw();A.ekj("mat-drawer-shown",z._isShowingBackdrop())}}function ke(Ue,pt){1&Ue&&(A.TgZ(0,"mat-sidenav-content"),A.Hsn(1,2),A.qZA())}const $e=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Je=["mat-sidenav","mat-sidenav-content","*"],Ve={transformDrawer:(0,re.X$)("transform",[(0,re.SB)("open, open-instant",(0,re.oB)({transform:"none",visibility:"visible"})),(0,re.SB)("void",(0,re.oB)({"box-shadow":"none",visibility:"hidden"})),(0,re.eR)("void => open-instant",(0,re.jt)("0ms")),(0,re.eR)("void <=> open, open-instant => void",(0,re.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},N=new A.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function X(){return!1}}),U=new A.OlP("MAT_DRAWER_CONTAINER");let ce=(()=>{class Ue extends e.PQ{constructor(z,st,be,Ye,he){super(be,Ye,he),this._changeDetectorRef=z,this._container=st}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Ue.\u0275fac=function(z){return new(z||Ue)(A.Y36(A.sBO),A.Y36((0,A.Gpc)(()=>ue)),A.Y36(A.SBq),A.Y36(e.mF),A.Y36(A.R0b))},Ue.\u0275cmp=A.Xpm({type:Ue,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(z,st){2&z&&A.Udp("margin-left",st._container._contentMargins.left,"px")("margin-right",st._container._contentMargins.right,"px")},features:[A._Bn([{provide:e.PQ,useExisting:Ue}]),A.qOj],ngContentSelectors:v,decls:1,vars:0,template:function(z,st){1&z&&(A.F$t(),A.Hsn(0))},encapsulation:2,changeDetection:0}),Ue})(),Me=(()=>{class Ue{constructor(z,st,be,Ye,he,Re,He,ve){this._elementRef=z,this._focusTrapFactory=st,this._focusMonitor=be,this._platform=Ye,this._ngZone=he,this._interactivityChecker=Re,this._doc=He,this._container=ve,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new F.x,this._animationEnd=new F.x,this._animationState="void",this.openedChange=new A.vpe(!0),this._openedStream=this.openedChange.pipe((0,P.h)(Oe=>Oe),(0,J.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,P.h)(Oe=>Oe.fromState!==Oe.toState&&0===Oe.toState.indexOf("open")),(0,fe.h)(void 0)),this._closedStream=this.openedChange.pipe((0,P.h)(Oe=>!Oe),(0,J.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,P.h)(Oe=>Oe.fromState!==Oe.toState&&"void"===Oe.toState),(0,fe.h)(void 0)),this._destroyed=new F.x,this.onPositionChanged=new A.vpe,this._modeChanged=new F.x,this.openedChange.subscribe(Oe=>{Oe?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,T.R)(this._elementRef.nativeElement,"keydown").pipe((0,P.h)(Oe=>Oe.keyCode===x.hY&&!this.disableClose&&!(0,x.Vb)(Oe)),(0,j.R)(this._destroyed)).subscribe(Oe=>this._ngZone.run(()=>{this.close(),Oe.stopPropagation(),Oe.preventDefault()}))}),this._animationEnd.pipe((0,$.x)((Oe,r)=>Oe.fromState===r.fromState&&Oe.toState===r.toState)).subscribe(Oe=>{const{fromState:r,toState:u}=Oe;(0===u.indexOf("open")&&"void"===r||"void"===u&&0===r.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(z){(z="end"===z?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(z),this._position=z,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(z){this._mode=z,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(z){this._disableClose=(0,w.Ig)(z)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(z){("true"===z||"false"===z||null==z)&&(z=(0,w.Ig)(z)),this._autoFocus=z}get opened(){return this._opened}set opened(z){this.toggle((0,w.Ig)(z))}_forceFocus(z,st){this._interactivityChecker.isFocusable(z)||(z.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const be=()=>{z.removeEventListener("blur",be),z.removeEventListener("mousedown",be),z.removeAttribute("tabindex")};z.addEventListener("blur",be),z.addEventListener("mousedown",be)})),z.focus(st)}_focusByCssSelector(z,st){let be=this._elementRef.nativeElement.querySelector(z);be&&this._forceFocus(be,st)}_takeFocus(){if(!this._focusTrap)return;const z=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(st=>{!st&&"function"==typeof this._elementRef.nativeElement.focus&&z.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(z){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,z):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const z=this._doc.activeElement;return!!z&&this._elementRef.nativeElement.contains(z)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(z){return this.toggle(!0,z)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(z=!this.opened,st){z&&st&&(this._openedVia=st);const be=this._setOpen(z,!z&&this._isFocusWithinDrawer(),this._openedVia||"program");return z||(this._openedVia=null),be}_setOpen(z,st,be){return this._opened=z,z?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",st&&this._restoreFocus(be)),this._updateFocusTrapState(),new Promise(Ye=>{this.openedChange.pipe((0,_e.q)(1)).subscribe(he=>Ye(he?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(z){const st=this._elementRef.nativeElement,be=st.parentNode;"end"===z?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),be.insertBefore(this._anchor,st)),be.appendChild(st)):this._anchor&&this._anchor.parentNode.insertBefore(st,this._anchor)}}return Ue.\u0275fac=function(z){return new(z||Ue)(A.Y36(A.SBq),A.Y36(m.qV),A.Y36(m.tE),A.Y36(I.t4),A.Y36(A.R0b),A.Y36(m.ic),A.Y36(f.K0,8),A.Y36(U,8))},Ue.\u0275cmp=A.Xpm({type:Ue,selectors:[["mat-drawer"]],viewQuery:function(z,st){if(1&z&&A.Gf(V,5),2&z){let be;A.iGM(be=A.CRH())&&(st._content=be.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(z,st){1&z&&A.WFA("@transform.start",function(Ye){return st._animationStarted.next(Ye)})("@transform.done",function(Ye){return st._animationEnd.next(Ye)}),2&z&&(A.uIk("align",null),A.d8E("@transform",st._animationState),A.ekj("mat-drawer-end","end"===st.position)("mat-drawer-over","over"===st.mode)("mat-drawer-push","push"===st.mode)("mat-drawer-side","side"===st.mode)("mat-drawer-opened",st.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:v,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(z,st){1&z&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[Ve.transformDrawer]},changeDetection:0}),Ue})(),ue=(()=>{class Ue{constructor(z,st,be,Ye,he,Re=!1,He){this._dir=z,this._element=st,this._ngZone=be,this._changeDetectorRef=Ye,this._animationMode=He,this._drawers=new A.n_E,this.backdropClick=new A.vpe,this._destroyed=new F.x,this._doCheckSubject=new F.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new F.x,z&&z.change.pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),he.change().pipe((0,j.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Re}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(z){this._autosize=(0,w.Ig)(z)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(z){this._backdropOverride=null==z?null:(0,w.Ig)(z)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,ge.O)(this._allDrawers),(0,j.R)(this._destroyed)).subscribe(z=>{this._drawers.reset(z.filter(st=>!st._container||st._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,ge.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(z=>{this._watchDrawerToggle(z),this._watchDrawerPosition(z),this._watchDrawerMode(z)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,pe.b)(10),(0,j.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(z=>z.open())}close(){this._drawers.forEach(z=>z.close())}updateContentMargins(){let z=0,st=0;if(this._left&&this._left.opened)if("side"==this._left.mode)z+=this._left._getWidth();else if("push"==this._left.mode){const be=this._left._getWidth();z+=be,st-=be}if(this._right&&this._right.opened)if("side"==this._right.mode)st+=this._right._getWidth();else if("push"==this._right.mode){const be=this._right._getWidth();st+=be,z-=be}z=z||null,st=st||null,(z!==this._contentMargins.left||st!==this._contentMargins.right)&&(this._contentMargins={left:z,right:st},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(z){z._animationStarted.pipe((0,P.h)(st=>st.fromState!==st.toState),(0,j.R)(this._drawers.changes)).subscribe(st=>{"open-instant"!==st.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==z.mode&&z.openedChange.pipe((0,j.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(z.opened))}_watchDrawerPosition(z){z&&z.onPositionChanged.pipe((0,j.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,_e.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(z){z&&z._modeChanged.pipe((0,j.R)((0,H.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(z){const st=this._element.nativeElement.classList,be="mat-drawer-container-has-open";z?st.add(be):st.remove(be)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(z=>{"end"==z.position?this._end=z:this._start=z}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(z=>z&&!z.disableClose&&this._canHaveBackdrop(z)).forEach(z=>z._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(z){return"side"!==z.mode||!!this._backdropOverride}_isDrawerOpen(z){return null!=z&&z.opened}}return Ue.\u0275fac=function(z){return new(z||Ue)(A.Y36(M.Is,8),A.Y36(A.SBq),A.Y36(A.R0b),A.Y36(A.sBO),A.Y36(e.rL),A.Y36(N),A.Y36(A.QbO,8))},Ue.\u0275cmp=A.Xpm({type:Ue,selectors:[["mat-drawer-container"]],contentQueries:function(z,st,be){if(1&z&&(A.Suo(be,ce,5),A.Suo(be,Me,5)),2&z){let Ye;A.iGM(Ye=A.CRH())&&(st._content=Ye.first),A.iGM(Ye=A.CRH())&&(st._allDrawers=Ye)}},viewQuery:function(z,st){if(1&z&&A.Gf(ce,5),2&z){let be;A.iGM(be=A.CRH())&&(st._userContent=be.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(z,st){2&z&&A.ekj("mat-drawer-container-explicit-backdrop",st._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[A._Bn([{provide:U,useExisting:Ue}])],ngContentSelectors:ye,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(z,st){1&z&&(A.F$t(ne),A.YNc(0,W,1,2,"div",0),A.Hsn(1),A.Hsn(2,1),A.YNc(3,te,2,0,"mat-drawer-content",1)),2&z&&(A.Q6J("ngIf",st.hasBackdrop),A.xp6(3),A.Q6J("ngIf",!st._content))},dependencies:[f.O5,ce],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),Ue})(),Pe=(()=>{class Ue extends ce{constructor(z,st,be,Ye,he){super(z,st,be,Ye,he)}}return Ue.\u0275fac=function(z){return new(z||Ue)(A.Y36(A.sBO),A.Y36((0,A.Gpc)(()=>Ce)),A.Y36(A.SBq),A.Y36(e.mF),A.Y36(A.R0b))},Ue.\u0275cmp=A.Xpm({type:Ue,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(z,st){2&z&&A.Udp("margin-left",st._container._contentMargins.left,"px")("margin-right",st._container._contentMargins.right,"px")},features:[A._Bn([{provide:e.PQ,useExisting:Ue}]),A.qOj],ngContentSelectors:v,decls:1,vars:0,template:function(z,st){1&z&&(A.F$t(),A.Hsn(0))},encapsulation:2,changeDetection:0}),Ue})(),tt=(()=>{class Ue extends Me{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(z){this._fixedInViewport=(0,w.Ig)(z)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(z){this._fixedTopGap=(0,w.su)(z)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(z){this._fixedBottomGap=(0,w.su)(z)}}return Ue.\u0275fac=function(){let pt;return function(st){return(pt||(pt=A.n5z(Ue)))(st||Ue)}}(),Ue.\u0275cmp=A.Xpm({type:Ue,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(z,st){2&z&&(A.uIk("align",null),A.Udp("top",st.fixedInViewport?st.fixedTopGap:null,"px")("bottom",st.fixedInViewport?st.fixedBottomGap:null,"px"),A.ekj("mat-drawer-end","end"===st.position)("mat-drawer-over","over"===st.mode)("mat-drawer-push","push"===st.mode)("mat-drawer-side","side"===st.mode)("mat-drawer-opened",st.opened)("mat-sidenav-fixed",st.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[A.qOj],ngContentSelectors:v,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(z,st){1&z&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[Ve.transformDrawer]},changeDetection:0}),Ue})(),Ce=(()=>{class Ue extends ue{}return Ue.\u0275fac=function(){let pt;return function(st){return(pt||(pt=A.n5z(Ue)))(st||Ue)}}(),Ue.\u0275cmp=A.Xpm({type:Ue,selectors:[["mat-sidenav-container"]],contentQueries:function(z,st,be){if(1&z&&(A.Suo(be,Pe,5),A.Suo(be,tt,5)),2&z){let Ye;A.iGM(Ye=A.CRH())&&(st._content=Ye.first),A.iGM(Ye=A.CRH())&&(st._allDrawers=Ye)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(z,st){2&z&&A.ekj("mat-drawer-container-explicit-backdrop",st._backdropOverride)},exportAs:["matSidenavContainer"],features:[A._Bn([{provide:U,useExisting:Ue}]),A.qOj],ngContentSelectors:Je,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(z,st){1&z&&(A.F$t($e),A.YNc(0,ze,1,2,"div",0),A.Hsn(1),A.Hsn(2,1),A.YNc(3,ke,2,0,"mat-sidenav-content",1)),2&z&&(A.Q6J("ngIf",st.hasBackdrop),A.xp6(3),A.Q6J("ngIf",!st._content))},dependencies:[f.O5,Pe],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),Ue})(),at=(()=>{class Ue{}return Ue.\u0275fac=function(z){return new(z||Ue)},Ue.\u0275mod=A.oAB({type:Ue}),Ue.\u0275inj=A.cJS({imports:[f.ez,S.BQ,e.ZD,e.ZD,S.BQ]}),Ue})()},90455:(Qe,ae,p)=>{"use strict";p.d(ae,{Rr:()=>fe,rP:()=>ge});var e=p(94650),f=p(24006),A=p(12693),S=p(3238),m=p(21281),M=p(36895);const w=["switch"],x=["*"],I=new e.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),F={provide:f.JU,useExisting:(0,e.Gpc)(()=>fe),multi:!0};class T{constructor(re,v){this.source=re,this.checked=v}}let H=0;const P=(0,S.sb)((0,S.pj)((0,S.Kr)((0,S.Id)(class{constructor(pe){this._elementRef=pe}}))));let J=(()=>{class pe extends P{constructor(v,V,W,te,ne,ye,ze){super(v),this._focusMonitor=V,this._changeDetectorRef=W,this.defaults=ne,this._onChange=ke=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new e.vpe,this.toggleChange=new e.vpe,this.tabIndex=parseInt(te)||0,this.color=this.defaultColor=ne.color||"accent",this._noopAnimations="NoopAnimations"===ye,this.id=this._uniqueId=`${ze}${++H}`}get required(){return this._required}set required(v){this._required=(0,m.Ig)(v)}get checked(){return this._checked}set checked(v){this._checked=(0,m.Ig)(v),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(v=>{"keyboard"===v||"program"===v?(this._focused=!0,this._changeDetectorRef.markForCheck()):v||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(v){this.checked=!!v}registerOnChange(v){this._onChange=v}registerOnTouched(v){this._onTouched=v}setDisabledState(v){this.disabled=v,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return pe.\u0275fac=function(v){e.$Z()},pe.\u0275dir=e.lG2({type:pe,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[e.qOj]}),pe})(),fe=(()=>{class pe extends J{constructor(v,V,W,te,ne,ye){super(v,V,W,te,ne,ye,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}get buttonId(){return`${this.id||this._uniqueId}-button`}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new T(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(v){return new T(this,v)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return pe.\u0275fac=function(v){return new(v||pe)(e.Y36(e.SBq),e.Y36(A.tE),e.Y36(e.sBO),e.$8M("tabindex"),e.Y36(I),e.Y36(e.QbO,8))},pe.\u0275cmp=e.Xpm({type:pe,selectors:[["mat-slide-toggle"]],viewQuery:function(v,V){if(1&v&&e.Gf(w,5),2&v){let W;e.iGM(W=e.CRH())&&(V._switchElement=W.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(v,V){2&v&&(e.Ikx("id",V.id),e.uIk("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),e.ekj("mat-mdc-slide-toggle-focused",V._focused)("mat-mdc-slide-toggle-checked",V.checked)("_mat-animation-noopable",V._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[e._Bn([F]),e.qOj],ngContentSelectors:x,decls:17,vars:24,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"],[3,"for","click"]],template:function(v,V){if(1&v&&(e.F$t(),e.TgZ(0,"div",0)(1,"button",1,2),e.NdJ("click",function(){return V._handleClick()}),e._UZ(3,"div",3),e.TgZ(4,"div",4)(5,"div",5)(6,"div",6),e._UZ(7,"div",7),e.qZA(),e.TgZ(8,"div",8),e._UZ(9,"div",9),e.qZA(),e.TgZ(10,"div",10),e.O4$(),e.TgZ(11,"svg",11),e._UZ(12,"path",12),e.qZA(),e.TgZ(13,"svg",13),e._UZ(14,"path",14),e.qZA()()()()(),e.kcU(),e.TgZ(15,"label",15),e.NdJ("click",function(te){return te.stopPropagation()}),e.Hsn(16),e.qZA()()),2&v){const W=e.MAs(2);e.ekj("mdc-form-field--align-end","before"==V.labelPosition),e.xp6(1),e.ekj("mdc-switch--selected",V.checked)("mdc-switch--unselected",!V.checked)("mdc-switch--checked",V.checked)("mdc-switch--disabled",V.disabled),e.Q6J("tabIndex",V.tabIndex)("disabled",V.disabled),e.uIk("id",V.buttonId)("name",V.name)("aria-label",V.ariaLabel)("aria-labelledby",V._getAriaLabelledBy())("aria-describedby",V.ariaDescribedby)("aria-required",V.required||null)("aria-checked",V.checked),e.xp6(8),e.Q6J("matRippleTrigger",W)("matRippleDisabled",V.disableRipple||V.disabled)("matRippleCentered",!0),e.xp6(6),e.Q6J("for",V.buttonId),e.uIk("id",V._labelId)}},dependencies:[S.wG],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mdc-switch{width:var(--mdc-switch-track-width, 36px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, #616161)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color, var(--mdc-theme-surface, #fff))}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__focus-ring-wrapper,.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height, 20px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape, 10px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width, 20px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width, 20px))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 18px);height:var(--mdc-switch-selected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 18px);height:var(--mdc-switch-unselected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size, 48px);width:var(--mdc-switch-state-layer-size, 48px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height, 14px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape, 7px)}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}'],encapsulation:2,changeDetection:0}),pe})(),_e=(()=>{class pe{}return pe.\u0275fac=function(v){return new(v||pe)},pe.\u0275mod=e.oAB({type:pe}),pe.\u0275inj=e.cJS({}),pe})(),ge=(()=>{class pe{}return pe.\u0275fac=function(v){return new(v||pe)},pe.\u0275mod=e.oAB({type:pe}),pe.\u0275inj=e.cJS({imports:[_e,S.BQ,S.si,M.ez,_e,S.BQ]}),pe})()},17009:(Qe,ae,p)=>{"use strict";p.d(ae,{ZX:()=>v});var e=p(94650),f=p(36895),A=p(4859),m=(p(37340),p(84080)),M=p(98184),w=p(3238);let v=(()=>{class ye{}return ye.\u0275fac=function(ke){return new(ke||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[M.U8,m.eL,f.ez,A.ot,w.BQ,w.BQ]}),ye})()},96308:(Qe,ae,p)=>{"use strict";p.d(ae,{JX:()=>ze,YE:()=>ge,nU:()=>ye});var e=p(94650),f=p(12693),A=p(21281),S=p(29521),m=p(3238),M=p(77579),w=p(56451),x=p(37340),I=p(36895);const F=["mat-sort-header",""];function T(ke,$e){if(1&ke){const Je=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){e.CHM(Je);const Ve=e.oxw();return e.KtG(Ve._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){e.CHM(Je);const Ve=e.oxw();return e.KtG(Ve._disableViewStateAnimation=!1)}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6)(4,"div",7)(5,"div",8),e.qZA()()}if(2&ke){const Je=e.oxw();e.Q6J("@arrowOpacity",Je._getArrowViewState())("@arrowPosition",Je._getArrowViewState())("@allowChildren",Je._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",Je._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",Je._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",Je._getArrowDirectionState())}}const H=["*"],$=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),_e=(0,m.dB)((0,m.Id)(class{}));let ge=(()=>{class ke extends _e{constructor(Je){super(),this._defaultOptions=Je,this.sortables=new Map,this._stateChanges=new M.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(Je){this._direction=Je}get disableClear(){return this._disableClear}set disableClear(Je){this._disableClear=(0,A.Ig)(Je)}register(Je){this.sortables.set(Je.id,Je)}deregister(Je){this.sortables.delete(Je.id)}sort(Je){this.active!=Je.id?(this.active=Je.id,this.direction=Je.start?Je.start:this.start):this.direction=this.getNextSortDirection(Je),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(Je){if(!Je)return"";let Ve=function pe(ke,$e){let Je=["asc","desc"];return"desc"==ke&&Je.reverse(),$e||Je.push(""),Je}(Je.start||this.start,Je?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),le=Ve.indexOf(this.direction)+1;return le>=Ve.length&&(le=0),Ve[le]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return ke.\u0275fac=function(Je){return new(Je||ke)(e.Y36($,8))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),ke})();const re=m.mZ.ENTERING+" "+m.yN.STANDARD_CURVE,v={indicator:(0,x.X$)("indicator",[(0,x.SB)("active-asc, asc",(0,x.oB)({transform:"translateY(0px)"})),(0,x.SB)("active-desc, desc",(0,x.oB)({transform:"translateY(10px)"})),(0,x.eR)("active-asc <=> active-desc",(0,x.jt)(re))]),leftPointer:(0,x.X$)("leftPointer",[(0,x.SB)("active-asc, asc",(0,x.oB)({transform:"rotate(-45deg)"})),(0,x.SB)("active-desc, desc",(0,x.oB)({transform:"rotate(45deg)"})),(0,x.eR)("active-asc <=> active-desc",(0,x.jt)(re))]),rightPointer:(0,x.X$)("rightPointer",[(0,x.SB)("active-asc, asc",(0,x.oB)({transform:"rotate(45deg)"})),(0,x.SB)("active-desc, desc",(0,x.oB)({transform:"rotate(-45deg)"})),(0,x.eR)("active-asc <=> active-desc",(0,x.jt)(re))]),arrowOpacity:(0,x.X$)("arrowOpacity",[(0,x.SB)("desc-to-active, asc-to-active, active",(0,x.oB)({opacity:1})),(0,x.SB)("desc-to-hint, asc-to-hint, hint",(0,x.oB)({opacity:.54})),(0,x.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,x.oB)({opacity:0})),(0,x.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,x.jt)("0ms")),(0,x.eR)("* <=> *",(0,x.jt)(re))]),arrowPosition:(0,x.X$)("arrowPosition",[(0,x.eR)("* => desc-to-hint, * => desc-to-active",(0,x.jt)(re,(0,x.F4)([(0,x.oB)({transform:"translateY(-25%)"}),(0,x.oB)({transform:"translateY(0)"})]))),(0,x.eR)("* => hint-to-desc, * => active-to-desc",(0,x.jt)(re,(0,x.F4)([(0,x.oB)({transform:"translateY(0)"}),(0,x.oB)({transform:"translateY(25%)"})]))),(0,x.eR)("* => asc-to-hint, * => asc-to-active",(0,x.jt)(re,(0,x.F4)([(0,x.oB)({transform:"translateY(25%)"}),(0,x.oB)({transform:"translateY(0)"})]))),(0,x.eR)("* => hint-to-asc, * => active-to-asc",(0,x.jt)(re,(0,x.F4)([(0,x.oB)({transform:"translateY(0)"}),(0,x.oB)({transform:"translateY(-25%)"})]))),(0,x.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,x.oB)({transform:"translateY(0)"})),(0,x.SB)("hint-to-desc, active-to-desc, desc",(0,x.oB)({transform:"translateY(-25%)"})),(0,x.SB)("hint-to-asc, active-to-asc, asc",(0,x.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,x.X$)("allowChildren",[(0,x.eR)("* <=> *",[(0,x.IO)("@*",(0,x.pV)(),{optional:!0})])])};let V=(()=>{class ke{constructor(){this.changes=new M.x}}return ke.\u0275fac=function(Je){return new(Je||ke)},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const te={provide:V,deps:[[new e.FiY,new e.tp0,V]],useFactory:function W(ke){return ke||new V}},ne=(0,m.Id)(class{});let ye=(()=>{class ke extends ne{constructor(Je,Fe,Ve,le,N,U,X,ce){super(),this._intl=Je,this._changeDetectorRef=Fe,this._sort=Ve,this._columnDef=le,this._focusMonitor=N,this._elementRef=U,this._ariaDescriber=X,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",ce?.arrowPosition&&(this.arrowPosition=ce?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(Je){this._updateSortActionDescription(Je)}get disableClear(){return this._disableClear}set disableClear(Je){this._disableClear=(0,A.Ig)(Je)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Je=>{const Fe=!!Je;Fe!==this._showIndicatorHint&&(this._setIndicatorHintVisible(Fe),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(Je){this._isDisabled()&&Je||(this._showIndicatorHint=Je,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(Je){this._viewState=Je||{},this._disableViewStateAnimation&&(this._viewState={toState:Je.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(Je){!this._isDisabled()&&(Je.keyCode===S.L_||Je.keyCode===S.K5)&&(Je.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const Je=this._viewState.fromState;return(Je?`${Je}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(Je){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,Je)),this._sortActionDescription=Je}_handleStateChanges(){this._rerenderSubscription=(0,w.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return ke.\u0275fac=function(Je){return new(Je||ke)(e.Y36(V),e.Y36(e.sBO),e.Y36(ge,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(f.tE),e.Y36(e.SBq),e.Y36(f.$s,8),e.Y36($,8))},ke.\u0275cmp=e.Xpm({type:ke,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(Je,Fe){1&Je&&e.NdJ("click",function(){return Fe._handleClick()})("keydown",function(le){return Fe._handleKeydown(le)})("mouseenter",function(){return Fe._setIndicatorHintVisible(!0)})("mouseleave",function(){return Fe._setIndicatorHintVisible(!1)}),2&Je&&(e.uIk("aria-sort",Fe._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",Fe._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:F,ngContentSelectors:H,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(Je,Fe){1&Je&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,T,6,6,"div",2),e.qZA()),2&Je&&(e.ekj("mat-sort-header-sorted",Fe._isSorted())("mat-sort-header-position-before","before"===Fe.arrowPosition),e.uIk("tabindex",Fe._isDisabled()?null:0)("role",Fe._isDisabled()?null:"button"),e.xp6(3),e.Q6J("ngIf",Fe._renderArrow()))},dependencies:[I.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[v.indicator,v.leftPointer,v.rightPointer,v.arrowOpacity,v.arrowPosition,v.allowChildren]},changeDetection:0}),ke})(),ze=(()=>{class ke{}return ke.\u0275fac=function(Je){return new(Je||ke)},ke.\u0275mod=e.oAB({type:ke}),ke.\u0275inj=e.cJS({providers:[te],imports:[I.ez,m.BQ]}),ke})()},86257:(Qe,ae,p)=>{"use strict";p.d(ae,{C0:()=>l,BY:()=>c,VY:()=>r,Vq:()=>d,T5:()=>B,fd:()=>E});var e=p(84080),f=p(12693),A=p(40445),S=p(21281),m=p(29521),M=p(94650),w=p(83353),x=p(77579),I=p(39646),F=p(68675),T=p(82722);function H(q,qe){1&q&&M.Hsn(0)}const P=["*"];let J=(()=>{class q{constructor(it){this._elementRef=it}focus(){this._elementRef.nativeElement.focus()}}return q.\u0275fac=function(it){return new(it||q)(M.Y36(M.SBq))},q.\u0275dir=M.lG2({type:q,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),q})(),fe=(()=>{class q{constructor(it){this.template=it}}return q.\u0275fac=function(it){return new(it||q)(M.Y36(M.Rgc))},q.\u0275dir=M.lG2({type:q,selectors:[["","cdkStepLabel",""]]}),q})(),j=0;const ge=new M.OlP("STEPPER_GLOBAL_OPTIONS");let pe=(()=>{class q{constructor(it,xt){this._stepper=it,this.interacted=!1,this.interactedStream=new M.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=xt||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(it){this._editable=(0,S.Ig)(it)}get optional(){return this._optional}set optional(it){this._optional=(0,S.Ig)(it)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(it){this._completedOverride=(0,S.Ig)(it)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(it){this._customError=(0,S.Ig)(it)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return q.\u0275fac=function(it){return new(it||q)(M.Y36((0,M.Gpc)(()=>re)),M.Y36(ge,8))},q.\u0275cmp=M.Xpm({type:q,selectors:[["cdk-step"]],contentQueries:function(it,xt,ht){if(1&it&&M.Suo(ht,fe,5),2&it){let _t;M.iGM(_t=M.CRH())&&(xt.stepLabel=_t.first)}},viewQuery:function(it,xt){if(1&it&&M.Gf(M.Rgc,7),2&it){let ht;M.iGM(ht=M.CRH())&&(xt.content=ht.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[M.TTD],ngContentSelectors:P,decls:1,vars:0,template:function(it,xt){1&it&&(M.F$t(),M.YNc(0,H,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),q})(),re=(()=>{class q{constructor(it,xt,ht){this._dir=it,this._changeDetectorRef=xt,this._elementRef=ht,this._destroyed=new x.x,this.steps=new M.n_E,this._sortedHeaders=new M.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new M.vpe,this._orientation="horizontal",this._groupId=j++}get linear(){return this._linear}set linear(it){this._linear=(0,S.Ig)(it)}get selectedIndex(){return this._selectedIndex}set selectedIndex(it){const xt=(0,S.su)(it);this.steps&&this._steps?(this._isValidIndex(xt),this.selected?._markAsInteracted(),this._selectedIndex!==xt&&!this._anyControlsInvalidOrPending(xt)&&(xt>=this._selectedIndex||this.steps.toArray()[xt].editable)&&this._updateSelectedItemIndex(xt)):this._selectedIndex=xt}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(it){this.selectedIndex=it&&this.steps?this.steps.toArray().indexOf(it):-1}get orientation(){return this._orientation}set orientation(it){this._orientation=it,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===it)}ngAfterContentInit(){this._steps.changes.pipe((0,F.O)(this._steps),(0,T.R)(this._destroyed)).subscribe(it=>{this.steps.reset(it.filter(xt=>xt._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,F.O)(this._stepHeader),(0,T.R)(this._destroyed)).subscribe(it=>{this._sortedHeaders.reset(it.toArray().sort((xt,ht)=>xt._elementRef.nativeElement.compareDocumentPosition(ht._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new f.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,I.of)()).pipe((0,F.O)(this._layoutDirection()),(0,T.R)(this._destroyed)).subscribe(it=>this._keyManager.withHorizontalOrientation(it)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(it=>it.reset()),this._stateChanged()}_getStepLabelId(it){return`cdk-step-label-${this._groupId}-${it}`}_getStepContentId(it){return`cdk-step-content-${this._groupId}-${it}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(it){const xt=it-this._selectedIndex;return xt<0?"rtl"===this._layoutDirection()?"next":"previous":xt>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(it,xt="number"){const ht=this.steps.toArray()[it],_t=this._isCurrentStep(it);return ht._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(ht,_t):this._getGuidelineLogic(ht,_t,xt)}_getDefaultIndicatorLogic(it,xt){return it._showError()&&it.hasError&&!xt?"error":!it.completed||xt?"number":it.editable?"edit":"done"}_getGuidelineLogic(it,xt,ht="number"){return it._showError()&&it.hasError&&!xt?"error":it.completed&&!xt?"done":it.completed&&xt?ht:it.editable&&xt?"edit":ht}_isCurrentStep(it){return this._selectedIndex===it}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(it){const xt=this.steps.toArray();this.selectionChange.emit({selectedIndex:it,previouslySelectedIndex:this._selectedIndex,selectedStep:xt[it],previouslySelectedStep:xt[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(it):this._keyManager.updateActiveItem(it),this._selectedIndex=it,this._stateChanged()}_onKeydown(it){const xt=(0,m.Vb)(it),ht=it.keyCode,_t=this._keyManager;null==_t.activeItemIndex||xt||ht!==m.L_&&ht!==m.K5?_t.setFocusOrigin("keyboard").onKeydown(it):(this.selectedIndex=_t.activeItemIndex,it.preventDefault())}_anyControlsInvalidOrPending(it){return!!(this._linear&&it>=0)&&this.steps.toArray().slice(0,it).some(xt=>{const ht=xt.stepControl;return(ht?ht.invalid||ht.pending||!xt.interacted:!xt.completed)&&!xt.optional&&!xt._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const it=this._elementRef.nativeElement,xt=(0,w.ht)();return it===xt||it.contains(xt)}_isValidIndex(it){return it>-1&&(!this.steps||it{class q{constructor(it){this._stepper=it,this.type="button"}}return q.\u0275fac=function(it){return new(it||q)(M.Y36(re))},q.\u0275dir=M.lG2({type:q,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(it,xt){1&it&&M.NdJ("click",function(){return xt._stepper.previous()}),2&it&&M.Ikx("type",xt.type)},inputs:{type:"type"}}),q})(),W=(()=>{class q{}return q.\u0275fac=function(it){return new(it||q)},q.\u0275mod=M.oAB({type:q}),q.\u0275inj=M.cJS({imports:[A.vT]}),q})();var te=p(36895),ne=p(3238),ye=p(97392),ze=p(50727),ke=p(63900),$e=p(54004),Je=p(71884),Fe=p(37340);function Ve(q,qe){if(1&q&&M.GkF(0,8),2&q){const it=M.oxw();M.Q6J("ngTemplateOutlet",it.iconOverrides[it.state])("ngTemplateOutletContext",it._getIconContext())}}function le(q,qe){if(1&q&&(M.TgZ(0,"span",13),M._uU(1),M.qZA()),2&q){const it=M.oxw(2);M.xp6(1),M.Oqu(it._getDefaultTextForState(it.state))}}function N(q,qe){if(1&q&&(M.TgZ(0,"span",14),M._uU(1),M.qZA()),2&q){const it=M.oxw(2);M.xp6(1),M.Oqu(it._intl.completedLabel)}}function U(q,qe){if(1&q&&(M.TgZ(0,"span",14),M._uU(1),M.qZA()),2&q){const it=M.oxw(2);M.xp6(1),M.Oqu(it._intl.editableLabel)}}function X(q,qe){if(1&q&&(M.TgZ(0,"mat-icon",13),M._uU(1),M.qZA()),2&q){const it=M.oxw(2);M.xp6(1),M.Oqu(it._getDefaultTextForState(it.state))}}function ce(q,qe){if(1&q&&(M.ynx(0,9),M.YNc(1,le,2,1,"span",10),M.YNc(2,N,2,1,"span",11),M.YNc(3,U,2,1,"span",11),M.YNc(4,X,2,1,"mat-icon",12),M.BQk()),2&q){const it=M.oxw();M.Q6J("ngSwitch",it.state),M.xp6(1),M.Q6J("ngSwitchCase","number"),M.xp6(1),M.Q6J("ngIf","done"===it.state),M.xp6(1),M.Q6J("ngIf","edit"===it.state)}}function Me(q,qe){if(1&q&&(M.TgZ(0,"div",15),M.GkF(1,16),M.qZA()),2&q){const it=M.oxw();M.xp6(1),M.Q6J("ngTemplateOutlet",it._templateLabel().template)}}function ue(q,qe){if(1&q&&(M.TgZ(0,"div",15),M._uU(1),M.qZA()),2&q){const it=M.oxw();M.xp6(1),M.Oqu(it.label)}}function Pe(q,qe){if(1&q&&(M.TgZ(0,"div",17),M._uU(1),M.qZA()),2&q){const it=M.oxw();M.xp6(1),M.Oqu(it._intl.optionalLabel)}}function tt(q,qe){if(1&q&&(M.TgZ(0,"div",18),M._uU(1),M.qZA()),2&q){const it=M.oxw();M.xp6(1),M.Oqu(it.errorMessage)}}function Ce(q,qe){}function at(q,qe){if(1&q&&(M.Hsn(0),M.YNc(1,Ce,0,0,"ng-template",0)),2&q){const it=M.oxw();M.xp6(1),M.Q6J("cdkPortalOutlet",it._portal)}}const Ue=["*"];function pt(q,qe){1&q&&M._UZ(0,"div",11)}const z=function(q,qe){return{step:q,i:qe}};function st(q,qe){if(1&q&&(M.ynx(0),M.GkF(1,9),M.YNc(2,pt,1,0,"div",10),M.BQk()),2&q){const it=qe.$implicit,xt=qe.index,ht=qe.last;M.oxw(2);const _t=M.MAs(4);M.xp6(1),M.Q6J("ngTemplateOutlet",_t)("ngTemplateOutletContext",M.WLB(3,z,it,xt)),M.xp6(1),M.Q6J("ngIf",!ht)}}const be=function(q){return{animationDuration:q}},Ye=function(q,qe){return{value:q,params:qe}};function he(q,qe){if(1&q){const it=M.EpF();M.TgZ(0,"div",12),M.NdJ("@horizontalStepTransition.done",function(ht){M.CHM(it);const _t=M.oxw(2);return M.KtG(_t._animationDone.next(ht))}),M.GkF(1,13),M.qZA()}if(2&q){const it=qe.$implicit,xt=qe.index,ht=M.oxw(2);M.ekj("mat-horizontal-stepper-content-inactive",ht.selectedIndex!==xt),M.Q6J("@horizontalStepTransition",M.WLB(8,Ye,ht._getAnimationDirection(xt),M.VKq(6,be,ht._getAnimationDuration())))("id",ht._getStepContentId(xt)),M.uIk("aria-labelledby",ht._getStepLabelId(xt)),M.xp6(1),M.Q6J("ngTemplateOutlet",it.content)}}function Re(q,qe){if(1&q&&(M.TgZ(0,"div",4)(1,"div",5),M.YNc(2,st,3,6,"ng-container",6),M.qZA(),M.TgZ(3,"div",7),M.YNc(4,he,2,11,"div",8),M.qZA()()),2&q){const it=M.oxw();M.xp6(2),M.Q6J("ngForOf",it.steps),M.xp6(2),M.Q6J("ngForOf",it.steps)}}function He(q,qe){if(1&q){const it=M.EpF();M.TgZ(0,"div",15),M.GkF(1,9),M.TgZ(2,"div",16)(3,"div",17),M.NdJ("@verticalStepTransition.done",function(ht){M.CHM(it);const _t=M.oxw(2);return M.KtG(_t._animationDone.next(ht))}),M.TgZ(4,"div",18),M.GkF(5,13),M.qZA()()()()}if(2&q){const it=qe.$implicit,xt=qe.index,ht=qe.last,_t=M.oxw(2),Ee=M.MAs(4);M.xp6(1),M.Q6J("ngTemplateOutlet",Ee)("ngTemplateOutletContext",M.WLB(10,z,it,xt)),M.xp6(1),M.ekj("mat-stepper-vertical-line",!ht),M.xp6(1),M.ekj("mat-vertical-stepper-content-inactive",_t.selectedIndex!==xt),M.Q6J("@verticalStepTransition",M.WLB(15,Ye,_t._getAnimationDirection(xt),M.VKq(13,be,_t._getAnimationDuration())))("id",_t._getStepContentId(xt)),M.uIk("aria-labelledby",_t._getStepLabelId(xt)),M.xp6(2),M.Q6J("ngTemplateOutlet",it.content)}}function ve(q,qe){if(1&q&&(M.ynx(0),M.YNc(1,He,6,18,"div",14),M.BQk()),2&q){const it=M.oxw();M.xp6(1),M.Q6J("ngForOf",it.steps)}}function Oe(q,qe){if(1&q){const it=M.EpF();M.TgZ(0,"mat-step-header",19),M.NdJ("click",function(){const _t=M.CHM(it).step;return M.KtG(_t.select())})("keydown",function(ht){M.CHM(it);const _t=M.oxw();return M.KtG(_t._onKeydown(ht))}),M.qZA()}if(2&q){const it=qe.step,xt=qe.i,ht=M.oxw();M.ekj("mat-horizontal-stepper-header","horizontal"===ht.orientation)("mat-vertical-stepper-header","vertical"===ht.orientation),M.Q6J("tabIndex",ht._getFocusIndex()===xt?0:-1)("id",ht._getStepLabelId(xt))("index",xt)("state",ht._getIndicatorType(xt,it.state))("label",it.stepLabel||it.label)("selected",ht.selectedIndex===xt)("active",ht._stepIsNavigable(xt,it))("optional",it.optional)("errorMessage",it.errorMessage)("iconOverrides",ht._iconOverrides)("disableRipple",ht.disableRipple||!ht._stepIsNavigable(xt,it))("color",it.color||ht.color),M.uIk("aria-posinset",xt+1)("aria-setsize",ht.steps.length)("aria-controls",ht._getStepContentId(xt))("aria-selected",ht.selectedIndex==xt)("aria-label",it.ariaLabel||null)("aria-labelledby",!it.ariaLabel&&it.ariaLabelledby?it.ariaLabelledby:null)("aria-disabled",!ht._stepIsNavigable(xt,it)||null)}}let r=(()=>{class q extends fe{}return q.\u0275fac=function(){let qe;return function(xt){return(qe||(qe=M.n5z(q)))(xt||q)}}(),q.\u0275dir=M.lG2({type:q,selectors:[["","matStepLabel",""]],features:[M.qOj]}),q})(),u=(()=>{class q{constructor(){this.changes=new x.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return q.\u0275fac=function(it){return new(it||q)},q.\u0275prov=M.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"}),q})();const C={provide:u,deps:[[new M.FiY,new M.tp0,u]],useFactory:function _(q){return q||new u}},h=(0,ne.pj)(class extends J{constructor(qe){super(qe)}},"primary");let o=(()=>{class q extends h{constructor(it,xt,ht,_t){super(ht),this._intl=it,this._focusMonitor=xt,this._intlSubscription=it.changes.subscribe(()=>_t.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(it,xt){it?this._focusMonitor.focusVia(this._elementRef,it,xt):this._elementRef.nativeElement.focus(xt)}_stringLabel(){return this.label instanceof r?null:this.label}_templateLabel(){return this.label instanceof r?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(it){return"number"==it?`${this.index+1}`:"edit"==it?"create":"error"==it?"warning":it}}return q.\u0275fac=function(it){return new(it||q)(M.Y36(u),M.Y36(f.tE),M.Y36(M.SBq),M.Y36(M.sBO))},q.\u0275cmp=M.Xpm({type:q,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[M.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(it,xt){1&it&&(M._UZ(0,"div",0),M.TgZ(1,"div")(2,"div",1),M.YNc(3,Ve,1,2,"ng-container",2),M.YNc(4,ce,5,4,"ng-container",3),M.qZA()(),M.TgZ(5,"div",4),M.YNc(6,Me,2,1,"div",5),M.YNc(7,ue,2,1,"div",5),M.YNc(8,Pe,2,1,"div",6),M.YNc(9,tt,2,1,"div",7),M.qZA()),2&it&&(M.Q6J("matRippleTrigger",xt._getHostElement())("matRippleDisabled",xt.disableRipple),M.xp6(1),M.Gre("mat-step-icon-state-",xt.state," mat-step-icon"),M.ekj("mat-step-icon-selected",xt.selected),M.xp6(1),M.Q6J("ngSwitch",!(!xt.iconOverrides||!xt.iconOverrides[xt.state])),M.xp6(1),M.Q6J("ngSwitchCase",!0),M.xp6(2),M.ekj("mat-step-label-active",xt.active)("mat-step-label-selected",xt.selected)("mat-step-label-error","error"==xt.state),M.xp6(1),M.Q6J("ngIf",xt._templateLabel()),M.xp6(1),M.Q6J("ngIf",xt._stringLabel()),M.xp6(1),M.Q6J("ngIf",xt.optional&&"error"!=xt.state),M.xp6(1),M.Q6J("ngIf","error"==xt.state))},dependencies:[te.O5,te.tP,te.RF,te.n9,te.ED,ye.Hw,ne.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),q})();const n="500ms",t="225ms",i={horizontalStepTransition:(0,Fe.X$)("horizontalStepTransition",[(0,Fe.SB)("previous",(0,Fe.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Fe.SB)("current",(0,Fe.oB)({transform:"none",visibility:"inherit"})),(0,Fe.SB)("next",(0,Fe.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Fe.eR)("* => *",(0,Fe.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:n}})]),verticalStepTransition:(0,Fe.X$)("verticalStepTransition",[(0,Fe.SB)("previous",(0,Fe.oB)({height:"0px",visibility:"hidden"})),(0,Fe.SB)("next",(0,Fe.oB)({height:"0px",visibility:"hidden"})),(0,Fe.SB)("current",(0,Fe.oB)({height:"*",visibility:"inherit"})),(0,Fe.eR)("* <=> current",(0,Fe.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:t}})])};let a=(()=>{class q{constructor(it){this.templateRef=it}}return q.\u0275fac=function(it){return new(it||q)(M.Y36(M.Rgc))},q.\u0275dir=M.lG2({type:q,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),q})(),c=(()=>{class q{constructor(it){this._template=it}}return q.\u0275fac=function(it){return new(it||q)(M.Y36(M.Rgc))},q.\u0275dir=M.lG2({type:q,selectors:[["ng-template","matStepContent",""]]}),q})(),l=(()=>{class q extends pe{constructor(it,xt,ht,_t){super(it,_t),this._errorStateMatcher=xt,this._viewContainerRef=ht,this._isSelected=ze.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,ke.w)(()=>this._stepper.selectionChange.pipe((0,$e.U)(it=>it.selectedStep===this),(0,F.O)(this._stepper.selected===this)))).subscribe(it=>{it&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(it,xt){return this._errorStateMatcher.isErrorState(it,xt)||!!(it&&it.invalid&&this.interacted)}}return q.\u0275fac=function(it){return new(it||q)(M.Y36((0,M.Gpc)(()=>d)),M.Y36(ne.rD,4),M.Y36(M.s_b),M.Y36(ge,8))},q.\u0275cmp=M.Xpm({type:q,selectors:[["mat-step"]],contentQueries:function(it,xt,ht){if(1&it&&(M.Suo(ht,r,5),M.Suo(ht,c,5)),2&it){let _t;M.iGM(_t=M.CRH())&&(xt.stepLabel=_t.first),M.iGM(_t=M.CRH())&&(xt._lazyContent=_t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[M._Bn([{provide:ne.rD,useExisting:q},{provide:pe,useExisting:q}]),M.qOj],ngContentSelectors:Ue,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(it,xt){1&it&&(M.F$t(),M.YNc(0,at,2,1,"ng-template"))},dependencies:[e.Pl],encapsulation:2,changeDetection:0}),q})(),d=(()=>{class q extends re{constructor(it,xt,ht){super(it,xt,ht),this.steps=new M.n_E,this.animationDone=new M.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new x.x,this._animationDuration="";const _t=ht.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===_t?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(it){this._animationDuration=/^\d+$/.test(it)?it+"ms":it}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:it,templateRef:xt})=>this._iconOverrides[it]=xt),this.steps.changes.pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,Je.x)((it,xt)=>it.fromState===xt.fromState&&it.toState===xt.toState),(0,T.R)(this._destroyed)).subscribe(it=>{"current"===it.toState&&this.animationDone.emit()})}_stepIsNavigable(it,xt){return xt.completed||this.selectedIndex===it||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?n:t}}return q.\u0275fac=function(it){return new(it||q)(M.Y36(A.Is,8),M.Y36(M.sBO),M.Y36(M.SBq))},q.\u0275cmp=M.Xpm({type:q,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(it,xt,ht){if(1&it&&(M.Suo(ht,l,5),M.Suo(ht,a,5)),2&it){let _t;M.iGM(_t=M.CRH())&&(xt._steps=_t),M.iGM(_t=M.CRH())&&(xt._icons=_t)}},viewQuery:function(it,xt){if(1&it&&M.Gf(o,5),2&it){let ht;M.iGM(ht=M.CRH())&&(xt._stepHeader=ht)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(it,xt){2&it&&(M.uIk("aria-orientation",xt.orientation),M.ekj("mat-stepper-horizontal","horizontal"===xt.orientation)("mat-stepper-vertical","vertical"===xt.orientation)("mat-stepper-label-position-end","horizontal"===xt.orientation&&"end"==xt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===xt.orientation&&"bottom"==xt.labelPosition)("mat-stepper-header-position-bottom","bottom"===xt.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[M._Bn([{provide:re,useExisting:q}]),M.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(it,xt){1&it&&(M.ynx(0,0),M.YNc(1,Re,5,2,"div",1),M.YNc(2,ve,2,1,"ng-container",2),M.BQk(),M.YNc(3,Oe,1,23,"ng-template",null,3,M.W1O)),2&it&&(M.Q6J("ngSwitch",xt.orientation),M.xp6(1),M.Q6J("ngSwitchCase","horizontal"),M.xp6(1),M.Q6J("ngSwitchCase","vertical"))},dependencies:[te.sg,te.O5,te.tP,te.RF,te.n9,o],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[i.horizontalStepTransition,i.verticalStepTransition]},changeDetection:0}),q})(),E=(()=>{class q extends V{}return q.\u0275fac=function(){let qe;return function(xt){return(qe||(qe=M.n5z(q)))(xt||q)}}(),q.\u0275dir=M.lG2({type:q,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(it,xt){2&it&&M.Ikx("type",xt.type)},inputs:{type:"type"},features:[M.qOj]}),q})(),B=(()=>{class q{}return q.\u0275fac=function(it){return new(it||q)},q.\u0275mod=M.oAB({type:q}),q.\u0275inj=M.cJS({providers:[C,ne.rD],imports:[ne.BQ,te.ez,e.eL,W,ye.Ps,ne.si,ne.BQ]}),q})()},30671:(Qe,ae,p)=>{"use strict";p.d(ae,{ev:()=>ai,Dz:()=>Te,w1:()=>Ht,ge:()=>Mt,fO:()=>ut,XQ:()=>Se,as:()=>pi,Gk:()=>oe,nj:()=>Tt,BZ:()=>Ae,by:()=>Di,p0:()=>yt});var e=p(94650),f=p(40445),A=p(21281),S=p(95017),m=p(83353),M=p(67376),w=p(36895),x=p(77579),I=p(32076),F=p(61135),T=p(45191),H=p(39646),P=p(82722),J=p(95698);const fe=[[["caption"]],[["colgroup"],["col"]]],j=["caption","colgroup, col"];function ge(At){return class extends At{constructor(...Nt){super(...Nt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Nt){const ft=this._sticky;this._sticky=(0,A.Ig)(Nt),this._hasStickyChanged=ft!==this._sticky}hasStickyChanged(){const Nt=this._hasStickyChanged;return this._hasStickyChanged=!1,Nt}resetStickyChanged(){this._hasStickyChanged=!1}}}const pe=new e.OlP("CDK_TABLE");let v=(()=>{class At{constructor(ft){this.template=ft}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(e.Rgc))},At.\u0275dir=e.lG2({type:At,selectors:[["","cdkCellDef",""]]}),At})(),V=(()=>{class At{constructor(ft){this.template=ft}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(e.Rgc))},At.\u0275dir=e.lG2({type:At,selectors:[["","cdkHeaderCellDef",""]]}),At})(),W=(()=>{class At{constructor(ft){this.template=ft}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(e.Rgc))},At.\u0275dir=e.lG2({type:At,selectors:[["","cdkFooterCellDef",""]]}),At})();class te{}const ne=ge(te);let ye=(()=>{class At extends ne{constructor(ft){super(),this._table=ft,this._stickyEnd=!1}get name(){return this._name}set name(ft){this._setNameInput(ft)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ft){const Bt=this._stickyEnd;this._stickyEnd=(0,A.Ig)(ft),this._hasStickyChanged=Bt!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ft){ft&&(this._name=ft,this.cssClassFriendlyName=ft.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(pe,8))},At.\u0275dir=e.lG2({type:At,selectors:[["","cdkColumnDef",""]],contentQueries:function(ft,Bt,Kt){if(1&ft&&(e.Suo(Kt,v,5),e.Suo(Kt,V,5),e.Suo(Kt,W,5)),2&ft){let ii;e.iGM(ii=e.CRH())&&(Bt.cell=ii.first),e.iGM(ii=e.CRH())&&(Bt.headerCell=ii.first),e.iGM(ii=e.CRH())&&(Bt.footerCell=ii.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:At}]),e.qOj]}),At})();class ze{constructor(Nt,ft){ft.nativeElement.classList.add(...Nt._columnCssClassName)}}let ke=(()=>{class At extends ze{constructor(ft,Bt){super(ft,Bt)}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(ye),e.Y36(e.SBq))},At.\u0275dir=e.lG2({type:At,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),At})(),Je=(()=>{class At extends ze{constructor(ft,Bt){if(super(ft,Bt),1===ft._table?._elementRef.nativeElement.nodeType){const Kt=ft._table._elementRef.nativeElement.getAttribute("role");Bt.nativeElement.setAttribute("role","grid"===Kt||"treegrid"===Kt?"gridcell":"cell")}}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(ye),e.Y36(e.SBq))},At.\u0275dir=e.lG2({type:At,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),At})();class Fe{constructor(){this.tasks=[],this.endTasks=[]}}const Ve=new e.OlP("_COALESCED_STYLE_SCHEDULER");let le=(()=>{class At{constructor(ft){this._ngZone=ft,this._currentSchedule=null,this._destroyed=new x.x}schedule(ft){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ft)}scheduleEnd(ft){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ft)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Fe,this._getScheduleObservable().pipe((0,P.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ft=this._currentSchedule;this._currentSchedule=new Fe;for(const Bt of ft.tasks)Bt();for(const Bt of ft.endTasks)Bt()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,I.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,J.q)(1))}}return At.\u0275fac=function(ft){return new(ft||At)(e.LFG(e.R0b))},At.\u0275prov=e.Yz7({token:At,factory:At.\u0275fac}),At})(),U=(()=>{class At{constructor(ft,Bt){this.template=ft,this._differs=Bt}ngOnChanges(ft){if(!this._columnsDiffer){const Bt=ft.columns&&ft.columns.currentValue||[];this._columnsDiffer=this._differs.find(Bt).create(),this._columnsDiffer.diff(Bt)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ft){return this instanceof Me?ft.headerCell.template:this instanceof tt?ft.footerCell.template:ft.cell.template}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},At.\u0275dir=e.lG2({type:At,features:[e.TTD]}),At})();class X extends U{}const ce=ge(X);let Me=(()=>{class At extends ce{constructor(ft,Bt,Kt){super(ft,Bt),this._table=Kt}ngOnChanges(ft){super.ngOnChanges(ft)}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(pe,8))},At.\u0275dir=e.lG2({type:At,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),At})();class ue extends U{}const Pe=ge(ue);let tt=(()=>{class At extends Pe{constructor(ft,Bt,Kt){super(ft,Bt),this._table=Kt}ngOnChanges(ft){super.ngOnChanges(ft)}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(pe,8))},At.\u0275dir=e.lG2({type:At,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),At})(),Ce=(()=>{class At extends U{constructor(ft,Bt,Kt){super(ft,Bt),this._table=Kt}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(pe,8))},At.\u0275dir=e.lG2({type:At,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),At})(),at=(()=>{class At{constructor(ft){this._viewContainer=ft,At.mostRecentCellOutlet=this}ngOnDestroy(){At.mostRecentCellOutlet===this&&(At.mostRecentCellOutlet=null)}}return At.mostRecentCellOutlet=null,At.\u0275fac=function(ft){return new(ft||At)(e.Y36(e.s_b))},At.\u0275dir=e.lG2({type:At,selectors:[["","cdkCellOutlet",""]]}),At})(),Ue=(()=>{class At{}return At.\u0275fac=function(ft){return new(ft||At)},At.\u0275cmp=e.Xpm({type:At,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ft,Bt){1&ft&&e.GkF(0,0)},dependencies:[at],encapsulation:2}),At})(),z=(()=>{class At{}return At.\u0275fac=function(ft){return new(ft||At)},At.\u0275cmp=e.Xpm({type:At,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ft,Bt){1&ft&&e.GkF(0,0)},dependencies:[at],encapsulation:2}),At})(),st=(()=>{class At{constructor(ft){this.templateRef=ft,this._contentClassName="cdk-no-data-row"}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(e.Rgc))},At.\u0275dir=e.lG2({type:At,selectors:[["ng-template","cdkNoDataRow",""]]}),At})();const be=["top","bottom","left","right"];class Ye{constructor(Nt,ft,Bt,Kt,ii=!0,di=!0,Ai){this._isNativeHtmlTable=Nt,this._stickCellCss=ft,this.direction=Bt,this._coalescedStyleScheduler=Kt,this._isBrowser=ii,this._needsPositionStickyOnElement=di,this._positionListener=Ai,this._cachedCellWidths=[],this._borderCellCss={top:`${ft}-border-elem-top`,bottom:`${ft}-border-elem-bottom`,left:`${ft}-border-elem-left`,right:`${ft}-border-elem-right`}}clearStickyPositioning(Nt,ft){const Bt=[];for(const Kt of Nt)if(Kt.nodeType===Kt.ELEMENT_NODE){Bt.push(Kt);for(let ii=0;ii{for(const Kt of Bt)this._removeStickyStyle(Kt,ft)})}updateStickyColumns(Nt,ft,Bt,Kt=!0){if(!Nt.length||!this._isBrowser||!ft.some(Ie=>Ie)&&!Bt.some(Ie=>Ie))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const ii=Nt[0],di=ii.children.length,Ai=this._getCellWidths(ii,Kt),Ri=this._getStickyStartColumnPositions(Ai,ft),Dt=this._getStickyEndColumnPositions(Ai,Bt),Gt=ft.lastIndexOf(!0),Q=Bt.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Ie="rtl"===this.direction,gt=Ie?"right":"left",Pt=Ie?"left":"right";for(const ci of Nt)for(let bi=0;bift[bi]?ci:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Q?[]:Ai.slice(Q).map((ci,bi)=>Bt[bi+Q]?ci:null).reverse()}))})}stickRows(Nt,ft,Bt){if(!this._isBrowser)return;const Kt="bottom"===Bt?Nt.slice().reverse():Nt,ii="bottom"===Bt?ft.slice().reverse():ft,di=[],Ai=[],Ri=[];for(let Gt=0,Q=0;Gt{for(let Gt=0;Gt{ft.some(Kt=>!Kt)?this._removeStickyStyle(Bt,["bottom"]):this._addStickyStyle(Bt,"bottom",0,!1)})}_removeStickyStyle(Nt,ft){for(const Kt of ft)Nt.style[Kt]="",Nt.classList.remove(this._borderCellCss[Kt]);be.some(Kt=>-1===ft.indexOf(Kt)&&Nt.style[Kt])?Nt.style.zIndex=this._getCalculatedZIndex(Nt):(Nt.style.zIndex="",this._needsPositionStickyOnElement&&(Nt.style.position=""),Nt.classList.remove(this._stickCellCss))}_addStickyStyle(Nt,ft,Bt,Kt){Nt.classList.add(this._stickCellCss),Kt&&Nt.classList.add(this._borderCellCss[ft]),Nt.style[ft]=`${Bt}px`,Nt.style.zIndex=this._getCalculatedZIndex(Nt),this._needsPositionStickyOnElement&&(Nt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Nt){const ft={top:100,bottom:10,left:1,right:1};let Bt=0;for(const Kt of be)Nt.style[Kt]&&(Bt+=ft[Kt]);return Bt?`${Bt}`:""}_getCellWidths(Nt,ft=!0){if(!ft&&this._cachedCellWidths.length)return this._cachedCellWidths;const Bt=[],Kt=Nt.children;for(let ii=0;ii0;ii--)ft[ii]&&(Bt[ii]=Kt,Kt+=Nt[ii]);return Bt}}const C=new e.OlP("CDK_SPL");let o=(()=>{class At{constructor(ft,Bt){this.viewContainer=ft,this.elementRef=Bt}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(e.s_b),e.Y36(e.SBq))},At.\u0275dir=e.lG2({type:At,selectors:[["","rowOutlet",""]]}),At})(),n=(()=>{class At{constructor(ft,Bt){this.viewContainer=ft,this.elementRef=Bt}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(e.s_b),e.Y36(e.SBq))},At.\u0275dir=e.lG2({type:At,selectors:[["","headerRowOutlet",""]]}),At})(),t=(()=>{class At{constructor(ft,Bt){this.viewContainer=ft,this.elementRef=Bt}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(e.s_b),e.Y36(e.SBq))},At.\u0275dir=e.lG2({type:At,selectors:[["","footerRowOutlet",""]]}),At})(),i=(()=>{class At{constructor(ft,Bt){this.viewContainer=ft,this.elementRef=Bt}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(e.s_b),e.Y36(e.SBq))},At.\u0275dir=e.lG2({type:At,selectors:[["","noDataRowOutlet",""]]}),At})(),l=(()=>{class At{constructor(ft,Bt,Kt,ii,di,Ai,Ri,Dt,Gt,Q,Ie,gt){this._differs=ft,this._changeDetectorRef=Bt,this._elementRef=Kt,this._dir=di,this._platform=Ri,this._viewRepeater=Dt,this._coalescedStyleScheduler=Gt,this._viewportRuler=Q,this._stickyPositioningListener=Ie,this._ngZone=gt,this._onDestroy=new x.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new F.X({start:0,end:Number.MAX_VALUE}),ii||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Ai,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ft){this._trackByFn=ft}get dataSource(){return this._dataSource}set dataSource(ft){this._dataSource!==ft&&this._switchDataSource(ft)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ft){this._multiTemplateDataRows=(0,A.Ig)(ft),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ft){this._fixedLayout=(0,A.Ig)(ft),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ft,Bt)=>this.trackBy?this.trackBy(Bt.dataIndex,Bt.data):Bt),this._viewportRuler.change().pipe((0,P.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Bt=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Bt,this._forceRecalculateCellWidths=Bt,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(ft=>{ft.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,S.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ft=this._dataDiffer.diff(this._renderRows);if(!ft)return this._updateNoDataRow(),void this.contentChanged.next();const Bt=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ft,Bt,(Kt,ii,di)=>this._getEmbeddedViewArgs(Kt.item,di),Kt=>Kt.item.data,Kt=>{1===Kt.operation&&Kt.context&&this._renderCellTemplateForItem(Kt.record.item.rowDef,Kt.context)}),this._updateRowIndexContext(),ft.forEachIdentityChange(Kt=>{Bt.get(Kt.currentIndex).context.$implicit=Kt.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,J.q)(1),(0,P.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ft){this._customColumnDefs.add(ft)}removeColumnDef(ft){this._customColumnDefs.delete(ft)}addRowDef(ft){this._customRowDefs.add(ft)}removeRowDef(ft){this._customRowDefs.delete(ft)}addHeaderRowDef(ft){this._customHeaderRowDefs.add(ft),this._headerRowDefChanged=!0}removeHeaderRowDef(ft){this._customHeaderRowDefs.delete(ft),this._headerRowDefChanged=!0}addFooterRowDef(ft){this._customFooterRowDefs.add(ft),this._footerRowDefChanged=!0}removeFooterRowDef(ft){this._customFooterRowDefs.delete(ft),this._footerRowDefChanged=!0}setNoDataRow(ft){this._customNoDataRow=ft}updateStickyHeaderRowStyles(){const ft=this._getRenderedRows(this._headerRowOutlet),Kt=this._elementRef.nativeElement.querySelector("thead");Kt&&(Kt.style.display=ft.length?"":"none");const ii=this._headerRowDefs.map(di=>di.sticky);this._stickyStyler.clearStickyPositioning(ft,["top"]),this._stickyStyler.stickRows(ft,ii,"top"),this._headerRowDefs.forEach(di=>di.resetStickyChanged())}updateStickyFooterRowStyles(){const ft=this._getRenderedRows(this._footerRowOutlet),Kt=this._elementRef.nativeElement.querySelector("tfoot");Kt&&(Kt.style.display=ft.length?"":"none");const ii=this._footerRowDefs.map(di=>di.sticky);this._stickyStyler.clearStickyPositioning(ft,["bottom"]),this._stickyStyler.stickRows(ft,ii,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,ii),this._footerRowDefs.forEach(di=>di.resetStickyChanged())}updateStickyColumnStyles(){const ft=this._getRenderedRows(this._headerRowOutlet),Bt=this._getRenderedRows(this._rowOutlet),Kt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ft,...Bt,...Kt],["left","right"]),this._stickyColumnStylesNeedReset=!1),ft.forEach((ii,di)=>{this._addStickyColumnStyles([ii],this._headerRowDefs[di])}),this._rowDefs.forEach(ii=>{const di=[];for(let Ai=0;Ai{this._addStickyColumnStyles([ii],this._footerRowDefs[di])}),Array.from(this._columnDefsByName.values()).forEach(ii=>ii.resetStickyChanged())}_getAllRenderRows(){const ft=[],Bt=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Kt=0;Kt{const Ai=Kt&&Kt.has(di)?Kt.get(di):[];if(Ai.length){const Ri=Ai.shift();return Ri.dataIndex=Bt,Ri}return{data:ft,rowDef:di,dataIndex:Bt}})}_cacheColumnDefs(){this._columnDefsByName.clear(),d(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Bt=>{this._columnDefsByName.has(Bt.name),this._columnDefsByName.set(Bt.name,Bt)})}_cacheRowDefs(){this._headerRowDefs=d(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=d(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=d(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ft=this._rowDefs.filter(Bt=>!Bt.when);this._defaultRowDef=ft[0]}_renderUpdatedColumns(){const ft=(di,Ai)=>di||!!Ai.getColumnsDiff(),Bt=this._rowDefs.reduce(ft,!1);Bt&&this._forceRenderDataRows();const Kt=this._headerRowDefs.reduce(ft,!1);Kt&&this._forceRenderHeaderRows();const ii=this._footerRowDefs.reduce(ft,!1);return ii&&this._forceRenderFooterRows(),Bt||Kt||ii}_switchDataSource(ft){this._data=[],(0,S.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ft||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ft}_observeRenderChanges(){if(!this.dataSource)return;let ft;(0,S.Z9)(this.dataSource)?ft=this.dataSource.connect(this):(0,T.b)(this.dataSource)?ft=this.dataSource:Array.isArray(this.dataSource)&&(ft=(0,H.of)(this.dataSource)),this._renderChangeSubscription=ft.pipe((0,P.R)(this._onDestroy)).subscribe(Bt=>{this._data=Bt||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ft,Bt)=>this._renderRow(this._headerRowOutlet,ft,Bt)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ft,Bt)=>this._renderRow(this._footerRowOutlet,ft,Bt)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ft,Bt){const Kt=Array.from(Bt.columns||[]).map(Ai=>this._columnDefsByName.get(Ai)),ii=Kt.map(Ai=>Ai.sticky),di=Kt.map(Ai=>Ai.stickyEnd);this._stickyStyler.updateStickyColumns(ft,ii,di,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ft){const Bt=[];for(let Kt=0;Kt!ii.when||ii.when(Bt,ft));else{let ii=this._rowDefs.find(di=>di.when&&di.when(Bt,ft))||this._defaultRowDef;ii&&Kt.push(ii)}return Kt}_getEmbeddedViewArgs(ft,Bt){return{templateRef:ft.rowDef.template,context:{$implicit:ft.data},index:Bt}}_renderRow(ft,Bt,Kt,ii={}){const di=ft.viewContainer.createEmbeddedView(Bt.template,ii,Kt);return this._renderCellTemplateForItem(Bt,ii),di}_renderCellTemplateForItem(ft,Bt){for(let Kt of this._getCellTemplates(ft))at.mostRecentCellOutlet&&at.mostRecentCellOutlet._viewContainer.createEmbeddedView(Kt,Bt);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ft=this._rowOutlet.viewContainer;for(let Bt=0,Kt=ft.length;Bt{const Kt=this._columnDefsByName.get(Bt);return ft.extractCellTemplate(Kt)}):[]}_applyNativeTableSections(){const ft=this._document.createDocumentFragment(),Bt=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const Kt of Bt){const ii=this._document.createElement(Kt.tag);ii.setAttribute("role","rowgroup");for(const di of Kt.outlets)ii.appendChild(di.elementRef.nativeElement);ft.appendChild(ii)}this._elementRef.nativeElement.appendChild(ft)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ft=(Bt,Kt)=>Bt||Kt.hasStickyChanged();this._headerRowDefs.reduce(ft,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ft,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ft,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ye(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,H.of)()).pipe((0,P.R)(this._onDestroy)).subscribe(Bt=>{this._stickyStyler.direction=Bt,this.updateStickyColumnStyles()})}_getOwnDefs(ft){return ft.filter(Bt=>!Bt._table||Bt._table===this)}_updateNoDataRow(){const ft=this._customNoDataRow||this._noDataRow;if(!ft)return;const Bt=0===this._rowOutlet.viewContainer.length;if(Bt===this._isShowingNoDataRow)return;const Kt=this._noDataRowOutlet.viewContainer;if(Bt){const ii=Kt.createEmbeddedView(ft.templateRef),di=ii.rootNodes[0];1===ii.rootNodes.length&&di?.nodeType===this._document.ELEMENT_NODE&&(di.setAttribute("role","row"),di.classList.add(ft._contentClassName))}else Kt.clear();this._isShowingNoDataRow=Bt}}return At.\u0275fac=function(ft){return new(ft||At)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(f.Is,8),e.Y36(w.K0),e.Y36(m.t4),e.Y36(S.k),e.Y36(Ve),e.Y36(M.rL),e.Y36(C,12),e.Y36(e.R0b,8))},At.\u0275cmp=e.Xpm({type:At,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ft,Bt,Kt){if(1&ft&&(e.Suo(Kt,st,5),e.Suo(Kt,ye,5),e.Suo(Kt,Ce,5),e.Suo(Kt,Me,5),e.Suo(Kt,tt,5)),2&ft){let ii;e.iGM(ii=e.CRH())&&(Bt._noDataRow=ii.first),e.iGM(ii=e.CRH())&&(Bt._contentColumnDefs=ii),e.iGM(ii=e.CRH())&&(Bt._contentRowDefs=ii),e.iGM(ii=e.CRH())&&(Bt._contentHeaderRowDefs=ii),e.iGM(ii=e.CRH())&&(Bt._contentFooterRowDefs=ii)}},viewQuery:function(ft,Bt){if(1&ft&&(e.Gf(o,7),e.Gf(n,7),e.Gf(t,7),e.Gf(i,7)),2&ft){let Kt;e.iGM(Kt=e.CRH())&&(Bt._rowOutlet=Kt.first),e.iGM(Kt=e.CRH())&&(Bt._headerRowOutlet=Kt.first),e.iGM(Kt=e.CRH())&&(Bt._footerRowOutlet=Kt.first),e.iGM(Kt=e.CRH())&&(Bt._noDataRowOutlet=Kt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ft,Bt){2&ft&&e.ekj("cdk-table-fixed-layout",Bt.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:pe,useExisting:At},{provide:S.k,useClass:S.yy},{provide:Ve,useClass:le},{provide:C,useValue:null}])],ngContentSelectors:j,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ft,Bt){1&ft&&(e.F$t(fe),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[o,n,t,i],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),At})();function d(At,Nt){return At.concat(Array.from(Nt))}let B=(()=>{class At{}return At.\u0275fac=function(ft){return new(ft||At)},At.\u0275mod=e.oAB({type:At}),At.\u0275inj=e.cJS({imports:[M.Cl]}),At})();var q=p(3238),qe=p(56451),it=p(39841),xt=p(54004);const ht=[[["caption"]],[["colgroup"],["col"]]],_t=["caption","colgroup, col"];let Ae=(()=>{class At extends l{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return At.\u0275fac=function(){let Nt;return function(Bt){return(Nt||(Nt=e.n5z(At)))(Bt||At)}}(),At.\u0275cmp=e.Xpm({type:At,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(ft,Bt){2&ft&&e.ekj("mdc-table-fixed-layout",Bt.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:l,useExisting:At},{provide:pe,useExisting:At},{provide:Ve,useClass:le},{provide:S.k,useClass:S.yy},{provide:C,useValue:null}]),e.qOj],ngContentSelectors:_t,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ft,Bt){1&ft&&(e.F$t(ht),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[o,n,t,i],styles:[".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),At})(),Te=(()=>{class At extends v{}return At.\u0275fac=function(){let Nt;return function(Bt){return(Nt||(Nt=e.n5z(At)))(Bt||At)}}(),At.\u0275dir=e.lG2({type:At,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:v,useExisting:At}]),e.qOj]}),At})(),ut=(()=>{class At extends V{}return At.\u0275fac=function(){let Nt;return function(Bt){return(Nt||(Nt=e.n5z(At)))(Bt||At)}}(),At.\u0275dir=e.lG2({type:At,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:V,useExisting:At}]),e.qOj]}),At})(),Ht=(()=>{class At extends ye{get name(){return this._name}set name(ft){this._setNameInput(ft)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return At.\u0275fac=function(){let Nt;return function(Bt){return(Nt||(Nt=e.n5z(At)))(Bt||At)}}(),At.\u0275dir=e.lG2({type:At,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:ye,useExisting:At},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:At}]),e.qOj]}),At})(),Mt=(()=>{class At extends ke{}return At.\u0275fac=function(){let Nt;return function(Bt){return(Nt||(Nt=e.n5z(At)))(Bt||At)}}(),At.\u0275dir=e.lG2({type:At,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[e.qOj]}),At})(),ai=(()=>{class At extends Je{}return At.\u0275fac=function(){let Nt;return function(Bt){return(Nt||(Nt=e.n5z(At)))(Bt||At)}}(),At.\u0275dir=e.lG2({type:At,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[e.qOj]}),At})(),pi=(()=>{class At extends Me{}return At.\u0275fac=function(){let Nt;return function(Bt){return(Nt||(Nt=e.n5z(At)))(Bt||At)}}(),At.\u0275dir=e.lG2({type:At,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:Me,useExisting:At}]),e.qOj]}),At})(),Tt=(()=>{class At extends Ce{}return At.\u0275fac=function(){let Nt;return function(Bt){return(Nt||(Nt=e.n5z(At)))(Bt||At)}}(),At.\u0275dir=e.lG2({type:At,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Ce,useExisting:At}]),e.qOj]}),At})(),Se=(()=>{class At extends Ue{}return At.\u0275fac=function(){let Nt;return function(Bt){return(Nt||(Nt=e.n5z(At)))(Bt||At)}}(),At.\u0275cmp=e.Xpm({type:At,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Ue,useExisting:At}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ft,Bt){1&ft&&e.GkF(0,0)},dependencies:[at],encapsulation:2}),At})(),oe=(()=>{class At extends z{}return At.\u0275fac=function(){let Nt;return function(Bt){return(Nt||(Nt=e.n5z(At)))(Bt||At)}}(),At.\u0275cmp=e.Xpm({type:At,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[e._Bn([{provide:z,useExisting:At}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ft,Bt){1&ft&&e.GkF(0,0)},dependencies:[at],encapsulation:2}),At})(),yt=(()=>{class At{}return At.\u0275fac=function(ft){return new(ft||At)},At.\u0275mod=e.oAB({type:At}),At.\u0275inj=e.cJS({imports:[q.BQ,B,q.BQ]}),At})();class li extends S.o2{constructor(Nt=[]){super(),this._renderData=new F.X([]),this._filter=new F.X(""),this._internalPageChanges=new x.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(ft,Bt)=>{const Kt=ft[Bt];if((0,A.t6)(Kt)){const ii=Number(Kt);return ii<9007199254740991?ii:Kt}return Kt},this.sortData=(ft,Bt)=>{const Kt=Bt.active,ii=Bt.direction;return Kt&&""!=ii?ft.sort((di,Ai)=>{let Ri=this.sortingDataAccessor(di,Kt),Dt=this.sortingDataAccessor(Ai,Kt);const Gt=typeof Ri,Q=typeof Dt;Gt!==Q&&("number"===Gt&&(Ri+=""),"number"===Q&&(Dt+=""));let Ie=0;return null!=Ri&&null!=Dt?Ri>Dt?Ie=1:Ri{const Kt=Object.keys(ft).reduce((di,Ai)=>di+ft[Ai]+"\u25ec","").toLowerCase(),ii=Bt.trim().toLowerCase();return-1!=Kt.indexOf(ii)},this._data=new F.X(Nt),this._updateChangeSubscription()}get data(){return this._data.value}set data(Nt){Nt=Array.isArray(Nt)?Nt:[],this._data.next(Nt),this._renderChangesSubscription||this._filterData(Nt)}get filter(){return this._filter.value}set filter(Nt){this._filter.next(Nt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Nt){this._sort=Nt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Nt){this._paginator=Nt,this._updateChangeSubscription()}_updateChangeSubscription(){const Nt=this._sort?(0,qe.T)(this._sort.sortChange,this._sort.initialized):(0,H.of)(null),ft=this._paginator?(0,qe.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,H.of)(null),Kt=(0,it.a)([this._data,this._filter]).pipe((0,xt.U)(([Ai])=>this._filterData(Ai))),ii=(0,it.a)([Kt,Nt]).pipe((0,xt.U)(([Ai])=>this._orderData(Ai))),di=(0,it.a)([ii,ft]).pipe((0,xt.U)(([Ai])=>this._pageData(Ai)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=di.subscribe(Ai=>this._renderData.next(Ai))}_filterData(Nt){return this.filteredData=null==this.filter||""===this.filter?Nt:Nt.filter(ft=>this.filterPredicate(ft,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Nt){return this.sort?this.sortData(Nt.slice(),this.sort):Nt}_pageData(Nt){if(!this.paginator)return Nt;const ft=this.paginator.pageIndex*this.paginator.pageSize;return Nt.slice(ft,ft+this.paginator.pageSize)}_updatePaginator(Nt){Promise.resolve().then(()=>{const ft=this.paginator;if(ft&&(ft.length=Nt,ft.pageIndex>0)){const Bt=Math.ceil(ft.length/ft.pageSize)-1||0,Kt=Math.min(ft.pageIndex,Bt);Kt!==ft.pageIndex&&(ft.pageIndex=Kt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Di extends li{}},3848:(Qe,ae,p)=>{"use strict";p.d(ae,{Nh:()=>Tt,SP:()=>Ae,Vc:()=>Re,uD:()=>Oe,uX:()=>s});var e=p(36895),f=p(94650),A=p(3238),S=p(84080),m=p(49643),M=p(12693),w=p(40445),x=p(50727),I=p(77579),F=p(54968),T=p(39646),H=p(56451),P=p(60515),J=p(69751),fe=p(82805),j=p(68675),$=p(71884),_e=p(82722),ge=p(95698),pe=p(63900),re=p(35684),v=p(39300),V=p(37340),W=p(21281),te=p(67376),ne=p(83353),ye=p(29521);function ze(Se,We){}const ke=function(Se){return{animationDuration:Se}},$e=function(Se,We){return{value:Se,params:We}};function Je(Se,We){1&Se&&f.Hsn(0)}const Fe=["*"],Ve=["tabListContainer"],le=["tabList"],N=["tabListInner"],U=["nextPaginator"],X=["previousPaginator"],ce=["tabBodyWrapper"],Me=["tabHeader"];function ue(Se,We){}function Pe(Se,We){if(1&Se&&f.YNc(0,ue,0,0,"ng-template",14),2&Se){const oe=f.oxw().$implicit;f.Q6J("cdkPortalOutlet",oe.templateLabel)}}function tt(Se,We){if(1&Se&&f._uU(0),2&Se){const oe=f.oxw().$implicit;f.Oqu(oe.textLabel)}}function Ce(Se,We){if(1&Se){const oe=f.EpF();f.TgZ(0,"div",6,7),f.NdJ("click",function(){const rt=f.CHM(oe),Ft=rt.$implicit,yt=rt.index,Zt=f.oxw(),li=f.MAs(1);return f.KtG(Zt._handleClick(Ft,li,yt))})("cdkFocusChange",function(rt){const yt=f.CHM(oe).index,Zt=f.oxw();return f.KtG(Zt._tabFocusChanged(rt,yt))}),f._UZ(2,"span",8)(3,"div",9),f.TgZ(4,"span",10)(5,"span",11),f.YNc(6,Pe,1,1,"ng-template",12),f.YNc(7,tt,1,1,"ng-template",null,13,f.W1O),f.qZA()()()}if(2&Se){const oe=We.$implicit,et=We.index,rt=f.MAs(1),Ft=f.MAs(8),yt=f.oxw();f.ekj("mdc-tab--active",yt.selectedIndex===et),f.Q6J("id",yt._getTabLabelId(et))("ngClass",oe.labelClass)("disabled",oe.disabled)("fitInkBarToContent",yt.fitInkBarToContent),f.uIk("tabIndex",yt._getTabIndex(oe,et))("aria-posinset",et+1)("aria-setsize",yt._tabs.length)("aria-controls",yt._getTabContentId(et))("aria-selected",yt.selectedIndex===et)("aria-label",oe.ariaLabel||null)("aria-labelledby",!oe.ariaLabel&&oe.ariaLabelledby?oe.ariaLabelledby:null),f.xp6(3),f.Q6J("matRippleTrigger",rt)("matRippleDisabled",oe.disabled||yt.disableRipple),f.xp6(3),f.Q6J("ngIf",oe.templateLabel)("ngIfElse",Ft)}}function at(Se,We){if(1&Se){const oe=f.EpF();f.TgZ(0,"mat-tab-body",15),f.NdJ("_onCentered",function(){f.CHM(oe);const rt=f.oxw();return f.KtG(rt._removeTabBodyWrapperHeight())})("_onCentering",function(rt){f.CHM(oe);const Ft=f.oxw();return f.KtG(Ft._setTabBodyWrapperHeight(rt))}),f.qZA()}if(2&Se){const oe=We.$implicit,et=We.index,rt=f.oxw();f.ekj("mat-mdc-tab-body-active",rt.selectedIndex===et),f.Q6J("id",rt._getTabContentId(et))("ngClass",oe.bodyClass)("content",oe.content)("position",oe.position)("origin",oe.origin)("animationDuration",rt.animationDuration)("preserveContent",rt.preserveContent),f.uIk("tabindex",null!=rt.contentTabIndex&&rt.selectedIndex===et?rt.contentTabIndex:null)("aria-labelledby",rt._getTabLabelId(et))}}const z={translateTab:(0,V.X$)("translateTab",[(0,V.SB)("center, void, left-origin-center, right-origin-center",(0,V.oB)({transform:"none"})),(0,V.SB)("left",(0,V.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,V.SB)("right",(0,V.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,V.eR)("* => left, * => right, left => center, right => center",(0,V.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,V.eR)("void => left-origin-center",[(0,V.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,V.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,V.eR)("void => right-origin-center",[(0,V.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,V.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let st=(()=>{class Se extends S.Pl{constructor(oe,et,rt,Ft){super(oe,et,Ft),this._host=rt,this._centeringSub=x.w0.EMPTY,this._leavingSub=x.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,j.O)(this._host._isCenterPosition(this._host._position))).subscribe(oe=>{oe&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.Y36(f._Vd),f.Y36(f.s_b),f.Y36((0,f.Gpc)(()=>Ye)),f.Y36(e.K0))},Se.\u0275dir=f.lG2({type:Se,selectors:[["","matTabBodyHost",""]],features:[f.qOj]}),Se})(),be=(()=>{class Se{constructor(oe,et,rt){this._elementRef=oe,this._dir=et,this._dirChangeSubscription=x.w0.EMPTY,this._translateTabComplete=new I.x,this._onCentering=new f.vpe,this._beforeCentering=new f.vpe,this._afterLeavingCenter=new f.vpe,this._onCentered=new f.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,et&&(this._dirChangeSubscription=et.change.subscribe(Ft=>{this._computePositionAnimationState(Ft),rt.markForCheck()})),this._translateTabComplete.pipe((0,$.x)((Ft,yt)=>Ft.fromState===yt.fromState&&Ft.toState===yt.toState)).subscribe(Ft=>{this._isCenterPosition(Ft.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Ft.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(oe){this._positionIndex=oe,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(oe){const et=this._isCenterPosition(oe.toState);this._beforeCentering.emit(et),et&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(oe){return"center"==oe||"left-origin-center"==oe||"right-origin-center"==oe}_computePositionAnimationState(oe=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==oe?"left":"right":this._positionIndex>0?"ltr"==oe?"right":"left":"center"}_computePositionFromOrigin(oe){const et=this._getLayoutDirection();return"ltr"==et&&oe<=0||"rtl"==et&&oe>0?"left-origin-center":"right-origin-center"}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.Y36(f.SBq),f.Y36(w.Is,8),f.Y36(f.sBO))},Se.\u0275dir=f.lG2({type:Se,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Se})(),Ye=(()=>{class Se extends be{constructor(oe,et,rt){super(oe,et,rt)}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.Y36(f.SBq),f.Y36(w.Is,8),f.Y36(f.sBO))},Se.\u0275cmp=f.Xpm({type:Se,selectors:[["mat-tab-body"]],viewQuery:function(oe,et){if(1&oe&&f.Gf(S.Pl,5),2&oe){let rt;f.iGM(rt=f.CRH())&&(et._portalHost=rt.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[f.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(oe,et){1&oe&&(f.TgZ(0,"div",0,1),f.NdJ("@translateTab.start",function(Ft){return et._onTranslateTabStarted(Ft)})("@translateTab.done",function(Ft){return et._translateTabComplete.next(Ft)}),f.YNc(2,ze,0,0,"ng-template",2),f.qZA()),2&oe&&f.Q6J("@translateTab",f.WLB(3,$e,et._position,f.VKq(1,ke,et.animationDuration)))},dependencies:[st],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[z.translateTab]}}),Se})();const he=new f.OlP("MatTabContent");let Re=(()=>{class Se{constructor(oe){this.template=oe}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.Y36(f.Rgc))},Se.\u0275dir=f.lG2({type:Se,selectors:[["","matTabContent",""]],features:[f._Bn([{provide:he,useExisting:Se}])]}),Se})();const He=new f.OlP("MatTabLabel"),ve=new f.OlP("MAT_TAB");let Oe=(()=>{class Se extends S.ig{constructor(oe,et,rt){super(oe,et),this._closestTab=rt}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.Y36(f.Rgc),f.Y36(f.s_b),f.Y36(ve,8))},Se.\u0275dir=f.lG2({type:Se,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[f._Bn([{provide:He,useExisting:Se}]),f.qOj]}),Se})();const r="mdc-tab-indicator--active",u="mdc-tab-indicator--no-transition";class _{constructor(We){this._items=We}hide(){this._items.forEach(We=>We.deactivateInkBar())}alignToElement(We){const oe=this._items.find(rt=>rt.elementRef.nativeElement===We),et=this._currentItem;if(et?.deactivateInkBar(),oe){const rt=et?.elementRef.nativeElement.getBoundingClientRect?.();oe.activateInkBar(rt),this._currentItem=oe}}}function C(Se){return class extends Se{constructor(...We){super(...We),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(We){const oe=(0,W.Ig)(We);this._fitToContent!==oe&&(this._fitToContent=oe,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(We){const oe=this.elementRef.nativeElement;if(!We||!oe.getBoundingClientRect||!this._inkBarContentElement)return void oe.classList.add(r);const et=oe.getBoundingClientRect(),rt=We.width/et.width,Ft=We.left-et.left;oe.classList.add(u),this._inkBarContentElement.style.setProperty("transform",`translateX(${Ft}px) scaleX(${rt})`),oe.getBoundingClientRect(),oe.classList.remove(u),oe.classList.add(r),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(r)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const We=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=We.createElement("span"),this._inkBarContentElement=We.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const n=(0,A.Id)(class{}),i=C((()=>{class Se extends n{constructor(oe){super(),this.elementRef=oe}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.Y36(f.SBq))},Se.\u0275dir=f.lG2({type:Se,features:[f.qOj]}),Se})());let a=(()=>{class Se extends i{}return Se.\u0275fac=function(){let We;return function(et){return(We||(We=f.n5z(Se)))(et||Se)}}(),Se.\u0275dir=f.lG2({type:Se,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(oe,et){2&oe&&(f.uIk("aria-disabled",!!et.disabled),f.ekj("mat-mdc-tab-disabled",et.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[f.qOj]}),Se})();const c=(0,A.Id)(class{}),l=new f.OlP("MAT_TAB_GROUP");let d=(()=>{class Se extends c{constructor(oe,et){super(),this._viewContainerRef=oe,this._closestTabGroup=et,this.textLabel="",this._contentPortal=null,this._stateChanges=new I.x,this.position=null,this.origin=null,this.isActive=!1}get content(){return this._contentPortal}ngOnChanges(oe){(oe.hasOwnProperty("textLabel")||oe.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new S.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(oe){oe&&oe._closestTab===this&&(this._templateLabel=oe)}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.Y36(f.s_b),f.Y36(l,8))},Se.\u0275dir=f.lG2({type:Se,viewQuery:function(oe,et){if(1&oe&&f.Gf(f.Rgc,7),2&oe){let rt;f.iGM(rt=f.CRH())&&(et._implicitContent=rt.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[f.qOj,f.TTD]}),Se})(),s=(()=>{class Se extends d{get templateLabel(){return this._templateLabel}set templateLabel(oe){this._setTemplateLabelInput(oe)}}return Se.\u0275fac=function(){let We;return function(et){return(We||(We=f.n5z(Se)))(et||Se)}}(),Se.\u0275cmp=f.Xpm({type:Se,selectors:[["mat-tab"]],contentQueries:function(oe,et,rt){if(1&oe&&(f.Suo(rt,Re,7,f.Rgc),f.Suo(rt,Oe,5)),2&oe){let Ft;f.iGM(Ft=f.CRH())&&(et._explicitContent=Ft.first),f.iGM(Ft=f.CRH())&&(et.templateLabel=Ft.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[f._Bn([{provide:ve,useExisting:Se}]),f.qOj],ngContentSelectors:Fe,decls:1,vars:0,template:function(oe,et){1&oe&&(f.F$t(),f.YNc(0,Je,1,0,"ng-template"))},encapsulation:2}),Se})();const E=(0,ne.i$)({passive:!0});let it=(()=>{class Se{constructor(oe,et,rt,Ft,yt,Zt,li){this._elementRef=oe,this._changeDetectorRef=et,this._viewportRuler=rt,this._dir=Ft,this._ngZone=yt,this._platform=Zt,this._animationMode=li,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new I.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new I.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new f.vpe,this.indexFocused=new f.vpe,yt.runOutsideAngular(()=>{(0,F.R)(oe.nativeElement,"mouseleave").pipe((0,_e.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(oe){this._disablePagination=(0,W.Ig)(oe)}get selectedIndex(){return this._selectedIndex}set selectedIndex(oe){oe=(0,W.su)(oe),this._selectedIndex!=oe&&(this._selectedIndexChanged=!0,this._selectedIndex=oe,this._keyManager&&this._keyManager.updateActiveItem(oe))}ngAfterViewInit(){(0,F.R)(this._previousPaginator.nativeElement,"touchstart",E).pipe((0,_e.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,F.R)(this._nextPaginator.nativeElement,"touchstart",E).pipe((0,_e.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const oe=this._dir?this._dir.change:(0,T.of)("ltr"),et=this._viewportRuler.change(150),rt=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new M.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,ge.q)(1)).subscribe(rt),(0,H.T)(oe,et,this._items.changes,this._itemsResized()).pipe((0,_e.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),rt()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Ft=>{this.indexFocused.emit(Ft),this._setTabFocus(Ft)})}_itemsResized(){return"function"!=typeof ResizeObserver?P.E:this._items.changes.pipe((0,j.O)(this._items),(0,pe.w)(oe=>new J.y(et=>this._ngZone.runOutsideAngular(()=>{const rt=new ResizeObserver(Ft=>et.next(Ft));return oe.forEach(Ft=>rt.observe(Ft.elementRef.nativeElement)),()=>{rt.disconnect()}}))),(0,re.T)(1),(0,v.h)(oe=>oe.some(et=>et.contentRect.width>0&&et.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(oe){if(!(0,ye.Vb)(oe))switch(oe.keyCode){case ye.K5:case ye.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(oe));break;default:this._keyManager.onKeydown(oe)}}_onContentChanges(){const oe=this._elementRef.nativeElement.textContent;oe!==this._currentTextContent&&(this._currentTextContent=oe||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(oe){!this._isValidIndex(oe)||this.focusIndex===oe||!this._keyManager||this._keyManager.setActiveItem(oe)}_isValidIndex(oe){if(!this._items)return!0;const et=this._items?this._items.toArray()[oe]:null;return!!et&&!et.disabled}_setTabFocus(oe){if(this._showPaginationControls&&this._scrollToLabel(oe),this._items&&this._items.length){this._items.toArray()[oe].focus();const et=this._tabListContainer.nativeElement;et.scrollLeft="ltr"==this._getLayoutDirection()?0:et.scrollWidth-et.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const oe=this.scrollDistance,et="ltr"===this._getLayoutDirection()?-oe:oe;this._tabList.nativeElement.style.transform=`translateX(${Math.round(et)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(oe){this._scrollTo(oe)}_scrollHeader(oe){return this._scrollTo(this._scrollDistance+("before"==oe?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(oe){this._stopInterval(),this._scrollHeader(oe)}_scrollToLabel(oe){if(this.disablePagination)return;const et=this._items?this._items.toArray()[oe]:null;if(!et)return;const rt=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Ft,offsetWidth:yt}=et.elementRef.nativeElement;let Zt,li;"ltr"==this._getLayoutDirection()?(Zt=Ft,li=Zt+yt):(li=this._tabListInner.nativeElement.offsetWidth-Ft,Zt=li-yt);const Di=this.scrollDistance,At=this.scrollDistance+rt;ZtAt&&(this.scrollDistance+=li-At+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const oe=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;oe||(this.scrollDistance=0),oe!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=oe}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const oe=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,et=oe?oe.elementRef.nativeElement:null;et?this._inkBar.alignToElement(et):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(oe,et){et&&null!=et.button&&0!==et.button||(this._stopInterval(),(0,fe.H)(650,100).pipe((0,_e.R)((0,H.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:rt,distance:Ft}=this._scrollHeader(oe);(0===Ft||Ft>=rt)&&this._stopInterval()}))}_scrollTo(oe){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const et=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(et,oe)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:et,distance:this._scrollDistance}}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(te.rL),f.Y36(w.Is,8),f.Y36(f.R0b),f.Y36(ne.t4),f.Y36(f.QbO,8))},Se.\u0275dir=f.lG2({type:Se,inputs:{disablePagination:"disablePagination"}}),Se})(),xt=(()=>{class Se extends it{constructor(oe,et,rt,Ft,yt,Zt,li){super(oe,et,rt,Ft,yt,Zt,li),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(oe){this._disableRipple=(0,W.Ig)(oe)}_itemSelected(oe){oe.preventDefault()}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(te.rL),f.Y36(w.Is,8),f.Y36(f.R0b),f.Y36(ne.t4),f.Y36(f.QbO,8))},Se.\u0275dir=f.lG2({type:Se,inputs:{disableRipple:"disableRipple"},features:[f.qOj]}),Se})(),ht=(()=>{class Se extends xt{constructor(oe,et,rt,Ft,yt,Zt,li){super(oe,et,rt,Ft,yt,Zt,li)}ngAfterContentInit(){this._inkBar=new _(this._items),super.ngAfterContentInit()}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(te.rL),f.Y36(w.Is,8),f.Y36(f.R0b),f.Y36(ne.t4),f.Y36(f.QbO,8))},Se.\u0275cmp=f.Xpm({type:Se,selectors:[["mat-tab-header"]],contentQueries:function(oe,et,rt){if(1&oe&&f.Suo(rt,a,4),2&oe){let Ft;f.iGM(Ft=f.CRH())&&(et._items=Ft)}},viewQuery:function(oe,et){if(1&oe&&(f.Gf(Ve,7),f.Gf(le,7),f.Gf(N,7),f.Gf(U,5),f.Gf(X,5)),2&oe){let rt;f.iGM(rt=f.CRH())&&(et._tabListContainer=rt.first),f.iGM(rt=f.CRH())&&(et._tabList=rt.first),f.iGM(rt=f.CRH())&&(et._tabListInner=rt.first),f.iGM(rt=f.CRH())&&(et._nextPaginator=rt.first),f.iGM(rt=f.CRH())&&(et._previousPaginator=rt.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(oe,et){2&oe&&f.ekj("mat-mdc-tab-header-pagination-controls-enabled",et._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==et._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[f.qOj],ngContentSelectors:Fe,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(oe,et){1&oe&&(f.F$t(),f.TgZ(0,"button",0,1),f.NdJ("click",function(){return et._handlePaginatorClick("before")})("mousedown",function(Ft){return et._handlePaginatorPress("before",Ft)})("touchend",function(){return et._stopInterval()}),f._UZ(2,"div",2),f.qZA(),f.TgZ(3,"div",3,4),f.NdJ("keydown",function(Ft){return et._handleKeydown(Ft)}),f.TgZ(5,"div",5,6),f.NdJ("cdkObserveContent",function(){return et._onContentChanges()}),f.TgZ(7,"div",7,8),f.Hsn(9),f.qZA()()(),f.TgZ(10,"button",9,10),f.NdJ("mousedown",function(Ft){return et._handlePaginatorPress("after",Ft)})("click",function(){return et._handlePaginatorClick("after")})("touchend",function(){return et._stopInterval()}),f._UZ(12,"div",2),f.qZA()),2&oe&&(f.ekj("mat-mdc-tab-header-pagination-disabled",et._disableScrollBefore),f.Q6J("matRippleDisabled",et._disableScrollBefore||et.disableRipple)("disabled",et._disableScrollBefore||null),f.xp6(3),f.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode),f.xp6(7),f.ekj("mat-mdc-tab-header-pagination-disabled",et._disableScrollAfter),f.Q6J("matRippleDisabled",et._disableScrollAfter||et.disableRipple)("disabled",et._disableScrollAfter||null))},dependencies:[A.wG,m.wD],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),Se})();const _t=new f.OlP("MAT_TABS_CONFIG");let Ee=0;const we=(0,A.pj)((0,A.Kr)(class{constructor(Se){this._elementRef=Se}}),"primary");let de=(()=>{class Se extends we{constructor(oe,et,rt,Ft){super(oe),this._changeDetectorRef=et,this._animationMode=Ft,this._tabs=new f.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=x.w0.EMPTY,this._tabLabelSubscription=x.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new f.vpe,this.focusChange=new f.vpe,this.animationDone=new f.vpe,this.selectedTabChange=new f.vpe(!0),this._groupId=Ee++,this.animationDuration=rt&&rt.animationDuration?rt.animationDuration:"500ms",this.disablePagination=!(!rt||null==rt.disablePagination)&&rt.disablePagination,this.dynamicHeight=!(!rt||null==rt.dynamicHeight)&&rt.dynamicHeight,this.contentTabIndex=rt?.contentTabIndex??null,this.preserveContent=!!rt?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(oe){this._dynamicHeight=(0,W.Ig)(oe)}get selectedIndex(){return this._selectedIndex}set selectedIndex(oe){this._indexToSelect=(0,W.su)(oe,null)}get animationDuration(){return this._animationDuration}set animationDuration(oe){this._animationDuration=/^\d+$/.test(oe+"")?oe+"ms":oe}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(oe){this._contentTabIndex=(0,W.su)(oe,null)}get disablePagination(){return this._disablePagination}set disablePagination(oe){this._disablePagination=(0,W.Ig)(oe)}get preserveContent(){return this._preserveContent}set preserveContent(oe){this._preserveContent=(0,W.Ig)(oe)}get backgroundColor(){return this._backgroundColor}set backgroundColor(oe){const et=this._elementRef.nativeElement.classList;et.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),oe&&et.add("mat-tabs-with-background",`mat-background-${oe}`),this._backgroundColor=oe}ngAfterContentChecked(){const oe=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=oe){const et=null==this._selectedIndex;if(!et){this.selectedTabChange.emit(this._createChangeEvent(oe));const rt=this._tabBodyWrapper.nativeElement;rt.style.minHeight=rt.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((rt,Ft)=>rt.isActive=Ft===oe),et||(this.selectedIndexChange.emit(oe),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((et,rt)=>{et.position=rt-oe,null!=this._selectedIndex&&0==et.position&&!et.origin&&(et.origin=oe-this._selectedIndex)}),this._selectedIndex!==oe&&(this._selectedIndex=oe,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const oe=this._clampTabIndex(this._indexToSelect);if(oe===this._selectedIndex){const et=this._tabs.toArray();let rt;for(let Ft=0;Ft{et[oe].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(oe))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,j.O)(this._allTabs)).subscribe(oe=>{this._tabs.reset(oe.filter(et=>et._closestTabGroup===this||!et._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(oe){const et=this._tabHeader;et&&(et.focusIndex=oe)}_focusChanged(oe){this._lastFocusedTabIndex=oe,this.focusChange.emit(this._createChangeEvent(oe))}_createChangeEvent(oe){const et=new Te;return et.index=oe,this._tabs&&this._tabs.length&&(et.tab=this._tabs.toArray()[oe]),et}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,H.T)(...this._tabs.map(oe=>oe._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(oe){return Math.min(this._tabs.length-1,Math.max(oe||0,0))}_getTabLabelId(oe){return`mat-tab-label-${this._groupId}-${oe}`}_getTabContentId(oe){return`mat-tab-content-${this._groupId}-${oe}`}_setTabBodyWrapperHeight(oe){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const et=this._tabBodyWrapper.nativeElement;et.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(et.style.height=oe+"px")}_removeTabBodyWrapperHeight(){const oe=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=oe.clientHeight,oe.style.height="",this.animationDone.emit()}_handleClick(oe,et,rt){oe.disabled||(this.selectedIndex=et.focusIndex=rt)}_getTabIndex(oe,et){return oe.disabled?null:et===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(oe,et){oe&&"mouse"!==oe&&"touch"!==oe&&(this._tabHeader.focusIndex=et)}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(_t,8),f.Y36(f.QbO,8))},Se.\u0275dir=f.lG2({type:Se,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[f.qOj]}),Se})(),Ae=(()=>{class Se extends de{constructor(oe,et,rt,Ft){super(oe,et,rt,Ft),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!rt||null==rt.fitInkBarToContent)&&rt.fitInkBarToContent}get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(oe){this._fitInkBarToContent=(0,W.Ig)(oe),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(oe){this._stretchTabs=(0,W.Ig)(oe)}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(_t,8),f.Y36(f.QbO,8))},Se.\u0275cmp=f.Xpm({type:Se,selectors:[["mat-tab-group"]],contentQueries:function(oe,et,rt){if(1&oe&&f.Suo(rt,s,5),2&oe){let Ft;f.iGM(Ft=f.CRH())&&(et._allTabs=Ft)}},viewQuery:function(oe,et){if(1&oe&&(f.Gf(ce,5),f.Gf(Me,5)),2&oe){let rt;f.iGM(rt=f.CRH())&&(et._tabBodyWrapper=rt.first),f.iGM(rt=f.CRH())&&(et._tabHeader=rt.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(oe,et){2&oe&&f.ekj("mat-mdc-tab-group-dynamic-height",et.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===et.headerPosition)("mat-mdc-tab-group-stretch-tabs",et.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[f._Bn([{provide:l,useExisting:Se}]),f.qOj],decls:6,vars:6,consts:[[3,"selectedIndex","disableRipple","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(oe,et){1&oe&&(f.TgZ(0,"mat-tab-header",0,1),f.NdJ("indexFocused",function(Ft){return et._focusChanged(Ft)})("selectFocusedIndex",function(Ft){return et.selectedIndex=Ft}),f.YNc(2,Ce,9,17,"div",2),f.qZA(),f.TgZ(3,"div",3,4),f.YNc(5,at,1,11,"mat-tab-body",5),f.qZA()),2&oe&&(f.Q6J("selectedIndex",et.selectedIndex||0)("disableRipple",et.disableRipple),f.xp6(2),f.Q6J("ngForOf",et._tabs),f.xp6(1),f.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode),f.xp6(2),f.Q6J("ngForOf",et._tabs))},dependencies:[e.mk,e.sg,e.O5,S.Pl,A.wG,M.kH,Ye,a,ht],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),Se})();class Te{}let Tt=(()=>{class Se{}return Se.\u0275fac=function(oe){return new(oe||Se)},Se.\u0275mod=f.oAB({type:Se}),Se.\u0275inj=f.cJS({imports:[e.ez,A.BQ,S.eL,A.si,m.Q8,M.rt,A.BQ]}),Se})()},83683:(Qe,ae,p)=>{"use strict";p.d(ae,{Ye:()=>I,g0:()=>T});var e=p(94650),f=p(3238),A=p(83353),S=p(36895);const m=["*",[["mat-toolbar-row"]]],M=["*","mat-toolbar-row"],w=(0,f.pj)(class{constructor(H){this._elementRef=H}});let x=(()=>{class H{}return H.\u0275fac=function(J){return new(J||H)},H.\u0275dir=e.lG2({type:H,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),H})(),I=(()=>{class H extends w{constructor(J,fe,j){super(J),this._platform=fe,this._document=j}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return H.\u0275fac=function(J){return new(J||H)(e.Y36(e.SBq),e.Y36(A.t4),e.Y36(S.K0))},H.\u0275cmp=e.Xpm({type:H,selectors:[["mat-toolbar"]],contentQueries:function(J,fe,j){if(1&J&&e.Suo(j,x,5),2&J){let $;e.iGM($=e.CRH())&&(fe._toolbarRows=$)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(J,fe){2&J&&e.ekj("mat-toolbar-multiple-rows",fe._toolbarRows.length>0)("mat-toolbar-single-row",0===fe._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:M,decls:2,vars:0,template:function(J,fe){1&J&&(e.F$t(m),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),H})(),T=(()=>{class H{}return H.\u0275fac=function(J){return new(J||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[f.BQ,f.BQ]}),H})()},10266:(Qe,ae,p)=>{"use strict";p.d(ae,{AV:()=>X,gM:()=>Ve});var e=p(82722),f=p(95698),A=p(21281),S=p(29521),m=p(94650),M=p(36895),w=p(83353),x=p(12693),I=p(40445),F=p(98184),T=p(67376),H=p(84080),P=p(77579),fe=(p(37340),p(3238));const j=["tooltip"],ge=new m.OlP("mat-tooltip-scroll-strategy"),re={provide:ge,deps:[F.aV],useFactory:function pe(ce){return()=>ce.scrollStrategies.reposition({scrollThrottle:20})}},V=new m.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function v(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),te="tooltip-panel",ne=(0,w.i$)({passive:!0});let Fe=(()=>{class ce{constructor(ue,Pe,tt,Ce,at,Ue,pt,z,st,be,Ye,he){this._overlay=ue,this._elementRef=Pe,this._scrollDispatcher=tt,this._viewContainerRef=Ce,this._ngZone=at,this._platform=Ue,this._ariaDescriber=pt,this._focusMonitor=z,this._dir=be,this._defaultOptions=Ye,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new P.x,this._scrollStrategy=st,this._document=he,Ye&&(Ye.position&&(this.position=Ye.position),Ye.positionAtOrigin&&(this.positionAtOrigin=Ye.positionAtOrigin),Ye.touchGestures&&(this.touchGestures=Ye.touchGestures)),be.change.pipe((0,e.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(ue){ue!==this._position&&(this._position=ue,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(ue){this._positionAtOrigin=(0,A.Ig)(ue),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(ue){this._disabled=(0,A.Ig)(ue),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(ue){this._showDelay=(0,A.su)(ue)}get hideDelay(){return this._hideDelay}set hideDelay(ue){this._hideDelay=(0,A.su)(ue),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(ue){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=ue?String(ue).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(ue){this._tooltipClass=ue,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,e.R)(this._destroyed)).subscribe(ue=>{ue?"keyboard"===ue&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const ue=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Pe,tt])=>{ue.removeEventListener(Pe,tt,ne)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(ue,this.message,"tooltip"),this._focusMonitor.stopMonitoring(ue)}show(ue=this.showDelay,Pe){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const tt=this._createOverlay(Pe);this._detach(),this._portal=this._portal||new H.C5(this._tooltipComponent,this._viewContainerRef);const Ce=this._tooltipInstance=tt.attach(this._portal).instance;Ce._triggerElement=this._elementRef.nativeElement,Ce._mouseLeaveHideDelay=this._hideDelay,Ce.afterHidden().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Ce.show(ue)}hide(ue=this.hideDelay){const Pe=this._tooltipInstance;Pe&&(Pe.isVisible()?Pe.hide(ue):(Pe._cancelPendingAnimations(),this._detach()))}toggle(ue){this._isTooltipVisible()?this.hide():this.show(void 0,ue)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(ue){if(this._overlayRef){const Ce=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!ue)&&Ce._origin instanceof m.SBq)return this._overlayRef;this._detach()}const Pe=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),tt=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&ue||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Pe);return tt.positionChanges.pipe((0,e.R)(this._destroyed)).subscribe(Ce=>{this._updateCurrentPositionClass(Ce.connectionPair),this._tooltipInstance&&Ce.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:tt,panelClass:`${this._cssClassPrefix}-${te}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,e.R)(this._destroyed)).subscribe(Ce=>{this._isTooltipVisible()&&Ce.keyCode===S.hY&&!(0,S.Vb)(Ce)&&(Ce.preventDefault(),Ce.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(ue){const Pe=ue.getConfig().positionStrategy,tt=this._getOrigin(),Ce=this._getOverlayPosition();Pe.withPositions([this._addOffset({...tt.main,...Ce.main}),this._addOffset({...tt.fallback,...Ce.fallback})])}_addOffset(ue){return ue}_getOrigin(){const ue=!this._dir||"ltr"==this._dir.value,Pe=this.position;let tt;"above"==Pe||"below"==Pe?tt={originX:"center",originY:"above"==Pe?"top":"bottom"}:"before"==Pe||"left"==Pe&&ue||"right"==Pe&&!ue?tt={originX:"start",originY:"center"}:("after"==Pe||"right"==Pe&&ue||"left"==Pe&&!ue)&&(tt={originX:"end",originY:"center"});const{x:Ce,y:at}=this._invertPosition(tt.originX,tt.originY);return{main:tt,fallback:{originX:Ce,originY:at}}}_getOverlayPosition(){const ue=!this._dir||"ltr"==this._dir.value,Pe=this.position;let tt;"above"==Pe?tt={overlayX:"center",overlayY:"bottom"}:"below"==Pe?tt={overlayX:"center",overlayY:"top"}:"before"==Pe||"left"==Pe&&ue||"right"==Pe&&!ue?tt={overlayX:"end",overlayY:"center"}:("after"==Pe||"right"==Pe&&ue||"left"==Pe&&!ue)&&(tt={overlayX:"start",overlayY:"center"});const{x:Ce,y:at}=this._invertPosition(tt.overlayX,tt.overlayY);return{main:tt,fallback:{overlayX:Ce,overlayY:at}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,f.q)(1),(0,e.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(ue){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=ue,this._tooltipInstance._markForCheck())}_invertPosition(ue,Pe){return"above"===this.position||"below"===this.position?"top"===Pe?Pe="bottom":"bottom"===Pe&&(Pe="top"):"end"===ue?ue="start":"start"===ue&&(ue="end"),{x:ue,y:Pe}}_updateCurrentPositionClass(ue){const{overlayY:Pe,originX:tt,originY:Ce}=ue;let at;if(at="center"===Pe?this._dir&&"rtl"===this._dir.value?"end"===tt?"left":"right":"start"===tt?"left":"right":"bottom"===Pe&&"top"===Ce?"above":"below",at!==this._currentPosition){const Ue=this._overlayRef;if(Ue){const pt=`${this._cssClassPrefix}-${te}-`;Ue.removePanelClass(pt+this._currentPosition),Ue.addPanelClass(pt+at)}this._currentPosition=at}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",ue=>{let Pe;this._setupPointerExitEventsIfNeeded(),void 0!==ue.x&&void 0!==ue.y&&(Pe=ue),this.show(void 0,Pe)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",ue=>{const Pe=ue.targetTouches?.[0],tt=Pe?{x:Pe.clientX,y:Pe.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,tt),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const ue=[];if(this._platformSupportsMouseEvents())ue.push(["mouseleave",Pe=>{const tt=Pe.relatedTarget;(!tt||!this._overlayRef?.overlayElement.contains(tt))&&this.hide()}],["wheel",Pe=>this._wheelListener(Pe)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Pe=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};ue.push(["touchend",Pe],["touchcancel",Pe])}this._addListeners(ue),this._passiveListeners.push(...ue)}_addListeners(ue){ue.forEach(([Pe,tt])=>{this._elementRef.nativeElement.addEventListener(Pe,tt,ne)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(ue){if(this._isTooltipVisible()){const Pe=this._document.elementFromPoint(ue.clientX,ue.clientY),tt=this._elementRef.nativeElement;Pe!==tt&&!tt.contains(Pe)&&this.hide()}}_disableNativeGesturesIfNecessary(){const ue=this.touchGestures;if("off"!==ue){const Pe=this._elementRef.nativeElement,tt=Pe.style;("on"===ue||"INPUT"!==Pe.nodeName&&"TEXTAREA"!==Pe.nodeName)&&(tt.userSelect=tt.msUserSelect=tt.webkitUserSelect=tt.MozUserSelect="none"),("on"===ue||!Pe.draggable)&&(tt.webkitUserDrag="none"),tt.touchAction="none",tt.webkitTapHighlightColor="transparent"}}}return ce.\u0275fac=function(ue){m.$Z()},ce.\u0275dir=m.lG2({type:ce,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),ce})(),Ve=(()=>{class ce extends Fe{constructor(ue,Pe,tt,Ce,at,Ue,pt,z,st,be,Ye,he){super(ue,Pe,tt,Ce,at,Ue,pt,z,st,be,Ye,he),this._tooltipComponent=N,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(ue){const tt=!this._dir||"ltr"==this._dir.value;return"top"===ue.originY?ue.offsetY=-8:"bottom"===ue.originY?ue.offsetY=8:"start"===ue.originX?ue.offsetX=tt?-8:8:"end"===ue.originX&&(ue.offsetX=tt?8:-8),ue}}return ce.\u0275fac=function(ue){return new(ue||ce)(m.Y36(F.aV),m.Y36(m.SBq),m.Y36(T.mF),m.Y36(m.s_b),m.Y36(m.R0b),m.Y36(w.t4),m.Y36(x.$s),m.Y36(x.tE),m.Y36(ge),m.Y36(I.Is,8),m.Y36(V,8),m.Y36(M.K0))},ce.\u0275dir=m.lG2({type:ce,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[m.qOj]}),ce})(),le=(()=>{class ce{constructor(ue,Pe){this._changeDetectorRef=ue,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new P.x,this._animationsDisabled="NoopAnimations"===Pe}show(ue){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},ue)}hide(ue){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},ue)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:ue}){(!ue||!this._triggerElement.contains(ue))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:ue}){(ue===this._showAnimation||ue===this._hideAnimation)&&this._finalizeAnimation(ue===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(ue){ue?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(ue){const Pe=this._tooltip.nativeElement,tt=this._showAnimation,Ce=this._hideAnimation;if(Pe.classList.remove(ue?Ce:tt),Pe.classList.add(ue?tt:Ce),this._isVisible=ue,ue&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const at=getComputedStyle(Pe);("0s"===at.getPropertyValue("animation-duration")||"none"===at.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}ue&&this._onShow(),this._animationsDisabled&&(Pe.classList.add("_mat-animation-noopable"),this._finalizeAnimation(ue))}}return ce.\u0275fac=function(ue){return new(ue||ce)(m.Y36(m.sBO),m.Y36(m.QbO,8))},ce.\u0275dir=m.lG2({type:ce}),ce})(),N=(()=>{class ce extends le{constructor(ue,Pe,tt){super(ue,tt),this._elementRef=Pe,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const ue=this._elementRef.nativeElement.getBoundingClientRect();return ue.height>24&&ue.width>=200}}return ce.\u0275fac=function(ue){return new(ue||ce)(m.Y36(m.sBO),m.Y36(m.SBq),m.Y36(m.QbO,8))},ce.\u0275cmp=m.Xpm({type:ce,selectors:[["mat-tooltip-component"]],viewQuery:function(ue,Pe){if(1&ue&&m.Gf(j,7),2&ue){let tt;m.iGM(tt=m.CRH())&&(Pe._tooltip=tt.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(ue,Pe){1&ue&&m.NdJ("mouseleave",function(Ce){return Pe._handleMouseLeave(Ce)}),2&ue&&m.Udp("zoom",Pe.isVisible()?1:null)},features:[m.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(ue,Pe){1&ue&&(m.TgZ(0,"div",0,1),m.NdJ("animationend",function(Ce){return Pe._handleAnimationEnd(Ce)}),m.TgZ(2,"div",2),m._uU(3),m.qZA()()),2&ue&&(m.ekj("mdc-tooltip--multiline",Pe._isMultiline),m.Q6J("ngClass",Pe.tooltipClass),m.xp6(3),m.Oqu(Pe.message))},dependencies:[M.mk],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:-8px;right:-8px;bottom:-8px;left:-8px;z-index:-1;position:absolute}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),ce})(),X=(()=>{class ce{}return ce.\u0275fac=function(ue){return new(ue||ce)},ce.\u0275mod=m.oAB({type:ce}),ce.\u0275inj=m.cJS({providers:[re],imports:[x.rt,M.ez,F.U8,fe.BQ,fe.BQ,T.ZD]}),ce})()},35423:(Qe,ae,p)=>{"use strict";p.d(ae,{Ar:()=>fe,GZ:()=>P,JZ:()=>pe,WX:()=>v,dp:()=>ge,eu:()=>$,fQ:()=>H,gi:()=>j,kc:()=>re,uo:()=>T});var e=p(57851),f=p(94650),A=p(3238),S=p(21281),m=p(95017),M=p(61135),w=p(56451),x=p(95698),I=p(54004);const F=(0,A.sb)((0,A.Id)(e.Hs));let T=(()=>{class V extends F{constructor(te,ne,ye){super(te,ne),this.tabIndex=Number(ye)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return V.\u0275fac=function(te){return new(te||V)(f.Y36(f.SBq),f.Y36(e._0),f.$8M("tabindex"))},V.\u0275dir=f.lG2({type:V,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[f._Bn([{provide:e.Hs,useExisting:V}]),f.qOj]}),V})(),H=(()=>{class V extends e.rO{}return V.\u0275fac=function(){let W;return function(ne){return(W||(W=f.n5z(V)))(ne||V)}}(),V.\u0275dir=f.lG2({type:V,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[f._Bn([{provide:e.rO,useExisting:V}]),f.qOj]}),V})(),P=(()=>{class V extends e.Xx{constructor(te,ne,ye,ze){super(te,ne,ye),this._disabled=!1,this.tabIndex=Number(ze)||0}get disabled(){return this._disabled}set disabled(te){this._disabled=(0,S.Ig)(te)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(te){this._tabIndex=te??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return V.\u0275fac=function(te){return new(te||V)(f.Y36(f.SBq),f.Y36(e._0),f.Y36(f.ZZ4),f.$8M("tabindex"))},V.\u0275dir=f.lG2({type:V,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[f._Bn([{provide:e.Xx,useExisting:V},{provide:e.Hs,useExisting:V},{provide:e.HI,useExisting:V}]),f.qOj]}),V})(),fe=(()=>{class V{constructor(te,ne){this.viewContainer=te,this._node=ne}}return V.\u0275fac=function(te){return new(te||V)(f.Y36(f.s_b),f.Y36(e.HI,8))},V.\u0275dir=f.lG2({type:V,selectors:[["","matTreeNodeOutlet",""]],features:[f._Bn([{provide:e.cu,useExisting:V}])]}),V})(),j=(()=>{class V extends e._0{}return V.\u0275fac=function(){let W;return function(ne){return(W||(W=f.n5z(V)))(ne||V)}}(),V.\u0275cmp=f.Xpm({type:V,selectors:[["mat-tree"]],viewQuery:function(te,ne){if(1&te&&f.Gf(fe,7),2&te){let ye;f.iGM(ye=f.CRH())&&(ne._nodeOutlet=ye.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[f._Bn([{provide:e._0,useExisting:V}]),f.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(te,ne){1&te&&f.GkF(0,0)},dependencies:[fe],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),V})(),$=(()=>{class V extends e.Ud{}return V.\u0275fac=function(){let W;return function(ne){return(W||(W=f.n5z(V)))(ne||V)}}(),V.\u0275dir=f.lG2({type:V,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[f._Bn([{provide:e.Ud,useExisting:V}]),f.qOj]}),V})(),ge=(()=>{class V{}return V.\u0275fac=function(te){return new(te||V)},V.\u0275mod=f.oAB({type:V}),V.\u0275inj=f.cJS({imports:[e.nZ,A.BQ,A.BQ]}),V})();class pe{constructor(W,te,ne,ye){this.transformFunction=W,this.getLevel=te,this.isExpandable=ne,this.getChildren=ye}_flattenNode(W,te,ne,ye){const ze=this.transformFunction(W,te);if(ne.push(ze),this.isExpandable(ze)){const ke=this.getChildren(W);ke&&(Array.isArray(ke)?this._flattenChildren(ke,te,ne,ye):ke.pipe((0,x.q)(1)).subscribe($e=>{this._flattenChildren($e,te,ne,ye)}))}return ne}_flattenChildren(W,te,ne,ye){W.forEach((ze,ke)=>{let $e=ye.slice();$e.push(ke!=W.length-1),this._flattenNode(ze,te+1,ne,$e)})}flattenNodes(W){let te=[];return W.forEach(ne=>this._flattenNode(ne,0,te,[])),te}expandFlattenedNodes(W,te){let ne=[],ye=[];return ye[0]=!0,W.forEach(ze=>{let ke=!0;for(let $e=0;$e<=this.getLevel(ze);$e++)ke=ke&&ye[$e];ke&&ne.push(ze),this.isExpandable(ze)&&(ye[this.getLevel(ze)+1]=te.isExpanded(ze))}),ne}}class re extends m.o2{constructor(W,te,ne){super(),this._treeControl=W,this._treeFlattener=te,this._flattenedData=new M.X([]),this._expandedData=new M.X([]),this._data=new M.X([]),ne&&(this.data=ne)}get data(){return this._data.value}set data(W){this._data.next(W),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(W){return(0,w.T)(W.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,I.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class v extends m.o2{constructor(){super(...arguments),this._data=new M.X([])}get data(){return this._data.value}set data(W){this._data.next(W)}connect(W){return(0,w.T)(W.viewChange,this._data).pipe((0,I.U)(()=>this.data))}disconnect(){}}},11481:(Qe,ae,p)=>{"use strict";p.d(ae,{Dx:()=>o,H7:()=>ai,b2:()=>r,q6:()=>Re,se:()=>Je});var e=p(36895),f=p(94650);class A extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class S extends A{static makeCurrent(){(0,e.HT)(new S)}onAndCancel(We,oe,et){return We.addEventListener(oe,et,!1),()=>{We.removeEventListener(oe,et,!1)}}dispatchEvent(We,oe){We.dispatchEvent(oe)}remove(We){We.parentNode&&We.parentNode.removeChild(We)}createElement(We,oe){return(oe=oe||this.getDefaultDocument()).createElement(We)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(We){return We.nodeType===Node.ELEMENT_NODE}isShadowRoot(We){return We instanceof DocumentFragment}getGlobalEventTarget(We,oe){return"window"===oe?window:"document"===oe?We:"body"===oe?We.body:null}getBaseHref(We){const oe=function M(){return m=m||document.querySelector("base"),m?m.getAttribute("href"):null}();return null==oe?null:function x(Se){w=w||document.createElement("a"),w.setAttribute("href",Se);const We=w.pathname;return"/"===We.charAt(0)?We:`/${We}`}(oe)}resetBaseElement(){m=null}getUserAgent(){return window.navigator.userAgent}getCookie(We){return(0,e.Mx)(document.cookie,We)}}let w,m=null;const I=new f.OlP("TRANSITION_ID"),T=[{provide:f.ip1,useFactory:function F(Se,We,oe){return()=>{oe.get(f.CZH).donePromise.then(()=>{const et=(0,e.q)(),rt=We.querySelectorAll(`style[ng-transition="${Se}"]`);for(let Ft=0;Ft{class Se{build(){return new XMLHttpRequest}}return Se.\u0275fac=function(oe){return new(oe||Se)},Se.\u0275prov=f.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const J=new f.OlP("EventManagerPlugins");let fe=(()=>{class Se{constructor(oe,et){this._zone=et,this._eventNameToPlugin=new Map,oe.forEach(rt=>rt.manager=this),this._plugins=oe.slice().reverse()}addEventListener(oe,et,rt){return this._findPluginFor(et).addEventListener(oe,et,rt)}addGlobalEventListener(oe,et,rt){return this._findPluginFor(et).addGlobalEventListener(oe,et,rt)}getZone(){return this._zone}_findPluginFor(oe){const et=this._eventNameToPlugin.get(oe);if(et)return et;const rt=this._plugins;for(let Ft=0;Ft{class Se{constructor(){this._stylesSet=new Set}addStyles(oe){const et=new Set;oe.forEach(rt=>{this._stylesSet.has(rt)||(this._stylesSet.add(rt),et.add(rt))}),this.onStylesAdded(et)}onStylesAdded(oe){}getAllStyles(){return Array.from(this._stylesSet)}}return Se.\u0275fac=function(oe){return new(oe||Se)},Se.\u0275prov=f.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),_e=(()=>{class Se extends ${constructor(oe){super(),this._doc=oe,this._hostNodes=new Map,this._hostNodes.set(oe.head,[])}_addStylesToHost(oe,et,rt){oe.forEach(Ft=>{const yt=this._doc.createElement("style");yt.textContent=Ft,rt.push(et.appendChild(yt))})}addHost(oe){const et=[];this._addStylesToHost(this._stylesSet,oe,et),this._hostNodes.set(oe,et)}removeHost(oe){const et=this._hostNodes.get(oe);et&&et.forEach(ge),this._hostNodes.delete(oe)}onStylesAdded(oe){this._hostNodes.forEach((et,rt)=>{this._addStylesToHost(oe,rt,et)})}ngOnDestroy(){this._hostNodes.forEach(oe=>oe.forEach(ge))}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.LFG(e.K0))},Se.\u0275prov=f.Yz7({token:Se,factory:Se.\u0275fac}),Se})();function ge(Se){(0,e.q)().remove(Se)}const pe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},re=/%COMP%/g,V="%COMP%",W=`_nghost-${V}`,te=`_ngcontent-${V}`;function ze(Se,We){return We.flat(100).map(oe=>oe.replace(re,Se))}function ke(Se){return We=>{if("__ngUnwrap__"===We)return Se;!1===Se(We)&&(We.preventDefault(),We.returnValue=!1)}}let Je=(()=>{class Se{constructor(oe,et,rt){this.eventManager=oe,this.sharedStylesHost=et,this.appId=rt,this.rendererByCompId=new Map,this.defaultRenderer=new Fe(oe)}createRenderer(oe,et){if(!oe||!et)return this.defaultRenderer;switch(et.encapsulation){case f.ifc.Emulated:{let rt=this.rendererByCompId.get(et.id);return rt||(rt=new U(this.eventManager,this.sharedStylesHost,et,this.appId),this.rendererByCompId.set(et.id,rt)),rt.applyToHost(oe),rt}case 1:case f.ifc.ShadowDom:return new X(this.eventManager,this.sharedStylesHost,oe,et);default:if(!this.rendererByCompId.has(et.id)){const rt=ze(et.id,et.styles);this.sharedStylesHost.addStyles(rt),this.rendererByCompId.set(et.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.LFG(fe),f.LFG(_e),f.LFG(f.AFp))},Se.\u0275prov=f.Yz7({token:Se,factory:Se.\u0275fac}),Se})();class Fe{constructor(We){this.eventManager=We,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(We,oe){return oe?document.createElementNS(pe[oe]||oe,We):document.createElement(We)}createComment(We){return document.createComment(We)}createText(We){return document.createTextNode(We)}appendChild(We,oe){(N(We)?We.content:We).appendChild(oe)}insertBefore(We,oe,et){We&&(N(We)?We.content:We).insertBefore(oe,et)}removeChild(We,oe){We&&We.removeChild(oe)}selectRootElement(We,oe){let et="string"==typeof We?document.querySelector(We):We;if(!et)throw new Error(`The selector "${We}" did not match any elements`);return oe||(et.textContent=""),et}parentNode(We){return We.parentNode}nextSibling(We){return We.nextSibling}setAttribute(We,oe,et,rt){if(rt){oe=rt+":"+oe;const Ft=pe[rt];Ft?We.setAttributeNS(Ft,oe,et):We.setAttribute(oe,et)}else We.setAttribute(oe,et)}removeAttribute(We,oe,et){if(et){const rt=pe[et];rt?We.removeAttributeNS(rt,oe):We.removeAttribute(`${et}:${oe}`)}else We.removeAttribute(oe)}addClass(We,oe){We.classList.add(oe)}removeClass(We,oe){We.classList.remove(oe)}setStyle(We,oe,et,rt){rt&(f.JOm.DashCase|f.JOm.Important)?We.style.setProperty(oe,et,rt&f.JOm.Important?"important":""):We.style[oe]=et}removeStyle(We,oe,et){et&f.JOm.DashCase?We.style.removeProperty(oe):We.style[oe]=""}setProperty(We,oe,et){We[oe]=et}setValue(We,oe){We.nodeValue=oe}listen(We,oe,et){return"string"==typeof We?this.eventManager.addGlobalEventListener(We,oe,ke(et)):this.eventManager.addEventListener(We,oe,ke(et))}}function N(Se){return"TEMPLATE"===Se.tagName&&void 0!==Se.content}class U extends Fe{constructor(We,oe,et,rt){super(We),this.component=et;const Ft=ze(rt+"-"+et.id,et.styles);oe.addStyles(Ft),this.contentAttr=function ne(Se){return te.replace(re,Se)}(rt+"-"+et.id),this.hostAttr=function ye(Se){return W.replace(re,Se)}(rt+"-"+et.id)}applyToHost(We){super.setAttribute(We,this.hostAttr,"")}createElement(We,oe){const et=super.createElement(We,oe);return super.setAttribute(et,this.contentAttr,""),et}}class X extends Fe{constructor(We,oe,et,rt){super(We),this.sharedStylesHost=oe,this.hostEl=et,this.shadowRoot=et.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ft=ze(rt.id,rt.styles);for(let yt=0;yt{class Se extends j{constructor(oe){super(oe)}supports(oe){return!0}addEventListener(oe,et,rt){return oe.addEventListener(et,rt,!1),()=>this.removeEventListener(oe,et,rt)}removeEventListener(oe,et,rt){return oe.removeEventListener(et,rt)}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.LFG(e.K0))},Se.\u0275prov=f.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const Me=["alt","control","meta","shift"],ue={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Pe={alt:Se=>Se.altKey,control:Se=>Se.ctrlKey,meta:Se=>Se.metaKey,shift:Se=>Se.shiftKey};let tt=(()=>{class Se extends j{constructor(oe){super(oe)}supports(oe){return null!=Se.parseEventName(oe)}addEventListener(oe,et,rt){const Ft=Se.parseEventName(et),yt=Se.eventCallback(Ft.fullKey,rt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(oe,Ft.domEventName,yt))}static parseEventName(oe){const et=oe.toLowerCase().split("."),rt=et.shift();if(0===et.length||"keydown"!==rt&&"keyup"!==rt)return null;const Ft=Se._normalizeKey(et.pop());let yt="",Zt=et.indexOf("code");if(Zt>-1&&(et.splice(Zt,1),yt="code."),Me.forEach(Di=>{const At=et.indexOf(Di);At>-1&&(et.splice(At,1),yt+=Di+".")}),yt+=Ft,0!=et.length||0===Ft.length)return null;const li={};return li.domEventName=rt,li.fullKey=yt,li}static matchEventFullKeyCode(oe,et){let rt=ue[oe.key]||oe.key,Ft="";return et.indexOf("code.")>-1&&(rt=oe.code,Ft="code."),!(null==rt||!rt)&&(rt=rt.toLowerCase()," "===rt?rt="space":"."===rt&&(rt="dot"),Me.forEach(yt=>{yt!==rt&&(0,Pe[yt])(oe)&&(Ft+=yt+".")}),Ft+=rt,Ft===et)}static eventCallback(oe,et,rt){return Ft=>{Se.matchEventFullKeyCode(Ft,oe)&&rt.runGuarded(()=>et(Ft))}}static _normalizeKey(oe){return"esc"===oe?"escape":oe}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.LFG(e.K0))},Se.\u0275prov=f.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const Re=(0,f.eFA)(f._c5,"browser",[{provide:f.Lbi,useValue:e.bD},{provide:f.g9A,useValue:function st(){S.makeCurrent()},multi:!0},{provide:e.K0,useFactory:function Ye(){return(0,f.RDi)(document),document},deps:[]}]),He=new f.OlP(""),ve=[{provide:f.rWj,useClass:class H{addToWindow(We){f.dqk.getAngularTestability=(et,rt=!0)=>{const Ft=We.findTestabilityInTree(et,rt);if(null==Ft)throw new Error("Could not find testability for element.");return Ft},f.dqk.getAllAngularTestabilities=()=>We.getAllTestabilities(),f.dqk.getAllAngularRootElements=()=>We.getAllRootElements(),f.dqk.frameworkStabilizers||(f.dqk.frameworkStabilizers=[]),f.dqk.frameworkStabilizers.push(et=>{const rt=f.dqk.getAllAngularTestabilities();let Ft=rt.length,yt=!1;const Zt=function(li){yt=yt||li,Ft--,0==Ft&&et(yt)};rt.forEach(function(li){li.whenStable(Zt)})})}findTestabilityInTree(We,oe,et){return null==oe?null:We.getTestability(oe)??(et?(0,e.q)().isShadowRoot(oe)?this.findTestabilityInTree(We,oe.host,!0):this.findTestabilityInTree(We,oe.parentElement,!0):null)}},deps:[]},{provide:f.lri,useClass:f.dDg,deps:[f.R0b,f.eoX,f.rWj]},{provide:f.dDg,useClass:f.dDg,deps:[f.R0b,f.eoX,f.rWj]}],Oe=[{provide:f.zSh,useValue:"root"},{provide:f.qLn,useFactory:function be(){return new f.qLn},deps:[]},{provide:J,useClass:ce,multi:!0,deps:[e.K0,f.R0b,f.Lbi]},{provide:J,useClass:tt,multi:!0,deps:[e.K0]},{provide:Je,useClass:Je,deps:[fe,_e,f.AFp]},{provide:f.FYo,useExisting:Je},{provide:$,useExisting:_e},{provide:_e,useClass:_e,deps:[e.K0]},{provide:fe,useClass:fe,deps:[J,f.R0b]},{provide:e.JF,useClass:P,deps:[]},[]];let r=(()=>{class Se{constructor(oe){}static withServerTransition(oe){return{ngModule:Se,providers:[{provide:f.AFp,useValue:oe.appId},{provide:I,useExisting:f.AFp},T]}}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.LFG(He,12))},Se.\u0275mod=f.oAB({type:Se}),Se.\u0275inj=f.cJS({providers:[...Oe,...ve],imports:[e.ez,f.hGG]}),Se})(),o=(()=>{class Se{constructor(oe){this._doc=oe}getTitle(){return this._doc.title}setTitle(oe){this._doc.title=oe||""}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.LFG(e.K0))},Se.\u0275prov=f.Yz7({token:Se,factory:function(oe){let et=null;return et=oe?new oe:function h(){return new o((0,f.LFG)(e.K0))}(),et},providedIn:"root"}),Se})();typeof window<"u"&&window;let ai=(()=>{class Se{}return Se.\u0275fac=function(oe){return new(oe||Se)},Se.\u0275prov=f.Yz7({token:Se,factory:function(oe){let et=null;return et=oe?new(oe||Se):f.LFG(Ut),et},providedIn:"root"}),Se})(),Ut=(()=>{class Se extends ai{constructor(oe){super(),this._doc=oe}sanitize(oe,et){if(null==et)return null;switch(oe){case f.q3G.NONE:return et;case f.q3G.HTML:return(0,f.qzn)(et,"HTML")?(0,f.z3N)(et):(0,f.EiD)(this._doc,String(et)).toString();case f.q3G.STYLE:return(0,f.qzn)(et,"Style")?(0,f.z3N)(et):et;case f.q3G.SCRIPT:if((0,f.qzn)(et,"Script"))return(0,f.z3N)(et);throw new Error("unsafe value used in a script context");case f.q3G.URL:return(0,f.qzn)(et,"URL")?(0,f.z3N)(et):(0,f.mCW)(String(et));case f.q3G.RESOURCE_URL:if((0,f.qzn)(et,"ResourceURL"))return(0,f.z3N)(et);throw new Error(`unsafe value used in a resource URL context (see ${f.JZr})`);default:throw new Error(`Unexpected SecurityContext ${oe} (see ${f.JZr})`)}}bypassSecurityTrustHtml(oe){return(0,f.JVY)(oe)}bypassSecurityTrustStyle(oe){return(0,f.L6k)(oe)}bypassSecurityTrustScript(oe){return(0,f.eBb)(oe)}bypassSecurityTrustUrl(oe){return(0,f.LAX)(oe)}bypassSecurityTrustResourceUrl(oe){return(0,f.pB0)(oe)}}return Se.\u0275fac=function(oe){return new(oe||Se)(f.LFG(e.K0))},Se.\u0275prov=f.Yz7({token:Se,factory:function(oe){let et=null;return et=oe?new oe:function pi(Se){return new Ut(Se.get(e.K0))}(f.LFG(f.zs3)),et},providedIn:"root"}),Se})()},82761:(Qe,ae,p)=>{"use strict";p.d(ae,{gz:()=>Ii,m2:()=>en,OD:()=>Vi,GZ:()=>_s,wN:()=>ro,F0:()=>qn,rH:()=>Ea,Bz:()=>jl,lC:()=>Aa});var e=p(94650),f=p(32076),A=p(39646),S=p(61135),m=p(86805),M=p(39841),w=p(97272),x=p(49770),I=p(89635),F=p(62843),T=p(69751),H=p(60515),P=p(94033),J=p(77579),fe=p(36895),j=p(54004),$=p(63900),_e=p(95698),ge=p(68675),pe=p(39300),re=p(86099),v=p(50590),V=p(24351),W=p(18505),te=p(70262),ne=p(54482),ye=p(57359);function ze(ee,se){return(0,ne.e)((0,ye.U)(ee,se,arguments.length>=2,!0))}var ke=p(25403);function $e(ee){return ee<=0?()=>H.E:(0,ne.e)((se,G)=>{let De=[];se.subscribe((0,ke.x)(G,Xe=>{De.push(Xe),ee{for(const Xe of De)G.next(Xe);G.complete()},void 0,()=>{De=null}))})}var Je=p(18068),Fe=p(46590),Ve=p(44671);function le(ee,se){const G=arguments.length>=2;return De=>De.pipe(ee?(0,pe.h)((Xe,vt)=>ee(Xe,vt,De)):Ve.y,$e(1),G?(0,Fe.d)(se):(0,Je.T)(()=>new m.K))}var N=p(22529),U=p(69718),X=p(28746),ce=p(38343),Me=p(8189),ue=p(11481);const Pe="primary",tt=Symbol("RouteTitle");class Ce{constructor(se){this.params=se||{}}has(se){return Object.prototype.hasOwnProperty.call(this.params,se)}get(se){if(this.has(se)){const G=this.params[se];return Array.isArray(G)?G[0]:G}return null}getAll(se){if(this.has(se)){const G=this.params[se];return Array.isArray(G)?G:[G]}return[]}get keys(){return Object.keys(this.params)}}function at(ee){return new Ce(ee)}function Ue(ee,se,G){const De=G.path.split("/");if(De.length>ee.length||"full"===G.pathMatch&&(se.hasChildren()||De.lengthDe[vt]===Xe)}return ee===se}function be(ee){return Array.prototype.concat.apply([],ee)}function Ye(ee){return ee.length>0?ee[ee.length-1]:null}function Re(ee,se){for(const G in ee)ee.hasOwnProperty(G)&&se(ee[G],G)}function He(ee){return(0,e.CqO)(ee)?ee:(0,e.QGY)(ee)?(0,f.D)(Promise.resolve(ee)):(0,A.of)(ee)}const ve=!1,Oe={exact:function C(ee,se,G){if(!d(ee.segments,se.segments)||!t(ee.segments,se.segments,G)||ee.numberOfChildren!==se.numberOfChildren)return!1;for(const De in se.children)if(!ee.children[De]||!C(ee.children[De],se.children[De],G))return!1;return!0},subset:o},r={exact:function _(ee,se){return z(ee,se)},subset:function h(ee,se){return Object.keys(se).length<=Object.keys(ee).length&&Object.keys(se).every(G=>st(ee[G],se[G]))},ignored:()=>!0};function u(ee,se,G){return Oe[G.paths](ee.root,se.root,G.matrixParams)&&r[G.queryParams](ee.queryParams,se.queryParams)&&!("exact"===G.fragment&&ee.fragment!==se.fragment)}function o(ee,se,G){return n(ee,se,se.segments,G)}function n(ee,se,G,De){if(ee.segments.length>G.length){const Xe=ee.segments.slice(0,G.length);return!(!d(Xe,G)||se.hasChildren()||!t(Xe,G,De))}if(ee.segments.length===G.length){if(!d(ee.segments,G)||!t(ee.segments,G,De))return!1;for(const Xe in se.children)if(!ee.children[Xe]||!o(ee.children[Xe],se.children[Xe],De))return!1;return!0}{const Xe=G.slice(0,ee.segments.length),vt=G.slice(ee.segments.length);return!!(d(ee.segments,Xe)&&t(ee.segments,Xe,De)&&ee.children[Pe])&&n(ee.children[Pe],se,vt,De)}}function t(ee,se,G){return se.every((De,Xe)=>r[G](ee[Xe].parameters,De.parameters))}class i{constructor(se=new a([],{}),G={},De=null){this.root=se,this.queryParams=G,this.fragment=De}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=at(this.queryParams)),this._queryParamMap}toString(){return q.serialize(this)}}class a{constructor(se,G){this.segments=se,this.children=G,this.parent=null,Re(G,(De,Xe)=>De.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return qe(this)}}class c{constructor(se,G){this.path=se,this.parameters=G}get parameterMap(){return this._parameterMap||(this._parameterMap=at(this.parameters)),this._parameterMap}toString(){return Ae(this)}}function d(ee,se){return ee.length===se.length&&ee.every((G,De)=>G.path===se[De].path)}let E=(()=>{class ee{}return ee.\u0275fac=function(G){return new(G||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return new B},providedIn:"root"}),ee})();class B{parse(se){const G=new Ut(se);return new i(G.parseRootSegment(),G.parseQueryParams(),G.parseFragment())}serialize(se){const G=`/${it(se.root,!0)}`,De=function ut(ee){const se=Object.keys(ee).map(G=>{const De=ee[G];return Array.isArray(De)?De.map(Xe=>`${ht(G)}=${ht(Xe)}`).join("&"):`${ht(G)}=${ht(De)}`}).filter(G=>!!G);return se.length?`?${se.join("&")}`:""}(se.queryParams);return`${G}${De}${"string"==typeof se.fragment?`#${function _t(ee){return encodeURI(ee)}(se.fragment)}`:""}`}}const q=new B;function qe(ee){return ee.segments.map(se=>Ae(se)).join("/")}function it(ee,se){if(!ee.hasChildren())return qe(ee);if(se){const G=ee.children[Pe]?it(ee.children[Pe],!1):"",De=[];return Re(ee.children,(Xe,vt)=>{vt!==Pe&&De.push(`${vt}:${it(Xe,!1)}`)}),De.length>0?`${G}(${De.join("//")})`:G}{const G=function s(ee,se){let G=[];return Re(ee.children,(De,Xe)=>{Xe===Pe&&(G=G.concat(se(De,Xe)))}),Re(ee.children,(De,Xe)=>{Xe!==Pe&&(G=G.concat(se(De,Xe)))}),G}(ee,(De,Xe)=>Xe===Pe?[it(ee.children[Pe],!1)]:[`${Xe}:${it(De,!1)}`]);return 1===Object.keys(ee.children).length&&null!=ee.children[Pe]?`${qe(ee)}/${G[0]}`:`${qe(ee)}/(${G.join("//")})`}}function xt(ee){return encodeURIComponent(ee).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ht(ee){return xt(ee).replace(/%3B/gi,";")}function Ee(ee){return xt(ee).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function we(ee){return decodeURIComponent(ee)}function de(ee){return we(ee.replace(/\+/g,"%20"))}function Ae(ee){return`${Ee(ee.path)}${function Te(ee){return Object.keys(ee).map(se=>`;${Ee(se)}=${Ee(ee[se])}`).join("")}(ee.parameters)}`}const bt=/^[^\/()?;=#]+/;function Ht(ee){const se=ee.match(bt);return se?se[0]:""}const Mt=/^[^=?&#]+/,ai=/^[^&#]+/;class Ut{constructor(se){this.url=se,this.remaining=se}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new a([],{}):new a([],this.parseChildren())}parseQueryParams(){const se={};if(this.consumeOptional("?"))do{this.parseQueryParam(se)}while(this.consumeOptional("&"));return se}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const se=[];for(this.peekStartsWith("(")||se.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),se.push(this.parseSegment());let G={};this.peekStartsWith("/(")&&(this.capture("/"),G=this.parseParens(!0));let De={};return this.peekStartsWith("(")&&(De=this.parseParens(!1)),(se.length>0||Object.keys(G).length>0)&&(De[Pe]=new a(se,G)),De}parseSegment(){const se=Ht(this.remaining);if(""===se&&this.peekStartsWith(";"))throw new e.vHH(4009,ve);return this.capture(se),new c(we(se),this.parseMatrixParams())}parseMatrixParams(){const se={};for(;this.consumeOptional(";");)this.parseParam(se);return se}parseParam(se){const G=Ht(this.remaining);if(!G)return;this.capture(G);let De="";if(this.consumeOptional("=")){const Xe=Ht(this.remaining);Xe&&(De=Xe,this.capture(De))}se[we(G)]=we(De)}parseQueryParam(se){const G=function It(ee){const se=ee.match(Mt);return se?se[0]:""}(this.remaining);if(!G)return;this.capture(G);let De="";if(this.consumeOptional("=")){const Et=function pi(ee){const se=ee.match(ai);return se?se[0]:""}(this.remaining);Et&&(De=Et,this.capture(De))}const Xe=de(G),vt=de(De);if(se.hasOwnProperty(Xe)){let Et=se[Xe];Array.isArray(Et)||(Et=[Et],se[Xe]=Et),Et.push(vt)}else se[Xe]=vt}parseParens(se){const G={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const De=Ht(this.remaining),Xe=this.remaining[De.length];if("/"!==Xe&&")"!==Xe&&";"!==Xe)throw new e.vHH(4010,ve);let vt;De.indexOf(":")>-1?(vt=De.slice(0,De.indexOf(":")),this.capture(vt),this.capture(":")):se&&(vt=Pe);const Et=this.parseChildren();G[vt]=1===Object.keys(Et).length?Et[Pe]:new a([],Et),this.consumeOptional("//")}return G}peekStartsWith(se){return this.remaining.startsWith(se)}consumeOptional(se){return!!this.peekStartsWith(se)&&(this.remaining=this.remaining.substring(se.length),!0)}capture(se){if(!this.consumeOptional(se))throw new e.vHH(4011,ve)}}function Tt(ee){return ee.segments.length>0?new a([],{[Pe]:ee}):ee}function Se(ee){const se={};for(const De of Object.keys(ee.children)){const vt=Se(ee.children[De]);(vt.segments.length>0||vt.hasChildren())&&(se[De]=vt)}return function We(ee){if(1===ee.numberOfChildren&&ee.children[Pe]){const se=ee.children[Pe];return new a(ee.segments.concat(se.segments),se.children)}return ee}(new a(ee.segments,se))}function oe(ee){return ee instanceof i}const et=!1;function Zt(ee,se,G,De,Xe){if(0===G.length)return At(se.root,se.root,se.root,De,Xe);const vt=function Bt(ee){if("string"==typeof ee[0]&&1===ee.length&&"/"===ee[0])return new ft(!0,0,ee);let se=0,G=!1;const De=ee.reduce((Xe,vt,Et)=>{if("object"==typeof vt&&null!=vt){if(vt.outlets){const qt={};return Re(vt.outlets,(hi,yi)=>{qt[yi]="string"==typeof hi?hi.split("/"):hi}),[...Xe,{outlets:qt}]}if(vt.segmentPath)return[...Xe,vt.segmentPath]}return"string"!=typeof vt?[...Xe,vt]:0===Et?(vt.split("/").forEach((qt,hi)=>{0==hi&&"."===qt||(0==hi&&""===qt?G=!0:".."===qt?se++:""!=qt&&Xe.push(qt))}),Xe):[...Xe,vt]},[]);return new ft(G,se,De)}(G);return vt.toRoot()?At(se.root,se.root,new a([],{}),De,Xe):function Et(hi){const yi=function di(ee,se,G,De){if(ee.isAbsolute)return new Kt(se.root,!0,0);if(-1===De)return new Kt(G,G===se.root,0);return function Ai(ee,se,G){let De=ee,Xe=se,vt=G;for(;vt>Xe;){if(vt-=Xe,De=De.parent,!De)throw new e.vHH(4005,et&&"Invalid number of '../'");Xe=De.segments.length}return new Kt(De,!1,Xe-vt)}(G,De+(li(ee.commands[0])?0:1),ee.numberOfDoubleDots)}(vt,se,ee.snapshot?._urlSegment,hi),xi=yi.processChildren?Gt(yi.segmentGroup,yi.index,vt.commands):Dt(yi.segmentGroup,yi.index,vt.commands);return At(se.root,yi.segmentGroup,xi,De,Xe)}(ee.snapshot?._lastPathIndex)}function li(ee){return"object"==typeof ee&&null!=ee&&!ee.outlets&&!ee.segmentPath}function Di(ee){return"object"==typeof ee&&null!=ee&&ee.outlets}function At(ee,se,G,De,Xe){let Et,vt={};De&&Re(De,(hi,yi)=>{vt[yi]=Array.isArray(hi)?hi.map(xi=>`${xi}`):`${hi}`}),Et=ee===se?G:Nt(ee,se,G);const qt=Tt(Se(Et));return new i(qt,vt,Xe)}function Nt(ee,se,G){const De={};return Re(ee.children,(Xe,vt)=>{De[vt]=Xe===se?G:Nt(Xe,se,G)}),new a(ee.segments,De)}class ft{constructor(se,G,De){if(this.isAbsolute=se,this.numberOfDoubleDots=G,this.commands=De,se&&De.length>0&&li(De[0]))throw new e.vHH(4003,et&&"Root segment cannot have matrix parameters");const Xe=De.find(Di);if(Xe&&Xe!==Ye(De))throw new e.vHH(4004,et&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Kt{constructor(se,G,De){this.segmentGroup=se,this.processChildren=G,this.index=De}}function Dt(ee,se,G){if(ee||(ee=new a([],{})),0===ee.segments.length&&ee.hasChildren())return Gt(ee,se,G);const De=function Q(ee,se,G){let De=0,Xe=se;const vt={match:!1,pathIndex:0,commandIndex:0};for(;Xe=G.length)return vt;const Et=ee.segments[Xe],qt=G[De];if(Di(qt))break;const hi=`${qt}`,yi=De0&&void 0===hi)break;if(hi&&yi&&"object"==typeof yi&&void 0===yi.outlets){if(!ci(hi,yi,Et))return vt;De+=2}else{if(!ci(hi,{},Et))return vt;De++}Xe++}return{match:!0,pathIndex:Xe,commandIndex:De}}(ee,se,G),Xe=G.slice(De.commandIndex);if(De.match&&De.pathIndex{"string"==typeof vt&&(vt=[vt]),null!==vt&&(Xe[Et]=Dt(ee.children[Et],se,vt))}),Re(ee.children,(vt,Et)=>{void 0===De[Et]&&(Xe[Et]=vt)}),new a(ee.segments,Xe)}}function Ie(ee,se,G){const De=ee.segments.slice(0,se);let Xe=0;for(;Xe{"string"==typeof G&&(G=[G]),null!==G&&(se[De]=Ie(new a([],{}),0,G))}),se}function Pt(ee){const se={};return Re(ee,(G,De)=>se[De]=`${G}`),se}function ci(ee,se,G){return ee==G.path&&z(se,G.parameters)}class bi{constructor(se,G){this.id=se,this.url=G}}class Vi extends bi{constructor(se,G,De="imperative",Xe=null){super(se,G),this.type=0,this.navigationTrigger=De,this.restoredState=Xe}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class en extends bi{constructor(se,G,De){super(se,G),this.urlAfterRedirects=De,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ji extends bi{constructor(se,G,De,Xe){super(se,G),this.reason=De,this.code=Xe,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class on extends bi{constructor(se,G,De,Xe){super(se,G),this.error=De,this.target=Xe,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class wn extends bi{constructor(se,G,De,Xe){super(se,G),this.urlAfterRedirects=De,this.state=Xe,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hi extends bi{constructor(se,G,De,Xe){super(se,G),this.urlAfterRedirects=De,this.state=Xe,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qn extends bi{constructor(se,G,De,Xe,vt){super(se,G),this.urlAfterRedirects=De,this.state=Xe,this.shouldActivate=vt,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class cr extends bi{constructor(se,G,De,Xe){super(se,G),this.urlAfterRedirects=De,this.state=Xe,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ur extends bi{constructor(se,G,De,Xe){super(se,G),this.urlAfterRedirects=De,this.state=Xe,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cr{constructor(se){this.route=se,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class bn{constructor(se){this.route=se,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class dr{constructor(se){this.snapshot=se,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class On{constructor(se){this.snapshot=se,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hn{constructor(se){this.snapshot=se,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rr{constructor(se){this.snapshot=se,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fn{constructor(se,G,De){this.routerEvent=se,this.position=G,this.anchor=De,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let mn=(()=>{class ee{createUrlTree(G,De,Xe,vt,Et,qt){return Zt(G||De.root,Xe,vt,Et,qt)}}return ee.\u0275fac=function(G){return new(G||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac}),ee})(),ar=(()=>{class ee{}return ee.\u0275fac=function(G){return new(G||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:function(se){return mn.\u0275fac(se)},providedIn:"root"}),ee})();class Gn{constructor(se){this._root=se}get root(){return this._root.value}parent(se){const G=this.pathFromRoot(se);return G.length>1?G[G.length-2]:null}children(se){const G=Un(se,this._root);return G?G.children.map(De=>De.value):[]}firstChild(se){const G=Un(se,this._root);return G&&G.children.length>0?G.children[0].value:null}siblings(se){const G=St(se,this._root);return G.length<2?[]:G[G.length-2].children.map(Xe=>Xe.value).filter(Xe=>Xe!==se)}pathFromRoot(se){return St(se,this._root).map(G=>G.value)}}function Un(ee,se){if(ee===se.value)return se;for(const G of se.children){const De=Un(ee,G);if(De)return De}return null}function St(ee,se){if(ee===se.value)return[se];for(const G of se.children){const De=St(ee,G);if(De.length)return De.unshift(se),De}return[]}class ri{constructor(se,G){this.value=se,this.children=G}toString(){return`TreeNode(${this.value})`}}function lt(ee){const se={};return ee&&ee.children.forEach(G=>se[G.value.outlet]=G),se}class jt extends Gn{constructor(se,G){super(se),this.snapshot=G,zn(this,se)}toString(){return this.snapshot.toString()}}function Jt(ee,se){const G=function ui(ee,se){const Et=new Pn([],{},{},"",{},Pe,se,null,ee.root,-1,{});return new Dr("",new ri(Et,[]))}(ee,se),De=new S.X([new c("",{})]),Xe=new S.X({}),vt=new S.X({}),Et=new S.X({}),qt=new S.X(""),hi=new Ii(De,Xe,Et,qt,vt,Pe,se,G.root);return hi.snapshot=G.root,new jt(new ri(hi,[]),G)}class Ii{constructor(se,G,De,Xe,vt,Et,qt,hi){this.url=se,this.params=G,this.queryParams=De,this.fragment=Xe,this.data=vt,this.outlet=Et,this.component=qt,this.title=this.data?.pipe((0,j.U)(yi=>yi[tt]))??(0,A.of)(void 0),this._futureSnapshot=hi}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,j.U)(se=>at(se)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,j.U)(se=>at(se)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Li(ee,se="emptyOnly"){const G=ee.pathFromRoot;let De=0;if("always"!==se)for(De=G.length-1;De>=1;){const Xe=G[De],vt=G[De-1];if(Xe.routeConfig&&""===Xe.routeConfig.path)De--;else{if(vt.component)break;De--}}return function Qi(ee){return ee.reduce((se,G)=>({params:{...se.params,...G.params},data:{...se.data,...G.data},resolve:{...G.data,...se.resolve,...G.routeConfig?.data,...G._resolvedData}}),{params:{},data:{},resolve:{}})}(G.slice(De))}class Pn{constructor(se,G,De,Xe,vt,Et,qt,hi,yi,xi,un){this.url=se,this.params=G,this.queryParams=De,this.fragment=Xe,this.data=vt,this.outlet=Et,this.component=qt,this.routeConfig=hi,this._urlSegment=yi,this._lastPathIndex=xi,this._resolve=un}get title(){return this.data?.[tt]}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=at(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=at(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(De=>De.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Dr extends Gn{constructor(se,G){super(G),this.url=se,zn(this,G)}toString(){return $n(this._root)}}function zn(ee,se){se.value._routerState=ee,se.children.forEach(G=>zn(ee,G))}function $n(ee){const se=ee.children.length>0?` { ${ee.children.map($n).join(", ")} } `:"";return`${ee.value}${se}`}function wr(ee){if(ee.snapshot){const se=ee.snapshot,G=ee._futureSnapshot;ee.snapshot=G,z(se.queryParams,G.queryParams)||ee.queryParams.next(G.queryParams),se.fragment!==G.fragment&&ee.fragment.next(G.fragment),z(se.params,G.params)||ee.params.next(G.params),function pt(ee,se){if(ee.length!==se.length)return!1;for(let G=0;Gz(G.parameters,se[De].parameters))}(ee.url,se.url);return G&&!(!ee.parent!=!se.parent)&&(!ee.parent||Rr(ee.parent,se.parent))}function ct(ee,se,G){if(G&&ee.shouldReuseRoute(se.value,G.value.snapshot)){const De=G.value;De._futureSnapshot=se.value;const Xe=function Yt(ee,se,G){return se.children.map(De=>{for(const Xe of G.children)if(ee.shouldReuseRoute(De.value,Xe.value.snapshot))return ct(ee,De,Xe);return ct(ee,De)})}(ee,se,G);return new ri(De,Xe)}{if(ee.shouldAttach(se.value)){const vt=ee.retrieve(se.value);if(null!==vt){const Et=vt.route;return Et.value._futureSnapshot=se.value,Et.children=se.children.map(qt=>ct(ee,qt)),Et}}const De=function Ge(ee){return new Ii(new S.X(ee.url),new S.X(ee.params),new S.X(ee.queryParams),new S.X(ee.fragment),new S.X(ee.data),ee.outlet,ee.component,ee)}(se.value),Xe=se.children.map(vt=>ct(ee,vt));return new ri(De,Xe)}}const Rt="ngNavigationCancelingError";function zt(ee,se){const{redirectTo:G,navigationBehaviorOptions:De}=oe(se)?{redirectTo:se,navigationBehaviorOptions:void 0}:se,Xe=_i(!1,0,se);return Xe.url=G,Xe.navigationBehaviorOptions=De,Xe}function _i(ee,se,G){const De=new Error("NavigationCancelingError: "+(ee||""));return De[Rt]=!0,De.cancellationCode=se,G&&(De.url=G),De}function Ti(ee){return rn(ee)&&oe(ee.url)}function rn(ee){return ee&&ee[Rt]}class tn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new En,this.attachRef=null}}let En=(()=>{class ee{constructor(){this.contexts=new Map}onChildOutletCreated(G,De){const Xe=this.getOrCreateContext(G);Xe.outlet=De,this.contexts.set(G,Xe)}onChildOutletDestroyed(G){const De=this.getContext(G);De&&(De.outlet=null,De.attachRef=null)}onOutletDeactivated(){const G=this.contexts;return this.contexts=new Map,G}onOutletReAttached(G){this.contexts=G}getOrCreateContext(G){let De=this.getContext(G);return De||(De=new tn,this.contexts.set(G,De)),De}getContext(G){return this.contexts.get(G)||null}}return ee.\u0275fac=function(G){return new(G||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();const or=!1;let Aa=(()=>{class ee{constructor(){this.activated=null,this._activatedRoute=null,this.name=Pe,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.parentContexts=(0,e.f3M)(En),this.location=(0,e.f3M)(e.s_b),this.changeDetector=(0,e.f3M)(e.sBO),this.environmentInjector=(0,e.f3M)(e.lqb)}ngOnChanges(G){if(G.name){const{firstChange:De,previousValue:Xe}=G.name;if(De)return;this.isTrackedInParentContexts(Xe)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Xe)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(G){return this.parentContexts.getContext(G)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const G=this.parentContexts.getContext(this.name);G?.route&&(G.attachRef?this.attach(G.attachRef,G.route):this.activateWith(G.route,G.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,or);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,or);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,or);this.location.detach();const G=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(G.instance),G}attach(G,De){this.activated=G,this._activatedRoute=De,this.location.insert(G.hostView),this.attachEvents.emit(G.instance)}deactivate(){if(this.activated){const G=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(G)}}activateWith(G,De){if(this.isActivated)throw new e.vHH(4013,or);this._activatedRoute=G;const Xe=this.location,Et=G.snapshot.component,qt=this.parentContexts.getOrCreateContext(this.name).children,hi=new qr(G,qt,Xe.injector);if(De&&function Pr(ee){return!!ee.resolveComponentFactory}(De)){const yi=De.resolveComponentFactory(Et);this.activated=Xe.createComponent(yi,Xe.length,hi)}else this.activated=Xe.createComponent(Et,{index:Xe.length,injector:hi,environmentInjector:De??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ee.\u0275fac=function(G){return new(G||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[e.TTD]}),ee})();class qr{constructor(se,G,De){this.route=se,this.childContexts=G,this.parent=De}get(se,G){return se===Ii?this.route:se===En?this.childContexts:this.parent.get(se,G)}}let Xn=(()=>{class ee{}return ee.\u0275fac=function(G){return new(G||ee)},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["ng-component"]],standalone:!0,features:[e.jDz],decls:1,vars:0,template:function(G,De){1&G&&e._UZ(0,"router-outlet")},dependencies:[Aa],encapsulation:2}),ee})();function Jr(ee,se){return ee.providers&&!ee._injector&&(ee._injector=(0,e.MMx)(ee.providers,se,`Route: ${ee.path}`)),ee._injector??se}function yn(ee){const se=ee.children&&ee.children.map(yn),G=se?{...ee,children:se}:{...ee};return!G.component&&!G.loadComponent&&(se||G.loadChildren)&&G.outlet&&G.outlet!==Pe&&(G.component=Xn),G}function Nn(ee){return ee.outlet||Pe}function Ir(ee,se){const G=ee.filter(De=>Nn(De)===se);return G.push(...ee.filter(De=>Nn(De)!==se)),G}function gn(ee){if(!ee)return null;if(ee.routeConfig?._injector)return ee.routeConfig._injector;for(let se=ee.parent;se;se=se.parent){const G=se.routeConfig;if(G?._loadedInjector)return G._loadedInjector;if(G?._injector)return G._injector}return null}class va{constructor(se,G,De,Xe){this.routeReuseStrategy=se,this.futureState=G,this.currState=De,this.forwardEvent=Xe}activate(se){const G=this.futureState._root,De=this.currState?this.currState._root:null;this.deactivateChildRoutes(G,De,se),wr(this.futureState.root),this.activateChildRoutes(G,De,se)}deactivateChildRoutes(se,G,De){const Xe=lt(G);se.children.forEach(vt=>{const Et=vt.value.outlet;this.deactivateRoutes(vt,Xe[Et],De),delete Xe[Et]}),Re(Xe,(vt,Et)=>{this.deactivateRouteAndItsChildren(vt,De)})}deactivateRoutes(se,G,De){const Xe=se.value,vt=G?G.value:null;if(Xe===vt)if(Xe.component){const Et=De.getContext(Xe.outlet);Et&&this.deactivateChildRoutes(se,G,Et.children)}else this.deactivateChildRoutes(se,G,De);else vt&&this.deactivateRouteAndItsChildren(G,De)}deactivateRouteAndItsChildren(se,G){se.value.component&&this.routeReuseStrategy.shouldDetach(se.value.snapshot)?this.detachAndStoreRouteSubtree(se,G):this.deactivateRouteAndOutlet(se,G)}detachAndStoreRouteSubtree(se,G){const De=G.getContext(se.value.outlet),Xe=De&&se.value.component?De.children:G,vt=lt(se);for(const Et of Object.keys(vt))this.deactivateRouteAndItsChildren(vt[Et],Xe);if(De&&De.outlet){const Et=De.outlet.detach(),qt=De.children.onOutletDeactivated();this.routeReuseStrategy.store(se.value.snapshot,{componentRef:Et,route:se,contexts:qt})}}deactivateRouteAndOutlet(se,G){const De=G.getContext(se.value.outlet),Xe=De&&se.value.component?De.children:G,vt=lt(se);for(const Et of Object.keys(vt))this.deactivateRouteAndItsChildren(vt[Et],Xe);De&&De.outlet&&(De.outlet.deactivate(),De.children.onOutletDeactivated(),De.attachRef=null,De.resolver=null,De.route=null)}activateChildRoutes(se,G,De){const Xe=lt(G);se.children.forEach(vt=>{this.activateRoutes(vt,Xe[vt.value.outlet],De),this.forwardEvent(new rr(vt.value.snapshot))}),se.children.length&&this.forwardEvent(new On(se.value.snapshot))}activateRoutes(se,G,De){const Xe=se.value,vt=G?G.value:null;if(wr(Xe),Xe===vt)if(Xe.component){const Et=De.getOrCreateContext(Xe.outlet);this.activateChildRoutes(se,G,Et.children)}else this.activateChildRoutes(se,G,De);else if(Xe.component){const Et=De.getOrCreateContext(Xe.outlet);if(this.routeReuseStrategy.shouldAttach(Xe.snapshot)){const qt=this.routeReuseStrategy.retrieve(Xe.snapshot);this.routeReuseStrategy.store(Xe.snapshot,null),Et.children.onOutletReAttached(qt.contexts),Et.attachRef=qt.componentRef,Et.route=qt.route.value,Et.outlet&&Et.outlet.attach(qt.componentRef,qt.route.value),wr(qt.route.value),this.activateChildRoutes(se,null,Et.children)}else{const qt=gn(Xe.snapshot),hi=qt?.get(e._Vd)??null;Et.attachRef=null,Et.route=Xe,Et.resolver=hi,Et.injector=qt,Et.outlet&&Et.outlet.activateWith(Xe,Et.injector),this.activateChildRoutes(se,null,Et.children)}}else this.activateChildRoutes(se,null,De)}}class sn{constructor(se){this.path=se,this.route=this.path[this.path.length-1]}}class Ca{constructor(se,G){this.component=se,this.route=G}}function Fr(ee,se,G){const De=ee._root;return jr(De,se?se._root:null,G,[De.value])}function An(ee,se){const G=Symbol(),De=se.get(ee,G);return De===G?"function"!=typeof ee||(0,e.Z0I)(ee)?se.get(ee):ee:De}function jr(ee,se,G,De,Xe={canDeactivateChecks:[],canActivateChecks:[]}){const vt=lt(se);return ee.children.forEach(Et=>{(function Ia(ee,se,G,De,Xe={canDeactivateChecks:[],canActivateChecks:[]}){const vt=ee.value,Et=se?se.value:null,qt=G?G.getContext(ee.value.outlet):null;if(Et&&vt.routeConfig===Et.routeConfig){const hi=function Bo(ee,se,G){if("function"==typeof G)return G(ee,se);switch(G){case"pathParamsChange":return!d(ee.url,se.url);case"pathParamsOrQueryParamsChange":return!d(ee.url,se.url)||!z(ee.queryParams,se.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Rr(ee,se)||!z(ee.queryParams,se.queryParams);default:return!Rr(ee,se)}}(Et,vt,vt.routeConfig.runGuardsAndResolvers);hi?Xe.canActivateChecks.push(new sn(De)):(vt.data=Et.data,vt._resolvedData=Et._resolvedData),jr(ee,se,vt.component?qt?qt.children:null:G,De,Xe),hi&&qt&&qt.outlet&&qt.outlet.isActivated&&Xe.canDeactivateChecks.push(new Ca(qt.outlet.component,Et))}else Et&&Wn(se,qt,Xe),Xe.canActivateChecks.push(new sn(De)),jr(ee,null,vt.component?qt?qt.children:null:G,De,Xe)})(Et,vt[Et.value.outlet],G,De.concat([Et.value]),Xe),delete vt[Et.value.outlet]}),Re(vt,(Et,qt)=>Wn(Et,G.getContext(qt),Xe)),Xe}function Wn(ee,se,G){const De=lt(ee),Xe=ee.value;Re(De,(vt,Et)=>{Wn(vt,Xe.component?se?se.children.getContext(Et):null:se,G)}),G.canDeactivateChecks.push(new Ca(Xe.component&&se&&se.outlet&&se.outlet.isActivated?se.outlet.component:null,Xe))}function pr(ee){return"function"==typeof ee}function mi(ee){return ee instanceof m.K||"EmptyError"===ee?.name}const pn=Symbol("INITIAL_VALUE");function oi(){return(0,$.w)(ee=>(0,M.a)(ee.map(se=>se.pipe((0,_e.q)(1),(0,ge.O)(pn)))).pipe((0,j.U)(se=>{for(const G of se)if(!0!==G){if(G===pn)return pn;if(!1===G||G instanceof i)return G}return!0}),(0,pe.h)(se=>se!==pn),(0,_e.q)(1)))}function vo(ee){return(0,I.z)((0,W.b)(se=>{if(oe(se))throw zt(0,se)}),(0,j.U)(se=>!0===se))}const la={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Tn(ee,se,G,De,Xe){const vt=Tr(ee,se,G);return vt.matched?function ss(ee,se,G,De){const Xe=se.canMatch;if(!Xe||0===Xe.length)return(0,A.of)(!0);const vt=Xe.map(Et=>{const qt=An(Et,ee);return He(function Be(ee){return ee&&pr(ee.canMatch)}(qt)?qt.canMatch(se,G):ee.runInContext(()=>qt(se,G)))});return(0,A.of)(vt).pipe(oi(),vo())}(De=Jr(se,De),se,G).pipe((0,j.U)(Et=>!0===Et?vt:{...la})):(0,A.of)(vt)}function Tr(ee,se,G){if(""===se.path)return"full"===se.pathMatch&&(ee.hasChildren()||G.length>0)?{...la}:{matched:!0,consumedSegments:[],remainingSegments:G,parameters:{},positionalParamSegments:{}};const Xe=(se.matcher||Ue)(G,ee,se);if(!Xe)return{...la};const vt={};Re(Xe.posParams,(qt,hi)=>{vt[hi]=qt.path});const Et=Xe.consumed.length>0?{...vt,...Xe.consumed[Xe.consumed.length-1].parameters}:vt;return{matched:!0,consumedSegments:Xe.consumed,remainingSegments:G.slice(Xe.consumed.length),parameters:Et,positionalParamSegments:Xe.posParams??{}}}function ca(ee,se,G,De){if(G.length>0&&function Co(ee,se,G){return G.some(De=>Ba(ee,se,De)&&Nn(De)!==Pe)}(ee,G,De)){const vt=new a(se,function er(ee,se,G,De){const Xe={};Xe[Pe]=De,De._sourceSegment=ee,De._segmentIndexShift=se.length;for(const vt of G)if(""===vt.path&&Nn(vt)!==Pe){const Et=new a([],{});Et._sourceSegment=ee,Et._segmentIndexShift=se.length,Xe[Nn(vt)]=Et}return Xe}(ee,se,De,new a(G,ee.children)));return vt._sourceSegment=ee,vt._segmentIndexShift=se.length,{segmentGroup:vt,slicedSegments:[]}}if(0===G.length&&function Ha(ee,se,G){return G.some(De=>Ba(ee,se,De))}(ee,G,De)){const vt=new a(ee.segments,function ta(ee,se,G,De,Xe){const vt={};for(const Et of De)if(Ba(ee,G,Et)&&!Xe[Nn(Et)]){const qt=new a([],{});qt._sourceSegment=ee,qt._segmentIndexShift=se.length,vt[Nn(Et)]=qt}return{...Xe,...vt}}(ee,se,G,De,ee.children));return vt._sourceSegment=ee,vt._segmentIndexShift=se.length,{segmentGroup:vt,slicedSegments:G}}const Xe=new a(ee.segments,ee.children);return Xe._sourceSegment=ee,Xe._segmentIndexShift=se.length,{segmentGroup:Xe,slicedSegments:G}}function Ba(ee,se,G){return(!(ee.hasChildren()||se.length>0)||"full"!==G.pathMatch)&&""===G.path}function ka(ee,se,G,De){return!!(Nn(ee)===De||De!==Pe&&Ba(se,G,ee))&&("**"===ee.path||Tr(se,ee,G).matched)}function $a(ee,se,G){return 0===se.length&&!ee.children[G]}const Ua=!1;class da{constructor(se){this.segmentGroup=se||null}}class wo{constructor(se){this.urlTree=se}}function Na(ee){return(0,F._)(new da(ee))}function Eo(ee){return(0,F._)(new wo(ee))}class ls{constructor(se,G,De,Xe,vt){this.injector=se,this.configLoader=G,this.urlSerializer=De,this.urlTree=Xe,this.config=vt,this.allowRedirects=!0}apply(){const se=ca(this.urlTree.root,[],[],this.config).segmentGroup,G=new a(se.segments,se.children);return this.expandSegmentGroup(this.injector,this.config,G,Pe).pipe((0,j.U)(vt=>this.createUrlTree(Se(vt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,te.K)(vt=>{if(vt instanceof wo)return this.allowRedirects=!1,this.match(vt.urlTree);throw vt instanceof da?this.noMatchError(vt):vt}))}match(se){return this.expandSegmentGroup(this.injector,this.config,se.root,Pe).pipe((0,j.U)(Xe=>this.createUrlTree(Se(Xe),se.queryParams,se.fragment))).pipe((0,te.K)(Xe=>{throw Xe instanceof da?this.noMatchError(Xe):Xe}))}noMatchError(se){return new e.vHH(4002,Ua)}createUrlTree(se,G,De){const Xe=Tt(se);return new i(Xe,G,De)}expandSegmentGroup(se,G,De,Xe){return 0===De.segments.length&&De.hasChildren()?this.expandChildren(se,G,De).pipe((0,j.U)(vt=>new a([],vt))):this.expandSegment(se,De,G,De.segments,Xe,!0)}expandChildren(se,G,De){const Xe=[];for(const vt of Object.keys(De.children))"primary"===vt?Xe.unshift(vt):Xe.push(vt);return(0,f.D)(Xe).pipe((0,V.b)(vt=>{const Et=De.children[vt],qt=Ir(G,vt);return this.expandSegmentGroup(se,qt,Et,vt).pipe((0,j.U)(hi=>({segment:hi,outlet:vt})))}),ze((vt,Et)=>(vt[Et.outlet]=Et.segment,vt),{}),le())}expandSegment(se,G,De,Xe,vt,Et){return(0,f.D)(De).pipe((0,V.b)(qt=>this.expandSegmentAgainstRoute(se,G,De,qt,Xe,vt,Et).pipe((0,te.K)(yi=>{if(yi instanceof da)return(0,A.of)(null);throw yi}))),(0,v.P)(qt=>!!qt),(0,te.K)((qt,hi)=>{if(mi(qt))return $a(G,Xe,vt)?(0,A.of)(new a([],{})):Na(G);throw qt}))}expandSegmentAgainstRoute(se,G,De,Xe,vt,Et,qt){return ka(Xe,G,vt,Et)?void 0===Xe.redirectTo?this.matchSegmentAgainstRoute(se,G,Xe,vt,Et):qt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(se,G,De,Xe,vt,Et):Na(G):Na(G)}expandSegmentAgainstRouteUsingRedirect(se,G,De,Xe,vt,Et){return"**"===Xe.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(se,De,Xe,Et):this.expandRegularSegmentAgainstRouteUsingRedirect(se,G,De,Xe,vt,Et)}expandWildCardWithParamsAgainstRouteUsingRedirect(se,G,De,Xe){const vt=this.applyRedirectCommands([],De.redirectTo,{});return De.redirectTo.startsWith("/")?Eo(vt):this.lineralizeSegments(De,vt).pipe((0,re.z)(Et=>{const qt=new a(Et,{});return this.expandSegment(se,qt,G,Et,Xe,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(se,G,De,Xe,vt,Et){const{matched:qt,consumedSegments:hi,remainingSegments:yi,positionalParamSegments:xi}=Tr(G,Xe,vt);if(!qt)return Na(G);const un=this.applyRedirectCommands(hi,Xe.redirectTo,xi);return Xe.redirectTo.startsWith("/")?Eo(un):this.lineralizeSegments(Xe,un).pipe((0,re.z)(Xi=>this.expandSegment(se,G,De,Xi.concat(yi),Et,!1)))}matchSegmentAgainstRoute(se,G,De,Xe,vt){return"**"===De.path?(se=Jr(De,se),De.loadChildren?(De._loadedRoutes?(0,A.of)({routes:De._loadedRoutes,injector:De._loadedInjector}):this.configLoader.loadChildren(se,De)).pipe((0,j.U)(qt=>(De._loadedRoutes=qt.routes,De._loadedInjector=qt.injector,new a(Xe,{})))):(0,A.of)(new a(Xe,{}))):Tn(G,De,Xe,se).pipe((0,$.w)(({matched:Et,consumedSegments:qt,remainingSegments:hi})=>Et?this.getChildConfig(se=De._injector??se,De,Xe).pipe((0,re.z)(xi=>{const un=xi.injector??se,Xi=xi.routes,{segmentGroup:zr,slicedSegments:Dn}=ca(G,qt,hi,Xi),tr=new a(zr.segments,zr.children);if(0===Dn.length&&tr.hasChildren())return this.expandChildren(un,Xi,tr).pipe((0,j.U)(Po=>new a(qt,Po)));if(0===Xi.length&&0===Dn.length)return(0,A.of)(new a(qt,{}));const Vn=Nn(De)===vt;return this.expandSegment(un,tr,Xi,Dn,Vn?Pe:vt,!0).pipe((0,j.U)(Fn=>new a(qt.concat(Fn.segments),Fn.children)))})):Na(G)))}getChildConfig(se,G,De){return G.children?(0,A.of)({routes:G.children,injector:se}):G.loadChildren?void 0!==G._loadedRoutes?(0,A.of)({routes:G._loadedRoutes,injector:G._loadedInjector}):function ea(ee,se,G,De){const Xe=se.canLoad;if(void 0===Xe||0===Xe.length)return(0,A.of)(!0);const vt=Xe.map(Et=>{const qt=An(Et,ee);return He(function Ui(ee){return ee&&pr(ee.canLoad)}(qt)?qt.canLoad(se,G):ee.runInContext(()=>qt(se,G)))});return(0,A.of)(vt).pipe(oi(),vo())}(se,G,De).pipe((0,re.z)(Xe=>Xe?this.configLoader.loadChildren(se,G).pipe((0,W.b)(vt=>{G._loadedRoutes=vt.routes,G._loadedInjector=vt.injector})):function eo(ee){return(0,F._)(_i(Ua,3))}())):(0,A.of)({routes:[],injector:se})}lineralizeSegments(se,G){let De=[],Xe=G.root;for(;;){if(De=De.concat(Xe.segments),0===Xe.numberOfChildren)return(0,A.of)(De);if(Xe.numberOfChildren>1||!Xe.children[Pe])return se.redirectTo,(0,F._)(new e.vHH(4e3,Ua));Xe=Xe.children[Pe]}}applyRedirectCommands(se,G,De){return this.applyRedirectCreateUrlTree(G,this.urlSerializer.parse(G),se,De)}applyRedirectCreateUrlTree(se,G,De,Xe){const vt=this.createSegmentGroup(se,G.root,De,Xe);return new i(vt,this.createQueryParams(G.queryParams,this.urlTree.queryParams),G.fragment)}createQueryParams(se,G){const De={};return Re(se,(Xe,vt)=>{if("string"==typeof Xe&&Xe.startsWith(":")){const qt=Xe.substring(1);De[vt]=G[qt]}else De[vt]=Xe}),De}createSegmentGroup(se,G,De,Xe){const vt=this.createSegments(se,G.segments,De,Xe);let Et={};return Re(G.children,(qt,hi)=>{Et[hi]=this.createSegmentGroup(se,qt,De,Xe)}),new a(vt,Et)}createSegments(se,G,De,Xe){return G.map(vt=>vt.path.startsWith(":")?this.findPosParam(se,vt,Xe):this.findOrReturn(vt,De))}findPosParam(se,G,De){const Xe=De[G.path.substring(1)];if(!Xe)throw new e.vHH(4001,Ua);return Xe}findOrReturn(se,G){let De=0;for(const Xe of G){if(Xe.path===se.path)return G.splice(De),Xe;De++}return se}}class Uo{}class ua{constructor(se,G,De,Xe,vt,Et,qt){this.injector=se,this.rootComponentType=G,this.config=De,this.urlTree=Xe,this.url=vt,this.paramsInheritanceStrategy=Et,this.urlSerializer=qt}recognize(){const se=ca(this.urlTree.root,[],[],this.config.filter(G=>void 0===G.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,se,Pe).pipe((0,j.U)(G=>{if(null===G)return null;const De=new Pn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Pe,this.rootComponentType,null,this.urlTree.root,-1,{}),Xe=new ri(De,G),vt=new Dr(this.url,Xe);return this.inheritParamsAndData(vt._root),vt}))}inheritParamsAndData(se){const G=se.value,De=Li(G,this.paramsInheritanceStrategy);G.params=Object.freeze(De.params),G.data=Object.freeze(De.data),se.children.forEach(Xe=>this.inheritParamsAndData(Xe))}processSegmentGroup(se,G,De,Xe){return 0===De.segments.length&&De.hasChildren()?this.processChildren(se,G,De):this.processSegment(se,G,De,De.segments,Xe)}processChildren(se,G,De){return(0,f.D)(Object.keys(De.children)).pipe((0,V.b)(Xe=>{const vt=De.children[Xe],Et=Ir(G,Xe);return this.processSegmentGroup(se,Et,vt,Xe)}),ze((Xe,vt)=>Xe&&vt?(Xe.push(...vt),Xe):null),(0,N.o)(Xe=>null!==Xe),(0,Fe.d)(null),le(),(0,j.U)(Xe=>{if(null===Xe)return null;const vt=io(Xe);return function _n(ee){ee.sort((se,G)=>se.value.outlet===Pe?-1:G.value.outlet===Pe?1:se.value.outlet.localeCompare(G.value.outlet))}(vt),vt}))}processSegment(se,G,De,Xe,vt){return(0,f.D)(G).pipe((0,V.b)(Et=>this.processSegmentAgainstRoute(Et._injector??se,Et,De,Xe,vt)),(0,v.P)(Et=>!!Et),(0,te.K)(Et=>{if(mi(Et))return $a(De,Xe,vt)?(0,A.of)([]):(0,A.of)(null);throw Et}))}processSegmentAgainstRoute(se,G,De,Xe,vt){if(G.redirectTo||!ka(G,De,Xe,vt))return(0,A.of)(null);let Et;if("**"===G.path){const qt=Xe.length>0?Ye(Xe).parameters:{},hi=xe(De)+Xe.length,yi=new Pn(Xe,qt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ne(G),Nn(G),G.component??G._loadedComponent??null,G,no(De),hi,mt(G));Et=(0,A.of)({snapshot:yi,consumedSegments:[],remainingSegments:[]})}else Et=Tn(De,G,Xe,se).pipe((0,j.U)(({matched:qt,consumedSegments:hi,remainingSegments:yi,parameters:xi})=>{if(!qt)return null;const un=xe(De)+hi.length;return{snapshot:new Pn(hi,xi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ne(G),Nn(G),G.component??G._loadedComponent??null,G,no(De),un,mt(G)),consumedSegments:hi,remainingSegments:yi}}));return Et.pipe((0,$.w)(qt=>{if(null===qt)return(0,A.of)(null);const{snapshot:hi,consumedSegments:yi,remainingSegments:xi}=qt;se=G._injector??se;const un=G._loadedInjector??se,Xi=function Vo(ee){return ee.children?ee.children:ee.loadChildren?ee._loadedRoutes:[]}(G),{segmentGroup:zr,slicedSegments:Dn}=ca(De,yi,xi,Xi.filter(Vn=>void 0===Vn.redirectTo));if(0===Dn.length&&zr.hasChildren())return this.processChildren(un,Xi,zr).pipe((0,j.U)(Vn=>null===Vn?null:[new ri(hi,Vn)]));if(0===Xi.length&&0===Dn.length)return(0,A.of)([new ri(hi,[])]);const tr=Nn(G)===vt;return this.processSegment(un,Xi,zr,Dn,tr?Pe:vt).pipe((0,j.U)(Vn=>null===Vn?null:[new ri(hi,Vn)]))}))}}function cs(ee){const se=ee.value.routeConfig;return se&&""===se.path&&void 0===se.redirectTo}function io(ee){const se=[],G=new Set;for(const De of ee){if(!cs(De)){se.push(De);continue}const Xe=se.find(vt=>De.value.routeConfig===vt.value.routeConfig);void 0!==Xe?(Xe.children.push(...De.children),G.add(Xe)):se.push(De)}for(const De of G){const Xe=io(De.children);se.push(new ri(De.value,Xe))}return se.filter(De=>!G.has(De))}function no(ee){let se=ee;for(;se._sourceSegment;)se=se._sourceSegment;return se}function xe(ee){let se=ee,G=se._segmentIndexShift??0;for(;se._sourceSegment;)se=se._sourceSegment,G+=se._segmentIndexShift??0;return G-1}function Ne(ee){return ee.data||{}}function mt(ee){return ee.resolve||{}}function an(ee){return"string"==typeof ee.title||null===ee.title}function Zi(ee){return(0,$.w)(se=>{const G=ee(se);return G?(0,f.D)(G).pipe((0,j.U)(()=>se)):(0,A.of)(se)})}const vn=new e.OlP("ROUTES");let mr=(()=>{class ee{constructor(G,De){this.injector=G,this.compiler=De,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(G){if(this.componentLoaders.get(G))return this.componentLoaders.get(G);if(G._loadedComponent)return(0,A.of)(G._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(G);const De=He(G.loadComponent()).pipe((0,j.U)(gr),(0,W.b)(vt=>{this.onLoadEndListener&&this.onLoadEndListener(G),G._loadedComponent=vt}),(0,X.x)(()=>{this.componentLoaders.delete(G)})),Xe=new P.c(De,()=>new J.x).pipe((0,ce.x)());return this.componentLoaders.set(G,Xe),Xe}loadChildren(G,De){if(this.childrenLoaders.get(De))return this.childrenLoaders.get(De);if(De._loadedRoutes)return(0,A.of)({routes:De._loadedRoutes,injector:De._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(De);const vt=this.loadModuleFactoryOrRoutes(De.loadChildren).pipe((0,j.U)(qt=>{this.onLoadEndListener&&this.onLoadEndListener(De);let hi,yi,xi=!1;Array.isArray(qt)?yi=qt:(hi=qt.create(G).injector,yi=be(hi.get(vn,[],e.XFs.Self|e.XFs.Optional)));return{routes:yi.map(yn),injector:hi}}),(0,X.x)(()=>{this.childrenLoaders.delete(De)})),Et=new P.c(vt,()=>new J.x).pipe((0,ce.x)());return this.childrenLoaders.set(De,Et),Et}loadModuleFactoryOrRoutes(G){return He(G()).pipe((0,j.U)(gr),(0,re.z)(Xe=>Xe instanceof e.YKP||Array.isArray(Xe)?(0,A.of)(Xe):(0,f.D)(this.compiler.compileModuleAsync(Xe))))}}return ee.\u0275fac=function(G){return new(G||ee)(e.LFG(e.zs3),e.LFG(e.Sil))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();function gr(ee){return function Or(ee){return ee&&"object"==typeof ee&&"default"in ee}(ee)?ee.default:ee}let Zr=(()=>{class ee{constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new J.x,this.configLoader=(0,e.f3M)(mr),this.environmentInjector=(0,e.f3M)(e.lqb),this.urlSerializer=(0,e.f3M)(E),this.rootContexts=(0,e.f3M)(En),this.navigationId=0,this.configLoader.onLoadEndListener=Xe=>this.events.next(new bn(Xe)),this.configLoader.onLoadStartListener=Xe=>this.events.next(new Cr(Xe))}get hasRequestedNavigation(){return 0!==this.navigationId}complete(){this.transitions?.complete()}handleNavigationRequest(G){const De=++this.navigationId;this.transitions?.next({...this.transitions.value,...G,id:De})}setupNavigations(G){return this.transitions=new S.X({id:0,targetPageId:0,currentUrlTree:G.currentUrlTree,currentRawUrl:G.currentUrlTree,extractedUrl:G.urlHandlingStrategy.extract(G.currentUrlTree),urlAfterRedirects:G.urlHandlingStrategy.extract(G.currentUrlTree),rawUrl:G.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:G.routerState.snapshot,targetSnapshot:null,currentRouterState:G.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,pe.h)(De=>0!==De.id),(0,j.U)(De=>({...De,extractedUrl:G.urlHandlingStrategy.extract(De.rawUrl)})),(0,$.w)(De=>{let Xe=!1,vt=!1;return(0,A.of)(De).pipe((0,W.b)(Et=>{this.currentNavigation={id:Et.id,initialUrl:Et.rawUrl,extractedUrl:Et.extractedUrl,trigger:Et.source,extras:Et.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,$.w)(Et=>{const qt=G.browserUrlTree.toString(),hi=!G.navigated||Et.extractedUrl.toString()!==qt||qt!==G.currentUrlTree.toString();if(("reload"===G.onSameUrlNavigation||hi)&&G.urlHandlingStrategy.shouldProcessUrl(Et.rawUrl))return Sn(Et.source)&&(G.browserUrlTree=Et.extractedUrl),(0,A.of)(Et).pipe((0,$.w)(xi=>{const un=this.transitions?.getValue();return this.events.next(new Vi(xi.id,this.urlSerializer.serialize(xi.extractedUrl),xi.source,xi.restoredState)),un!==this.transitions?.getValue()?H.E:Promise.resolve(xi)}),function To(ee,se,G,De){return(0,$.w)(Xe=>function yo(ee,se,G,De,Xe){return new ls(ee,se,G,De,Xe).apply()}(ee,se,G,Xe.extractedUrl,De).pipe((0,j.U)(vt=>({...Xe,urlAfterRedirects:vt}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,G.config),(0,W.b)(xi=>{this.currentNavigation={...this.currentNavigation,finalUrl:xi.urlAfterRedirects},De.urlAfterRedirects=xi.urlAfterRedirects}),function Vt(ee,se,G,De,Xe){return(0,re.z)(vt=>function Yn(ee,se,G,De,Xe,vt,Et="emptyOnly"){return new ua(ee,se,G,De,Xe,Et,vt).recognize().pipe((0,$.w)(qt=>null===qt?function No(ee){return new T.y(se=>se.error(ee))}(new Uo):(0,A.of)(qt)))}(ee,se,G,vt.urlAfterRedirects,De.serialize(vt.urlAfterRedirects),De,Xe).pipe((0,j.U)(Et=>({...vt,targetSnapshot:Et}))))}(this.environmentInjector,G.rootComponentType,G.config,this.urlSerializer,G.paramsInheritanceStrategy),(0,W.b)(xi=>{if(De.targetSnapshot=xi.targetSnapshot,"eager"===G.urlUpdateStrategy){if(!xi.extras.skipLocationChange){const Xi=G.urlHandlingStrategy.merge(xi.urlAfterRedirects,xi.rawUrl);G.setBrowserUrl(Xi,xi)}G.browserUrlTree=xi.urlAfterRedirects}const un=new wn(xi.id,this.urlSerializer.serialize(xi.extractedUrl),this.urlSerializer.serialize(xi.urlAfterRedirects),xi.targetSnapshot);this.events.next(un)}));if(hi&&G.rawUrlTree&&G.urlHandlingStrategy.shouldProcessUrl(G.rawUrlTree)){const{id:un,extractedUrl:Xi,source:zr,restoredState:Dn,extras:tr}=Et,Vn=new Vi(un,this.urlSerializer.serialize(Xi),zr,Dn);this.events.next(Vn);const ya=Jt(Xi,G.rootComponentType).snapshot;return De={...Et,targetSnapshot:ya,urlAfterRedirects:Xi,extras:{...tr,skipLocationChange:!1,replaceUrl:!1}},(0,A.of)(De)}return G.rawUrlTree=Et.rawUrl,Et.resolve(null),H.E}),(0,W.b)(Et=>{const qt=new Hi(Et.id,this.urlSerializer.serialize(Et.extractedUrl),this.urlSerializer.serialize(Et.urlAfterRedirects),Et.targetSnapshot);this.events.next(qt)}),(0,j.U)(Et=>De={...Et,guards:Fr(Et.targetSnapshot,Et.currentSnapshot,this.rootContexts)}),function zi(ee,se){return(0,re.z)(G=>{const{targetSnapshot:De,currentSnapshot:Xe,guards:{canActivateChecks:vt,canDeactivateChecks:Et}}=G;return 0===Et.length&&0===vt.length?(0,A.of)({...G,guardsResult:!0}):function wa(ee,se,G,De){return(0,f.D)(ee).pipe((0,re.z)(Xe=>function La(ee,se,G,De,Xe){const vt=se&&se.routeConfig?se.routeConfig.canDeactivate:null;if(!vt||0===vt.length)return(0,A.of)(!0);const Et=vt.map(qt=>{const hi=gn(se)??Xe,yi=An(qt,hi);return He(function Ze(ee){return ee&&pr(ee.canDeactivate)}(yi)?yi.canDeactivate(ee,se,G,De):hi.runInContext(()=>yi(ee,se,G,De))).pipe((0,v.P)())});return(0,A.of)(Et).pipe(oi())}(Xe.component,Xe.route,G,se,De)),(0,v.P)(Xe=>!0!==Xe,!0))}(Et,De,Xe,ee).pipe((0,re.z)(qt=>qt&&function Oa(ee){return"boolean"==typeof ee}(qt)?function ko(ee,se,G,De){return(0,f.D)(se).pipe((0,V.b)(Xe=>(0,w.z)(function Ao(ee,se){return null!==ee&&se&&se(new dr(ee)),(0,A.of)(!0)}(Xe.route.parent,De),function Ln(ee,se){return null!==ee&&se&&se(new hn(ee)),(0,A.of)(!0)}(Xe.route,De),function fr(ee,se,G){const De=se[se.length-1],vt=se.slice(0,se.length-1).reverse().map(Et=>function hr(ee){const se=ee.routeConfig?ee.routeConfig.canActivateChild:null;return se&&0!==se.length?{node:ee,guards:se}:null}(Et)).filter(Et=>null!==Et).map(Et=>(0,x.P)(()=>{const qt=Et.guards.map(hi=>{const yi=gn(Et.node)??G,xi=An(hi,yi);return He(function Ke(ee){return ee&&pr(ee.canActivateChild)}(xi)?xi.canActivateChild(De,ee):yi.runInContext(()=>xi(De,ee))).pipe((0,v.P)())});return(0,A.of)(qt).pipe(oi())}));return(0,A.of)(vt).pipe(oi())}(ee,Xe.path,G),function yr(ee,se,G){const De=se.routeConfig?se.routeConfig.canActivate:null;if(!De||0===De.length)return(0,A.of)(!0);const Xe=De.map(vt=>(0,x.P)(()=>{const Et=gn(se)??G,qt=An(vt,Et);return He(function Qa(ee){return ee&&pr(ee.canActivate)}(qt)?qt.canActivate(se,ee):Et.runInContext(()=>qt(se,ee))).pipe((0,v.P)())}));return(0,A.of)(Xe).pipe(oi())}(ee,Xe.route,G))),(0,v.P)(Xe=>!0!==Xe,!0))}(De,vt,ee,se):(0,A.of)(qt)),(0,j.U)(qt=>({...G,guardsResult:qt})))})}(this.environmentInjector,Et=>this.events.next(Et)),(0,W.b)(Et=>{if(De.guardsResult=Et.guardsResult,oe(Et.guardsResult))throw zt(0,Et.guardsResult);const qt=new Qn(Et.id,this.urlSerializer.serialize(Et.extractedUrl),this.urlSerializer.serialize(Et.urlAfterRedirects),Et.targetSnapshot,!!Et.guardsResult);this.events.next(qt)}),(0,pe.h)(Et=>!!Et.guardsResult||(G.restoreHistory(Et),this.cancelNavigationTransition(Et,"",3,G),!1)),Zi(Et=>{if(Et.guards.canActivateChecks.length)return(0,A.of)(Et).pipe((0,W.b)(qt=>{const hi=new cr(qt.id,this.urlSerializer.serialize(qt.extractedUrl),this.urlSerializer.serialize(qt.urlAfterRedirects),qt.targetSnapshot);this.events.next(hi)}),(0,$.w)(qt=>{let hi=!1;return(0,A.of)(qt).pipe(function ei(ee,se){return(0,re.z)(G=>{const{targetSnapshot:De,guards:{canActivateChecks:Xe}}=G;if(!Xe.length)return(0,A.of)(G);let vt=0;return(0,f.D)(Xe).pipe((0,V.b)(Et=>function ti(ee,se,G,De){const Xe=ee.routeConfig,vt=ee._resolve;return void 0!==Xe?.title&&!an(Xe)&&(vt[tt]=Xe.title),function Ci(ee,se,G,De){const Xe=function Wi(ee){return[...Object.keys(ee),...Object.getOwnPropertySymbols(ee)]}(ee);if(0===Xe.length)return(0,A.of)({});const vt={};return(0,f.D)(Xe).pipe((0,re.z)(Et=>function $i(ee,se,G,De){const Xe=gn(se)??De,vt=An(ee,Xe);return He(vt.resolve?vt.resolve(se,G):Xe.runInContext(()=>vt(se,G)))}(ee[Et],se,G,De).pipe((0,v.P)(),(0,W.b)(qt=>{vt[Et]=qt}))),$e(1),(0,U.h)(vt),(0,te.K)(Et=>mi(Et)?H.E:(0,F._)(Et)))}(vt,ee,se,De).pipe((0,j.U)(Et=>(ee._resolvedData=Et,ee.data=Li(ee,G).resolve,Xe&&an(Xe)&&(ee.data[tt]=Xe.title),null)))}(Et.route,De,ee,se)),(0,W.b)(()=>vt++),$e(1),(0,re.z)(Et=>vt===Xe.length?(0,A.of)(G):H.E))})}(G.paramsInheritanceStrategy,this.environmentInjector),(0,W.b)({next:()=>hi=!0,complete:()=>{hi||(G.restoreHistory(qt),this.cancelNavigationTransition(qt,"",2,G))}}))}),(0,W.b)(qt=>{const hi=new Ur(qt.id,this.urlSerializer.serialize(qt.extractedUrl),this.urlSerializer.serialize(qt.urlAfterRedirects),qt.targetSnapshot);this.events.next(hi)}))}),Zi(Et=>{const qt=hi=>{const yi=[];hi.routeConfig?.loadComponent&&!hi.routeConfig._loadedComponent&&yi.push(this.configLoader.loadComponent(hi.routeConfig).pipe((0,W.b)(xi=>{hi.component=xi}),(0,j.U)(()=>{})));for(const xi of hi.children)yi.push(...qt(xi));return yi};return(0,M.a)(qt(Et.targetSnapshot.root)).pipe((0,Fe.d)(),(0,_e.q)(1))}),Zi(()=>G.afterPreactivation()),(0,j.U)(Et=>{const qt=function Pa(ee,se,G){const De=ct(ee,se._root,G?G._root:void 0);return new jt(De,se)}(G.routeReuseStrategy,Et.targetSnapshot,Et.currentRouterState);return De={...Et,targetRouterState:qt}}),(0,W.b)(Et=>{G.currentUrlTree=Et.urlAfterRedirects,G.rawUrlTree=G.urlHandlingStrategy.merge(Et.urlAfterRedirects,Et.rawUrl),G.routerState=Et.targetRouterState,"deferred"===G.urlUpdateStrategy&&(Et.extras.skipLocationChange||G.setBrowserUrl(G.rawUrlTree,Et),G.browserUrlTree=Et.urlAfterRedirects)}),((ee,se,G)=>(0,j.U)(De=>(new va(se,De.targetRouterState,De.currentRouterState,G).activate(ee),De)))(this.rootContexts,G.routeReuseStrategy,Et=>this.events.next(Et)),(0,W.b)({next:Et=>{Xe=!0,this.lastSuccessfulNavigation=this.currentNavigation,G.navigated=!0,this.events.next(new en(Et.id,this.urlSerializer.serialize(Et.extractedUrl),this.urlSerializer.serialize(G.currentUrlTree))),G.titleStrategy?.updateTitle(Et.targetRouterState.snapshot),Et.resolve(!0)},complete:()=>{Xe=!0}}),(0,X.x)(()=>{Xe||vt||this.cancelNavigationTransition(De,"",1,G),this.currentNavigation?.id===De.id&&(this.currentNavigation=null)}),(0,te.K)(Et=>{if(vt=!0,rn(Et)){Ti(Et)||(G.navigated=!0,G.restoreHistory(De,!0));const qt=new ji(De.id,this.urlSerializer.serialize(De.extractedUrl),Et.message,Et.cancellationCode);if(this.events.next(qt),Ti(Et)){const hi=G.urlHandlingStrategy.merge(Et.url,G.rawUrlTree),yi={skipLocationChange:De.extras.skipLocationChange,replaceUrl:"eager"===G.urlUpdateStrategy||Sn(De.source)};G.scheduleNavigation(hi,"imperative",null,yi,{resolve:De.resolve,reject:De.reject,promise:De.promise})}else De.resolve(!1)}else{G.restoreHistory(De,!0);const qt=new on(De.id,this.urlSerializer.serialize(De.extractedUrl),Et,De.targetSnapshot??void 0);this.events.next(qt);try{De.resolve(G.errorHandler(Et))}catch(hi){De.reject(hi)}}return H.E}))}))}cancelNavigationTransition(G,De,Xe,vt){const Et=new ji(G.id,this.urlSerializer.serialize(G.extractedUrl),De,Xe);this.events.next(Et),G.resolve(!1)}}return ee.\u0275fac=function(G){return new(G||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();function Sn(ee){return"imperative"!==ee}let Lr=(()=>{class ee{buildTitle(G){let De,Xe=G.root;for(;void 0!==Xe;)De=this.getResolvedTitleForRoute(Xe)??De,Xe=Xe.children.find(vt=>vt.outlet===Pe);return De}getResolvedTitleForRoute(G){return G.data[tt]}}return ee.\u0275fac=function(G){return new(G||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return(0,e.f3M)(us)},providedIn:"root"}),ee})(),us=(()=>{class ee extends Lr{constructor(G){super(),this.title=G}updateTitle(G){const De=this.buildTitle(G);void 0!==De&&this.title.setTitle(De)}}return ee.\u0275fac=function(G){return new(G||ee)(e.LFG(ue.Dx))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),ro=(()=>{class ee{}return ee.\u0275fac=function(G){return new(G||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return(0,e.f3M)(xo)},providedIn:"root"}),ee})();class hs{shouldDetach(se){return!1}store(se,G){}shouldAttach(se){return!1}retrieve(se){return null}shouldReuseRoute(se,G){return se.routeConfig===G.routeConfig}}let xo=(()=>{class ee extends hs{}return ee.\u0275fac=function(){let se;return function(De){return(se||(se=e.n5z(ee)))(De||ee)}}(),ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();const Gr=new e.OlP("",{providedIn:"root",factory:()=>({})});let Bl=(()=>{class ee{}return ee.\u0275fac=function(G){return new(G||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return(0,e.f3M)(ps)},providedIn:"root"}),ee})(),ps=(()=>{class ee{shouldProcessUrl(G){return!0}extract(G){return G}merge(G,De){return G}}return ee.\u0275fac=function(G){return new(G||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();function Ys(ee){throw ee}function Hr(ee,se,G){return se.parse("/")}const qs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},So={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let qn=(()=>{class ee{constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,e.f3M)(e.c2e),this.isNgZoneEnabled=!1,this.options=(0,e.f3M)(Gr,{optional:!0})||{},this.errorHandler=this.options.errorHandler||Ys,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Hr,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,A.of)(void 0),this.urlHandlingStrategy=(0,e.f3M)(Bl),this.routeReuseStrategy=(0,e.f3M)(ro),this.urlCreationStrategy=(0,e.f3M)(ar),this.titleStrategy=(0,e.f3M)(Lr),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=be((0,e.f3M)(vn,{optional:!0})??[]),this.navigationTransitions=(0,e.f3M)(Zr),this.urlSerializer=(0,e.f3M)(E),this.location=(0,e.f3M)(fe.Ye),this.rootComponentType=null,this.isNgZoneEnabled=(0,e.f3M)(e.R0b)instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new i,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Jt(this.currentUrlTree,this.rootComponentType),this.navigationTransitions.setupNavigations(this).subscribe(G=>{this.lastSuccessfulId=G.id,this.currentPageId=G.targetPageId},G=>{this.console.warn(`Unhandled Navigation Error: ${G}`)})}get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}resetRootComponentType(G){this.rootComponentType=G,this.routerState.root.component=this.rootComponentType}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(G=>{const De="popstate"===G.type?"popstate":"hashchange";"popstate"===De&&setTimeout(()=>{const Xe={replaceUrl:!0},vt=G.state?.navigationId?G.state:null;if(G.state){const qt={...G.state};delete qt.navigationId,delete qt.\u0275routerPageId,0!==Object.keys(qt).length&&(Xe.state=qt)}const Et=this.parseUrl(G.url);this.scheduleNavigation(Et,De,vt,Xe)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(G){this.config=G.map(yn),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(G,De={}){const{relativeTo:Xe,queryParams:vt,fragment:Et,queryParamsHandling:qt,preserveFragment:hi}=De,yi=hi?this.currentUrlTree.fragment:Et;let xi=null;switch(qt){case"merge":xi={...this.currentUrlTree.queryParams,...vt};break;case"preserve":xi=this.currentUrlTree.queryParams;break;default:xi=vt||null}return null!==xi&&(xi=this.removeEmptyProps(xi)),this.urlCreationStrategy.createUrlTree(Xe,this.routerState,this.currentUrlTree,G,xi,yi??null)}navigateByUrl(G,De={skipLocationChange:!1}){const Xe=oe(G)?G:this.parseUrl(G),vt=this.urlHandlingStrategy.merge(Xe,this.rawUrlTree);return this.scheduleNavigation(vt,"imperative",null,De)}navigate(G,De={skipLocationChange:!1}){return function fs(ee){for(let se=0;se{const vt=G[Xe];return null!=vt&&(De[Xe]=vt),De},{})}scheduleNavigation(G,De,Xe,vt,Et){if(this.disposed)return Promise.resolve(!1);let qt,hi,yi,xi;return Et?(qt=Et.resolve,hi=Et.reject,yi=Et.promise):yi=new Promise((un,Xi)=>{qt=un,hi=Xi}),"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(Xe=this.location.getState()),xi=Xe&&Xe.\u0275routerPageId?Xe.\u0275routerPageId:vt.replaceUrl||vt.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):xi=0,this.navigationTransitions.handleNavigationRequest({targetPageId:xi,source:De,restoredState:Xe,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:G,extras:vt,resolve:qt,reject:hi,promise:yi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),yi.catch(un=>Promise.reject(un))}setBrowserUrl(G,De){const Xe=this.urlSerializer.serialize(G),vt={...De.extras.state,...this.generateNgRouterState(De.id,De.targetPageId)};this.location.isCurrentPathEqualTo(Xe)||De.extras.replaceUrl?this.location.replaceState(Xe,"",vt):this.location.go(Xe,"",vt)}restoreHistory(G,De=!1){if("computed"===this.canceledNavigationResolution){const Xe=this.currentPageId-G.targetPageId;"popstate"!==G.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===Xe?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Xe&&(this.resetState(G),this.browserUrlTree=G.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Xe)}else"replace"===this.canceledNavigationResolution&&(De&&this.resetState(G),this.resetUrlToCurrentUrlTree())}resetState(G){this.routerState=G.currentRouterState,this.currentUrlTree=G.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,G.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(G,De){return"computed"===this.canceledNavigationResolution?{navigationId:G,\u0275routerPageId:De}:{navigationId:G}}}return ee.\u0275fac=function(G){return new(G||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),Ea=(()=>{class ee{constructor(G,De,Xe,vt,Et,qt){this.router=G,this.route=De,this.tabIndexAttribute=Xe,this.renderer=vt,this.el=Et,this.locationStrategy=qt,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new J.x;const hi=Et.nativeElement.tagName;this.isAnchorElement="A"===hi||"AREA"===hi,this.isAnchorElement?this.subscription=G.events.subscribe(yi=>{yi instanceof en&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(G){this._preserveFragment=(0,e.D6c)(G)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(G){this._skipLocationChange=(0,e.D6c)(G)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(G){this._replaceUrl=(0,e.D6c)(G)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(G){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",G)}ngOnChanges(G){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(G){null!=G?(this.commands=Array.isArray(G)?G:[G],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(G,De,Xe,vt,Et){return!!(null===this.urlTree||this.isAnchorElement&&(0!==G||De||Xe||vt||Et||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const G=null===this.href?null:(0,e.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",G)}applyAttributeValue(G,De){const Xe=this.renderer,vt=this.el.nativeElement;null!==De?Xe.setAttribute(vt,G,De):Xe.removeAttribute(vt,G)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return ee.\u0275fac=function(G){return new(G||ee)(e.Y36(qn),e.Y36(Ii),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(fe.S$))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(G,De){1&G&&e.NdJ("click",function(vt){return De.onClick(vt.button,vt.ctrlKey,vt.shiftKey,vt.altKey,vt.metaKey)}),2&G&&e.uIk("target",De.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[e.TTD]}),ee})();class Fo{}let _s=(()=>{class ee{preload(G,De){return(0,A.of)(null)}}return ee.\u0275fac=function(G){return new(G||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),bs=(()=>{class ee{constructor(G,De,Xe,vt,Et){this.router=G,this.injector=Xe,this.preloadingStrategy=vt,this.loader=Et}setUpPreloading(){this.subscription=this.router.events.pipe((0,pe.h)(G=>G instanceof en),(0,V.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(G,De){const Xe=[];for(const vt of De){vt.providers&&!vt._injector&&(vt._injector=(0,e.MMx)(vt.providers,G,`Route: ${vt.path}`));const Et=vt._injector??G,qt=vt._loadedInjector??Et;vt.loadChildren&&!vt._loadedRoutes&&void 0===vt.canLoad||vt.loadComponent&&!vt._loadedComponent?Xe.push(this.preloadConfig(Et,vt)):(vt.children||vt._loadedRoutes)&&Xe.push(this.processRoutes(qt,vt.children??vt._loadedRoutes))}return(0,f.D)(Xe).pipe((0,Me.J)())}preloadConfig(G,De){return this.preloadingStrategy.preload(De,()=>{let Xe;Xe=De.loadChildren&&void 0===De.canLoad?this.loader.loadChildren(G,De):(0,A.of)(null);const vt=Xe.pipe((0,re.z)(Et=>null===Et?(0,A.of)(void 0):(De._loadedRoutes=Et.routes,De._loadedInjector=Et.injector,this.processRoutes(Et.injector??G,Et.routes))));if(De.loadComponent&&!De._loadedComponent){const Et=this.loader.loadComponent(De);return(0,f.D)([vt,Et]).pipe((0,Me.J)())}return vt})}}return ee.\u0275fac=function(G){return new(G||ee)(e.LFG(qn),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Fo),e.LFG(mr))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();const jo=new e.OlP("");let oo=(()=>{class ee{constructor(G,De,Xe,vt,Et={}){this.urlSerializer=G,this.transitions=De,this.viewportScroller=Xe,this.zone=vt,this.options=Et,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Et.scrollPositionRestoration=Et.scrollPositionRestoration||"disabled",Et.anchorScrolling=Et.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(G=>{G instanceof Vi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=G.navigationTrigger,this.restoredId=G.restoredState?G.restoredState.navigationId:0):G instanceof en&&(this.lastId=G.id,this.scheduleScrollEvent(G,this.urlSerializer.parse(G.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(G=>{G instanceof fn&&(G.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(G.position):G.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(G.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(G,De){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new fn(G,"popstate"===this.lastSource?this.store[this.restoredId]:null,De))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return ee.\u0275fac=function(G){e.$Z()},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac}),ee})();const xr=!1;function ia(ee,se){return{\u0275kind:ee,\u0275providers:se}}const na=new e.OlP("",{providedIn:"root",factory:()=>!1});function Qs(){const ee=(0,e.f3M)(e.zs3);return se=>{const G=ee.get(e.z2F);if(se!==G.components[0])return;const De=ee.get(qn),Xe=ee.get(Zo);1===ee.get(so)&&De.initialNavigation(),ee.get(Go,null,e.XFs.Optional)?.setUpPreloading(),ee.get(jo,null,e.XFs.Optional)?.init(),De.resetRootComponentType(G.componentTypes[0]),Xe.closed||(Xe.next(),Xe.unsubscribe())}}const Zo=new e.OlP(xr?"bootstrap done indicator":"",{factory:()=>new J.x}),so=new e.OlP(xr?"initial navigation":"",{providedIn:"root",factory:()=>1});function Za(){let ee=[];return ee=xr?[{provide:e.Xts,multi:!0,useFactory:()=>{const se=(0,e.f3M)(qn);return()=>se.events.subscribe(G=>{console.group?.(`Router Event: ${G.constructor.name}`),console.log(function Ki(ee){if(!("type"in ee))return`Unknown Router Event: ${ee.constructor.name}`;switch(ee.type){case 14:return`ActivationEnd(path: '${ee.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${ee.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${ee.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${ee.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${ee.id}, url: '${ee.url}', urlAfterRedirects: '${ee.urlAfterRedirects}', state: ${ee.state}, shouldActivate: ${ee.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${ee.id}, url: '${ee.url}', urlAfterRedirects: '${ee.urlAfterRedirects}', state: ${ee.state})`;case 2:return`NavigationCancel(id: ${ee.id}, url: '${ee.url}')`;case 1:return`NavigationEnd(id: ${ee.id}, url: '${ee.url}', urlAfterRedirects: '${ee.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${ee.id}, url: '${ee.url}', error: ${ee.error})`;case 0:return`NavigationStart(id: ${ee.id}, url: '${ee.url}')`;case 6:return`ResolveEnd(id: ${ee.id}, url: '${ee.url}', urlAfterRedirects: '${ee.urlAfterRedirects}', state: ${ee.state})`;case 5:return`ResolveStart(id: ${ee.id}, url: '${ee.url}', urlAfterRedirects: '${ee.urlAfterRedirects}', state: ${ee.state})`;case 10:return`RouteConfigLoadEnd(path: ${ee.route.path})`;case 9:return`RouteConfigLoadStart(path: ${ee.route.path})`;case 4:return`RoutesRecognized(id: ${ee.id}, url: '${ee.url}', urlAfterRedirects: '${ee.urlAfterRedirects}', state: ${ee.state})`;case 15:return`Scroll(anchor: '${ee.anchor}', position: '${ee.position?`${ee.position[0]}, ${ee.position[1]}`:null}')`}}(G)),console.log(G),console.groupEnd?.()})}}]:[],ia(1,ee)}const Go=new e.OlP(xr?"router preloader":"");function zo(ee){return ia(0,[{provide:Go,useExisting:bs},{provide:Fo,useExisting:ee}])}const Ro=!1,dn=new e.OlP(Ro?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Vl=[fe.Ye,{provide:E,useClass:B},qn,En,{provide:Ii,useFactory:function Do(ee){return ee.routerState.root},deps:[qn]},mr,Ro?{provide:na,useValue:!0}:[]];function Fl(){return new e.PXZ("Router",qn)}let jl=(()=>{class ee{constructor(G){}static forRoot(G,De){return{ngModule:ee,providers:[Vl,Ro&&De?.enableTracing?Za().\u0275providers:[],{provide:vn,multi:!0,useValue:G},{provide:dn,useFactory:Wl,deps:[[qn,new e.FiY,new e.tp0]]},{provide:Gr,useValue:De||{}},De?.useHash?{provide:fe.S$,useClass:fe.Do}:{provide:fe.S$,useClass:fe.b0},{provide:jo,useFactory:()=>{const ee=(0,e.f3M)(fe.EM),se=(0,e.f3M)(e.R0b),G=(0,e.f3M)(Gr),De=(0,e.f3M)(Zr),Xe=(0,e.f3M)(E);return G.scrollOffset&&ee.setOffset(G.scrollOffset),new oo(Xe,De,ee,se,G)}},De?.preloadingStrategy?zo(De.preloadingStrategy).\u0275providers:[],{provide:e.PXZ,multi:!0,useFactory:Fl},De?.initialNavigation?co(De):[],[{provide:$s,useFactory:Qs},{provide:e.tb,multi:!0,useExisting:$s}]]}}static forChild(G){return{ngModule:ee,providers:[{provide:vn,multi:!0,useValue:G}]}}}return ee.\u0275fac=function(G){return new(G||ee)(e.LFG(dn,8))},ee.\u0275mod=e.oAB({type:ee}),ee.\u0275inj=e.cJS({imports:[Xn]}),ee})();function Wl(ee){if(Ro&&ee)throw new e.vHH(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function co(ee){return["disabled"===ee.initialNavigation?ia(3,[{provide:e.ip1,multi:!0,useFactory:()=>{const se=(0,e.f3M)(qn);return()=>{se.setUpLocationChangeListener()}}},{provide:so,useValue:2}]).\u0275providers:[],"enabledBlocking"===ee.initialNavigation?ia(2,[{provide:so,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:se=>{const G=se.get(fe.V_,Promise.resolve());return()=>G.then(()=>new Promise(Xe=>{const vt=se.get(qn),Et=se.get(Zo);(function De(Xe){se.get(qn).events.pipe((0,pe.h)(Et=>Et instanceof en||Et instanceof ji||Et instanceof on),(0,j.U)(Et=>Et instanceof en||Et instanceof ji&&(0===Et.code||1===Et.code)&&null),(0,pe.h)(Et=>null!==Et),(0,_e.q)(1)).subscribe(()=>{Xe()})})(()=>{Xe(!0)}),vt.afterPreactivation=()=>(Xe(!0),Et.closed?(0,A.of)(void 0):Et),vt.initialNavigation()}))}}]).\u0275providers:[]]}const $s=new e.OlP(Ro?"Router Initializer":"")},89383:(Qe,ae,p)=>{"use strict";p.d(ae,{X$:()=>Je,Zw:()=>H,aw:()=>Fe,sK:()=>ke});var e=p(94650),f=p(39646),A=p(45191),S=p(4128),m=p(97272),M=p(49770),w=p(95698),x=p(34782),I=p(54004),F=p(24351),T=p(63900);class H{}let P=(()=>{class Ve extends H{getTranslation(N){return(0,f.of)({})}}return Ve.\u0275fac=function(){let le;return function(U){return(le||(le=e.n5z(Ve)))(U||Ve)}}(),Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();class J{}let fe=(()=>{class Ve{handle(N){return N.key}}return Ve.\u0275fac=function(N){return new(N||Ve)},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();function j(Ve,le){if(Ve===le)return!0;if(null===Ve||null===le)return!1;if(Ve!=Ve&&le!=le)return!0;let X,ce,Me,N=typeof Ve;if(N==typeof le&&"object"==N){if(!Array.isArray(Ve)){if(Array.isArray(le))return!1;for(ce in Me=Object.create(null),Ve){if(!j(Ve[ce],le[ce]))return!1;Me[ce]=!0}for(ce in le)if(!(ce in Me)&&typeof le[ce]<"u")return!1;return!0}if(!Array.isArray(le))return!1;if((X=Ve.length)==le.length){for(ce=0;ce{_e(le[U])?U in Ve?N[U]=ge(Ve[U],le[U]):Object.assign(N,{[U]:le[U]}):Object.assign(N,{[U]:le[U]})}),N}class pe{}let re=(()=>{class Ve extends pe{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(N,U){let X;return X="string"==typeof N?this.interpolateString(N,U):"function"==typeof N?this.interpolateFunction(N,U):N,X}getValue(N,U){let X="string"==typeof U?U.split("."):[U];U="";do{U+=X.shift(),!$(N)||!$(N[U])||"object"!=typeof N[U]&&X.length?X.length?U+=".":N=void 0:(N=N[U],U="")}while(X.length);return N}interpolateFunction(N,U){return N(U)}interpolateString(N,U){return U?N.replace(this.templateMatcher,(X,ce)=>{let Me=this.getValue(U,ce);return $(Me)?Me:X}):N}}return Ve.\u0275fac=function(){let le;return function(U){return(le||(le=e.n5z(Ve)))(U||Ve)}}(),Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();class v{}let V=(()=>{class Ve extends v{compile(N,U){return N}compileTranslations(N,U){return N}}return Ve.\u0275fac=function(){let le;return function(U){return(le||(le=e.n5z(Ve)))(U||Ve)}}(),Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();class W{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new e.vpe,this.onLangChange=new e.vpe,this.onDefaultLangChange=new e.vpe}}const te=new e.OlP("USE_STORE"),ne=new e.OlP("USE_DEFAULT_LANG"),ye=new e.OlP("DEFAULT_LANGUAGE"),ze=new e.OlP("USE_EXTEND");let ke=(()=>{class Ve{constructor(N,U,X,ce,Me,ue=!0,Pe=!1,tt=!1,Ce){this.store=N,this.currentLoader=U,this.compiler=X,this.parser=ce,this.missingTranslationHandler=Me,this.useDefaultLang=ue,this.isolate=Pe,this.extend=tt,this.pending=!1,this._onTranslationChange=new e.vpe,this._onLangChange=new e.vpe,this._onDefaultLangChange=new e.vpe,this._langs=[],this._translations={},this._translationRequests={},Ce&&this.setDefaultLang(Ce)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(N){this.isolate?this._defaultLang=N:this.store.defaultLang=N}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(N){this.isolate?this._currentLang=N:this.store.currentLang=N}get langs(){return this.isolate?this._langs:this.store.langs}set langs(N){this.isolate?this._langs=N:this.store.langs=N}get translations(){return this.isolate?this._translations:this.store.translations}set translations(N){this.isolate?this._translations=N:this.store.translations=N}setDefaultLang(N){if(N===this.defaultLang)return;let U=this.retrieveTranslations(N);typeof U<"u"?(null==this.defaultLang&&(this.defaultLang=N),U.pipe((0,w.q)(1)).subscribe(X=>{this.changeDefaultLang(N)})):this.changeDefaultLang(N)}getDefaultLang(){return this.defaultLang}use(N){if(N===this.currentLang)return(0,f.of)(this.translations[N]);let U=this.retrieveTranslations(N);return typeof U<"u"?(this.currentLang||(this.currentLang=N),U.pipe((0,w.q)(1)).subscribe(X=>{this.changeLang(N)}),U):(this.changeLang(N),(0,f.of)(this.translations[N]))}retrieveTranslations(N){let U;return(typeof this.translations[N]>"u"||this.extend)&&(this._translationRequests[N]=this._translationRequests[N]||this.getTranslation(N),U=this._translationRequests[N]),U}getTranslation(N){this.pending=!0;const U=this.currentLoader.getTranslation(N).pipe((0,x.d)(1),(0,w.q)(1));return this.loadingTranslations=U.pipe((0,I.U)(X=>this.compiler.compileTranslations(X,N)),(0,x.d)(1),(0,w.q)(1)),this.loadingTranslations.subscribe({next:X=>{this.translations[N]=this.extend&&this.translations[N]?{...X,...this.translations[N]}:X,this.updateLangs(),this.pending=!1},error:X=>{this.pending=!1}}),U}setTranslation(N,U,X=!1){U=this.compiler.compileTranslations(U,N),this.translations[N]=(X||this.extend)&&this.translations[N]?ge(this.translations[N],U):U,this.updateLangs(),this.onTranslationChange.emit({lang:N,translations:this.translations[N]})}getLangs(){return this.langs}addLangs(N){N.forEach(U=>{-1===this.langs.indexOf(U)&&this.langs.push(U)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(N,U,X){let ce;if(U instanceof Array){let Me={},ue=!1;for(let Pe of U)Me[Pe]=this.getParsedResult(N,Pe,X),(0,A.b)(Me[Pe])&&(ue=!0);if(ue){const Pe=U.map(tt=>(0,A.b)(Me[tt])?Me[tt]:(0,f.of)(Me[tt]));return(0,S.D)(Pe).pipe((0,I.U)(tt=>{let Ce={};return tt.forEach((at,Ue)=>{Ce[U[Ue]]=at}),Ce}))}return Me}if(N&&(ce=this.parser.interpolate(this.parser.getValue(N,U),X)),typeof ce>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(ce=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],U),X)),typeof ce>"u"){let Me={key:U,translateService:this};typeof X<"u"&&(Me.interpolateParams=X),ce=this.missingTranslationHandler.handle(Me)}return typeof ce<"u"?ce:U}get(N,U){if(!$(N)||!N.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,F.b)(X=>(X=this.getParsedResult(X,N,U),(0,A.b)(X)?X:(0,f.of)(X))));{let X=this.getParsedResult(this.translations[this.currentLang],N,U);return(0,A.b)(X)?X:(0,f.of)(X)}}getStreamOnTranslationChange(N,U){if(!$(N)||!N.length)throw new Error('Parameter "key" required');return(0,m.z)((0,M.P)(()=>this.get(N,U)),this.onTranslationChange.pipe((0,T.w)(X=>{const ce=this.getParsedResult(X.translations,N,U);return"function"==typeof ce.subscribe?ce:(0,f.of)(ce)})))}stream(N,U){if(!$(N)||!N.length)throw new Error('Parameter "key" required');return(0,m.z)((0,M.P)(()=>this.get(N,U)),this.onLangChange.pipe((0,T.w)(X=>{const ce=this.getParsedResult(X.translations,N,U);return(0,A.b)(ce)?ce:(0,f.of)(ce)})))}instant(N,U){if(!$(N)||!N.length)throw new Error('Parameter "key" required');let X=this.getParsedResult(this.translations[this.currentLang],N,U);if((0,A.b)(X)){if(N instanceof Array){let ce={};return N.forEach((Me,ue)=>{ce[N[ue]]=N[ue]}),ce}return N}return X}set(N,U,X=this.currentLang){this.translations[X][N]=this.compiler.compile(U,X),this.updateLangs(),this.onTranslationChange.emit({lang:X,translations:this.translations[X]})}changeLang(N){this.currentLang=N,this.onLangChange.emit({lang:N,translations:this.translations[N]}),null==this.defaultLang&&this.changeDefaultLang(N)}changeDefaultLang(N){this.defaultLang=N,this.onDefaultLangChange.emit({lang:N,translations:this.translations[N]})}reloadLang(N){return this.resetLang(N),this.getTranslation(N)}resetLang(N){this._translationRequests[N]=void 0,this.translations[N]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let N=window.navigator.languages?window.navigator.languages[0]:null;return N=N||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof N>"u"?void 0:(-1!==N.indexOf("-")&&(N=N.split("-")[0]),-1!==N.indexOf("_")&&(N=N.split("_")[0]),N)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let N=window.navigator.languages?window.navigator.languages[0]:null;return N=N||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,N}}return Ve.\u0275fac=function(N){return new(N||Ve)(e.LFG(W),e.LFG(H),e.LFG(v),e.LFG(pe),e.LFG(J),e.LFG(ne),e.LFG(te),e.LFG(ze),e.LFG(ye))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})(),Je=(()=>{class Ve{constructor(N,U){this.translate=N,this._ref=U,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(N,U,X){let ce=Me=>{this.value=void 0!==Me?Me:N,this.lastKey=N,this._ref.markForCheck()};if(X){let Me=this.translate.getParsedResult(X,N,U);(0,A.b)(Me.subscribe)?Me.subscribe(ce):ce(Me)}this.translate.get(N,U).subscribe(ce)}transform(N,...U){if(!N||!N.length)return N;if(j(N,this.lastKey)&&j(U,this.lastParams))return this.value;let X;if($(U[0])&&U.length)if("string"==typeof U[0]&&U[0].length){let ce=U[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{X=JSON.parse(ce)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${U[0]}`)}}else"object"==typeof U[0]&&!Array.isArray(U[0])&&(X=U[0]);return this.lastKey=N,this.lastParams=U,this.updateValue(N,X),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(ce=>{this.lastKey&&ce.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(N,X,ce.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(ce=>{this.lastKey&&(this.lastKey=null,this.updateValue(N,X,ce.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(N,X))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return Ve.\u0275fac=function(N){return new(N||Ve)(e.Y36(ke,16),e.Y36(e.sBO,16))},Ve.\u0275pipe=e.Yjl({name:"translate",type:Ve,pure:!1}),Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})(),Fe=(()=>{class Ve{static forRoot(N={}){return{ngModule:Ve,providers:[N.loader||{provide:H,useClass:P},N.compiler||{provide:v,useClass:V},N.parser||{provide:pe,useClass:re},N.missingTranslationHandler||{provide:J,useClass:fe},W,{provide:te,useValue:N.isolate},{provide:ne,useValue:N.useDefaultLang},{provide:ze,useValue:N.extend},{provide:ye,useValue:N.defaultLanguage},ke]}}static forChild(N={}){return{ngModule:Ve,providers:[N.loader||{provide:H,useClass:P},N.compiler||{provide:v,useClass:V},N.parser||{provide:pe,useClass:re},N.missingTranslationHandler||{provide:J,useClass:fe},{provide:te,useValue:N.isolate},{provide:ne,useValue:N.useDefaultLang},{provide:ze,useValue:N.extend},{provide:ye,useValue:N.defaultLanguage},ke]}}}return Ve.\u0275fac=function(N){return new(N||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({}),Ve})()},51214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(15861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(94650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(36895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(80529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(77579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(39646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(32076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(54355),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(62843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(39841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(56451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(39300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(18505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(78372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(91005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(63900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(54004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(50590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(70262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(17414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(95698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(86099),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Qe extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Qe.\u0275fac=function(){let ae;return function(e){return(ae||(ae=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Qe)))(e||Qe)}}(),Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Qe{constructor(){this.data=new Map}getItem(p){return this.data.get(p)}removeItem(p){this.data.delete(p)}setItem(p,e){this.data.set(p,e)}}return Qe.\u0275fac=function(p){return new(p||Qe)},Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();class ReceivedTokens{}class OAuthEvent{constructor(ae){this.type=ae}}class OAuthSuccessEvent extends OAuthEvent{constructor(ae,p=null){super(ae),this.info=p}}class OAuthInfoEvent extends OAuthEvent{constructor(ae,p=null){super(ae),this.info=p}}class OAuthErrorEvent extends OAuthEvent{constructor(ae,p,e=null){super(ae),this.reason=p,this.params=e}}function b64DecodeUnicode(Qe){const ae=Qe.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(ae).split("").map(function(p){return"%"+("00"+p.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Qe){return btoa(Qe).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(ae){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=p=>{location.href=p},ae&&Object.assign(this,ae)}}class WebHttpUrlEncodingCodec{encodeKey(ae){return encodeURIComponent(ae)}encodeValue(ae){return encodeURIComponent(ae)}decodeKey(ae){return decodeURIComponent(ae)}decodeValue(ae){return decodeURIComponent(ae)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(ae){var p=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let e=p.inferHashAlgorithm(ae.idTokenHeader),f=yield p.calcHash(ae.accessToken,e),S=base64UrlEncode(f.substr(0,f.length/2)),m=ae.idTokenClaims.at_hash.replace(/=/g,"");return S!==m&&(console.error("exptected at_hash: "+S),console.error("actual at_hash: "+m)),S===m})()}inferHashAlgorithm(ae){let p=ae.alg;if(!p.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+p);return"sha-"+p.substr(2)}}let UrlHelperService=(()=>{class Qe{getHashFragmentParams(p){let e=p||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const f=e.indexOf("?");return e=e.substr(f>-1?f+1:1),this.parseQueryString(e)}parseQueryString(p){const e={};let f,A,S,m,M,w,x;if(null===p)return e;f=p.split("&");for(let I=0;I>6,A[m++]=128|63&M):M<55296||M>=57344?(A[m++]=224|M>>12,A[m++]=128|M>>6&63,A[m++]=128|63&M):(M=65536+((1023&M)<<10|1023&Qe.charCodeAt(++e)),A[m++]=240|M>>18,A[m++]=128|M>>12&63,A[m++]=128|M>>6&63,A[m++]=128|63&M);Qe=A}else{if("object"!==f)throw new Error(ERROR);if(null===Qe)throw new Error(ERROR);if(ARRAY_BUFFER&&Qe.constructor===ArrayBuffer)Qe=new Uint8Array(Qe);else if(!(Array.isArray(Qe)||ARRAY_BUFFER&&ArrayBuffer.isView(Qe)))throw new Error(ERROR)}Qe.length>64&&(Qe=new Sha256(ae,!0).update(Qe).array());var w=[],x=[];for(e=0;e<64;++e){var I=Qe[e]||0;w[e]=92^I,x[e]=54^I}Sha256.call(this,ae,p),this.update(x),this.oKeyPad=w,this.inner=!0,this.sharedMemory=p}Sha256.prototype.update=function(Qe){if(!this.finalized){var ae,p=typeof Qe;if("string"!==p){if("object"!==p)throw new Error(ERROR);if(null===Qe)throw new Error(ERROR);if(ARRAY_BUFFER&&Qe.constructor===ArrayBuffer)Qe=new Uint8Array(Qe);else if(!(Array.isArray(Qe)||ARRAY_BUFFER&&ArrayBuffer.isView(Qe)))throw new Error(ERROR);ae=!0}for(var e,A,f=0,S=Qe.length,m=this.blocks;f>2]|=Qe[f]<>2]|=e<>2]|=(192|e>>6)<>2]|=(128|63&e)<=57344?(m[A>>2]|=(224|e>>12)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<>2]|=(240|e>>18)<>2]|=(128|e>>12&63)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<=64?(this.block=m[16],this.start=A-64,this.hash(),this.hashed=!0):this.start=A}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Qe=this.blocks,ae=this.lastByteIndex;Qe[16]=this.block,Qe[ae>>2]|=EXTRA[3&ae],this.block=Qe[16],ae>=56&&(this.hashed||this.hash(),Qe[0]=this.block,Qe[16]=Qe[1]=Qe[2]=Qe[3]=Qe[4]=Qe[5]=Qe[6]=Qe[7]=Qe[8]=Qe[9]=Qe[10]=Qe[11]=Qe[12]=Qe[13]=Qe[14]=Qe[15]=0),Qe[14]=this.hBytes<<3|this.bytes>>>29,Qe[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var w,T,J,fe,j,$,Qe=this.h0,ae=this.h1,p=this.h2,e=this.h3,f=this.h4,A=this.h5,S=this.h6,m=this.h7,M=this.blocks;for(w=16;w<64;++w)M[w]=M[w-16]+(((T=M[w-15])>>>7|T<<25)^(T>>>18|T<<14)^T>>>3)+M[w-7]+(((T=M[w-2])>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)<<0;for($=ae&p,w=0;w<64;w+=4)this.first?(this.is224?(J=300032,m=(T=M[0]-1413257819)-150054599<<0,e=T+24177077<<0):(J=704751109,m=(T=M[0]-210244248)-1521486534<<0,e=T+143694565<<0),this.first=!1):(m=e+(T=m+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&A^~f&S)+K[w]+M[w])<<0,e=T+(((Qe>>>2|Qe<<30)^(Qe>>>13|Qe<<19)^(Qe>>>22|Qe<<10))+((J=Qe&ae)^Qe&p^$))<<0),S=p+(T=S+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&f^~m&A)+K[w+1]+M[w+1])<<0,p=T+(((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+((fe=e&Qe)^e&ae^J))<<0,A=ae+(T=A+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&m^~S&f)+K[w+2]+M[w+2])<<0,ae=T+(((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+((j=p&e)^p&Qe^fe))<<0,f=Qe+(T=f+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&S^~A&m)+K[w+3]+M[w+3])<<0,Qe=T+(((ae>>>2|ae<<30)^(ae>>>13|ae<<19)^(ae>>>22|ae<<10))+(($=ae&p)^ae&e^j))<<0;this.h0=this.h0+Qe<<0,this.h1=this.h1+ae<<0,this.h2=this.h2+p<<0,this.h3=this.h3+e<<0,this.h4=this.h4+f<<0,this.h5=this.h5+A<<0,this.h6=this.h6+S<<0,this.h7=this.h7+m<<0},Sha256.prototype.hex=function(){this.finalize();var Qe=this.h0,ae=this.h1,p=this.h2,e=this.h3,f=this.h4,A=this.h5,S=this.h6,m=this.h7,M=HEX_CHARS[Qe>>28&15]+HEX_CHARS[Qe>>24&15]+HEX_CHARS[Qe>>20&15]+HEX_CHARS[Qe>>16&15]+HEX_CHARS[Qe>>12&15]+HEX_CHARS[Qe>>8&15]+HEX_CHARS[Qe>>4&15]+HEX_CHARS[15&Qe]+HEX_CHARS[ae>>28&15]+HEX_CHARS[ae>>24&15]+HEX_CHARS[ae>>20&15]+HEX_CHARS[ae>>16&15]+HEX_CHARS[ae>>12&15]+HEX_CHARS[ae>>8&15]+HEX_CHARS[ae>>4&15]+HEX_CHARS[15&ae]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[f>>28&15]+HEX_CHARS[f>>24&15]+HEX_CHARS[f>>20&15]+HEX_CHARS[f>>16&15]+HEX_CHARS[f>>12&15]+HEX_CHARS[f>>8&15]+HEX_CHARS[f>>4&15]+HEX_CHARS[15&f]+HEX_CHARS[A>>28&15]+HEX_CHARS[A>>24&15]+HEX_CHARS[A>>20&15]+HEX_CHARS[A>>16&15]+HEX_CHARS[A>>12&15]+HEX_CHARS[A>>8&15]+HEX_CHARS[A>>4&15]+HEX_CHARS[15&A]+HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S];return this.is224||(M+=HEX_CHARS[m>>28&15]+HEX_CHARS[m>>24&15]+HEX_CHARS[m>>20&15]+HEX_CHARS[m>>16&15]+HEX_CHARS[m>>12&15]+HEX_CHARS[m>>8&15]+HEX_CHARS[m>>4&15]+HEX_CHARS[15&m]),M},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Qe=this.h0,ae=this.h1,p=this.h2,e=this.h3,f=this.h4,A=this.h5,S=this.h6,m=this.h7,M=[Qe>>24&255,Qe>>16&255,Qe>>8&255,255&Qe,ae>>24&255,ae>>16&255,ae>>8&255,255&ae,p>>24&255,p>>16&255,p>>8&255,255&p,e>>24&255,e>>16&255,e>>8&255,255&e,f>>24&255,f>>16&255,f>>8&255,255&f,A>>24&255,A>>16&255,A>>8&255,255&A,S>>24&255,S>>16&255,S>>8&255,255&S];return this.is224||M.push(m>>24&255,m>>16&255,m>>8&255,255&m),M},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Qe=new ArrayBuffer(this.is224?28:32),ae=new DataView(Qe);return ae.setUint32(0,this.h0),ae.setUint32(4,this.h1),ae.setUint32(8,this.h2),ae.setUint32(12,this.h3),ae.setUint32(16,this.h4),ae.setUint32(20,this.h5),ae.setUint32(24,this.h6),this.is224||ae.setUint32(28,this.h7),Qe},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Qe=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Qe),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Qe){if("string"!=typeof Qe)throw new TypeError("expected string");var ae,p=Qe,e=new Uint8Array(p.length);for(ae=0;ae{class Qe{calcHash(p,e){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(p)))})()}toHashString2(p){let e="";for(let f of p)e+=String.fromCharCode(f);return e}toHashString(p){const e=new Uint8Array(p);let f="";for(let A of e)f+=String.fromCharCode(A);return f}}return Qe.\u0275fac=function(p){return new(p||Qe)},Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})(),OAuthService=(()=>{class Qe extends AuthConfig{constructor(p,e,f,A,S,m,M,w,x,I){super(),this.ngZone=p,this.http=e,this.config=S,this.urlHelper=m,this.logger=M,this.crypto=w,this.dateTimeService=I,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=x,S||(S={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),A&&(this.tokenValidationHandler=A),S&&this.configure(S);try{f?this.setStorage(f):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(F){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",F)}if(this.checkLocalStorageAccessable()){const F=window?.navigator?.userAgent;(F?.includes("MSIE ")||F?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const p="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(p,p),localStorage.removeItem(p),0))}catch{return!1}}configure(p){Object.assign(this,new AuthConfig,p),this.config=Object.assign({},new AuthConfig,p),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(p={},e,f=!0){let A=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(S=>{"token_received"===S.type?A=!0:"logout"===S.type&&(A=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(S=>"token_expires"===S.type&&(null==e||"any"===e||S.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(S=>{A&&this.refreshInternal(p,f).catch(m=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(p,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(p,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(p=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(p))}loadDiscoveryDocumentAndLogin(p=null){return this.loadDiscoveryDocumentAndTryLogin(p=p||{}).then(e=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof p.state?p.state:""),!1))}debug(...p){this.showDebugInformation&&this.logger.debug.apply(this.logger,p)}validateUrlFromDiscoveryDocument(p){const e=[],f=this.validateUrlForHttps(p),A=this.validateUrlAgainstIssuer(p);return f||e.push("https for all urls required. Also for urls received by discovery."),A||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(p){if(!p)return!0;const e=p.toLowerCase();return!(!1!==this.requireHttps&&(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(p,e){if(!p)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(p))throw new Error(`'${e}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(p){return!this.strictDiscoveryDocumentValidation||!p||p.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const p=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),f=this.calcTimeout(e,p);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)).subscribe(A=>{this.ngZone.run(()=>{this.eventsSubject.next(A)})})})}setupIdTokenTimer(){const p=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),f=this.calcTimeout(e,p);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)).subscribe(A=>{this.ngZone.run(()=>{this.eventsSubject.next(A)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(p,e){const f=this.dateTimeService.now();return Math.max(0,(e-p)*this.timeoutFactor-(f-p))}setStorage(p){this._storage=p,this.configChanged()}loadDiscoveryDocument(p=null){return new Promise((e,f)=>{p||((p=this.issuer||"").endsWith("/")||(p+="/"),p+=".well-known/openid-configuration"),this.validateUrlForHttps(p)?this.http.get(p).subscribe(A=>{if(!this.validateDiscoveryDocument(A))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void f("discovery_document_validation_error");this.loginUrl=A.authorization_endpoint,this.logoutUrl=A.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=A.grant_types_supported,this.issuer=A.issuer,this.tokenEndpoint=A.token_endpoint,this.userinfoEndpoint=A.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=A.jwks_uri,this.sessionCheckIFrameUrl=A.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(A),this.revocationEndpoint=A.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(S=>{const M=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:A,jwks:S});this.eventsSubject.next(M),e(M)}).catch(S=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",S)),f(S)})},A=>{this.logger.error("error loading discovery document",A),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",A)),f(A)}):f("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((p,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(f=>{this.jwks=f,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),p(f)},f=>{this.logger.error("error loading jwks",f),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",f)),e(f)}):p(null)})}validateDiscoveryDocument(p){let e;return this.skipIssuerCheck||p.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(p.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(p.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(p.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!1):(this.sessionChecksEnabled&&!p.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+p.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(p,e,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(p,e,f).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((p,e)=>{const f=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:f,observe:"response",responseType:"text"}).subscribe(A=>{if(this.debug("userinfo received",JSON.stringify(A)),A.headers.get("content-type").startsWith("application/json")){let S=JSON.parse(A.body);const m=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!m.sub||S.sub!==m.sub))return void e("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");S=Object.assign({},m,S),this._storage.setItem("id_token_claims_obj",JSON.stringify(S)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p({info:S})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p(JSON.parse(A.body))},A=>{this.logger.error("error loading user info",A),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",A)),e(A)})})}fetchTokenUsingPasswordFlow(p,e,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:p,password:e},f)}fetchTokenUsingGrant(p,e,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",p).set("scope",this.scope);if(this.useHttpBasicAuth){const S=btoa(`${this.clientId}:${this.dummyClientSecret}`);f=f.set("Authorization","Basic "+S)}if(this.useHttpBasicAuth||(A=A.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(A=A.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const S of Object.getOwnPropertyNames(this.customQueryParams))A=A.set(S,this.customQueryParams[S]);for(const S of Object.keys(e))A=A.set(S,e[S]);return f=f.set("Content-Type","application/x-www-form-urlencoded"),new Promise((S,m)=>{this.http.post(this.tokenEndpoint,A,{headers:f}).subscribe(M=>{this.debug("tokenResponse",M),this.storeAccessTokenResponse(M.access_token,M.refresh_token,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,M.scope,this.extractRecognizedCustomParameters(M)),this.oidc&&M.id_token&&this.processIdToken(M.id_token,M.access_token).then(w=>{this.storeIdToken(w),S(M)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),S(M)},M=>{this.logger.error("Error performing ${grantType} flow",M),this.eventsSubject.next(new OAuthErrorEvent("token_error",M)),m(M)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((p,e)=>{let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),A=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const S=btoa(`${this.clientId}:${this.dummyClientSecret}`);A=A.set("Authorization","Basic "+S)}if(this.useHttpBasicAuth||(f=f.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(f=f.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const S of Object.getOwnPropertyNames(this.customQueryParams))f=f.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,f,{headers:A}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(S=>S.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(S.id_token,S.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(m=>this.storeIdToken(m)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(m=>S)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(S))).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),p(S)},S=>{this.logger.error("Error refreshing token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),e(S)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=p=>{const e=this.processMessageEventMessage(p);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(f=>this.debug("tryLogin during silent refresh failed",f))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(p={},e=!0){const f=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(p.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const A=this.document.getElementById(this.silentRefreshIFrameName);A&&this.document.body.removeChild(A),this.silentRefreshSubject=f.sub;const S=this.document.createElement("iframe");S.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,p).then(I=>{S.setAttribute("src",I),this.silentRefreshShowIFrame||(S.style.display="none"),this.document.body.appendChild(S)});const M=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(I=>I instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),w=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(I=>"token_received"===I.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),x=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([M,w,x]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>{if(I instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===I.type||(I=new OAuthErrorEvent("silent_refresh_error",I)),this.eventsSubject.next(I),I;return"token_received"===I.type&&(I=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(I)),I})).toPromise()}initImplicitFlowInPopup(p){return this.initLoginFlowInPopup(p)}initLoginFlowInPopup(p){return p=p||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((f,A)=>{let M,m=null;p.windowRef?p.windowRef&&!p.windowRef.closed&&(m=p.windowRef,m.location.href=e):m=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(p));const w=H=>{this.tryLogin({customHashFragment:H,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{I(),f(!0)},P=>{I(),A(P)})};m?M=window.setInterval(()=>{(!m||m.closed)&&(I(),A(new OAuthErrorEvent("popup_closed",{})))},500):A(new OAuthErrorEvent("popup_blocked",{}));const I=()=>{window.clearInterval(M),window.removeEventListener("storage",T),window.removeEventListener("message",F),null!==m&&m.close(),m=null},F=H=>{const P=this.processMessageEventMessage(H);P&&null!==P?(window.removeEventListener("storage",T),w(P)):console.log("false event firing")},T=H=>{"auth_hash"===H.key&&(window.removeEventListener("message",F),w(H.newValue))};window.addEventListener("message",F),window.addEventListener("storage",T)}))}calculatePopupFeatures(p){const e=p.height||470,f=p.width||500,A=window.screenLeft+(window.outerWidth-f)/2;return`location=no,toolbar=no,width=${f},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${A}`}processMessageEventMessage(p){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!p||!p.data||"string"!=typeof p.data)return;const f=p.data;return f.startsWith(e)?"#"+f.substr(e.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=p=>{const e=p.origin.toLowerCase(),f=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),f.startsWith(e)){switch(p.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",p)}else this.debug("sessionCheckEventListener","wrong origin",e,"expected",f,"event",p)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(p=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(p=>{this.debug("token refresh after session change worked")}).catch(p=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"silently_refreshed"===p.type||"silent_refresh_timeout"===p.type||"silent_refresh_error"===p.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(p=>{"silently_refreshed"!==p.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const p=this.document.getElementById(this.sessionCheckIFrameName);p&&this.document.body.removeChild(p);const e=this.document.createElement("iframe");e.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),e.setAttribute("src",this.sessionCheckIFrameUrl),e.style.display="none",this.document.body.appendChild(e),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const p=this.document.getElementById(this.sessionCheckIFrameName);p||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),p.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(p="",e="",f="",A=!1,S={}){var m=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const M=m;let w;w=f||m.redirectUri;const x=yield m.createAndSaveNonce();if(p=p?x+m.config.nonceStateSeparator+encodeURIComponent(p):x,!m.requestAccessToken&&!m.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");m.responseType=m.config.responseType?m.config.responseType:m.oidc&&m.requestAccessToken?"id_token token":m.oidc&&!m.requestAccessToken?"id_token":"token";const I=M.loginUrl.indexOf("?")>-1?"&":"?";let F=M.scope;m.oidc&&!F.match(/(^|\s)openid($|\s)/)&&(F="openid "+F);let T=M.loginUrl+I+"response_type="+encodeURIComponent(M.responseType)+"&client_id="+encodeURIComponent(M.clientId)+"&state="+encodeURIComponent(p)+"&redirect_uri="+encodeURIComponent(w)+"&scope="+encodeURIComponent(F);if(m.responseType.includes("code")&&!m.disablePKCE){const[H,P]=yield m.createChallangeVerifierPairForPKCE();m.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",P):m._storage.setItem("PKCE_verifier",P),T+="&code_challenge="+H,T+="&code_challenge_method=S256"}e&&(T+="&login_hint="+encodeURIComponent(e)),M.resource&&(T+="&resource="+encodeURIComponent(M.resource)),M.oidc&&(T+="&nonce="+encodeURIComponent(x)),A&&(T+="&prompt=none");for(const H of Object.keys(S))T+="&"+encodeURIComponent(H)+"="+encodeURIComponent(S[H]);if(m.customQueryParams)for(const H of Object.getOwnPropertyNames(m.customQueryParams))T+="&"+H+"="+encodeURIComponent(m.customQueryParams[H]);return T})()}initImplicitFlowInternal(p="",e=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let f={},A=null;"string"==typeof e?A=e:"object"==typeof e&&(f=e),this.createLoginUrl(p,A,null,!1,f).then(this.config.openUri).catch(S=>{console.error("Error in initImplicitFlow",S),this.inImplicitFlow=!1})}initImplicitFlow(p="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(p,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(f=>"discovery_document_loaded"===f.type)).subscribe(f=>this.initImplicitFlowInternal(p,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(p){const e=this;if(p.onTokenReceived){const f={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};p.onTokenReceived(f)}}storeAccessTokenResponse(p,e,f,A,S){if(this._storage.setItem("access_token",p),A&&!Array.isArray(A)?this._storage.setItem("granted_scopes",JSON.stringify(A.split(" "))):A&&Array.isArray(A)&&this._storage.setItem("granted_scopes",JSON.stringify(A)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),f){const m=1e3*f,w=this.dateTimeService.new().getTime()+m;this._storage.setItem("expires_at",""+w)}e&&this._storage.setItem("refresh_token",e),S&&S.forEach((m,M)=>{this._storage.setItem(M,m)})}tryLogin(p=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(p).then(e=>!0):this.tryLoginImplicitFlow(p)}parseQueryString(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):{}}tryLoginCodeFlow(p=null){var e=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const f=(p=p||{}).customHashFragment?p.customHashFragment.substring(1):window.location.search,A=e.getCodePartsFromUrl(f),S=A.code,m=A.state,M=A.session_state;if(!p.preventClearHashAfterLogin){const I=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,I)}let[w,x]=e.parseState(m);if(e.state=x,A.error){e.debug("error trying to login"),e.handleLoginError(p,A);const I=new OAuthErrorEvent("code_error",{},A);return e.eventsSubject.next(I),Promise.reject(I)}if(!p.disableNonceCheck){if(!w)return e.saveRequestedRoute(),Promise.resolve();if(!p.disableOAuth2StateCheck&&!e.validateNonce(w)){const F=new OAuthErrorEvent("invalid_nonce_in_state",null);return e.eventsSubject.next(F),Promise.reject(F)}return e.storeSessionState(M),S&&(yield e.getTokenFromCode(S,p),e.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const p=this._storage.getItem("requested_route");p&&history.replaceState(null,"",window.location.origin+p)}getCodePartsFromUrl(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(p,e){let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",p).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let A;A=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),A?f=f.set("code_verifier",A):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(f,e)}fetchAndProcessToken(p,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let f=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const A=btoa(`${this.clientId}:${this.dummyClientSecret}`);f=f.set("Authorization","Basic "+A)}return this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),new Promise((A,S)=>{if(this.customQueryParams)for(let m of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(m,this.customQueryParams[m]);this.http.post(this.tokenEndpoint,p,{headers:f}).subscribe(m=>{this.debug("refresh tokenResponse",m),this.storeAccessTokenResponse(m.access_token,m.refresh_token,m.expires_in||this.fallbackAccessTokenExpirationTimeInSec,m.scope,this.extractRecognizedCustomParameters(m)),this.oidc&&m.id_token?this.processIdToken(m.id_token,m.access_token,e.disableNonceCheck).then(M=>{this.storeIdToken(M),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),A(m)}).catch(M=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",M)),console.error("Error validating tokens"),console.error(M),S(M)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),A(m))},m=>{console.error("Error getting token",m),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",m)),S(m)})})}tryLoginImplicitFlow(p=null){let e;e=(p=p||{}).customHashFragment?this.urlHelper.getHashFragmentParams(p.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const f=e.state;let[A,S]=this.parseState(f);if(this.state=S,e.error){this.debug("error trying to login"),this.handleLoginError(p,e);const I=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(I),Promise.reject(I)}const m=e.access_token,M=e.id_token,w=e.session_state,x=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!m||this.requestAccessToken&&!p.disableOAuth2StateCheck&&!f||this.oidc&&!M)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!w&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!p.disableNonceCheck&&!this.validateNonce(A)){const F=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(F),Promise.reject(F)}return this.requestAccessToken&&this.storeAccessTokenResponse(m,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,x),this.oidc?this.processIdToken(M,m,p.disableNonceCheck).then(I=>p.validationHandler?p.validationHandler({accessToken:m,idClaims:I.idTokenClaims,idToken:I.idToken,state:f}).then(F=>I):I).then(I=>(this.storeIdToken(I),this.storeSessionState(w),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(p),this.inImplicitFlow=!1,!0)).catch(I=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",I)),this.logger.error("Error validating tokens"),this.logger.error(I),Promise.reject(I))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(p),Promise.resolve(!0))}parseState(p){let e=p,f="";if(p){const A=p.indexOf(this.config.nonceStateSeparator);A>-1&&(e=p.substr(0,A),f=p.substr(A+this.config.nonceStateSeparator.length))}return[e,f]}validateNonce(p){let e;return e=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===p||(console.error("Validating access_token failed, wrong state/nonce.",e,p),!1)}storeIdToken(p){this._storage.setItem("id_token",p.idToken),this._storage.setItem("id_token_claims_obj",p.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+p.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(p){this._storage.setItem("session_state",p)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(p,e){p.onLoginError&&p.onLoginError(e),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(p=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:p}processIdToken(p,e,f=!1){const A=p.split("."),m=b64DecodeUnicode(this.padBase64(A[0])),M=JSON.parse(m),x=b64DecodeUnicode(this.padBase64(A[1])),I=JSON.parse(x);let F;if(F=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(I.aud)){if(I.aud.every(j=>j!==this.clientId)){const j="Wrong audience: "+I.aud.join(",");return this.logger.warn(j),Promise.reject(j)}}else if(I.aud!==this.clientId){const j="Wrong audience: "+I.aud;return this.logger.warn(j),Promise.reject(j)}if(!I.sub){const j="No sub claim in id_token";return this.logger.warn(j),Promise.reject(j)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==I.sub){const j=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${I.sub}`;return this.logger.warn(j),Promise.reject(j)}if(!I.iat){const j="No iat claim in id_token";return this.logger.warn(j),Promise.reject(j)}if(!this.skipIssuerCheck&&I.iss!==this.issuer){const j="Wrong issuer: "+I.iss;return this.logger.warn(j),Promise.reject(j)}if(!f&&I.nonce!==F){const j="Wrong nonce: "+I.nonce;return this.logger.warn(j),Promise.reject(j)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!I.at_hash){const j="An at_hash is needed!";return this.logger.warn(j),Promise.reject(j)}const T=this.dateTimeService.now(),H=1e3*I.iat,P=1e3*I.exp,J=this.getClockSkewInMsec();if(H-J>=T||P+J<=T){const j="Token has expired";return console.error(j),console.error({now:T,issuedAtMSec:H,expiresAtMSec:P}),Promise.reject(j)}const fe={accessToken:e,idToken:p,jwks:this.jwks,idTokenClaims:I,idTokenHeader:M,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(fe).then(j=>({idToken:p,idTokenClaims:I,idTokenClaimsJson:x,idTokenHeader:M,idTokenHeaderJson:m,idTokenExpiresAt:P})):this.checkAtHash(fe).then(j=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!j){const $="Wrong at_hash";return this.logger.warn($),Promise.reject($)}return this.checkSignature(fe).then($=>{const ge={idToken:p,idTokenClaims:I,idTokenClaimsJson:x,idTokenHeader:M,idTokenHeaderJson:m,idTokenExpiresAt:P};return this.disableAtHashCheck?ge:this.checkAtHash(fe).then(pe=>{if(this.requestAccessToken&&!pe){const re="Wrong at_hash";return this.logger.warn(re),Promise.reject(re)}return ge})})})}getIdentityClaims(){const p=this._storage.getItem("id_token_claims_obj");return p?JSON.parse(p):null}getGrantedScopes(){const p=this._storage.getItem("granted_scopes");return p?JSON.parse(p):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(p){for(;p.length%4!=0;)p+="=";return p}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const p=this._storage.getItem("expires_at"),e=this.dateTimeService.new();return!(p&&parseInt(p,10)=0&&null!==this._storage.getItem(p)?JSON.parse(this._storage.getItem(p)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(p={},e=""){let f=!1;"boolean"==typeof p&&(f=p,p={});const A=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(m=>this._storage.removeItem(m)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||f||!A&&!this.postLogoutRedirectUri)return;let S;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)S=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(A)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let m=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});A&&(m=m.set("id_token_hint",A));const M=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";M&&(m=m.set("post_logout_redirect_uri",M),e&&(m=m.set("state",e)));for(let w in p)m=m.set(w,p[w]);S=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+m.toString()}this.config.openUri(S)}createAndSaveNonce(){const p=this;return this.createNonce().then(function(e){return p.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",e):p._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const p=this.document.getElementById(this.silentRefreshIFrameName);p&&p.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(p=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let f=45,A="";const S=typeof self>"u"?null:self.crypto||self.msCrypto;if(S){let m=new Uint8Array(f);S.getRandomValues(m),m.map||(m.map=Array.prototype.map),m=m.map(M=>e.charCodeAt(M%e.length)),A=String.fromCharCode.apply(null,m)}else for(;0"discovery_document_loaded"===f.type)).subscribe(f=>this.initCodeFlowInternal(p,e))}initCodeFlowInternal(p="",e={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let f={},A=null;"string"==typeof e?A=e:"object"==typeof e&&(f=e),this.createLoginUrl(p,A,null,!1,f).then(this.config.openUri).catch(S=>{console.error("Error in initAuthorizationCodeFlow"),console.error(S)})}createChallangeVerifierPairForPKCE(){var p=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!p.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const e=yield p.createNonce();return[base64UrlEncode(yield p.crypto.calcHash(e,"sha-256")),e]})()}extractRecognizedCustomParameters(p){let e=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(f=>{p[f]&&e.set(f,JSON.stringify(p[f]))}),e}revokeTokenAndLogout(p={},e=!1){let f=this.revocationEndpoint,A=this.getAccessToken(),S=this.getRefreshToken();if(!A)return;let m=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),M=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);M=M.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(m=m.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(m=m.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))m=m.set(w,this.customQueryParams[w]);return new Promise((w,x)=>{let I,F;if(A){let T=m.set("token",A).set("token_type_hint","access_token");I=this.http.post(f,T,{headers:M})}else I=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(S){let T=m.set("token",S).set("token_type_hint","refresh_token");F=this.http.post(f,T,{headers:M})}else F=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);e&&(I=I.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(T=>0===T.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(T))),F=F.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(T=>0===T.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(T)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([I,F]).subscribe(T=>{this.logOut(p),w(T),this.logger.info("Token successfully revoked")},T=>{this.logger.error("Error revoking token",T),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",T)),x(T)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Qe.\u0275fac=function(p){return new(p||Qe)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(ae){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(ae)}}let DefaultOAuthInterceptor=(()=>{class Qe{constructor(p,e,f){this.oAuthService=p,this.errorHandler=e,this.moduleConfig=f}checkUrl(p){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(p):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>p.toLowerCase().startsWith(e.toLowerCase()))}intercept(p,e){const f=p.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(f)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(S=>!!S)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(S=>"token_received"===S.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(S=>{if(S){const M=p.headers.set("Authorization","Bearer "+S);p=p.clone({headers:M})}return e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>this.errorHandler.handleError(m)))})):e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S))):e.handle(p)}}return Qe.\u0275fac=function(p){return new(p||Qe)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();class NullValidationHandler{validateSignature(ae){return Promise.resolve(null)}validateAtHash(ae){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Qe{static forRoot(p=null,e=NullValidationHandler){return{ngModule:Qe,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:e},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:p},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Qe.\u0275fac=function(p){return new(p||Qe)},Qe.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Qe}),Qe.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Qe})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},33231:(Qe,ae,p)=>{"use strict";p.d(ae,{Co:()=>pt,nu:()=>at});var e=p(29521),f=p(94650),A=p(24006),S=p(3238),m=p(59549),M=p(84385),w=p(61135),x=p(39646),I=p(39841),F=p(77579),T=p(63900),H=p(54004),P=p(68675),J=p(91005),fe=p(82722),j=p(95698),$=p(18505),_e=p(39300),ge=p(67376),pe=p(36895),re=p(4859),v=p(56709),V=p(97392),W=p(51572),te=p(10266),ne=p(44850);const ye=["searchSelectInput"],ze=["innerSelectSearch"];function ke(z,st){if(1&z){const be=f.EpF();f.TgZ(0,"mat-checkbox",9),f.NdJ("change",function(he){f.CHM(be);const Re=f.oxw();return f.KtG(Re._emitSelectAllBooleanToParent(he.checked))}),f.qZA()}if(2&z){const be=f.oxw();f.Q6J("color",null==be.matFormField?null:be.matFormField.color)("checked",be.toggleAllCheckboxChecked)("indeterminate",be.toggleAllCheckboxIndeterminate)("matTooltip",be.toggleAllCheckboxTooltipMessage)("matTooltipPosition",be.toggleAllCheckboxTooltipPosition)}}function $e(z,st){1&z&&f._UZ(0,"mat-spinner",10)}function Je(z,st){1&z&&f.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Fe(z,st){if(1&z&&(f.TgZ(0,"mat-icon",14),f._uU(1),f.qZA()),2&z){const be=f.oxw(2);f.Q6J("svgIcon",be.closeSvgIcon),f.xp6(1),f.hij(" ",be.closeSvgIcon?null:be.closeIcon," ")}}function Ve(z,st){if(1&z){const be=f.EpF();f.TgZ(0,"button",11),f.NdJ("click",function(){f.CHM(be);const he=f.oxw();return f.KtG(he._reset(!0))}),f.YNc(1,Je,1,0,"ng-content",12),f.YNc(2,Fe,2,2,"ng-template",null,13,f.W1O),f.qZA()}if(2&z){const be=f.MAs(3),Ye=f.oxw();f.xp6(1),f.Q6J("ngIf",Ye.clearIcon)("ngIfElse",be)}}function le(z,st){1&z&&f.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function N(z,st){if(1&z&&f._uU(0),2&z){const be=f.oxw(2);f.Oqu(be.noEntriesFoundLabel)}}function U(z,st){if(1&z&&(f.TgZ(0,"div",15),f.YNc(1,le,1,0,"ng-content",12),f.YNc(2,N,1,1,"ng-template",null,16,f.W1O),f.qZA()),2&z){const be=f.MAs(3),Ye=f.oxw();f.xp6(1),f.Q6J("ngIf",Ye.noEntriesFound)("ngIfElse",be)}}const X=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],ce=function(z,st){return{"mat-select-search-inner-multiple":z,"mat-select-search-inner-toggle-all":st}},Me=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let ue=(()=>{class z{}return z.\u0275fac=function(be){return new(be||z)},z.\u0275dir=f.lG2({type:z,selectors:[["","ngxMatSelectSearchClear",""]]}),z})();const Pe=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],tt=new f.OlP("mat-selectsearch-default-options");let Ce=(()=>{class z{}return z.\u0275fac=function(be){return new(be||z)},z.\u0275dir=f.lG2({type:z,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),z})(),at=(()=>{class z{constructor(be,Ye,he,Re=null,He=null,ve){this.matSelect=be,this.changeDetectorRef=Ye,this._viewportRuler=he,this.matOption=Re,this.matFormField=He,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new f.vpe,this.onTouched=Oe=>{},this._options$=new w.X(null),this.optionsList$=this._options$.pipe((0,T.w)(Oe=>Oe?Oe.changes.pipe((0,H.U)(r=>r.toArray()),(0,P.O)(Oe.toArray())):(0,x.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,H.U)(Oe=>Oe?Oe.length:0)),this._formControl=new A.NI(""),this._showNoEntriesFound$=(0,I.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,H.U)(([Oe,r])=>this.noEntriesFoundLabel&&Oe&&r===this.getOptionsLengthOffset())),this._onDestroy=new F.x,this.applyDefaultOptions(ve)}get value(){return this._formControl.value}set _options(be){this._options$.next(be)}get _options(){return this._options$.getValue()}applyDefaultOptions(be){if(be)for(const Ye of Pe)be.hasOwnProperty(Ye)&&(this[Ye]=be[Ye])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,J.g)(1),(0,fe.R)(this._onDestroy)).subscribe(be=>{be?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,j.q)(1),(0,T.w)(be=>{this._options=this.matSelect.options;let Ye=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe((0,$.b)(()=>{setTimeout(()=>{const he=this._options.toArray(),Re=he[this.getOptionsLengthOffset()],He=this.matSelect._keyManager;He&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(Ye,Re)||!He.activeItem||!he.find(Oe=>this.matSelect.compareWith(Oe,He.activeItem)))&&He.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()})),Ye=Re})}))})).pipe((0,fe.R)(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe((0,fe.R)(this._onDestroy)).subscribe(be=>{this.matOption&&(be?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,fe.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,fe.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(be){this.toggleAll.emit(be)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(be){(be.key&&1===be.key.length||be.keyCode>=e.A&&be.keyCode<=e.Z||be.keyCode>=e.xE&&be.keyCode<=e.aO||be.keyCode===e.L_||this.preventHomeEndKeyPropagation&&(be.keyCode===e.Sd||be.keyCode===e.uR))&&be.stopPropagation(),this.matSelect.multiple&&be.key&&be.keyCode===e.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&be.keyCode===e.hY&&this.value&&(this._reset(!0),be.stopPropagation())}_handleKeyup(be){if(be.keyCode===e.LH||be.keyCode===e.JH){const Ye=this.matSelect._getAriaActiveDescendant(),he=this._options.toArray().findIndex(Re=>Re.id===Ye);-1!==he&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[he]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",Ye))}}writeValue(be){this._lastExternalInputValue=be,this._formControl.setValue(be),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(be){this._formControl.valueChanges.pipe((0,_e.h)(Ye=>Ye!==this._lastExternalInputValue),(0,$.b)(()=>this._lastExternalInputValue=void 0),(0,fe.R)(this._onDestroy)).subscribe(be)}registerOnTouched(be){this.onTouched=be}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const be=this.matSelect.panel.nativeElement,Ye=be.scrollTop;this.searchSelectInput.nativeElement.focus(),be.scrollTop=Ye}_reset(be){this._formControl.setValue(""),be&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,fe.R)(this._onDestroy)).subscribe(be=>{let Ye=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!be||!Array.isArray(be))&&(be=[]);const he=this.matSelect.options.map(Re=>Re.value);this.previousSelectedValues.forEach(Re=>{!be.some(He=>this.matSelect.compareWith(He,Re))&&!he.some(He=>this.matSelect.compareWith(He,Re))&&(be.push(Re),Ye=!0)})}this.previousSelectedValues=be,Ye&&this.matSelect._onChange(be)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let Ye,be=this.innerSelectSearch.nativeElement;for(;be=be.parentElement;)if(be.classList.contains("mat-select-panel")){Ye=be;break}Ye&&(this.innerSelectSearch.nativeElement.style.width=Ye.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return z.\u0275fac=function(be){return new(be||z)(f.Y36(M.gD),f.Y36(f.sBO),f.Y36(ge.rL),f.Y36(S.ey,8),f.Y36(m.KE,8),f.Y36(tt,8))},z.\u0275cmp=f.Xpm({type:z,selectors:[["ngx-mat-select-search"]],contentQueries:function(be,Ye,he){if(1&be&&(f.Suo(he,ue,5),f.Suo(he,Ce,5)),2&be){let Re;f.iGM(Re=f.CRH())&&(Ye.clearIcon=Re.first),f.iGM(Re=f.CRH())&&(Ye.noEntriesFound=Re.first)}},viewQuery:function(be,Ye){if(1&be&&(f.Gf(ye,7,f.SBq),f.Gf(ze,7,f.SBq)),2&be){let he;f.iGM(he=f.CRH())&&(Ye.searchSelectInput=he.first),f.iGM(he=f.CRH())&&(Ye.innerSelectSearch=he.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[f._Bn([{provide:A.JU,useExisting:(0,f.Gpc)(()=>z),multi:!0}])],ngContentSelectors:Me,decls:12,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(be,Ye){1&be&&(f.F$t(X),f._UZ(0,"input",0),f.TgZ(1,"div",1,2),f.YNc(3,ke,1,5,"mat-checkbox",3),f.TgZ(4,"input",4,5),f.NdJ("keydown",function(Re){return Ye._handleKeydown(Re)})("keyup",function(Re){return Ye._handleKeyup(Re)})("blur",function(){return Ye.onBlur()}),f.qZA(),f.YNc(6,$e,1,0,"mat-spinner",6),f.YNc(7,Ve,4,2,"button",7),f.Hsn(8),f._UZ(9,"mat-divider"),f.qZA(),f.YNc(10,U,4,2,"div",8),f.ALo(11,"async")),2&be&&(f.xp6(1),f.Q6J("ngClass",f.WLB(11,ce,Ye.matSelect.multiple,Ye._isToggleAllCheckboxVisible())),f.xp6(2),f.Q6J("ngIf",Ye._isToggleAllCheckboxVisible()),f.xp6(1),f.Q6J("type",Ye.type)("formControl",Ye._formControl)("placeholder",Ye.placeholderLabel),f.uIk("aria-label",Ye.ariaLabel),f.xp6(2),f.Q6J("ngIf",Ye.searching),f.xp6(1),f.Q6J("ngIf",!Ye.hideClearSearchButton&&Ye.value&&!Ye.searching),f.xp6(3),f.Q6J("ngIf",f.lcZ(11,9,Ye._showNoEntriesFound$)))},dependencies:[pe.mk,pe.O5,A.Fj,A.JJ,A.oH,re.RK,v.oG,V.Hw,W.Ou,te.gM,ne.d,pe.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background:none;padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),z})(),pt=(()=>{class z{}return z.\u0275fac=function(be){return new(be||z)},z.\u0275mod=f.oAB({type:z}),z.\u0275inj=f.cJS({imports:[pe.ez,A.UX,re.ot,v.p9,V.Ps,W.Cq,te.AV,ne.t]}),z})()},15861:(Qe,ae,p)=>{"use strict";function e(A,S,m,M,w,x,I){try{var F=A[x](I),T=F.value}catch(H){return void m(H)}F.done?S(T):Promise.resolve(T).then(M,w)}function f(A){return function(){var S=this,m=arguments;return new Promise(function(M,w){var x=A.apply(S,m);function I(T){e(x,M,w,I,F,"next",T)}function F(T){e(x,M,w,I,F,"throw",T)}I(void 0)})}}p.d(ae,{Z:()=>f})},4147:Qe=>{"use strict";Qe.exports={i8:"10.7.1"}}},Qe=>{Qe(Qe.s=92013)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/main.625bab42b9579a45.js b/dist/apps/admin-gui/main.625bab42b9579a45.js deleted file mode 100644 index cf4c076d7..000000000 --- a/dist/apps/admin-gui/main.625bab42b9579a45.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[179],{57788:(Xe,ae,p)=>{"use strict";p.d(ae,{g:()=>ot});var e=p(61744),f=p(10036),A=p(94650),S=p(36895),m=p(3848),M=p(51572),w=p(64877),x=p(62109),P=p(62707),F=p(38383),T=p(74010),B=p(9244),I=p(97392),q=p(4859),ue=p(10266),j=p(89593),Q=p(64901),be=p(89383);function me(Ue,ft){if(1&Ue){const Z=A.EpF();A.TgZ(0,"div",7)(1,"div",8)(2,"perun-web-apps-entity-search-select",9),A.NdJ("entitySelected",function(Ae){const pe=A.CHM(Z).$implicit;return A.KtG(pe[0]=Ae.namespace+":"+Ae.friendlyName)}),A.ALo(3,"translate"),A.ALo(4,"translate"),A.ALo(5,"translate"),A.qZA()(),A.TgZ(6,"div",10)(7,"perun-web-apps-debounce-filter",11),A.NdJ("filter",function(Ae){const pe=A.CHM(Z).$implicit;return A.KtG(pe[1]=Ae)}),A.qZA()(),A.TgZ(8,"div",12)(9,"button",13),A.NdJ("click",function(){const Ke=A.CHM(Z).$implicit,pe=A.oxw(2);return A.KtG(pe.removeOption(Ke))}),A.ALo(10,"translate"),A.TgZ(11,"mat-icon"),A._uU(12,"clear"),A.qZA()()()()}if(2&Ue){const Z=A.oxw(2);A.xp6(2),A.Q6J("entities",Z.availableAttrDefs)("searchFunction",Z.nameFunction)("mainTextFunction",Z.nameFunction)("secondaryTextFunction",Z.secondaryTextFunction)("selectPlaceholder",A.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SELECT_ATTR_DEF"))("findPlaceholder",A.lcZ(4,12,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.FIND_ATTR_DEF"))("noEntriesText",A.lcZ(5,14,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.NO_ATTR_DEF_FOUND")),A.xp6(5),A.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_PLACEHOLDER"),A.xp6(2),A.s9C("matTooltip",A.lcZ(10,16,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.REMOVE_PARAMETER")),A.Q6J("disabled",1===Z.options.length)}}function fe(Ue,ft){if(1&Ue){const Z=A.EpF();A.TgZ(0,"div",1),A.YNc(1,me,13,18,"div",2),A.TgZ(2,"button",3),A.NdJ("click",function(){A.CHM(Z);const Ae=A.oxw();return A.KtG(Ae.addOption())}),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.TgZ(5,"span",4),A.ALo(6,"translate"),A.TgZ(7,"button",5),A.NdJ("click",function(){A.CHM(Z);const Ae=A.oxw();return A.KtG(Ae.searchEntities())}),A.TgZ(8,"mat-icon",6),A._uU(9,"search"),A.qZA(),A._uU(10),A.ALo(11,"translate"),A.qZA()()()}if(2&Ue){const Z=A.oxw();A.xp6(1),A.Q6J("ngForOf",Z.options),A.xp6(2),A.hij(" ",A.lcZ(4,6,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.ADD_PARAMETER")," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON_TOOLTIP")),A.Q6J("matTooltipDisabled",!Z.emptySearchString()),A.xp6(2),A.Q6J("disabled",Z.emptySearchString()),A.xp6(3),A.hij(" ",A.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON")," ")}}let re=(()=>{class Ue{constructor(){this.attributeSelected=new A.vpe,this.search=new A.vpe,this.availableAttrDefs=[],this.options=[],this.nameFunction=Z=>Z.displayName,this.secondaryTextFunction=Z=>"#"+String(Z.id)}ngOnInit(){this.availableAttrDefs=this.attributes.filter(Z=>Z.entity===this.attributesForEntity).sort(B.Xd)}ngOnChanges(){this.options=[],this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}removeOption(Z){this.options=this.options.filter(lt=>lt!==Z)}addOption(){this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}emptySearchString(){return this.options.some(Z=>0===Z[1].length)}searchEntities(){const Z={};this.options.forEach(lt=>{Z[lt[0]]=lt[1]}),this.search.emit(Z)}}return Ue.\u0275fac=function(Z){return new(Z||Ue)},Ue.\u0275cmp=A.Xpm({type:Ue,selectors:[["perun-web-apps-attribute-search-select"]],inputs:{attributes:"attributes",attributesForEntity:"attributesForEntity"},outputs:{attributeSelected:"attributeSelected",search:"search"},features:[A.TTD],decls:1,vars:1,consts:[["class","container ms-0 me-0 ps-0 pe-0 mt-3",4,"ngIf"],[1,"container","ms-0","me-0","ps-0","pe-0","mt-3"],["class","row",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"me-2",3,"click"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["data-cy","searcher-search-button","mat-stroked-button","",1,"me-2",3,"disabled","click"],["iconPositionEnd",""],[1,"row"],[1,"col-7"],[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"],[1,"col-4","pe-0"],[3,"placeholder","filter"],[1,"col-1"],["mat-icon-button","","color","warn",1,"mt-2",3,"matTooltip","disabled","click"]],template:function(Z,lt){1&Z&&A.YNc(0,fe,12,12,"div",0),2&Z&&A.Q6J("ngIf",void 0!==lt.options)},dependencies:[S.sg,S.O5,I.Hw,q.lW,q.RK,ue.gM,j.i,Q.P,be.X$]}),Ue})();function v(Ue,ft){1&Ue&&(A._uU(0),A.ALo(1,"translate")),2&Ue&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_USERS")," ")}function V(Ue,ft){if(1&Ue){const Z=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(Ae){A.CHM(Z);const Ke=A.oxw(2);return A.KtG(Ke.searchEntities(Ae,"user"))}),A.qZA()}if(2&Ue){const Z=A.oxw(2);A.Q6J("attributes",Z.allAttrDefinitions)("attributesForEntity","user")}}const W=function(){return["user","id","name"]};function ee(Ue,ft){if(1&Ue&&A._UZ(0,"app-users-list",9),2&Ue){const Z=A.oxw(2);A.Q6J("tableId",Z.tableId)("displayedColumns",A.DdM(3,W))("users",Z.entities)}}function ie(Ue,ft){if(1&Ue&&(A.YNc(0,V,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,ee,1,4,"app-users-list",7)),2&Ue){const Z=A.oxw();A.Q6J("ngIf",!Z.loading),A.xp6(1),A.Q6J("ngIf",!Z.loadingEntityData)}}function xe(Ue,ft){1&Ue&&(A._uU(0),A.ALo(1,"translate")),2&Ue&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_MEMBERS")," ")}function Ye(Ue,ft){if(1&Ue){const Z=A.EpF();A.TgZ(0,"perun-web-apps-vo-search-select",13),A.NdJ("voSelected",function(Ae){A.CHM(Z);const Ke=A.oxw(2);return A.KtG(Ke.voSelected(Ae))}),A.qZA()}if(2&Ue){const Z=A.oxw(2);A.Q6J("vos",Z.vos)}}function Le(Ue,ft){if(1&Ue){const Z=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(Ae){A.CHM(Z);const Ke=A.oxw(2);return A.KtG(Ke.searchEntities(Ae,"member"))}),A.qZA()}if(2&Ue){const Z=A.oxw(2);A.Q6J("attributes",Z.allAttrDefinitions)("attributesForEntity","user")}}const $e=function(){return["id","voId","userId","status"]};function qe(Ue,ft){if(1&Ue){const Z=A.EpF();A.TgZ(0,"perun-web-apps-members-list",14),A.NdJ("updateTable",function(){A.CHM(Z);const Ae=A.oxw(2);return A.KtG(Ae.searchEntities(Ae.searchInput,"member"))}),A.qZA()}if(2&Ue){const Z=A.oxw(2);A.Q6J("tableId",Z.tableId)("displayedColumns",A.DdM(5,$e))("disableStatusChange",!0)("disableExpirationChange",!0)("members",Z.entities)}}function Ze(Ue,ft){if(1&Ue&&(A.TgZ(0,"div",10),A.YNc(1,Ye,1,1,"perun-web-apps-vo-search-select",11),A.qZA(),A.YNc(2,Le,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(3,qe,1,6,"perun-web-apps-members-list",12)),2&Ue){const Z=A.oxw();A.xp6(1),A.Q6J("ngIf",Z.vos.length>0),A.xp6(1),A.Q6J("ngIf",!Z.loading),A.xp6(1),A.Q6J("ngIf",!Z.loadingEntityData)}}function Pe(Ue,ft){1&Ue&&(A._uU(0),A.ALo(1,"translate")),2&Ue&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_FACILITIES")," ")}function se(Ue,ft){if(1&Ue){const Z=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(Ae){A.CHM(Z);const Ke=A.oxw(2);return A.KtG(Ke.searchEntities(Ae,"facility"))}),A.qZA()}if(2&Ue){const Z=A.oxw(2);A.Q6J("attributes",Z.allAttrDefinitions)("attributesForEntity","facility")}}const N=function(){return["id","name","description"]};function U(Ue,ft){if(1&Ue&&A._UZ(0,"perun-web-apps-facilities-list",16),2&Ue){const Z=A.oxw(2);A.Q6J("tableId",Z.tableId)("displayedColumns",A.DdM(3,N))("facilities",Z.entities)}}function $(Ue,ft){if(1&Ue&&(A.YNc(0,se,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,U,1,4,"perun-web-apps-facilities-list",15)),2&Ue){const Z=A.oxw();A.Q6J("ngIf",!Z.loading),A.xp6(1),A.Q6J("ngIf",!Z.loadingEntityData)}}function ce(Ue,ft){1&Ue&&(A._uU(0),A.ALo(1,"translate")),2&Ue&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_RESOURCES")," ")}function De(Ue,ft){if(1&Ue){const Z=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(Ae){A.CHM(Z);const Ke=A.oxw(2);return A.KtG(Ke.searchEntities(Ae,"resource"))}),A.qZA()}if(2&Ue){const Z=A.oxw(2);A.Q6J("attributes",Z.allAttrDefinitions)("attributesForEntity","resource")}}const he=function(){return["id","name","description","voId","facilityId"]};function Oe(Ue,ft){if(1&Ue&&A._UZ(0,"perun-web-apps-resources-list",18),2&Ue){const Z=A.oxw(2);A.Q6J("tableId",Z.tableId)("displayedColumns",A.DdM(3,he))("resources",Z.entities)}}function it(Ue,ft){if(1&Ue&&(A.YNc(0,De,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,Oe,1,4,"perun-web-apps-resources-list",17)),2&Ue){const Z=A.oxw();A.Q6J("ngIf",!Z.loading),A.xp6(1),A.Q6J("ngIf",!Z.loadingEntityData)}}function Ce(Ue,ft){1&Ue&&A._UZ(0,"mat-spinner",19)}let ot=(()=>{class Ue{constructor(Z,lt,Ae){this.attributesManager=Z,this.searcher=lt,this.voService=Ae,this.loadingEntityData=!1,this.allAttrDefinitions=[],this.tableId=f.ee,this.entities=[],this.vos=[]}ngOnInit(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(Z=>{this.allAttrDefinitions=Z,this.loading=!1})}tabChanged(Z){switch(this.entities=[],Z){case 0:this.tableId=f.ee;break;case 1:this.loadingEntityData=!0,this.loadAllVos(),this.tableId=f.FF;break;case 2:this.tableId=f.$I;break;case 3:this.tableId=f.XH}}loadAllVos(){this.loadingEntityData=!0,this.voService.getAllVos().subscribe(Z=>{this.vos=Z,this.selectedVo=Z[0],this.loadingEntityData=!1})}voSelected(Z){void 0!==Z&&(this.selectedVo=Z)}searchEntities(Z,lt){switch(this.searchInput=Z,this.loadingEntityData=!0,lt){case"user":this.getUsers();break;case"member":this.getMembers();break;case"facility":this.getFacilities();break;case"resource":this.getResources()}}getUsers(){this.searcher.getUsersSearcher({attributesWithSearchingValues:this.searchInput}).subscribe(Z=>{this.entities=Z,this.loadingEntityData=!1})}getMembers(){this.searcher.getMembersByUserAttributes({vo:this.selectedVo.id,userAttributesWithSearchingValues:this.searchInput}).subscribe(Z=>{this.entities=Z,this.loadingEntityData=!1})}getFacilities(){this.searcher.getFacilities({attributesWithSearchingValues:this.searchInput}).subscribe(Z=>{this.entities=Z.map(lt=>({facility:lt})),this.loadingEntityData=!1})}getResources(){this.searcher.getAttributesResources({attributesWithSearchingValues:this.searchInput}).subscribe(Z=>{this.entities=Z,this.loadingEntityData=!1})}}return Ue.id="AdminSearcherComponent",Ue.\u0275fac=function(Z){return new(Z||Ue)(A.Y36(e.H8),A.Y36(e.t7),A.Y36(e.YF))},Ue.\u0275cmp=A.Xpm({type:Ue,selectors:[["app-admin-searcher"]],hostVars:2,hostBindings:function(Z,lt){2&Z&&A.ekj("router-component",lt.true)},decls:17,vars:4,consts:[[1,"page-subtitle"],["mat-stretch-tabs","false",3,"selectedIndexChange"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],["class","ms-auto me-auto",4,"ngIf"],[3,"attributes","attributesForEntity","search",4,"ngIf"],[3,"tableId","displayedColumns","users",4,"ngIf"],[3,"attributes","attributesForEntity","search"],[3,"tableId","displayedColumns","users"],[1,"mt-3"],[3,"vos","voSelected",4,"ngIf"],[3,"tableId","displayedColumns","disableStatusChange","disableExpirationChange","members","updateTable",4,"ngIf"],[3,"vos","voSelected"],[3,"tableId","displayedColumns","disableStatusChange","disableExpirationChange","members","updateTable"],[3,"tableId","displayedColumns","facilities",4,"ngIf"],[3,"tableId","displayedColumns","facilities"],[3,"tableId","displayedColumns","resources",4,"ngIf"],[3,"tableId","displayedColumns","resources"],[1,"ms-auto","me-auto"]],template:function(Z,lt){1&Z&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"mat-tab-group",1),A.NdJ("selectedIndexChange",function(Ke){return lt.tabChanged(Ke)}),A.TgZ(4,"mat-tab",2),A.YNc(5,v,2,3,"ng-template",3),A.YNc(6,ie,2,2,"ng-template",4),A.qZA(),A.TgZ(7,"mat-tab"),A.YNc(8,xe,2,3,"ng-template",3),A.YNc(9,Ze,4,3,"ng-template",4),A.qZA(),A.TgZ(10,"mat-tab"),A.YNc(11,Pe,2,3,"ng-template",3),A.YNc(12,$,2,2,"ng-template",4),A.qZA(),A.TgZ(13,"mat-tab"),A.YNc(14,ce,2,3,"ng-template",3),A.YNc(15,it,2,2,"ng-template",4),A.qZA()(),A.YNc(16,Ce,1,0,"mat-spinner",5)),2&Z&&(A.xp6(1),A.Oqu(A.lcZ(2,2,"ADMIN.SEARCHER.TITLE")),A.xp6(15),A.Q6J("ngIf",lt.loading||lt.loadingEntityData))},dependencies:[S.O5,m.Vc,m.uD,m.uX,m.SP,M.Ou,w.C,x.C,P.M,F.O,T.X,re,be.X$]}),Ue})()},80774:(Xe,ae,p)=>{"use strict";p.d(ae,{F:()=>v});var e=p(95017),f=p(61744),A=p(10036),S=p(9244),m=p(40009),M=p(90719),w=p(80279),x=p(94650),P=p(7274),F=p(36895),T=p(4859),B=p(60205),I=p(68530),q=p(96214),ue=p(7434),j=p(73358),Q=p(89383);function be(V,W){if(1&V){const ee=x.EpF();x.TgZ(0,"button",8),x.NdJ("click",function(){x.CHM(ee);const xe=x.oxw();return x.KtG(xe.createService())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}2&V&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function me(V,W){if(1&V){const ee=x.EpF();x.TgZ(0,"button",9),x.NdJ("click",function(){x.CHM(ee);const xe=x.oxw();return x.KtG(xe.deleteService())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}if(2&V){const ee=x.oxw();x.Q6J("disabled",0===ee.selection.selected.length),x.xp6(1),x.hij(" ",x.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function fe(V,W){1&V&&x._UZ(0,"perun-web-apps-loading-table")}function re(V,W){if(1&V&&x._UZ(0,"app-services-list",10),2&V){const ee=x.oxw();x.Q6J("filterValue",ee.filterValue)("selection",ee.selection)("services",ee.services)("tableId",ee.tableId)}}let v=(()=>{class V{constructor(ee,ie,xe){this.serviceManager=ee,this.dialog=ie,this.authResolver=xe,this.selection=new e.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=A.NL}ngOnInit(){this.serviceManager.getServices().subscribe(ee=>{this.services=ee,this.refreshTable()})}createService(){const ee=(0,S.kZ)();ee.width="600px",ee.data={theme:"admin-theme"},this.dialog.open(m.R,ee).afterClosed().subscribe(xe=>{xe&&this.refreshTable()})}deleteService(){const ee=(0,S.kZ)();ee.width="600px",ee.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(M.m,ee).afterClosed().subscribe(xe=>{xe&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(ee=>{this.services=ee,this.selection.clear(),this.loading=!1})}applyFilter(ee){this.filterValue=ee}}return V.id="AdminServicesComponent",V.\u0275fac=function(ee){return new(ee||V)(x.Y36(f.KK),x.Y36(P.uw),x.Y36(w.x4))},V.\u0275cmp=x.Xpm({type:V,selectors:[["app-admin-services"]],decls:12,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button me-2","data-cy","service-create-button","mat-flat-button","",3,"click",4,"ngIf"],["class","me-2","color","warn","data-cy","service-delete-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"filterValue","selection","services","tableId",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["color","accent","data-cy","service-create-button","mat-flat-button","",1,"action-button","me-2",3,"click"],["color","warn","data-cy","service-delete-button","mat-flat-button","",1,"me-2",3,"disabled","click"],[3,"filterValue","selection","services","tableId"]],template:function(ee,ie){if(1&ee&&(x.TgZ(0,"div")(1,"h1",0),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"perun-web-apps-refresh-button",1),x.NdJ("refresh",function(){return ie.refreshTable()}),x.qZA(),x.YNc(5,be,3,3,"button",2),x.YNc(6,me,3,4,"button",3),x.TgZ(7,"perun-web-apps-immediate-filter",4),x.NdJ("filter",function(Ye){return ie.applyFilter(Ye)}),x.qZA(),x.YNc(8,fe,1,0,"ng-template",null,5,x.W1O),x.TgZ(10,"div",6),x.YNc(11,re,1,4,"app-services-list",7),x.qZA()()),2&ee){const xe=x.MAs(9);x.xp6(2),x.Oqu(x.lcZ(3,6,"ADMIN.SERVICES.TITLE")),x.xp6(3),x.Q6J("ngIf",ie.authResolver.isPerunAdmin()),x.xp6(1),x.Q6J("ngIf",ie.authResolver.isPerunAdmin()),x.xp6(1),x.Q6J("placeholder","ADMIN.SERVICES.FILTER"),x.xp6(4),x.Q6J("perunWebAppsLoader",ie.loading)("perunWebAppsLoaderIndicator",xe)}},dependencies:[F.O5,T.lW,B.Q,I.K,q.t,ue.L,j.e,Q.X$]}),V})()},25828:(Xe,ae,p)=>{"use strict";p.d(ae,{t:()=>Q});var e=p(10036),f=p(64080),A=p(80279),S=p(39646),m=p(94650),M=p(56709),w=p(68530),x=p(96214),P=p(64901),F=p(88561),T=p(73358),B=p(36895),I=p(89383);function q(be,me){1&be&&m._UZ(0,"perun-web-apps-loading-table")}const ue=function(){return["user","id","name","email","logins","organization"]};function j(be,me){if(1&be){const fe=m.EpF();m.TgZ(0,"perun-web-apps-users-dynamic-list",7),m.NdJ("loading$",function(v){m.CHM(fe);const V=m.oxw();return m.KtG(V.loading$=v)}),m.qZA()}if(2&be){const fe=m.oxw();m.Q6J("disableRouting",!1)("searchString",fe.searchString)("attrNames",fe.attributes)("displayedColumns",m.DdM(7,ue))("tableId",fe.tableId)("withoutVo",fe.usersWithoutVo)("updateTable",fe.update)}}let Q=(()=>{class be{constructor(fe,re){this.storeService=fe,this.cd=re,this.usersWithoutVo=!1,this.tableId=e.xx,this.attributes=[],this.update=!1}ngOnInit(){this.loading$=(0,S.of)(!0),this.attributes=[f.r.USER_DEF_ORGANIZATION,f.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(fe){this.searchString=fe,this.cd.detectChanges()}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo,this.cd.detectChanges()}refresh(){this.update=!this.update,this.cd.detectChanges()}}return be.id="AdminUsersComponent",be.\u0275fac=function(fe){return new(fe||be)(m.Y36(A.d6),m.Y36(m.sBO))},be.\u0275cmp=m.Xpm({type:be,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(fe,re){2&fe&&m.ekj("router-component",re.true)},decls:13,vars:13,consts:[[1,"page-subtitle"],[3,"click"],[1,"mt-2","search-field",3,"autoFocus","placeholder","filter"],["color","primary",3,"checked","change"],["spinner",""],[1,"position-relative"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo","updateTable","loading$",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo","updateTable","loading$"]],template:function(fe,re){if(1&fe&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"perun-web-apps-refresh-button",1),m.NdJ("click",function(){return re.refresh()}),m.qZA(),m.TgZ(4,"perun-web-apps-debounce-filter",2),m.NdJ("filter",function(V){return re.onSearchByString(V)}),m.qZA(),m.TgZ(5,"mat-checkbox",3),m.NdJ("change",function(){return re.findUsersWithoutVO()}),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.YNc(8,q,1,0,"ng-template",null,4,m.W1O),m.TgZ(10,"div",5),m.YNc(11,j,1,8,"perun-web-apps-users-dynamic-list",6),m.ALo(12,"async"),m.qZA()),2&fe){const v=m.MAs(9);m.xp6(1),m.Oqu(m.lcZ(2,7,"ADMIN.USERS.TITLE")),m.xp6(3),m.Q6J("autoFocus",!0)("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),m.xp6(1),m.Q6J("checked",re.usersWithoutVo),m.xp6(1),m.hij(" ",m.lcZ(7,9,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),m.xp6(5),m.Q6J("perunWebAppsLoader",m.lcZ(12,11,re.loading$))("perunWebAppsLoaderIndicator",v)}},dependencies:[M.oG,w.K,x.t,P.P,F.M,T.e,B.Ov,I.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),be})()},72077:(Xe,ae,p)=>{"use strict";p.d(ae,{y:()=>V});var e=p(80279),f=p(17445),A=p(80529),S=p(9244),m=p(94650),M=p(7274),w=p(4859),x=p(89383);let P=(()=>{class W{constructor(ie){this.dialogRef=ie}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return W.\u0275fac=function(ie){return new(ie||W)(m.Y36(M.so))},W.\u0275cmp=m.Xpm({type:W,selectors:[["app-new-version-dialog"]],decls:15,vars:12,consts:[["mat-dialog-title",""],[1,"user-theme"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"click"]],template:function(ie,xe){1&ie&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div",1)(4,"div",2)(5,"p"),m._uU(6),m.ALo(7,"translate"),m.qZA()(),m.TgZ(8,"div",3)(9,"button",4),m.NdJ("click",function(){return xe.onClose()}),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.TgZ(12,"button",5),m.NdJ("click",function(){return xe.onReload()}),m._uU(13),m.ALo(14,"translate"),m.qZA()()()),2&ie&&(m.xp6(1),m.Oqu(m.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),m.xp6(5),m.hij(" ",m.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),m.xp6(4),m.hij(" ",m.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),m.xp6(3),m.hij(" ",m.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},dependencies:[w.lW,M.uh,M.xY,M.H8,x.X$]}),W})();var F=p(82761),T=p(39300),B=p(40034);let I=(()=>{class W{constructor(ie,xe){this.router=ie,this.routeReuseStrategy=xe;const Ye=xe;ie.events.subscribe(Le=>{Le instanceof F.OD&&Ye.setLastNavigationType("popstate"===Le.navigationTrigger?"back":"direct")})}init(){}}return W.\u0275fac=function(ie){return new(ie||W)(m.LFG(F.F0),m.LFG(F.wN))},W.\u0275prov=m.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W})();const q=["footer"];function ue(W,ee){if(1&W&&(m.TgZ(0,"div",3)(1,"mat-icon"),m._uU(2,"alert"),m.qZA(),m._uU(3),m.qZA()),2&W){const ie=m.oxw();m.xp6(3),m.hij(" ",ie.warningMessage,"\n")}}const j=function(W,ee){return{top:W,background:ee}},Q=function(W,ee){return{"margin-top":W,"min-height":ee}},be=function(W,ee){return{"border-color":W,background:ee}},me=function(W){return{"background-color":W}},fe=function(W){return{"min-height":W}};function re(W,ee){if(1&W){const ie=m.EpF();m.TgZ(0,"perun-web-apps-header",4),m.NdJ("sidenavToggle",function(){m.CHM(ie);const Ye=m.MAs(3);return m.KtG(Ye.toggle())}),m.qZA(),m.TgZ(1,"mat-sidenav-container",5)(2,"mat-sidenav",6,7)(4,"ng-scrollbar"),m._UZ(5,"app-side-menu",8),m.qZA()(),m.TgZ(6,"mat-sidenav-content",9)(7,"div",10),m._UZ(8,"router-outlet"),m.qZA(),m.TgZ(9,"div",null,11),m._UZ(11,"perun-web-apps-footer"),m.qZA()()()}if(2&W){const ie=m.MAs(3),xe=m.oxw();m.Q6J("ngStyle",m.WLB(12,j,xe.getNavMenuTop(),xe.navBackgroundColor))("otherApp",xe.otherApp)("showNotifications",!0),m.xp6(1),m.Q6J("ngStyle",m.WLB(15,Q,xe.getSideNavMarginTop(),xe.getSideNavMinHeight())),m.xp6(1),m.Q6J("fixedInViewport",!0)("mode",xe.sidebarMode)("fixedTopGap",xe.getTopGap())("ngStyle",m.WLB(18,be,xe.sideBarBorderColor,xe.sideMenubackgroundColor))("opened",!xe.isMobile()),m.xp6(3),m.Q6J("sideNav",ie),m.xp6(1),m.Q6J("ngStyle",m.VKq(21,me,xe.contentBackgroundColor)),m.xp6(1),m.Q6J("ngStyle",m.VKq(23,fe,xe.contentInnerMinHeight))}}function v(W,ee){1&W&&m._UZ(0,"perun-web-apps-login-screen-base",12),2&W&&m.Q6J("application","admin-gui")}let V=(()=>{class W{constructor(ie,xe,Ye,Le,$e,qe,Ze,Pe){this.cache=ie,this.store=xe,this.http=Ye,this.dialog=Le,this.router=$e,this.initAuth=qe,this.authService=Ze,this.cd=Pe,this.otherApp=B.p.Profile,this.sidebarMode="side",this.theme=this.store.getProperty("theme"),this.navBackgroundColor=this.theme.nav_bg_color,this.sideBarBorderColor=this.theme.sidemenu_border_color,this.contentBackgroundColor=this.theme.content_bg_color,this.sideMenubackgroundColor=this.theme.sidemenu_bg_color,this.displayWarning=this.store.getProperty("display_warning"),this.warningMessage=this.store.getProperty("warning_message"),this.version=p(4147).i8,this.contentInnerMinHeight=this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)",this.cache.init(),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}isLoggedIn(){return this.authService.isLoggedIn()||this.initAuth.isServiceAccess()}isMobile(){return window.innerWidth<=W.minWidth}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),null===sessionStorage.getItem("initPage")&&(sessionStorage.setItem("initPage",location.pathname),sessionStorage.setItem("onInitPage","true")),this.store.setInitialPageId(1),this.principal=this.store.getPerunPrincipal(),this.loadAppVersion(),(0,f.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,T.h)(ie=>ie instanceof F.OD)).subscribe(ie=>{this.updateInitAccessedPage(ie)})}getTopGap(){return this.displayWarning?112:64}getSideNavMarginTop(){return this.displayWarning?"112px":"64px"}getSideNavMinHeight(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}getNavMenuTop(){return this.displayWarning?"48px":"0"}ngAfterViewInit(){const ie=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+ie+"px - 112px)":"calc(100vh - "+ie+"px - 64px)",this.cd.detectChanges()}updateInitAccessedPage(ie){ie.url===sessionStorage.getItem("initPage")?("imperative"===ie.navigationTrigger&&ie.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===ie.navigationTrigger&&(ie.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(ie.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const ie=new A.WM({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"});this.http.get("/assets/config/version.json",{headers:ie}).subscribe(xe=>{const Ye=xe.version;if(Ye)if(this.version&&"SNAPSHOT"!==Ye&&this.version!==Ye){const Le=(0,S.kZ)();this.dialog.open(P,Le)}else this.version=Ye})}}return W.minWidth=992,W.\u0275fac=function(ie){return new(ie||W)(m.Y36(I),m.Y36(e.d6),m.Y36(A.eN),m.Y36(M.uw),m.Y36(F.F0),m.Y36(e.v0),m.Y36(e.e8),m.Y36(m.sBO))},W.\u0275cmp=m.Xpm({type:W,selectors:[["app-root"]],viewQuery:function(ie,xe){if(1&ie&&m.Gf(q,5),2&ie){let Ye;m.iGM(Ye=m.CRH())&&(xe.footer=Ye.first)}},hostBindings:function(ie,xe){1&ie&&m.NdJ("resize",function(Le){return xe.getScreenSize(Le)},!1,m.Jf7)},decls:4,vars:4,consts:[["class","beta-warning",4,"ngIf"],[3,"displayWarning"],[3,"ngIf"],[1,"beta-warning"],["id","nav-menu",1,"mat-elevation-z3",3,"ngStyle","otherApp","showNotifications","sidenavToggle"],["autosize","true",3,"ngStyle"],[3,"fixedInViewport","mode","fixedTopGap","ngStyle","opened"],["sidenav",""],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(ie,xe){1&ie&&(m.YNc(0,ue,4,1,"div",0),m._UZ(1,"perun-web-apps-notificator",1),m.YNc(2,re,12,25,"ng-template",2),m.YNc(3,v,1,1,"ng-template",2)),2&ie&&(m.Q6J("ngIf",xe.displayWarning),m.xp6(1),m.Q6J("displayWarning",xe.displayWarning),m.xp6(1),m.Q6J("ngIf",!xe.isLoginScreenShow&&!xe.isServiceAccess&&xe.isLoggedIn()),m.xp6(1),m.Q6J("ngIf",xe.isLoginScreenShow||xe.isServiceAccess||!xe.isLoggedIn()))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px}.beta-warning[_ngcontent-%COMP%]{overflow:hidden;height:48px;position:fixed;z-index:999;top:0;background-color:#ffbfc5;width:100%;color:#d32f2f;text-align:center;font-weight:500;padding:6px;line-height:36px;font-size:1rem}ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-thumb-color: #6a6a6a;--scrollbar-thumb-hover-color: lightgrey}"]}),W})()},77968:(Xe,ae,p)=>{"use strict";p.d(ae,{D:()=>f});var e=p(94650);let f=(()=>{class A{constructor(){this.accessItemsChange=new e.vpe,this.facilityItemsChange=new e.vpe,this.adminItemsChange=new e.vpe,this.userItemsChange=new e.vpe,this.resetChange=new e.vpe,this.homeItemsChange=new e.vpe}setHomeItems(m){this.homeItemsChange.emit(m)}setAccessMenuItems(m){this.accessItemsChange.emit(m)}setFacilityMenuItems(m){this.facilityItemsChange.emit(m)}setAdminItems(m){this.adminItemsChange.emit(m)}setUserItems(m){this.userItemsChange.emit(m)}reset(){this.resetChange.emit()}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})()},37380:(Xe,ae,p)=>{"use strict";p.d(ae,{o:()=>me});var e=p(61744),f=p(10036),A=p(80279),S=p(94650),m=p(36895),M=p(3238),w=p(59549),x=p(84385),P=p(68530),F=p(25788),T=p(96214),B=p(7434),I=p(73358),q=p(89383);function ue(fe,re){if(1&fe&&(S.TgZ(0,"mat-option",10),S._uU(1),S.qZA()),2&fe){const v=re.$implicit;S.Q6J("value",v.id),S.xp6(1),S.hij(" ",v.name," ")}}function j(fe,re){1&fe&&S._UZ(0,"perun-web-apps-loading-table")}const Q=function(){return["id","vo","name","description"]};function be(fe,re){if(1&fe&&S._UZ(0,"perun-web-apps-groups-list",11),2&fe){const v=S.oxw();S.Q6J("displayedColumns",S.DdM(6,Q))("groups",v.groupsToShow)("disableMembers",!1)("filter",v.filterValue)("groupsToDisableRouting",v.groupsWithoutRouteAuth)("tableId",v.tableId)}}let me=(()=>{class fe{constructor(v,V,W){this.facilityManager=v,this.authResolver=V,this.entityStorageService=W,this.groups=[],this.filterValue="",this.selected="all",this.groupsToShow=this.groups,this.tableId=f.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.facilityManager.getAllowedVos(this.facility.id).subscribe(v=>{this.vos=v,this.refreshTable()})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(v=>v.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.facilityManager.getAllowedGroups(this.facility.id).subscribe(v=>{this.groups=this.groups.concat(v),this.groupsToShow=this.groups,this.setAuthRights(v),this.loading=!1}),0===this.vos.length&&(this.loading=!1)}setAuthRights(v){v.forEach(V=>{this.authResolver.isAuthorized("getGroupById_int_policy",[V])||this.groupsWithoutRouteAuth.add(V.id)})}applyFilter(v){this.filterValue=v}}return fe.id="FacilityAllowedGroupsComponent",fe.\u0275fac=function(v){return new(v||fe)(S.Y36(e.IQ),S.Y36(A.x4),S.Y36(A.fb))},fe.\u0275cmp=S.Xpm({type:fe,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(v,V){2&v&&S.ekj("router-component",V.true)},inputs:{groups:"groups"},decls:19,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],[1,"me-2"],[3,"value","selectionChange","valueChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"value"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId"]],template:function(v,V){if(1&v&&(S.TgZ(0,"div")(1,"h1",0),S._uU(2),S.ALo(3,"translate"),S.qZA(),S.TgZ(4,"perun-web-apps-refresh-button",1),S.NdJ("refresh",function(){return V.refreshTable()}),S.qZA(),S.TgZ(5,"mat-form-field",2)(6,"mat-label"),S._uU(7),S.ALo(8,"translate"),S.qZA(),S.TgZ(9,"mat-select",3),S.NdJ("selectionChange",function(){return V.showGroup()})("valueChange",function(ee){return V.selected=ee}),S.TgZ(10,"mat-option",4),S._uU(11),S.ALo(12,"translate"),S.qZA(),S.YNc(13,ue,2,2,"mat-option",5),S.qZA()(),S.TgZ(14,"perun-web-apps-immediate-filter",6),S.NdJ("filter",function(ee){return V.applyFilter(ee)}),S.qZA(),S.YNc(15,j,1,0,"ng-template",null,7,S.W1O),S.TgZ(17,"div",8),S.YNc(18,be,1,7,"perun-web-apps-groups-list",9),S.qZA()()),2&v){const W=S.MAs(16);S.xp6(2),S.Oqu(S.lcZ(3,8,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),S.xp6(5),S.Oqu(S.lcZ(8,10,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),S.xp6(2),S.Q6J("value",V.selected),S.xp6(2),S.Oqu(S.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),S.xp6(2),S.Q6J("ngForOf",V.vos),S.xp6(1),S.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),S.xp6(4),S.Q6J("perunWebAppsLoader",V.loading)("perunWebAppsLoaderIndicator",W)}},dependencies:[m.sg,M.ey,w.KE,w.hX,x.gD,P.K,F.W,T.t,B.L,I.e,q.X$]}),fe})()},25610:(Xe,ae,p)=>{"use strict";p.d(ae,{_:()=>Ze});var e=p(10036),f=p(61744),A=p(80279),S=p(64080),m=p(24006),M=p(39646),w=p(94650),x=p(36895),P=p(3238),F=p(59549),T=p(84385),B=p(90455),I=p(68530),q=p(96214),ue=p(62707),j=p(45703),Q=p(64901),be=p(88561),me=p(30540),fe=p(97392),re=p(4859),v=p(89383);let V=(()=>{class Pe{constructor(){this.changeAdvancedFilter=new w.vpe,this.clearFilters=new w.vpe}ngOnInit(){this.changeAdvancedFilter.emit(this.advancedFilter)}toggleAdvancedFilter(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}return Pe.\u0275fac=function(N){return new(N||Pe)},Pe.\u0275cmp=w.Xpm({type:Pe,selectors:[["perun-web-apps-advanced-filter"]],inputs:{filtersCount:"filtersCount",advancedFilter:"advancedFilter"},outputs:{changeAdvancedFilter:"changeAdvancedFilter",clearFilters:"clearFilters"},decls:12,vars:11,consts:[["mat-stroked-button","",3,"click"],["iconPositionEnd",""]],template:function(N,U){1&N&&(w.TgZ(0,"button",0),w.NdJ("click",function(){return U.toggleAdvancedFilter()}),w.TgZ(1,"mat-icon"),w._uU(2,"filter_list"),w.qZA(),w._uU(3),w.ALo(4,"translate"),w.TgZ(5,"mat-icon",1),w._uU(6),w.qZA()(),w.TgZ(7,"button",0),w.NdJ("click",function(){return U.clearFilters.emit()}),w.TgZ(8,"mat-icon"),w._uU(9,"filter_list_off"),w.qZA(),w._uU(10),w.ALo(11,"translate"),w.qZA()),2&N&&(w.Gre("me-2 ",U.filtersCount?"grey":"no-color",""),w.xp6(3),w.AsE(" ",w.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",U.filtersCount?"("+U.filtersCount+")":null," "),w.xp6(3),w.Oqu(U.advancedFilter?"arrow_drop_up":"arrow_drop_down"),w.xp6(4),w.hij(" ",w.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},dependencies:[fe.Hw,re.lW,v.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:gray}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),Pe})();var W=p(73358);function ee(Pe,se){if(1&Pe&&(w.TgZ(0,"mat-option",20),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Pe){const N=se.$implicit;w.Q6J("value",N),w.xp6(1),w.Oqu(w.lcZ(2,2,"CONSENTS.STATUS_"+N))}}function ie(Pe,se){if(1&Pe){const N=w.EpF();w.TgZ(0,"mat-form-field",17)(1,"mat-label"),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-select",18),w.NdJ("closed",function(){w.CHM(N);const $=w.oxw(2);return w.KtG($.consentStatusSelected())}),w.TgZ(5,"mat-select-trigger"),w._uU(6),w.qZA(),w.YNc(7,ee,3,4,"mat-option",19),w.qZA()()}if(2&Pe){const N=w.oxw(2);w.xp6(2),w.Oqu(w.lcZ(3,4,"CONSENTS.STATUS")),w.xp6(2),w.Q6J("formControl",N.statuses),w.xp6(2),w.hij(" ",N.displaySelectedStatuses()," "),w.xp6(1),w.Q6J("ngForOf",N.consentStatusesList)}}function xe(Pe,se){if(1&Pe){const N=w.EpF();w.TgZ(0,"div",9)(1,"div",10)(2,"mat-slide-toggle",11),w.NdJ("ngModelChange",function($){w.CHM(N);const ce=w.oxw();return w.KtG(ce.allowed=$)})("change",function(){w.CHM(N);const $=w.oxw();return w.KtG($.changeFilter())}),w._uU(3),w.ALo(4,"translate"),w.qZA(),w.TgZ(5,"span",12),w._uU(6),w.ALo(7,"translate"),w.qZA()(),w.TgZ(8,"div",1)(9,"perun-web-apps-vo-search-select",13),w.NdJ("voSelected",function($){w.CHM(N);const ce=w.oxw();return w.KtG(ce.voSelected($))}),w.qZA(),w.TgZ(10,"perun-web-apps-resource-search-select",14),w.NdJ("resourceSelected",function($){w.CHM(N);const ce=w.oxw();return w.KtG(ce.resourceSelected($))}),w.qZA(),w.TgZ(11,"perun-web-apps-service-search-select",15),w.NdJ("serviceSelected",function($){w.CHM(N);const ce=w.oxw();return w.KtG(ce.serviceSelected($))}),w.qZA(),w.YNc(12,ie,8,6,"mat-form-field",16),w.qZA()()}if(2&Pe){const N=w.oxw();w.xp6(2),w.Q6J("ngModel",N.allowed),w.xp6(1),w.hij(" ",w.lcZ(4,14,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),w.xp6(3),w.Oqu(w.lcZ(7,16,N.toggle_messages[N.allowed?1:0])),w.xp6(3),w.Q6J("vos",N.vos)("vo",N.selectedVo)("disableAutoSelect",!0),w.xp6(1),w.Q6J("resources",N.filteredResources)("displayStatus",!1)("resource",N.selectedResource)("disableAutoSelect",!0),w.xp6(1),w.Q6J("services",N.filteredServices)("service",N.selectedService)("disableAutoSelect",!0),w.xp6(1),w.Q6J("ngIf",N.globalForceConsents&&N.facilityForceConsents)}}function Ye(Pe,se){1&Pe&&w._UZ(0,"perun-web-apps-loading-table")}const Le=function(){return["id","name","email","logins","organization","consentStatus"]},$e=function(){return["id","name","email","logins","organization"]};function qe(Pe,se){if(1&Pe){const N=w.EpF();w.TgZ(0,"perun-web-apps-users-dynamic-list",21),w.NdJ("loading$",function($){w.CHM(N);const ce=w.oxw();return w.KtG(ce.loading$=$)}),w.qZA()}if(2&Pe){const N=w.oxw();w.Q6J("attrNames",N.attributes)("disableRouting",!N.routeAuth)("displayedColumns",N.globalForceConsents&&N.facilityForceConsents?w.DdM(12,Le):w.DdM(13,$e))("onlyAllowed",N.allowed)("facilityId",N.facility.id)("searchString",N.filterValue)("resourceId",null==N.selectedResource?null:N.selectedResource.id)("serviceId",null==N.selectedService?null:N.selectedService.id)("tableId",N.tableId)("voId",null==N.selectedVo?null:N.selectedVo.id)("consentStatuses",N.selectedConsentStatuses)("updateTable",N.update)}}let Ze=(()=>{class Pe{constructor(N,U,$,ce,De,he,Oe,it,Ce){this.facilityService=N,this.serviceService=U,this.resourceService=$,this.authResolver=ce,this.storeService=De,this.entityStorageService=he,this.consentService=Oe,this.translate=it,this.cd=Ce,this.update=!1,this.filterValue="",this.attributes=[],this.allowed=!0,this.resources=[],this.filteredResources=[],this.vos=[],this.services=[],this.filteredServices=[],this.consentStatusesList=["UNSIGNED","GRANTED","REVOKED"],this.selectedConsentStatuses=[],this.resourceAssignedServices=new Map,this.tableId=e.z6,this.toggle_messages=["FACILITY_DETAIL.ALLOWED_USERS.FILTER_ASSIGNED_MSG","FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED_MSG"],this.advancedFilter=!1}ngOnInit(){this.loading$=(0,M.of)(!0),this.statuses=new m.NI(this.selectedConsentStatuses),this.attributes=[S.r.USER_DEF_ORGANIZATION,S.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames()),this.facility=this.entityStorageService.getEntity(),this.globalForceConsents=this.storeService.getProperty("enforce_consents"),this.consentService.getConsentHubByFacility(this.facility.id).subscribe(N=>{this.facilityForceConsents=N.enforceConsents}),this.routeAuth=this.authResolver.isPerunAdminOrObserver(),this.changeFilter(),this.refreshPage()}changeFilter(){this.filtersCount=this.allowed?1:0,this.selectedVo&&(this.filtersCount+=1),this.selectedResource&&(this.filtersCount+=1),this.selectedService&&(this.filtersCount+=1),this.selectedConsentStatuses.length>0&&(this.filtersCount+=1),this.cd.detectChanges()}clearFilters(){this.allowed=!1,this.selectedVo=void 0,this.selectedResource=void 0,this.selectedService=void 0,this.selectedConsentStatuses=[],this.statuses.setValue(this.selectedConsentStatuses),this.filtersCount=0,this.voSelected(this.selectedVo),this.resourceSelected(this.selectedResource),this.serviceSelected(this.selectedService),this.cd.detectChanges()}refreshPage(){this.facilityService.getAssignedResourcesForFacility(this.facility.id).subscribe(N=>{this.resources=N,this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(U=>{this.vos=U,this.serviceService.getAssignedServices(this.facility.id).subscribe($=>{this.services=$,this.filteredServices=this.services,this.update=!this.update,this.cd.detectChanges()})})})}applyFilter(N){this.filterValue=N}voSelected(N){this.selectedVo=N,this.selectedResource=void 0,this.selectedService=void 0,N?(this.filteredResources=this.resources.filter(U=>U.voId===N.id),this.serviceService.getAssignedServicesVo(this.facility.id,N.id).subscribe(U=>{this.filteredServices=U})):(this.filteredResources=this.resources,this.filteredServices=this.services),this.changeFilter()}resourceSelected(N){this.selectedResource=N,this.selectedService=void 0,void 0===N?this.filteredServices=this.services:this.resourceService.getAssignedServicesToResource(N.id).subscribe(U=>{this.filteredServices=U}),this.changeFilter()}serviceSelected(N){this.selectedService=N,this.changeFilter()}consentStatusSelected(){this.selectedConsentStatuses=this.statuses.value,this.changeFilter()}displaySelectedStatuses(){if(this.selectedConsentStatuses.length===this.consentStatusesList.length)return"ALL";const N=this.statuses.value;return N?`${this.translate.instant("CONSENTS.STATUS_"+N[0])} ${N.length>1?"(+"+(N.length-1).toString()+" "+(2===N.length?"other)":"others)"):""}`:""}}return Pe.id="FacilityAllowedUsersComponent",Pe.\u0275fac=function(N){return new(N||Pe)(w.Y36(f.IQ),w.Y36(f.KK),w.Y36(f.xk),w.Y36(A.x4),w.Y36(A.d6),w.Y36(A.fb),w.Y36(f.WY),w.Y36(A.Te),w.Y36(w.sBO))},Pe.\u0275cmp=w.Xpm({type:Pe,selectors:[["app-facility-allowed-users"]],decls:14,vars:11,consts:[[1,"page-subtitle"],[1,"filters"],[1,"me-2",3,"refresh"],[1,"me-2","filter",3,"placeholder","filter"],[3,"advancedFilter","filtersCount","changeAdvancedFilter","clearFilters"],["class","advanced-filter",4,"ngIf"],["spinner",""],[1,"position-relative"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId","consentStatuses","updateTable","loading$",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[1,"advanced-filter"],[1,"toggle","filters"],["labelPosition","before",1,"me-2",3,"ngModel","ngModelChange","change"],[1,"text-muted"],[1,"search-select",3,"vos","vo","disableAutoSelect","voSelected"],[1,"search-select",3,"resources","displayStatus","resource","disableAutoSelect","resourceSelected"],[1,"search-select",3,"services","service","disableAutoSelect","serviceSelected"],["class","search-select",4,"ngIf"],[1,"search-select"],["multiple","",3,"formControl","closed"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId","consentStatuses","updateTable","loading$"]],template:function(N,U){if(1&N&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),w.NdJ("refresh",function(){return U.refreshPage()}),w.qZA(),w.TgZ(6,"perun-web-apps-debounce-filter",3),w.NdJ("filter",function(ce){return U.applyFilter(ce)}),w.qZA(),w.TgZ(7,"perun-web-apps-advanced-filter",4),w.NdJ("changeAdvancedFilter",function(ce){return U.advancedFilter=ce})("clearFilters",function(){return U.clearFilters()}),w.qZA()(),w.YNc(8,xe,13,18,"div",5),w.YNc(9,Ye,1,0,"ng-template",null,6,w.W1O),w.TgZ(11,"div",7),w.YNc(12,qe,1,14,"perun-web-apps-users-dynamic-list",8),w.ALo(13,"async"),w.qZA()()),2&N){const $=w.MAs(10);w.xp6(2),w.Oqu(w.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),w.xp6(4),w.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),w.xp6(1),w.Q6J("advancedFilter",U.advancedFilter)("filtersCount",U.filtersCount),w.xp6(1),w.Q6J("ngIf",U.advancedFilter),w.xp6(4),w.Q6J("perunWebAppsLoader",w.lcZ(13,9,U.loading$))("perunWebAppsLoaderIndicator",$)}},dependencies:[x.sg,x.O5,P.ey,F.KE,F.hX,m.JJ,m.oH,m.On,T.gD,T.$L,B.Rr,I.K,q.t,ue.M,j.L,Q.P,be.M,me.J,V,W.e,x.Ov,v.X$],styles:[".filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.filter[_ngcontent-%COMP%]{min-width:350px}.search-select[_ngcontent-%COMP%]{width:32%;margin-right:20px;margin-top:30px}.toggle[_ngcontent-%COMP%]{display:flex;flex-direction:column}.advanced-filter[_ngcontent-%COMP%]{border:1px solid lightgray;padding:15px}"]}),Pe})()},34904:(Xe,ae,p)=>{"use strict";p.d(ae,{f:()=>$e});var e=p(95017),f=p(533),A=p(61744),S=p(24006),m=p(7274),M=p(80279),w=p(94650),x=p(89383),P=p(284),F=p(59549),T=p(4859),B=p(97403),I=p(62707),q=p(73358);function ue(qe,Ze){1&qe&&w._UZ(0,"perun-web-apps-loading-dialog")}function j(qe,Ze){if(1&qe){const Pe=w.EpF();w.TgZ(0,"div")(1,"div",2)(2,"perun-web-apps-vo-search-select",3),w.NdJ("voSelected",function(N){w.CHM(Pe);const U=w.oxw();return w.KtG(U.selectedVo=N)}),w.qZA(),w.TgZ(3,"mat-form-field")(4,"mat-label"),w._uU(5),w.ALo(6,"translate"),w.qZA(),w._UZ(7,"input",4),w.TgZ(8,"mat-error"),w._uU(9),w.ALo(10,"translate"),w.qZA()(),w.TgZ(11,"mat-form-field")(12,"mat-label"),w._uU(13),w.ALo(14,"translate"),w.qZA(),w._UZ(15,"input",5),w.TgZ(16,"mat-error"),w._uU(17),w.ALo(18,"translate"),w.qZA()()(),w.TgZ(19,"div",6)(20,"button",7),w.NdJ("click",function(){w.CHM(Pe);const N=w.oxw();return w.KtG(N.onCancel())}),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"button",8),w.NdJ("click",function(){w.CHM(Pe);const N=w.oxw();return w.KtG(N.onSubmit())}),w._uU(24),w.ALo(25,"translate"),w.qZA()()()}if(2&qe){const Pe=w.oxw();w.xp6(2),w.Q6J("vos",Pe.vos),w.xp6(3),w.Oqu(w.lcZ(6,10,"DIALOGS.CREATE_RESOURCE.NAME")),w.xp6(2),w.Q6J("formControl",Pe.nameCtrl),w.xp6(2),w.hij(" ",w.lcZ(10,12,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),w.xp6(4),w.Oqu(w.lcZ(14,14,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),w.xp6(2),w.Q6J("formControl",Pe.descriptionCtrl),w.xp6(2),w.hij(" ",w.lcZ(18,16,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," "),w.xp6(4),w.hij(" ",w.lcZ(22,18,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),w.xp6(2),w.Q6J("disabled",Pe.nameCtrl.invalid||Pe.descriptionCtrl.invalid||null===Pe.selectedVo||Pe.loading),w.xp6(1),w.hij(" ",w.lcZ(25,20,"DIALOGS.CREATE_RESOURCE.CREATE")," ")}}let Q=(()=>{class qe{constructor(Pe,se,N,U,$,ce){this.dialogRef=Pe,this.data=se,this.notificator=N,this.voService=U,this.translate=$,this.resourcesManager=ce,this.vos=[],this.selectedVo=null,$.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(De=>this.successMessage=De)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(Pe=>{this.vos=Pe,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new S.p4(null,[S.kI.required,S.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new S.p4("")}onSubmit(){this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return qe.\u0275fac=function(Pe){return new(Pe||qe)(w.Y36(m.so),w.Y36(m.WI),w.Y36(M.V6),w.Y36(A.YF),w.Y36(x.sK),w.Y36(A.xk))},qe.\u0275cmp=w.Xpm({type:qe,selectors:[["app-create-resource-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-content","",1,"dialog-container"],["data-cy","create-resource-select-vo",3,"vos","voSelected"],["matInput","","data-cy","create-resource-name-input","required","",3,"formControl"],["matInput","",3,"formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","create-resource-dialog-button","color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(Pe,se){if(1&Pe&&(w.YNc(0,ue,1,0,"ng-template",null,0,w.W1O),w.TgZ(2,"div"),w.YNc(3,j,26,22,"div",1),w.qZA()),2&Pe){const N=w.MAs(1);w.xp6(2),w.Gre("",se.theme," position-relative"),w.xp6(1),w.Q6J("perunWebAppsLoader",se.loading)("perunWebAppsLoaderIndicator",N)}},dependencies:[P.Nt,F.KE,F.hX,F.TO,S.Fj,S.JJ,S.Q7,S.oH,T.lW,m.xY,m.H8,B.b,I.M,q.e,x.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),qe})();var be=p(10036),me=p(9244),fe=p(36895),re=p(68530),v=p(96214),V=p(7434),W=p(62109),ee=p(30540);function ie(qe,Ze){if(1&qe){const Pe=w.EpF();w.TgZ(0,"button",10),w.NdJ("click",function(){w.CHM(Pe);const N=w.oxw();return w.KtG(N.createResource())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&qe&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function xe(qe,Ze){if(1&qe){const Pe=w.EpF();w.TgZ(0,"button",11),w.NdJ("click",function(){w.CHM(Pe);const N=w.oxw();return w.KtG(N.removeResource())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&qe){const Pe=w.oxw();w.Q6J("disabled",0===Pe.selected.selected.length),w.xp6(1),w.hij(" ",w.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function Ye(qe,Ze){1&qe&&w._UZ(0,"perun-web-apps-loading-table")}function Le(qe,Ze){if(1&qe&&w._UZ(0,"perun-web-apps-resources-list",12),2&qe){const Pe=w.oxw();w.Q6J("tableId",Pe.tableId)("filterValue",Pe.filterValue)("resources",Pe.resources)("selection",Pe.selected)("disableRouting",!Pe.routeAuth)("displayedColumns",Pe.displayedColumns)}}let $e=(()=>{class qe{constructor(Pe,se,N,U,$,ce){this.dialog=Pe,this.facilitiesManager=se,this.servicesManager=N,this.authResolver=U,this.entityStorageService=$,this.cd=ce,this.resources=[],this.selected=new e.Ov(!0,[]),this.emptyService={id:-1,beanName:"Service",name:"All"},this.services=[this.emptyService],this.selectedService=this.emptyService,this.filterValue="",this.tableId=be.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.servicesManager.getAssignedServices(this.facility.id).subscribe(Pe=>{this.services=[this.emptyService].concat(Pe),this.refreshTable()}),this.loadResourcesForFacility()}ngAfterViewInit(){this.cd.detectChanges()}removeResource(){const Pe=(0,me.kZ)();Pe.width="450px",Pe.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(f.f,Pe).afterClosed().subscribe(N=>{N&&this.refreshTable()})}refreshTable(){this.loading=!0,-1===this.selectedService.id?this.loadResourcesForFacility():this.facilitiesManager.getAssignedRichResourcesForFacilityAndService(this.facility.id,this.selectedService.id).subscribe(Pe=>{this.resources=Pe,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("createResource_Resource_Vo_Facility_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","vo","description"]:["id","name","vo","description"],0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getRichResourceById_int_policy",[this.facility,this.resources[0]]))}applyFilter(Pe){this.filterValue=Pe}createResource(){const Pe=(0,me.kZ)();Pe.width="1350px",Pe.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(Q,Pe).afterClosed().subscribe(N=>{N&&this.refreshTable()})}serviceSelected(Pe){this.selectedService=Pe,this.refreshTable()}loadResourcesForFacility(){this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(Pe=>{this.resources=Pe,this.selected.clear(),this.setAuthRights(),this.loading=!1})}}return qe.id="FacilityResourcesComponent",qe.\u0275fac=function(Pe){return new(Pe||qe)(w.Y36(m.uw),w.Y36(A.IQ),w.Y36(A.KK),w.Y36(M.x4),w.Y36(M.fb),w.Y36(w.sBO))},qe.\u0275cmp=w.Xpm({type:qe,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(Pe,se){2&Pe&&w.ekj("router-component",se.true)},decls:14,vars:10,consts:[[1,"page-subtitle"],[1,"align-elements"],[3,"refresh"],["mat-flat-button","","color","accent","data-cy","create-resource-button","class","me-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","me-2","data-cy","delete-resource-button",3,"disabled","click",4,"ngIf"],[1,"search-select","me-2",3,"services","service","serviceSelected"],[1,"filter-field",3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-flat-button","","color","accent","data-cy","create-resource-button",1,"me-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","delete-resource-button",1,"me-2",3,"disabled","click"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns"]],template:function(Pe,se){if(1&Pe&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),w.NdJ("refresh",function(){return se.refreshTable()}),w.qZA(),w.YNc(6,ie,3,3,"button",3),w.YNc(7,xe,3,4,"button",4),w.TgZ(8,"perun-web-apps-service-search-select",5),w.NdJ("serviceSelected",function(U){return se.serviceSelected(U)}),w.qZA(),w.TgZ(9,"perun-web-apps-immediate-filter",6),w.NdJ("filter",function(U){return se.applyFilter(U)}),w.qZA()(),w.YNc(10,Ye,1,0,"ng-template",null,7,w.W1O),w.TgZ(12,"div",8),w.YNc(13,Le,1,6,"perun-web-apps-resources-list",9),w.qZA()()),2&Pe){const N=w.MAs(11);w.xp6(2),w.Oqu(w.lcZ(3,8,"FACILITY_DETAIL.RESOURCES.TITLE")),w.xp6(4),w.Q6J("ngIf",se.addAuth),w.xp6(1),w.Q6J("ngIf",se.removeAuth),w.xp6(1),w.Q6J("services",se.services)("service",se.selectedService),w.xp6(1),w.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),w.xp6(4),w.Q6J("perunWebAppsLoader",se.loading)("perunWebAppsLoaderIndicator",N)}},dependencies:[fe.O5,T.lW,re.K,v.t,V.L,W.C,ee.J,q.e,x.X$],styles:[".search-select[_ngcontent-%COMP%]{min-width:325px}.filter-field[_ngcontent-%COMP%]{min-width:250px}.align-elements[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}"]}),qe})()},86353:(Xe,ae,p)=>{"use strict";p.d(ae,{P:()=>N});var e=p(61744),f=p(9244),A=p(10036),S=p(95017),m=p(7274),M=p(80279),w=p(24006),x=p(94650),P=p(89383),F=p(82761),T=p(36895),B=p(3238),I=p(284),q=p(59549),ue=p(4859),j=p(84385),Q=p(98380),be=p(97403),me=p(73358);function fe(U,$){1&U&&x._UZ(0,"perun-web-apps-loading-dialog")}function re(U,$){if(1&U){const ce=x.EpF();x.TgZ(0,"mat-option",15),x.NdJ("click",function(){const Oe=x.CHM(ce).$implicit,it=x.oxw(2);return x.KtG(it.srcFacility=Oe)}),x._uU(1),x.qZA()}if(2&U){const ce=$.$implicit;x.Q6J("value",ce),x.xp6(1),x.hij(" ",ce.name," ")}}function v(U,$){if(1&U){const ce=x.EpF();x.TgZ(0,"div")(1,"h1",2),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"div",3)(5,"mat-form-field")(6,"mat-label"),x._uU(7),x.ALo(8,"translate"),x.qZA(),x._UZ(9,"input",4),x.TgZ(10,"mat-error"),x._uU(11),x.ALo(12,"translate"),x.qZA()(),x.TgZ(13,"mat-form-field")(14,"mat-label"),x._uU(15),x.ALo(16,"translate"),x.qZA(),x._UZ(17,"input",5),x.qZA(),x.TgZ(18,"mat-form-field")(19,"mat-label"),x._uU(20),x.ALo(21,"translate"),x.qZA(),x.TgZ(22,"mat-select",6)(23,"mat-option",7),x.NdJ("click",function(){x.CHM(ce);const he=x.oxw();return x.KtG(he.srcFacility=null)}),x._uU(24),x.ALo(25,"translate"),x.qZA(),x.YNc(26,re,2,2,"mat-option",8),x.qZA()(),x.TgZ(27,"perun-web-apps-alert",9),x._UZ(28,"i",10),x.ALo(29,"translate"),x.qZA()(),x.TgZ(30,"div",11)(31,"button",12),x.NdJ("click",function(){x.CHM(ce);const he=x.oxw();return x.KtG(he.onCancel())}),x._uU(32),x.ALo(33,"translate"),x.qZA(),x.TgZ(34,"button",13),x.NdJ("click",function(){x.CHM(ce);const he=x.oxw();return x.KtG(he.onCreate(!1))}),x._uU(35),x.ALo(36,"translate"),x.qZA(),x.TgZ(37,"button",14),x.NdJ("click",function(){x.CHM(ce);const he=x.oxw();return x.KtG(he.onCreate(!0))}),x._uU(38),x.ALo(39,"translate"),x.qZA()()()}if(2&U){const ce=x.oxw();x.xp6(2),x.Oqu(x.lcZ(3,15,"DIALOGS.CREATE_FACILITY.TITLE")),x.xp6(5),x.Oqu(x.lcZ(8,17,"DIALOGS.CREATE_FACILITY.NAME")),x.xp6(2),x.Q6J("formControl",ce.nameControl),x.xp6(2),x.Oqu(x.lcZ(12,19,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),x.xp6(4),x.Oqu(x.lcZ(16,21,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),x.xp6(2),x.Q6J("formControl",ce.descControl),x.xp6(3),x.Oqu(x.lcZ(21,23,"DIALOGS.CREATE_FACILITY.AS_COPY")),x.xp6(4),x.hij(" ",x.lcZ(25,25,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),x.xp6(2),x.Q6J("ngForOf",ce.facilities),x.xp6(2),x.Q6J("innerHTML",x.lcZ(29,27,"DIALOGS.CREATE_FACILITY.HINT"),x.oJD),x.xp6(4),x.hij(" ",x.lcZ(33,29,"DIALOGS.CREATE_FACILITY.CANCEL")," "),x.xp6(2),x.Q6J("disabled",0===ce.nameControl.value.trim().length||ce.loading),x.xp6(1),x.hij(" ",x.lcZ(36,31,"DIALOGS.CREATE_FACILITY.CREATE")," "),x.xp6(2),x.Q6J("disabled",0===ce.nameControl.value.trim().length||!!ce.srcFacility||ce.loading),x.xp6(1),x.hij(" ",x.lcZ(39,33,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," ")}}let V=(()=>{class U{constructor(ce,De,he,Oe,it,Ce,ot){this.dialogRef=ce,this.data=De,this.facilitiesManager=he,this.notificator=Oe,this.translate=it,this.router=Ce,this.entityStorageService=ot,this.nameControl=new w.p4("",[w.kI.required]),this.descControl=new w.p4(""),this.srcFacility=null,this.loading=!1,this.configure=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(ce=>{this.facilities=ce,this.loading=!1},()=>this.loading=!1)}onCreate(ce){this.loading=!0,this.configure=ce,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe({next:De=>{this.entityStorageService.setEntity({id:De.id,beanName:De.beanName}),sessionStorage.setItem("newFacilityId",String(De.id)),null!==this.srcFacility?this.copyFacilitySettings(De.id):this.handleSuccess(De.id)},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}copyFacilitySettings(ce){this.facilitiesManager.copyAttributes(this.srcFacility.id,ce).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,ce).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,ce).subscribe(()=>{this.handleSuccess(ce)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}handleSuccess(ce){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.configure&&this.router.navigate(["facilities",ce.toString(),"configuration"],{queryParamsHandling:"preserve"}),this.dialogRef.close(!0)}}return U.\u0275fac=function(ce){return new(ce||U)(x.Y36(m.so),x.Y36(m.WI),x.Y36(e.IQ),x.Y36(M.V6),x.Y36(P.sK),x.Y36(F.F0),x.Y36(M.fb))},U.\u0275cmp=x.Xpm({type:U,selectors:[["app-create-facility-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","data-cy","facility-name-input",3,"formControl"],["matInput","","data-cy","facility-description-input",3,"formControl"],["disableOptionCentering","true"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","create-facility-button","color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],[3,"value","click"]],template:function(ce,De){if(1&ce&&(x.YNc(0,fe,1,0,"ng-template",null,0,x.W1O),x.TgZ(2,"div"),x.YNc(3,v,40,35,"div",1),x.qZA()),2&ce){const he=x.MAs(1);x.xp6(2),x.Gre("",De.theme," position-relative"),x.xp6(1),x.Q6J("perunWebAppsLoader",De.loading)("perunWebAppsLoaderIndicator",he)}},dependencies:[T.sg,B.ey,I.Nt,q.KE,q.hX,q.TO,w.Fj,w.JJ,w.Q7,w.oH,ue.lW,m.uh,m.xY,m.H8,j.gD,Q.w,be.b,me.e,P.X$]}),U})();var W=p(54037),ee=p(77968),ie=p(97392),xe=p(68530),Ye=p(96214),Le=p(4235),$e=p(7434),qe=p(74010);function Ze(U,$){1&U&&x._UZ(0,"perun-web-apps-loading-table")}function Pe(U,$){if(1&U&&x._UZ(0,"perun-web-apps-facilities-list",10),2&U){const ce=x.oxw();x.Q6J("tableId",ce.tableId)("selection",ce.selection)("filterValue",ce.filterValue)("facilities",ce.facilities)("recentIds",ce.recentIds)}}const se=function(){return{color:"black"}};let N=(()=>{class U{constructor(ce,De,he){this.facilityManager=ce,this.sideMenuService=De,this.dialog=he,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=A.xt,this.selection=new S.Ov(!1,[])}ngOnInit(){this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(ce=>{this.selection.clear(),this.facilities=ce,this.recentIds=(0,f.vL)("facilities"),this.loading=!1})}onCreate(){const ce=(0,f.kZ)();ce.width="800px",ce.data={theme:"facility-theme"},this.dialog.open(V,ce).afterClosed().subscribe(he=>{he&&(this.loading=!0,this.refreshTable())})}onDelete(){const ce=(0,f.kZ)();ce.width="500px",ce.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(W.Y,ce).afterClosed().subscribe(he=>{he&&this.refreshTable()})}applyFilter(ce){this.filterValue=ce}}return U.id="FacilitySelectPageComponent",U.\u0275fac=function(ce){return new(ce||U)(x.Y36(e.IQ),x.Y36(ee.D),x.Y36(m.uw))},U.\u0275cmp=x.Xpm({type:U,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(ce,De){2&ce&&x.ekj("router-component",De.true)},decls:18,vars:16,consts:[[1,"container-fluid","ps-xl-5","pe-xl-5","facility-theme"],[1,"page-title","d-flex"],["svgIcon","perun-facility-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["mat-flat-button","","data-cy","new-facility-button","color","accent",1,"action-button","me-2",3,"click"],["mat-flat-button","","data-cy","delete-facility-button","color","warn",1,"me-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"tableId","selection","filterValue","facilities","recentIds",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"tableId","selection","filterValue","facilities","recentIds"]],template:function(ce,De){if(1&ce&&(x.TgZ(0,"div",0),x._UZ(1,"perun-web-apps-back-button"),x.TgZ(2,"h1",1),x._UZ(3,"mat-icon",2),x._uU(4),x.ALo(5,"translate"),x.qZA(),x.TgZ(6,"perun-web-apps-refresh-button",3),x.NdJ("refresh",function(){return De.refreshTable()}),x.qZA(),x.TgZ(7,"button",4),x.NdJ("click",function(){return De.onCreate()}),x._uU(8),x.ALo(9,"translate"),x.qZA(),x.TgZ(10,"button",5),x.NdJ("click",function(){return De.onDelete()}),x._uU(11),x.ALo(12,"translate"),x.qZA(),x.TgZ(13,"perun-web-apps-immediate-filter",6),x.NdJ("filter",function(Oe){return De.applyFilter(Oe)}),x.qZA(),x.YNc(14,Ze,1,0,"ng-template",null,7,x.W1O),x.TgZ(16,"div",8),x.YNc(17,Pe,1,5,"perun-web-apps-facilities-list",9),x.qZA()()),2&ce){const he=x.MAs(15);x.xp6(3),x.Q6J("ngStyle",x.DdM(15,se)),x.xp6(1),x.hij(" ",x.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),x.xp6(4),x.hij(" ",x.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),x.xp6(2),x.Q6J("disabled",0===De.selection.selected.length),x.xp6(1),x.hij(" ",x.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),x.xp6(2),x.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),x.xp6(4),x.Q6J("perunWebAppsLoader",De.loading)("perunWebAppsLoaderIndicator",he)}},dependencies:[T.PC,ie.Hw,ue.lW,xe.K,Ye.t,Le.W,$e.L,qe.X,me.e,P.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),U})()},39158:(Xe,ae,p)=>{"use strict";p.d(ae,{l:()=>T});var e=p(94650),f=p(45323),A=p(80279),S=p(36895),m=p(24006),M=p(10266),w=p(71948),x=p(74250),P=p(89383);function F(B,I){if(1&B){const q=e.EpF();e.TgZ(0,"div")(1,"perun-web-apps-user-search-select",6),e.NdJ("userSelected",function(j){e.CHM(q);const Q=e.oxw();return e.KtG(Q.selectSponsor(j))}),e.qZA()()}if(2&B){const q=e.oxw();e.xp6(1),e.Q6J("disableAutoSelect",!0)("users",q.voSponsors)}}let T=(()=>{class B{constructor(q){this.guiAuthResolver=q,this.voSponsors=[],this.sponsorTypeSelected=new e.vpe,this.sponsorSelected=new e.vpe,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.selectedSponsor=null}ngOnInit(){this.isSponsor=this.guiAuthResolver.principalHasRole(f.u.SPONSOR,"Vo",this.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.emitSponsorType()}emitSponsorType(){"self"===this.sponsorType&&this.selectSponsor(null),this.sponsorTypeSelected.emit(this.sponsorType)}selectSponsor(q){this.selectedSponsor=q,this.sponsorSelected.emit(q)}}return B.\u0275fac=function(q){return new(q||B)(e.Y36(A.x4))},B.\u0275cmp=e.Xpm({type:B,selectors:[["app-choose-sponsor"]],inputs:{voId:"voId",voSponsors:"voSponsors"},outputs:{sponsorTypeSelected:"sponsorTypeSelected",sponsorSelected:"sponsorSelected"},decls:16,vars:21,consts:[[1,"mt-4"],[1,"dialog-container",3,"ngModel","ngModelChange"],["matTooltipPosition","before",3,"matTooltip","matTooltipDisabled"],["value","self",3,"disabled","click"],["value","other",3,"disabled"],[4,"ngIf"],[3,"disableAutoSelect","users","userSelected"]],template:function(q,ue){1&q&&(e.TgZ(0,"div",0)(1,"h6"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-radio-group",1),e.NdJ("ngModelChange",function(Q){return ue.sponsorType=Q})("ngModelChange",function(){return ue.emitSponsorType()}),e.TgZ(5,"span",2),e.ALo(6,"translate"),e.TgZ(7,"mat-radio-button",3),e.NdJ("click",function(){return ue.selectedSponsor=null}),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"span",2),e.ALo(11,"translate"),e.TgZ(12,"mat-radio-button",4),e._uU(13),e.ALo(14,"translate"),e.qZA()()(),e.YNc(15,F,2,2,"div",5),e.qZA()),2&q&&(e.xp6(2),e.Oqu(e.lcZ(3,11,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),e.xp6(2),e.Q6J("ngModel",ue.sponsorType),e.xp6(1),e.s9C("matTooltip",e.lcZ(6,13,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),e.Q6J("matTooltipDisabled",ue.isSponsor),e.xp6(2),e.Q6J("disabled",!ue.isSponsor),e.xp6(1),e.hij(" ",e.lcZ(9,15,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),e.xp6(2),e.s9C("matTooltip",e.lcZ(11,17,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),e.Q6J("matTooltipDisabled",ue.isPerunAdmin),e.xp6(2),e.Q6J("disabled",!ue.isPerunAdmin),e.xp6(1),e.hij(" ",e.lcZ(14,19,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),e.xp6(2),e.Q6J("ngIf","other"===ue.sponsorType))},dependencies:[S.O5,m.JJ,m.On,M.gM,w.VQ,w.U0,x.S,P.X$]}),B})()},93657:(Xe,ae,p)=>{"use strict";p.d(ae,{J:()=>Q});var e=p(7274),f=p(80279),A=p(61744),S=p(9244),m=p(24006),M=p(94650),w=p(89383),x=p(36895),P=p(3238),F=p(284),T=p(59549),B=p(4859),I=p(84385),q=p(57706);function ue(be,me){if(1&be&&(M.TgZ(0,"mat-option",9),M._uU(1),M.ALo(2,"applicationFormItemType"),M.qZA()),2&be){const fe=me.$implicit;M.Q6J("value",fe),M.xp6(1),M.hij(" ",M.lcZ(2,2,fe)," ")}}function j(be,me){if(1&be&&(M.TgZ(0,"mat-option",9),M._uU(1),M.qZA()),2&be){const fe=me.$implicit;M.Q6J("value",fe),M.xp6(1),M.hij(" ",fe," ")}}let Q=(()=>{class be{constructor(fe,re,v,V){this.dialogRef=fe,this.data=re,this.translateService=v,this.store=V,this.languages=this.store.getProperty("supported_languages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","HTML_COMMENT","TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(fe=>{this.nameCtrl=new m.p4("",[m.kI.required,m.kI.pattern(".*[\\S]+.*"),m.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(fe);for(const re of this.data.applicationFormItems)this.items.push(re.shortname),re.type===A.Dy.EMBEDDED_GROUP_APPLICATION&&(this.widgets=this.widgets.filter(v=>v!==A.Dy.EMBEDDED_GROUP_APPLICATION));this.selectedItem=fe})}setInputWidgetHeight(fe){return Math.ceil(fe/80)+2.5}cancel(){this.dialogRef.close(void 0)}submit(){const fe=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,fe])}createApplicationItem(){const fe=(0,S.dv)(this.languages);fe.id=this.data.fakeId,fe.shortname=this.nameCtrl.value,fe.type=this.selectedWidget;for(let re=0;re{"use strict";p.d(ae,{W:()=>I});var e=p(7274),f=p(61744),A=p(80279),S=p(94650),m=p(89383),M=p(4859),w=p(97403),x=p(62707),P=p(82322),F=p(73358);function T(q,ue){1&q&&S._UZ(0,"perun-web-apps-loading-dialog")}function B(q,ue){if(1&q){const j=S.EpF();S.TgZ(0,"div")(1,"h1",2),S._uU(2),S.ALo(3,"translate"),S.qZA(),S.TgZ(4,"div",3)(5,"div",4),S._uU(6),S.ALo(7,"translate"),S.qZA(),S._uU(8),S.ALo(9,"translate"),S.TgZ(10,"perun-web-apps-vo-search-select",5),S.NdJ("voSelected",function(be){S.CHM(j);const me=S.oxw();return S.KtG(me.voSelected(be))}),S.qZA(),S._uU(11),S.ALo(12,"translate"),S.TgZ(13,"perun-web-apps-group-search-select",6),S.NdJ("groupSelected",function(be){S.CHM(j);const me=S.oxw();return S.KtG(me.selectedGroup=be)}),S.qZA()(),S.TgZ(14,"div",7)(15,"button",8),S.NdJ("click",function(){S.CHM(j);const be=S.oxw();return S.KtG(be.cancel())}),S._uU(16),S.ALo(17,"translate"),S.qZA(),S.TgZ(18,"button",9),S.NdJ("click",function(){S.CHM(j);const be=S.oxw();return S.KtG(be.submit())}),S._uU(19),S.ALo(20,"translate"),S.qZA()()()}if(2&q){const j=S.oxw();S.xp6(2),S.Oqu(S.lcZ(3,10,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),S.xp6(4),S.hij(" ",S.lcZ(7,12,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")," "),S.xp6(2),S.hij(" ",S.lcZ(9,14,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),S.xp6(2),S.Q6J("vos",j.vos),S.xp6(1),S.hij(" ",S.lcZ(12,16,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),S.xp6(2),S.Q6J("groups",j.groups)("disableAutoSelect",!0),S.xp6(3),S.hij(" ",S.lcZ(17,18,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),S.xp6(2),S.Q6J("disabled",!j.selectedVo&&!j.selectedGroup||j.loading),S.xp6(1),S.hij(" ",S.lcZ(20,20,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," ")}}let I=(()=>{class q{constructor(j,Q,be,me,fe,re,v,V,W){this.dialogRef=j,this.voService=Q,this.groupService=be,this.translateService=me,this.registrarManager=fe,this.notificatorService=re,this.apiRequest=v,this.cd=V,this.data=W,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=ee=>ee.name,me.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(ee=>this.successMessage=ee),me.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(ee=>this.privilegeMessage=ee),me.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(ee=>this.noFormMessage=ee)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(()=>{this.voService.getMyVos().subscribe(j=>{this.vos=j,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.apiRequest.dontHandleErrorForNext(),this.loading=!0,this.data.groupId?null===this.selectedGroup?this.registrarManager.copyFormFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},j=>{"FormNotExistsException"===j.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===j.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},j=>{"FormNotExistsException"===j.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===j.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):null===this.selectedGroup?this.registrarManager.copyFormFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},j=>{"FormNotExistsException"===j.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===j.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},j=>{"FormNotExistsException"===j.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===j.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(j){this.selectedVo=j,this.cd.detectChanges(),this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(j=>{this.groups=j}):this.groups=[],this.selectedGroup=null}}return q.\u0275fac=function(j){return new(j||q)(S.Y36(e.so),S.Y36(f.YF),S.Y36(f.ff),S.Y36(m.sK),S.Y36(f.tk),S.Y36(A.V6),S.Y36(A.F5),S.Y36(S.sBO),S.Y36(e.WI))},q.\u0275cmp=S.Xpm({type:q,selectors:[["app-application-form-copy-items-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(j,Q){if(1&j&&(S.YNc(0,T,1,0,"ng-template",null,0,S.W1O),S.TgZ(2,"div"),S.YNc(3,B,21,22,"div",1),S.qZA()),2&j){const be=S.MAs(1);S.xp6(2),S.Gre("",Q.theme," position-relative"),S.xp6(1),S.Q6J("perunWebAppsLoader",Q.loading)("perunWebAppsLoaderIndicator",be)}},dependencies:[M.lW,e.uh,e.xY,e.H8,w.b,x.M,P.h,F.e,m.X$]}),q})()},23325:(Xe,ae,p)=>{"use strict";p.d(ae,{a:()=>me});var e=p(61744),f=p(7274),A=p(80279),S=p(24006),m=p(94650),M=p(36895),w=p(3238),x=p(59549),P=p(4859),F=p(84385),T=p(98380),B=p(97403),I=p(73358),q=p(89383),ue=p(77749);function j(fe,re){1&fe&&m._UZ(0,"perun-web-apps-loading-dialog")}function Q(fe,re){if(1&fe&&(m.TgZ(0,"mat-option",13),m._uU(1),m.ALo(2,"applicationColumnSelectLabel"),m.qZA()),2&fe){const v=re.$implicit,V=m.oxw(2);m.Tol(V.theme),m.Q6J("value",v),m.xp6(1),m.hij(" ",m.lcZ(2,5,v)," ")}}function be(fe,re){if(1&fe){const v=m.EpF();m.TgZ(0,"div")(1,"h1",2),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",3)(5,"perun-web-apps-alert",4),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"mat-form-field",5)(9,"mat-label"),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.TgZ(12,"mat-select",6),m.NdJ("closed",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.attribute.value=W.selectedColumns.value)}),m.YNc(13,Q,3,7,"mat-option",7),m.qZA()(),m.TgZ(14,"perun-web-apps-alert",8),m._uU(15),m.ALo(16,"translate"),m.qZA()(),m.TgZ(17,"div",9)(18,"button",10),m.NdJ("click",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.cancel())}),m._uU(19),m.ALo(20,"translate"),m.qZA(),m.TgZ(21,"button",11),m.NdJ("click",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.default())}),m._uU(22),m.ALo(23,"translate"),m.qZA(),m.TgZ(24,"button",12),m.NdJ("click",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.confirm())}),m._uU(25),m.ALo(26,"translate"),m.qZA()()()}if(2&fe){const v=m.oxw();m.xp6(2),m.Oqu(m.lcZ(3,10,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.TITLE")),m.xp6(4),m.hij(" ",m.lcZ(7,12,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.WARN")," "),m.xp6(4),m.Oqu(m.lcZ(11,14,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.FILTER_COLUMNS")),m.xp6(2),m.Q6J("formControl",v.selectedColumns),m.xp6(1),m.Q6J("ngForOf",v.columnOptions),m.xp6(2),m.hij(" ",m.lcZ(16,16,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.DEFAULT_TEXT")," "),m.xp6(4),m.hij(" ",m.lcZ(20,18,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.CANCEL")," "),m.xp6(3),m.hij(" ",m.lcZ(23,20,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.DEFAULT")," "),m.xp6(2),m.Q6J("disabled",v.loading),m.xp6(1),m.hij(" ",m.lcZ(26,22,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.CONFIRM")," ")}}let me=(()=>{class fe{constructor(v,V,W,ee,ie){this.dialogRef=v,this.attributesManager=V,this.data=W,this.translate=ee,this.notificator=ie,this.loading=!1,this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.columnOptions=["createdAt","type","state","createdBy","modifiedBy"],this.selectedColumns=new S.NI([])}ngOnInit(){this.theme=this.data.theme,this.data.groupId?this.attributesManager.getIdpAttributeDefinitions().subscribe(v=>{v.forEach(V=>{this.columnOptions.push(V.friendlyName)}),this.attributesManager.getGroupAttributeByName(this.data.groupId,"urn:perun:group:attribute-def:def:applicationViewPreferences").subscribe(V=>{this.attribute=V;const W=V.value;this.selectedColumns.setValue(null!==W&&W.length>0?W:this.simpleColumns)})}):this.attributesManager.getIdpAttributeDefinitions().subscribe(v=>{v.forEach(V=>{this.columnOptions.push(V.friendlyName)}),this.attributesManager.getVoAttributeByName(this.data.voId,"urn:perun:vo:attribute-def:def:applicationViewPreferences").subscribe(V=>{this.attribute=V;const W=V.value;this.selectedColumns.setValue(null!==W&&W.length>0?W:this.simpleColumns)})})}confirm(){this.data.groupId?this.changeGroupAttribute():this.changeVoAttribute()}cancel(){this.dialogRef.close(!1)}default(){this.attribute.value=[],this.confirm()}changeVoAttribute(){this.loading=!0,this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.attribute}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.SUCCESS"))},error:()=>{this.loading=!1}})}changeGroupAttribute(){this.loading=!0,this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.attribute}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.SUCCESS"))},error:()=>{this.loading=!1}})}}return fe.\u0275fac=function(v){return new(v||fe)(m.Y36(f.so),m.Y36(e.H8),m.Y36(f.WI),m.Y36(A.Te),m.Y36(A.V6))},fe.\u0275cmp=m.Xpm({type:fe,selectors:[["app-applications-list-columns-change-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","warn"],[1,"w-100"],["multiple","",3,"formControl","closed"],[3,"class","value",4,"ngFor","ngForOf"],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],[3,"value"]],template:function(v,V){if(1&v&&(m.YNc(0,j,1,0,"ng-template",null,0,m.W1O),m.TgZ(2,"div"),m.YNc(3,be,27,24,"div",1),m.qZA()),2&v){const W=m.MAs(1);m.xp6(2),m.Gre("",V.theme," position-relative"),m.xp6(1),m.Q6J("perunWebAppsLoader",V.loading)("perunWebAppsLoaderIndicator",W)}},dependencies:[M.sg,w.ey,x.KE,x.hX,S.JJ,S.oH,P.lW,f.uh,f.xY,f.H8,F.gD,T.w,B.b,I.e,q.X$,ue.K]}),fe})()},94742:(Xe,ae,p)=>{"use strict";p.d(ae,{F:()=>qe});var e=p(24006),f=p(9244),A=p(7274),S=p(80279),m=p(61744),M=p(94650),w=p(36895),x=p(3238),P=p(284),F=p(59549),T=p(4859),B=p(84385),I=p(98380),q=p(97403),ue=p(73358),j=p(89383);function Q(Ze,Pe){1&Ze&&M._UZ(0,"perun-web-apps-loading-dialog")}function be(Ze,Pe){1&Ze&&(M.TgZ(0,"div",15),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&Ze&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.DESCRIPTION_VO")," "))}function me(Ze,Pe){1&Ze&&(M.TgZ(0,"div",15),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&Ze&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.DESCRIPTION_GROUP")," "))}function fe(Ze,Pe){if(1&Ze&&(M.TgZ(0,"mat-option",16),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"uppercase"),M.qZA()),2&Ze){const se=Pe.$implicit;M.s9C("value",se),M.xp6(1),M.hij(" ",M.lcZ(2,2,M.lcZ(3,4,"SHARED_LIB.LANGUAGES."+se))," ")}}function re(Ze,Pe){1&Ze&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&Ze&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.NAMES_ERROR")," "))}function v(Ze,Pe){if(1&Ze&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&Ze){const se=M.oxw(3);M.xp6(1),M.AsE(" ",M.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.ERROR_FORMAT"),": ",se.invitedMembers.getError("invalidFormat").value," ")}}function V(Ze,Pe){if(1&Ze&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&Ze){const se=M.oxw(3);M.xp6(1),M.AsE(" ",M.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.ERROR_EMAIL"),": ",se.invitedMembers.getError("invalidEmail").value," ")}}function W(Ze,Pe){if(1&Ze){const se=M.EpF();M.TgZ(0,"div"),M.YNc(1,be,3,3,"div",8),M.YNc(2,me,3,3,"div",8),M.TgZ(3,"mat-form-field",9)(4,"mat-label"),M._uU(5),M.ALo(6,"translate"),M.qZA(),M.TgZ(7,"mat-select",10),M.NdJ("valueChange",function(U){M.CHM(se);const $=M.oxw(2);return M.KtG($.currentLanguage=U)}),M.YNc(8,fe,4,6,"mat-option",11),M.qZA()(),M._UZ(9,"p",12),M.ALo(10,"translate"),M.TgZ(11,"mat-form-field",13)(12,"mat-label"),M._uU(13),M.ALo(14,"translate"),M.qZA(),M.TgZ(15,"textarea",14),M.ALo(16,"translate"),M._uU(17," "),M.qZA(),M.YNc(18,re,3,3,"mat-error",4),M.YNc(19,v,3,4,"mat-error",4),M.YNc(20,V,3,4,"mat-error",4),M.qZA()()}if(2&Ze){const se=M.oxw(2);M.xp6(1),M.Q6J("ngIf",!se.data.groupId),M.xp6(1),M.Q6J("ngIf",se.data.groupId),M.xp6(3),M.Oqu(M.lcZ(6,12,"DIALOGS.BULK_INVITE_MEMBERS.LANGUAGE")),M.xp6(2),M.Q6J("value",se.currentLanguage),M.xp6(1),M.Q6J("ngForOf",se.languages),M.xp6(1),M.Q6J("innerHTML",M.lcZ(10,14,"DIALOGS.BULK_INVITE_MEMBERS.HINT"),M.oJD),M.xp6(4),M.Oqu(M.lcZ(14,16,"DIALOGS.BULK_INVITE_MEMBERS.INSERT_HERE")),M.xp6(2),M.s9C("placeholder",M.lcZ(16,18,"DIALOGS.BULK_INVITE_MEMBERS.PLACEHOLDER")),M.Q6J("formControl",se.invitedMembers),M.xp6(3),M.Q6J("ngIf",se.invitedMembers.hasError("required")),M.xp6(1),M.Q6J("ngIf",se.invitedMembers.hasError("invalidFormat")),M.xp6(1),M.Q6J("ngIf",se.invitedMembers.hasError("invalidEmail"))}}function ee(Ze,Pe){1&Ze&&(M.TgZ(0,"perun-web-apps-alert",18),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&Ze&&(M.Q6J("alert_type","success"),M.xp6(1),M.hij(" ",M.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.SUCCESS")," "))}function ie(Ze,Pe){1&Ze&&(M.TgZ(0,"perun-web-apps-alert",18),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&Ze&&(M.Q6J("alert_type","warn"),M.xp6(1),M.hij(" ",M.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.FINISHED_WITH_ERRORS")," "))}function xe(Ze,Pe){if(1&Ze&&(M.TgZ(0,"div"),M.YNc(1,ee,3,4,"perun-web-apps-alert",17),M.YNc(2,ie,3,4,"perun-web-apps-alert",17),M.qZA()),2&Ze){const se=M.oxw(2);M.xp6(1),M.Q6J("ngIf",!se.finishedWithErrors),M.xp6(1),M.Q6J("ngIf",se.finishedWithErrors)}}function Ye(Ze,Pe){if(1&Ze){const se=M.EpF();M.TgZ(0,"button",19),M.NdJ("click",function(){M.CHM(se);const U=M.oxw(2);return M.KtG(U.onSubmit())}),M._uU(1),M.ALo(2,"translate"),M.qZA()}if(2&Ze){const se=M.oxw(2);M.Q6J("disabled",se.loading||se.invitedMembers.invalid),M.xp6(1),M.hij(" ",M.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.INVITE")," ")}}function Le(Ze,Pe){if(1&Ze){const se=M.EpF();M.TgZ(0,"button",19),M.NdJ("click",function(){M.CHM(se);const U=M.oxw(2);return M.KtG(U.downloadCsv())}),M._uU(1),M.ALo(2,"translate"),M.qZA()}if(2&Ze){const se=M.oxw(2);M.Q6J("disabled",!se.resultData),M.xp6(1),M.hij(" ",M.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.DOWNLOAD_CSV")," ")}}function $e(Ze,Pe){if(1&Ze){const se=M.EpF();M.TgZ(0,"div")(1,"h1",2),M._uU(2),M.ALo(3,"translate"),M.qZA(),M.TgZ(4,"div",3),M.YNc(5,W,21,20,"div",4),M.qZA(),M.YNc(6,xe,3,2,"div",4),M.TgZ(7,"div",5)(8,"button",6),M.NdJ("click",function(){M.CHM(se);const U=M.oxw();return M.KtG(U.onCancel())}),M._uU(9),M.ALo(10,"translate"),M.qZA(),M.YNc(11,Ye,3,4,"button",7),M.YNc(12,Le,3,4,"button",7),M.qZA()()}if(2&Ze){const se=M.oxw();M.xp6(2),M.Oqu(M.lcZ(3,6,"DIALOGS.BULK_INVITE_MEMBERS.TITLE")),M.xp6(3),M.Q6J("ngIf","input"===se.state),M.xp6(1),M.Q6J("ngIf","results"===se.state),M.xp6(3),M.hij(" ",M.lcZ(10,8,"DIALOGS.BULK_INVITE_MEMBERS.CANCEL")," "),M.xp6(2),M.Q6J("ngIf","input"===se.state),M.xp6(1),M.Q6J("ngIf","results"===se.state)}}let qe=(()=>{class Ze{constructor(se,N,U,$){this.dialogRef=se,this.data=N,this.store=U,this.registrarManager=$,this.invitedMembers=new e.NI("",[e.kI.required,this.userInputValidator()]),this.languages=this.store.getProperty("supported_languages"),this.currentLanguage="en",this.loading=!1,this.state="input"}static didSomeInviteFail(se){for(const N in se)if("OK"!==se[N])return!0;return!1}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const se=this.invitedMembers.value.split("\n"),N=[];for(const $ of se)N.push(this.parseMemberLine($));const U={invitationData:N,voId:this.data.voId,language:this.currentLanguage};void 0!==this.data.groupId&&(U.groupId=this.data.groupId),this.registrarManager.sendInvitationsFromCsv(U).subscribe({next:$=>{this.state="results",this.finishedWithErrors=Ze.didSomeInviteFail($),this.resultData=$,this.loading=!1},error:()=>{this.loading=!1}})}downloadCsv(){(0,f.O6)(this.generateOutputData(this.resultData),"csv","member-invites")}generateOutputData(se){const N=[];for(const U in se)N.push({email:U,status:se[U]});return N}parseMemberLine(se){const N=se.trim();if(""===N)return"";const U=N.split(";");if(U.length>2||0===U.length)return"format";if(!U[0].trim().match(f.B2))return"email";let $="";for(const ce of U)$+=ce.trim()+";";return $.slice(0,-1)}userInputValidator(){return se=>{const N=se.value.split("\n");for(const U of N){const $=this.parseMemberLine(U);let ce=U;if(U.length>25&&(ce=U.substring(0,25)+"..."),"format"===$)return{invalidFormat:{value:ce}};if("email"===$)return{invalidEmail:{value:ce}}}return null}}}return Ze.\u0275fac=function(se){return new(se||Ze)(M.Y36(A.so),M.Y36(A.WI),M.Y36(S.d6),M.Y36(m.tk))},Ze.\u0275cmp=M.Xpm({type:Ze,selectors:[["app-bulk-invite-members-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["class","ms-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","font-italic",4,"ngIf"],[1,"w-100","pt-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML"],[1,"pt-2","flex-container"],["cols","50","required","","matInput","","rows","8",1,"md-textarea","form-control",3,"formControl","placeholder"],[1,"font-italic"],[3,"value"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(se,N){if(1&se&&(M.YNc(0,Q,1,0,"ng-template",null,0,M.W1O),M.TgZ(2,"div"),M.YNc(3,$e,13,10,"div",1),M.qZA()),2&se){const U=M.MAs(1);M.xp6(2),M.Gre("",N.data.theme," position-relative"),M.xp6(1),M.Q6J("perunWebAppsLoader",N.loading)("perunWebAppsLoaderIndicator",U)}},dependencies:[w.sg,w.O5,x.ey,P.Nt,F.KE,F.hX,F.TO,e.Fj,e.JJ,e.Q7,e.oH,T.lW,A.uh,A.xY,A.H8,B.gD,I.w,q.b,ue.e,w.gd,j.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Ze})()},40009:(Xe,ae,p)=>{"use strict";p.d(ae,{R:()=>ue});var e=p(7274),f=p(80279),A=p(24006),S=p(61744),m=p(94650),M=p(89383),w=p(284),x=p(59549),P=p(4859),F=p(56709),T=p(97403),B=p(73358);function I(j,Q){1&j&&m._UZ(0,"perun-web-apps-loading-dialog")}function q(j,Q){if(1&j){const be=m.EpF();m.TgZ(0,"div")(1,"h1",2),m._uU(2),m.qZA(),m.TgZ(3,"div",3)(4,"mat-form-field")(5,"mat-label"),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"input",4),m.NdJ("change",function(){m.CHM(be);const fe=m.oxw();return m.KtG(fe.makePath())}),m.qZA(),m.TgZ(9,"mat-error"),m._uU(10),m.ALo(11,"translate"),m.qZA()(),m.TgZ(12,"mat-form-field")(13,"mat-label"),m._uU(14),m.ALo(15,"translate"),m.qZA(),m.TgZ(16,"input",5),m.NdJ("ngModelChange",function(fe){m.CHM(be);const re=m.oxw();return m.KtG(re.description=fe)}),m.qZA()(),m.TgZ(17,"mat-form-field")(18,"mat-label"),m._uU(19),m.ALo(20,"translate"),m.qZA(),m._UZ(21,"input",6),m.TgZ(22,"mat-error"),m._uU(23),m.ALo(24,"translate"),m.qZA()(),m.TgZ(25,"mat-form-field")(26,"mat-label"),m._uU(27),m.ALo(28,"translate"),m.qZA(),m._UZ(29,"input",6),m.TgZ(30,"mat-error"),m._uU(31),m.ALo(32,"translate"),m.qZA()(),m.TgZ(33,"mat-form-field")(34,"mat-label"),m._uU(35),m.ALo(36,"translate"),m.qZA(),m._UZ(37,"input",6),m.TgZ(38,"mat-error"),m._uU(39),m.ALo(40,"translate"),m.qZA()(),m.TgZ(41,"div"),m._uU(42),m.ALo(43,"translate"),m.TgZ(44,"mat-checkbox",7),m.NdJ("ngModelChange",function(fe){m.CHM(be);const re=m.oxw();return m.KtG(re.status=fe)}),m._uU(45),m.ALo(46,"translate"),m.qZA()(),m.TgZ(47,"span",8),m._uU(48),m.ALo(49,"translate"),m.TgZ(50,"mat-checkbox",7),m.NdJ("ngModelChange",function(fe){m.CHM(be);const re=m.oxw();return m.KtG(re.propagateExpiredMembers=fe)}),m._uU(51),m.ALo(52,"translate"),m.qZA()()(),m.TgZ(53,"div",9)(54,"button",10),m.NdJ("click",function(){m.CHM(be);const fe=m.oxw();return m.KtG(fe.onCancel())}),m._uU(55),m.ALo(56,"translate"),m.qZA(),m.TgZ(57,"button",11),m.NdJ("click",function(){m.CHM(be);const fe=m.oxw();return m.KtG(fe.asEdit?fe.onEdit():fe.onCreate())}),m._uU(58),m.qZA()()()}if(2&j){const be=m.oxw();m.xp6(2),m.Oqu(be.title),m.xp6(4),m.Oqu(m.lcZ(7,24,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),m.xp6(2),m.Q6J("formControl",be.nameControl),m.xp6(2),m.Oqu(m.lcZ(11,26,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),m.xp6(4),m.Oqu(m.lcZ(15,28,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),m.xp6(2),m.Q6J("ngModel",be.description),m.xp6(3),m.Oqu(m.lcZ(20,30,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),m.xp6(2),m.Q6J("formControl",be.delayControl),m.xp6(2),m.Oqu(m.lcZ(24,32,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),m.xp6(4),m.Oqu(m.lcZ(28,34,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),m.xp6(2),m.Q6J("formControl",be.recurrenceControl),m.xp6(2),m.Oqu(m.lcZ(32,36,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),m.xp6(4),m.Oqu(m.lcZ(36,38,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),m.xp6(2),m.Q6J("formControl",be.pathControl),m.xp6(2),m.Oqu(m.lcZ(40,40,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),m.xp6(3),m.hij(" ",m.lcZ(43,42,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),m.xp6(2),m.Q6J("ngModel",be.status),m.xp6(1),m.Oqu(m.lcZ(46,44,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT")),m.xp6(3),m.hij("",m.lcZ(49,46,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS")," "),m.xp6(2),m.Q6J("ngModel",be.propagateExpiredMembers),m.xp6(1),m.Oqu(m.lcZ(52,48,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS_HINT")),m.xp6(4),m.hij(" ",m.lcZ(56,50,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),m.xp6(2),m.Q6J("disabled",be.nameControl.invalid||be.delayControl.invalid||be.recurrenceControl.invalid||be.pathControl.invalid||be.loading),m.xp6(1),m.hij(" ",be.buttonText," ")}}let ue=(()=>{class j{constructor(be,me,fe,re,v){this.dialogRef=be,this.data=me,this.serviceManager=fe,this.notificator=re,this.translate=v,this.loading=!1,this.status=!0,this.propagateExpiredMembers=!0,this.nameControl=new A.p4("",[A.kI.required,A.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new A.p4(10,[A.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new A.p4(2,[A.kI.pattern("^[0-9]*$")]),this.pathControl=new A.p4("",[A.kI.required]),this.asEdit=!1}ngOnInit(){this.theme=this.data.theme,this.asEdit=void 0!==this.data.service,this.asEdit?(this.nameControl.setValue(this.data.service.name),this.description=this.data.service.description,this.delayControl.setValue(this.data.service.delay),this.recurrenceControl.setValue(this.data.service.recurrence),this.pathControl.setValue(this.data.service.script),this.status=this.data.service.enabled,this.propagateExpiredMembers=this.data.service.useExpiredMembers,this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT")):(this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE"))}onCreate(){this.loading=!0,this.serviceManager.createServiceWithService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onEdit(){this.loading=!0,this.serviceManager.updateService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:this.data.service.id,beanName:this.data.service.beanName}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}makePath(){const be="./".concat(this.nameControl.value);this.pathControl.setValue(be)}}return j.\u0275fac=function(be){return new(be||j)(m.Y36(e.so),m.Y36(e.WI),m.Y36(S.KK),m.Y36(f.V6),m.Y36(M.sK))},j.\u0275cmp=m.Xpm({type:j,selectors:[["app-create-service-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","service-name-input","required","",3,"formControl","change"],["matInput","","data-cy","service-description-input",3,"ngModel","ngModelChange"],["matInput","","required","",3,"formControl"],[1,"ms-3",3,"ngModel","ngModelChange"],[1,"d-flex","align-elements"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","data-cy","service-create-edit-dialog-button","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(be,me){if(1&be&&(m.YNc(0,I,1,0,"ng-template",null,0,m.W1O),m.TgZ(2,"div"),m.YNc(3,q,59,52,"div",1),m.qZA()),2&be){const fe=m.MAs(1);m.xp6(2),m.Gre("",me.theme," position-relative"),m.xp6(1),m.Q6J("perunWebAppsLoader",me.loading)("perunWebAppsLoaderIndicator",fe)}},dependencies:[w.Nt,x.KE,x.hX,x.TO,A.Fj,A.JJ,A.Q7,A.oH,A.On,P.lW,F.oG,e.uh,e.xY,e.H8,T.b,B.e,M.X$]}),j})()},81889:(Xe,ae,p)=>{"use strict";p.d(ae,{y:()=>me});var e=p(7274),f=p(80279),A=p(61744),S=p(24006),m=p(94650),M=p(89383),w=p(36895),x=p(284),P=p(59549),F=p(4859),T=p(56709),B=p(97403),I=p(82322),q=p(73358);function ue(fe,re){1&fe&&m._UZ(0,"perun-web-apps-loading-dialog")}function j(fe,re){if(1&fe){const v=m.EpF();m.TgZ(0,"mat-checkbox",12),m.NdJ("ngModelChange",function(W){m.CHM(v);const ee=m.oxw(2);return m.KtG(ee.asSubgroup=W)})("click",function(){m.CHM(v);const W=m.oxw(2);return m.KtG(W.loadVoGroups())}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&fe){const v=m.oxw(2);m.Q6J("ngModel",v.asSubgroup)("labelPosition","before"),m.xp6(1),m.hij(" ",m.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function Q(fe,re){if(1&fe){const v=m.EpF();m.TgZ(0,"perun-web-apps-group-search-select",13),m.NdJ("groupSelected",function(W){m.CHM(v);const ee=m.oxw(2);return m.KtG(ee.selectedParent=W)}),m.qZA()}if(2&fe){const v=m.oxw(2);m.Q6J("disableAutoSelect",!0)("groups",v.voGroups)}}function be(fe,re){if(1&fe){const v=m.EpF();m.TgZ(0,"div")(1,"h1",2),m._uU(2),m.qZA(),m.TgZ(3,"div",3)(4,"mat-form-field")(5,"mat-label"),m._uU(6),m.ALo(7,"translate"),m.qZA(),m._UZ(8,"input",4),m.TgZ(9,"mat-error"),m._uU(10),m.ALo(11,"translate"),m.qZA()(),m.TgZ(12,"mat-form-field",5)(13,"mat-label"),m._uU(14),m.ALo(15,"translate"),m.qZA(),m.TgZ(16,"textarea",6),m._uU(17," "),m.qZA()(),m.YNc(18,j,3,5,"mat-checkbox",7),m.YNc(19,Q,1,2,"perun-web-apps-group-search-select",8),m.qZA(),m.TgZ(20,"div",9)(21,"button",10),m.NdJ("click",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.onCancel())}),m._uU(22),m.ALo(23,"translate"),m.qZA(),m.TgZ(24,"button",11),m.NdJ("click",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.onSubmit())}),m._uU(25),m.ALo(26,"translate"),m.qZA()()()}if(2&fe){const v=m.oxw();m.xp6(2),m.Oqu(v.title),m.xp6(4),m.Oqu(m.lcZ(7,11,"DIALOGS.CREATE_GROUP.NAME")),m.xp6(2),m.Q6J("formControl",v.nameControl),m.xp6(2),m.hij(" ",v.invalidNameMessage.length?v.invalidNameMessage:m.lcZ(11,13,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),m.xp6(4),m.Oqu(m.lcZ(15,15,"DIALOGS.CREATE_GROUP.DESCRIPTION")),m.xp6(2),m.Q6J("formControl",v.descriptionControl),m.xp6(2),m.Q6J("ngIf",v.isNotSubGroup),m.xp6(1),m.Q6J("ngIf",v.asSubgroup),m.xp6(3),m.hij(" ",m.lcZ(23,17,"DIALOGS.CREATE_GROUP.CANCEL")," "),m.xp6(2),m.Q6J("disabled",v.nameControl.invalid||v.descriptionControl.invalid||v.asSubgroup&&null===v.selectedParent||v.loading),m.xp6(1),m.hij(" ",m.lcZ(26,19,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let me=(()=>{class fe{constructor(v,V,W,ee,ie,xe){this.dialogRef=v,this.data=V,this.groupService=W,this.translate=ee,this.notificator=ie,this.store=xe,this.asSubgroup=!1,this.invalidNameMessage=this.store.getProperty("group_name_error_message"),this.voGroups=[],this.secondaryRegex=this.store.getProperty("group_name_secondary_regex"),this.nameFunction=Ye=>Ye.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?ee.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(Ye=>this.title=Ye):ee.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(Ye=>{this.title=Ye+this.data.parentGroup.name}),ee.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(Ye=>this.successMessage=Ye),ee.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(Ye=>this.successSubGroupMessage=Ye)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new S.p4("",[S.kI.required,S.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),S.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new S.p4(""),this.selectedParent=null}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successSubGroupMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}loadVoGroups(){this.groupService.getAllGroups(this.data.voId).subscribe(v=>{this.voGroups=v.filter(V=>"members"!==V.name)})}}return fe.\u0275fac=function(v){return new(v||fe)(m.Y36(e.so),m.Y36(e.WI),m.Y36(A.ff),m.Y36(M.sK),m.Y36(f.V6),m.Y36(f.d6))},fe.\u0275cmp=m.Xpm({type:fe,selectors:[["app-create-group-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","group-name","required","",3,"formControl"],[1,"mt-4"],["matInput","","data-cy","group-description",3,"formControl"],[3,"ngModel","labelPosition","ngModelChange","click",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","data-cy","create-group-button-dialog","mat-flat-button","",1,"ms-2",3,"disabled","click"],[3,"ngModel","labelPosition","ngModelChange","click"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(v,V){if(1&v&&(m.YNc(0,ue,1,0,"ng-template",null,0,m.W1O),m.TgZ(2,"div"),m.YNc(3,be,27,21,"div",1),m.qZA()),2&v){const W=m.MAs(1);m.xp6(2),m.Gre("",V.theme," position-relative"),m.xp6(1),m.Q6J("perunWebAppsLoader",V.loading)("perunWebAppsLoaderIndicator",W)}},dependencies:[w.O5,x.Nt,P.KE,P.hX,P.TO,S.Fj,S.JJ,S.Q7,S.oH,S.On,F.lW,T.oG,e.uh,e.xY,e.H8,B.b,I.h,q.e,M.X$]}),fe})()},54037:(Xe,ae,p)=>{"use strict";p.d(ae,{Y:()=>x});var e=p(61744),f=p(7274),A=p(80279),S=p(30671),m=p(94650),M=p(89383),w=p(90995);let x=(()=>{class P{constructor(T,B,I,q,ue){this.dialogRef=T,this.data=B,this.facilitiesManager=I,this.notificator=q,this.translate=ue,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new S.by([this.facility]),this.relations.push(this.translate.instant("DIALOGS.DELETE_FACILITY.RESOURCE_RELATION"))}onConfirm(){this.loading=!0,this.facilitiesManager.deleteFacility(this.facility.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_FACILITY.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(T){this.force=T.force,T.deleted?this.onConfirm():this.onCancel()}}return P.\u0275fac=function(T){return new(T||P)(m.Y36(f.so),m.Y36(f.WI),m.Y36(e.IQ),m.Y36(A.V6),m.Y36(M.sK))},P.\u0275cmp=m.Xpm({type:P,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(T,B){1&T&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(q){return B.onSubmit(q)}),m.qZA()()),2&T&&(m.Tol(B.theme),m.xp6(1),m.Q6J("entityNames",B.dataSource)("entityType","facilities")("loading",B.loading)("relations",B.relations))},dependencies:[w.e]}),P})()},41656:(Xe,ae,p)=>{"use strict";p.d(ae,{P:()=>x});var e=p(7274),f=p(30671),A=p(80279),S=p(61744),m=p(94650),M=p(89383),w=p(90995);let x=(()=>{class P{constructor(T,B,I,q,ue){this.dialogRef=T,this.data=B,this.notificator=I,this.translate=q,this.groupService=ue,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new f.by(this.data.groups),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.SUBGROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.MEMBER_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0;const T=this.data.groups.map(B=>B.id);this.groupService.deleteGroups({groups:T,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(B=>{this.notificator.showSuccess(B),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(T){this.force=T.force,T.deleted?this.onDelete():this.onCancel()}}return P.\u0275fac=function(T){return new(T||P)(m.Y36(e.so),m.Y36(e.WI),m.Y36(A.V6),m.Y36(M.sK),m.Y36(S.ff))},P.\u0275cmp=m.Xpm({type:P,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(T,B){1&T&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(q){return B.onSubmit(q)}),m.qZA()()),2&T&&(m.Tol(B.theme),m.xp6(1),m.Q6J("entityNames",B.dataSource)("entityType","groups")("loading",B.loading)("relations",B.relations))},dependencies:[w.e]}),P})()},90719:(Xe,ae,p)=>{"use strict";p.d(ae,{m:()=>w});var e=p(61744),f=p(7274),A=p(80279),S=p(30671),m=p(94650),M=p(90995);let w=(()=>{class x{constructor(F,T,B,I,q){this.dialogRef=F,this.data=T,this.serviceManager=B,this.notificator=I,this.translate=q,this.dataSource=new S.by(this.data.services),this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.services=this.data.services,this.relations.push(this.translate.instant("DIALOGS.DELETE_SERVICE.DESTINATION_RELATION")),this.anotherMessage=this.translate.instant("DIALOGS.DELETE_SERVICE.MORE_INFORMATION")}onConfirm(){this.loading=!0;const F=this.services.map(T=>T.id);this.serviceManager.deleteServices(F,this.force).subscribe({next:()=>{this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_SERVICE.SUCCESS")),this.loading=!1},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(F){this.force=F.force,F.deleted?this.onConfirm():this.onCancel()}}return x.\u0275fac=function(F){return new(F||x)(m.Y36(f.so),m.Y36(f.WI),m.Y36(e.KK),m.Y36(A.V6),m.Y36(A.Te))},x.\u0275cmp=m.Xpm({type:x,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","anotherMessage","loading","relations","deleted"]],template:function(F,T){1&F&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(I){return T.onSubmit(I)}),m.qZA()()),2&F&&(m.Tol(T.theme),m.xp6(1),m.Q6J("entityNames",T.dataSource)("entityType","services")("anotherMessage",T.anotherMessage)("loading",T.loading)("relations",T.relations))},dependencies:[M.e]}),x})()},83491:(Xe,ae,p)=>{"use strict";p.d(ae,{_:()=>Be});var e=p(7274),f=p(61744),A=p(9244),S=p(37433),m=p(80279),M=p(24006),w=p(94650),x=p(89383),P=p(36895),F=p(3238),T=p(284),B=p(59549),I=p(39349),q=p(97392),ue=p(4859),j=p(3848),Q=p(56709),be=p(84385),me=p(10266),fe=p(97403),re=p(63312),v=p(52170),V=p(73358);const W=["*"];let ee=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275cmp=w.Xpm({type:r,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:W,decls:9,vars:2,consts:[[1,"d-flex"],[1,"w-25","m-auto","fw-bold"],[1,"w-75"],[1,"d-flex","mb-3"],[1,"w-25"],[1,"w-75","font-italic","text-muted"]],template:function(_,C){1&_&&(w.F$t(),w.TgZ(0,"div",0)(1,"span",1),w._uU(2),w.qZA(),w.TgZ(3,"div",2),w.Hsn(4),w.qZA()(),w.TgZ(5,"div",3),w._UZ(6,"span",4),w.TgZ(7,"div",5),w._uU(8),w.qZA()()),2&_&&(w.xp6(2),w.hij("",C.label,":"),w.xp6(6),w.hij(" ",C.description," "))}}),r})();var ie=p(57706);let xe=(()=>{class r{constructor(_){this.translateService=_}transform(_){switch(_){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+_);default:return _}}}return r.\u0275fac=function(_){return new(_||r)(w.Y36(x.sK,16))},r.\u0275pipe=w.Yjl({name:"applicationFormItemDisabled",type:r,pure:!0}),r})(),Ye=(()=>{class r{constructor(_){this.translateService=_}transform(_){switch(_){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+_);default:return _}}}return r.\u0275fac=function(_){return new(_||r)(w.Y36(x.sK,16))},r.\u0275pipe=w.Yjl({name:"applicationFormItemHidden",type:r,pure:!0}),r})();function Le(r,u){1&r&&w._UZ(0,"perun-web-apps-loading-dialog")}function $e(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"app-edit-application-form-item-line",7),w.ALo(2,"translate"),w.ALo(3,"translate"),w.TgZ(4,"section")(5,"mat-checkbox",22),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw(3);return w.KtG(o.applicationFormItem.updatable=h)}),w.qZA()()()()}if(2&r){const _=w.oxw(3);w.xp6(1),w.Q6J("description",w.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION"))("label",w.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE")),w.xp6(4),w.Q6J("ngModel",_.applicationFormItem.updatable)}}function qe(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"app-edit-application-form-item-line",7),w.ALo(1,"translate"),w.ALo(2,"translate"),w.TgZ(3,"div",8)(4,"perun-web-apps-selection-item-search-select",26),w.NdJ("itemSelected",function(h){w.CHM(_);const o=w.oxw(3);return w.KtG(o.applicationFormItem.perunSourceAttribute=h.value)}),w.qZA()()()}if(2&r){const _=w.oxw(3);w.Q6J("description",w.lcZ(1,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION"))("label",w.lcZ(2,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE")),w.xp6(4),w.Q6J("attributes",_.sourceAttributes)("selectedAttribute",_.applicationFormItem.perunSourceAttribute)("asGroup",!!_.data.group)("type",_.itemType.SOURCE)}}function Ze(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"app-edit-application-form-item-line",7),w.ALo(1,"translate"),w.ALo(2,"translate"),w.TgZ(3,"div",8)(4,"perun-web-apps-selection-item-search-select",26),w.NdJ("itemSelected",function(h){w.CHM(_);const o=w.oxw(3);return w.KtG(o.applicationFormItem.perunDestinationAttribute=h.value)}),w.qZA()()()}if(2&r){const _=w.oxw(3);w.Q6J("description",w.lcZ(1,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION"))("label",w.lcZ(2,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE")),w.xp6(4),w.Q6J("attributes",_.destinationAttributes)("selectedAttribute",_.applicationFormItem.perunDestinationAttribute)("asGroup",!!_.data.group)("type",_.itemType.DESTINATION)}}function Pe(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div",8)(1,"mat-form-field",8)(2,"input",9),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw(3);return w.KtG(o.applicationFormItem.federationAttribute=h)}),w.qZA()()()}if(2&r){const _=w.oxw(3);w.xp6(2),w.Q6J("ngModel",_.applicationFormItem.federationAttribute)}}function se(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"app-edit-application-form-item-line",7),w.ALo(2,"translate"),w.ALo(3,"translate"),w.TgZ(4,"section")(5,"mat-checkbox",22),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw(2);return w.KtG(o.applicationFormItem.required=h)}),w.qZA()()(),w.YNc(6,$e,6,7,"div",12),w.YNc(7,qe,5,10,"app-edit-application-form-item-line",23),w.YNc(8,Ze,5,10,"app-edit-application-form-item-line",23),w.TgZ(9,"app-edit-application-form-item-line",7),w.ALo(10,"translate"),w.ALo(11,"translate"),w.TgZ(12,"div",8)(13,"perun-web-apps-selection-item-search-select",24),w.NdJ("itemSelected",function(h){w.CHM(_);const o=w.oxw(2);return w.KtG(o.changeFederationAttribute(h))}),w.qZA()(),w.YNc(14,Pe,3,1,"div",25),w.qZA()()}if(2&r){const _=w.oxw(2);w.xp6(1),w.Q6J("description",w.lcZ(2,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION"))("label",w.lcZ(3,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED")),w.xp6(4),w.Q6J("ngModel",_.applicationFormItem.required),w.xp6(1),w.Q6J("ngIf",_.typesWithUpdatable.indexOf(_.applicationFormItem.type)>-1),w.xp6(1),w.Q6J("ngIf",void 0!==_.destinationAttributes),w.xp6(1),w.Q6J("ngIf",void 0!==_.destinationAttributes),w.xp6(1),w.Q6J("description",w.lcZ(10,16,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION"))("label",w.lcZ(11,18,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE")),w.xp6(4),w.Q6J("selectedAttribute",_.applicationFormItem.federationAttribute)("asGroup",!!_.data.group)("type",_.itemType.FEDERATION),w.xp6(1),w.Q6J("ngIf"," -- custom value -- "===_.federationAttributeDN)}}function N(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"app-edit-application-form-item-line",7),w.ALo(2,"translate"),w.ALo(3,"translate"),w.TgZ(4,"mat-form-field",8)(5,"input",9),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw(2);return w.KtG(o.applicationFormItem.regex=h)}),w.qZA()()()()}if(2&r){const _=w.oxw(2);w.xp6(1),w.Q6J("description",w.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION"))("label",w.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX")),w.xp6(4),w.Q6J("ngModel",_.applicationFormItem.regex)}}function U(r,u){if(1&r&&(w.TgZ(0,"mat-option",27),w._uU(1),w.ALo(2,"applicationFormItemDisabled"),w.qZA()),2&r){const _=u.$implicit;w.Q6J("value",_),w.xp6(1),w.hij(" ",w.lcZ(2,2,_)," ")}}function $(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"perun-web-apps-app-form-item-search-select",28),w.NdJ("itemSelected",function(h){w.CHM(_);const o=w.oxw(3);return w.KtG(o.disabledDependencyItem=h)}),w.qZA()}if(2&r){const _=w.oxw(3);w.Q6J("item",_.disabledDependencyItem)("items",_.possibleDependencyItems)}}function ce(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"app-edit-application-form-item-line",7),w.ALo(2,"translate"),w.ALo(3,"translate"),w.TgZ(4,"mat-form-field",8)(5,"mat-select",13),w.NdJ("valueChange",function(h){w.CHM(_);const o=w.oxw(2);return w.KtG(o.applicationFormItem.disabled=h)}),w.YNc(6,U,3,4,"mat-option",14),w.qZA()()(),w.TgZ(7,"app-edit-application-form-item-line",7),w.ALo(8,"translate"),w.ALo(9,"translate"),w.TgZ(10,"div",8),w.YNc(11,$,1,2,"perun-web-apps-app-form-item-search-select",15),w.qZA()()()}if(2&r){const _=w.oxw(2);w.xp6(1),w.Q6J("description",w.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION"))("label",w.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED")),w.xp6(4),w.Q6J("value",_.applicationFormItem.disabled),w.xp6(1),w.Q6J("ngForOf",_.disabledValues),w.xp6(1),w.Q6J("description",w.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION"))("label",w.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY")),w.xp6(4),w.Q6J("ngIf",null!==_.disabledDependencyItem)}}function De(r,u){if(1&r&&(w.TgZ(0,"mat-option",27),w._uU(1),w.ALo(2,"applicationFormItemHidden"),w.qZA()),2&r){const _=u.$implicit;w.Q6J("value",_),w.xp6(1),w.hij(" ",w.lcZ(2,2,_)," ")}}function he(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"perun-web-apps-app-form-item-search-select",28),w.NdJ("itemSelected",function(h){w.CHM(_);const o=w.oxw(2);return w.KtG(o.hiddenDependencyItem=h)}),w.qZA()}if(2&r){const _=w.oxw(2);w.Q6J("item",_.hiddenDependencyItem)("items",_.possibleDependencyItems)}}function Oe(r,u){if(1&r&&(w.TgZ(0,"mat-error"),w._uU(1),w.qZA()),2&r){const _=w.oxw(4);w.xp6(1),w.Oqu(_.htmlInput.errors.invalidHtmlContent)}}function it(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"app-edit-application-form-item-line",7),w.ALo(2,"translate"),w.ALo(3,"translate"),w.TgZ(4,"mat-form-field",29)(5,"textarea",30),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw().$implicit,n=w.oxw(2);return w.KtG(n.applicationFormItem.i18n[o].label=h)}),w.qZA(),w.YNc(6,Oe,2,1,"mat-error",12),w.qZA()()()}if(2&r){const _=w.oxw().$implicit,C=w.oxw(2);w.xp6(1),w.Q6J("description",w.lcZ(2,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION"))("label",w.lcZ(3,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT")),w.xp6(4),w.Q6J("cdkTextareaAutosize",!0)("formControl",C.htmlInput)("ngModel",C.applicationFormItem.i18n[_].label),w.xp6(1),w.Q6J("ngIf",C.htmlInput.invalid&&(C.htmlInput.dirty||C.htmlInput.touched))}}function Ce(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"app-edit-application-form-item-line",7),w.ALo(2,"translate"),w.ALo(3,"translate"),w.TgZ(4,"mat-form-field",8)(5,"textarea",9),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw().$implicit,n=w.oxw(2);return w.KtG(n.applicationFormItem.i18n[o].label=h)}),w.qZA()()(),w.TgZ(6,"app-edit-application-form-item-line",7),w.ALo(7,"translate"),w.ALo(8,"translate"),w.TgZ(9,"mat-form-field",8)(10,"textarea",9),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw().$implicit,n=w.oxw(2);return w.KtG(n.applicationFormItem.i18n[o].help=h)}),w.qZA()()(),w.TgZ(11,"app-edit-application-form-item-line",7),w.ALo(12,"translate"),w.ALo(13,"translate"),w.TgZ(14,"mat-form-field",8)(15,"textarea",9),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw().$implicit,n=w.oxw(2);return w.KtG(n.applicationFormItem.i18n[o].errorMessage=h)}),w.qZA()()()()}if(2&r){const _=w.oxw().$implicit,C=w.oxw(2);w.xp6(1),w.Q6J("description",w.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION"))("label",w.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),w.xp6(4),w.Q6J("ngModel",C.applicationFormItem.i18n[_].label),w.xp6(1),w.Q6J("description",w.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION"))("label",w.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP")),w.xp6(4),w.Q6J("ngModel",C.applicationFormItem.i18n[_].help),w.xp6(1),w.Q6J("description",w.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION"))("label",w.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR")),w.xp6(4),w.Q6J("ngModel",C.applicationFormItem.i18n[_].errorMessage)}}function ot(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"app-edit-application-form-item-line",7),w.ALo(2,"translate"),w.ALo(3,"translate"),w.TgZ(4,"mat-form-field",8)(5,"textarea",9),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw().$implicit,n=w.oxw(2);return w.KtG(n.applicationFormItem.i18n[o].label=h)}),w.qZA()()()()}if(2&r){const _=w.oxw().$implicit,C=w.oxw(2);w.xp6(1),w.Q6J("description",w.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION"))("label",w.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),w.xp6(4),w.Q6J("ngModel",C.applicationFormItem.i18n[_].label)}}function Ue(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div"),w._uU(1),w.ALo(2,"translate"),w.TgZ(3,"mat-form-field")(4,"input",9),w.NdJ("ngModelChange",function(h){const n=w.CHM(_).$implicit;return w.KtG(n[0]=h)}),w.qZA()(),w._uU(5),w.ALo(6,"translate"),w.TgZ(7,"mat-form-field")(8,"input",9),w.NdJ("ngModelChange",function(h){const n=w.CHM(_).$implicit;return w.KtG(n[1]=h)}),w.qZA()(),w.TgZ(9,"button",39),w.NdJ("click",function(){const o=w.CHM(_).$implicit,n=w.oxw(2).$implicit,t=w.oxw(2);return w.KtG(t.removeOption(o,n))}),w.ALo(10,"translate"),w.TgZ(11,"mat-icon"),w._uU(12,"clear"),w.qZA()()()}if(2&r){const _=u.$implicit;w.xp6(1),w.hij(" ",w.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),w.xp6(3),w.Q6J("ngModel",_[0]),w.xp6(1),w.hij(" ",w.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),w.xp6(3),w.Q6J("ngModel",_[1]),w.xp6(1),w.s9C("matTooltip",w.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function ft(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div")(1,"div",31),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"div",32),w._uU(5),w.ALo(6,"translate"),w.qZA(),w.TgZ(7,"div",33)(8,"button",34),w.NdJ("click",function(){w.CHM(_);const h=w.oxw().$implicit,o=w.oxw(2);return w.KtG(o.sortOptionsAZ(h))}),w.TgZ(9,"i",35),w._uU(10,"arrow_downward"),w.qZA(),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.TgZ(13,"button",36),w.NdJ("click",function(){w.CHM(_);const h=w.oxw().$implicit,o=w.oxw(2);return w.KtG(o.sortOptionsZA(h))}),w.TgZ(14,"i",35),w._uU(15,"arrow_upward"),w.qZA(),w._uU(16),w.ALo(17,"translate"),w.qZA()(),w.YNc(18,Ue,13,11,"div",37),w.TgZ(19,"button",38),w.NdJ("click",function(){w.CHM(_);const h=w.oxw().$implicit,o=w.oxw(2);return w.KtG(o.addOption(h))}),w._uU(20),w.ALo(21,"translate"),w.qZA()()}if(2&r){const _=w.oxw().$implicit,C=w.oxw(2);w.xp6(2),w.hij("",w.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),":"),w.xp6(3),w.hij(" ",w.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),w.xp6(6),w.hij(" ",w.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),w.xp6(5),w.hij(" ",w.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),w.xp6(2),w.Q6J("ngForOf",C.options[_]),w.xp6(2),w.hij(" ",w.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const Z=function(){return["HEADING","HTML_COMMENT"]},lt=function(){return["TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]},Ae=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},Ke=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function pe(r,u){if(1&r&&(w.TgZ(0,"mat-tab",6),w.ALo(1,"translate"),w.ALo(2,"uppercase"),w.YNc(3,it,7,10,"div",12),w.YNc(4,Ce,16,21,"div",12),w.YNc(5,ot,6,7,"div",12),w.YNc(6,ft,22,16,"div",12),w.qZA()),2&r){const _=u.$implicit,C=w.oxw(2);w.s9C("label",w.lcZ(1,5,w.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+_))),w.xp6(3),w.Q6J("ngIf",C.isApplicationFormItemOfType(w.DdM(9,Z))),w.xp6(1),w.Q6J("ngIf",C.isApplicationFormItemOfType(w.DdM(10,lt))),w.xp6(1),w.Q6J("ngIf",C.isApplicationFormItemOfType(w.DdM(11,Ae))),w.xp6(1),w.Q6J("ngIf",C.isApplicationFormItemOfType(w.DdM(12,Ke)))}}const Ie=function(){return["TEXTFIELD","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]},Ne=function(){return["TEXTFIELD","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]};function we(r,u){if(1&r){const _=w.EpF();w.TgZ(0,"div",2)(1,"h1",3),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"div",4)(5,"mat-tab-group",5)(6,"mat-tab",6),w.ALo(7,"translate"),w.TgZ(8,"app-edit-application-form-item-line",7),w.ALo(9,"translate"),w.ALo(10,"translate"),w.TgZ(11,"mat-form-field",8)(12,"input",9),w.NdJ("ngModelChange",function(h){w.CHM(_);const o=w.oxw();return w.KtG(o.applicationFormItem.shortname=h)}),w.qZA()()(),w.TgZ(13,"app-edit-application-form-item-line",7),w.ALo(14,"translate"),w.ALo(15,"translate"),w._uU(16),w.ALo(17,"applicationFormItemType"),w.qZA(),w.TgZ(18,"app-edit-application-form-item-line",7),w.ALo(19,"translate"),w.ALo(20,"translate"),w.TgZ(21,"section")(22,"mat-checkbox",10),w.NdJ("change",function(){w.CHM(_);const h=w.oxw();return w.KtG(h.onChangingType("INITIAL"))}),w._uU(23),w.ALo(24,"translate"),w.qZA(),w.TgZ(25,"mat-checkbox",11),w.NdJ("change",function(){w.CHM(_);const h=w.oxw();return w.KtG(h.onChangingType("EXTENSION"))}),w._uU(26),w.ALo(27,"translate"),w.qZA()()(),w.YNc(28,se,15,20,"div",12),w.YNc(29,N,6,7,"div",12),w.YNc(30,ce,12,15,"div",12),w.TgZ(31,"app-edit-application-form-item-line",7),w.ALo(32,"translate"),w.ALo(33,"translate"),w.TgZ(34,"mat-form-field",8)(35,"mat-select",13),w.NdJ("valueChange",function(h){w.CHM(_);const o=w.oxw();return w.KtG(o.applicationFormItem.hidden=h)}),w.YNc(36,De,3,4,"mat-option",14),w.qZA()()(),w.TgZ(37,"app-edit-application-form-item-line",7),w.ALo(38,"translate"),w.ALo(39,"translate"),w.TgZ(40,"div",8),w.YNc(41,he,1,2,"perun-web-apps-app-form-item-search-select",15),w.qZA()()(),w.YNc(42,pe,7,13,"mat-tab",16),w.qZA()(),w.TgZ(43,"div",17)(44,"button",18),w.NdJ("click",function(){w.CHM(_);const h=w.oxw();return w.KtG(h.cancel())}),w._uU(45),w.ALo(46,"translate"),w.qZA(),w.TgZ(47,"div",19),w.ALo(48,"translate"),w.TgZ(49,"div",20),w.ALo(50,"translate"),w.TgZ(51,"button",21),w.NdJ("click",function(){w.CHM(_);const h=w.oxw();return w.KtG(h.submit())}),w._uU(52),w.ALo(53,"translate"),w.qZA()()()()()}if(2&r){const _=w.oxw();w.xp6(2),w.AsE(" ",w.lcZ(3,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",_.applicationFormItem.shortname," "),w.xp6(4),w.s9C("label",w.lcZ(7,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),w.xp6(2),w.Q6J("description",w.lcZ(9,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION"))("label",w.lcZ(10,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME")),w.xp6(4),w.Q6J("ngModel",_.applicationFormItem.shortname),w.xp6(1),w.Q6J("description",w.lcZ(14,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION"))("label",w.lcZ(15,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET")),w.xp6(3),w.hij(" ",w.lcZ(17,46,_.applicationFormItem.type)," "),w.xp6(2),w.Q6J("description",w.lcZ(19,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION"))("label",w.lcZ(20,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION")),w.xp6(4),w.Q6J("ngModel",_.applicationFormItem.applicationTypes.includes("INITIAL")),w.xp6(1),w.hij(" ",w.lcZ(24,52,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),w.xp6(2),w.Q6J("ngModel",_.applicationFormItem.applicationTypes.includes("EXTENSION")),w.xp6(1),w.hij(" ",w.lcZ(27,54,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),w.xp6(2),w.Q6J("ngIf",_.isApplicationFormItemOfType(w.DdM(72,Ie))),w.xp6(1),w.Q6J("ngIf",_.isApplicationFormItemOfType(w.DdM(73,Ne))),w.xp6(1),w.Q6J("ngIf",_.typesWithDisabled.indexOf(_.applicationFormItem.type)>-1),w.xp6(1),w.Q6J("description",w.lcZ(32,56,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION"))("label",w.lcZ(33,58,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN")),w.xp6(4),w.Q6J("value",_.applicationFormItem.hidden),w.xp6(1),w.Q6J("ngForOf",_.hiddenValues),w.xp6(1),w.Q6J("description",w.lcZ(38,60,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION"))("label",w.lcZ(39,62,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY")),w.xp6(4),w.Q6J("ngIf",null!==_.hiddenDependencyItem),w.xp6(1),w.Q6J("ngForOf",_.languages),w.xp6(3),w.hij(" ",w.lcZ(46,64,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),w.xp6(2),w.s9C("matTooltip",w.lcZ(48,66,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON_DISABLED_TOOLTIP")),w.Q6J("matTooltipDisabled",!_.applicationFormItem.required||""!==_.applicationFormItem.perunSourceAttribute||""!==_.applicationFormItem.federationAttribute||"ALWAYS"!==_.applicationFormItem.disabled&&"ALWAYS"!==_.applicationFormItem.hidden),w.xp6(2),w.s9C("matTooltip",w.lcZ(50,68,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HTML_INVALID_TAGS")),w.Q6J("matTooltipDisabled",!_.htmlInput.invalid)("matTooltipPosition","above"),w.xp6(2),w.Q6J("disabled",_.htmlInput.invalid||_.loading||_.applicationFormItem.required&&""===_.applicationFormItem.perunSourceAttribute&&""===_.applicationFormItem.federationAttribute&&("ALWAYS"===_.applicationFormItem.disabled||"ALWAYS"===_.applicationFormItem.hidden)),w.xp6(1),w.hij(" ",w.lcZ(53,70,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," ")}}let Be=(()=>{class r{constructor(_,C,h,o,n,t,i){this.dialogRef=_,this.data=C,this.attributesManager=h,this.translateService=o,this.store=n,this.cd=t,this.escapeService=i,this.federationAttributeDN="",this.itemType=S.qG,this.loading=!1,this.hiddenValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.disabledValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.possibleDependencyItems=[],this.htmlInput=new M.NI("",[this.escapeService.htmlContentValidator()]),this.typesWithUpdatable=["VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","TIMEZONE"],this.typesWithDisabled=["USERNAME","PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.languages=["en"],this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"]}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(_=>_.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=S.Sx),this.disabledDependencyItem=this.data.allItems.find(_=>_.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=S.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,A.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(_=>{const C=this.filterAttributesForWidget(_);this.sourceAttributes=C.concat(this.findAttribute(_,this.applicationFormItem.perunSourceAttribute)),this.destinationAttributes=C.concat(this.findAttribute(_,this.applicationFormItem.perunDestinationAttribute)),this.loading=!1},()=>this.loading=!1),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions(),this.htmlInput.markAsTouched(),this.htmlInput.setValue(this.applicationFormItem.i18n.en.label)}cancel(){this.dialogRef.close()}submit(){if(this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===S.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===S.Sx?null:this.disabledDependencyItem.id,"HTML_COMMENT"===this.applicationFormItem.type||"HEADING"===this.applicationFormItem.type)for(const _ in this.applicationFormItem.i18n)this.applicationFormItem.i18n[_].label=this.escapeService.escapeDangerousHtml(this.applicationFormItem.i18n[_].label).escapedHtml;this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(_){if(this.applicationFormItem.applicationTypes.includes(_)){const C=this.applicationFormItem.applicationTypes.indexOf(_);this.applicationFormItem.applicationTypes.splice(C,1)}else this.applicationFormItem.applicationTypes.push(_)}addOption(_){this.options[_].push(["",""])}removeOption(_,C){this.options[C]=this.options[C].filter(h=>!(h[0]===_[0]&&h[1]===_[1]))}sortOptionsAZ(_){this.options[_]=this.options[_].sort((C,h)=>C[1]>h[1]?1:C[1]C[1]>h[1]?-1:C[1]this.dependencyTypes.includes(_.type)).filter(_=>_.id!==this.data.applicationFormItem.id))}updateOption(_){let C="";if(this.options[_])for(const h of this.options[_])""!==h[0]&&""!==h[1]&&(C=""===C?h[0]+"#"+h[1]:C+"|"+h[0]+"#"+h[1]);this.applicationFormItem.i18n[_].options=C}updateOptions(){for(const _ of this.languages)this.updateOption(_)}findAttribute(_,C){return _.find(h=>C.includes(h.friendlyName))}filterAttributesForWidget(_){return _.filter("MAP_INPUT_BOX"===this.applicationFormItem.type?C=>C.type.includes("LinkedHashMap"):"LIST_INPUT_BOX"===this.applicationFormItem.type?C=>C.type.includes("ArrayList"):C=>!C.type.includes("ArrayList")&&!C.type.includes("LinkedHashMap"))}}return r.\u0275fac=function(_){return new(_||r)(w.Y36(e.so),w.Y36(e.WI),w.Y36(f.H8),w.Y36(x.sK),w.Y36(m.d6),w.Y36(w.sBO),w.Y36(m.L6))},r.\u0275cmp=w.Xpm({type:r,selectors:[["app-edit-application-form-item-dialog"]],decls:4,vars:5,consts:[["spinner",""],["class","h-100 d-flex flex-column",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["color","primary","mat-stretch-tabs","false"],[3,"label"],[3,"description","label"],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"],[1,"me-2",3,"ngModel","change"],[3,"ngModel","change"],[4,"ngIf"],["disableOptionCentering","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"item","items","itemSelected",4,"ngIf"],[3,"label",4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ms-auto","mt-auto",3,"click"],[3,"matTooltipDisabled","matTooltip"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-flat-button","","color","accent","data-cy","edit-form-item-button-dialog",1,"ms-2","mt-auto",3,"disabled","click"],[3,"ngModel","ngModelChange"],[3,"description","label",4,"ngIf"],[3,"selectedAttribute","asGroup","type","itemSelected"],["class","w-100",4,"ngIf"],[3,"attributes","selectedAttribute","asGroup","type","itemSelected"],[3,"value"],[3,"item","items","itemSelected"],["subscriptSizing","dynamic",1,"w-100"],["matInput","",3,"cdkTextareaAutosize","formControl","ngModel","ngModelChange"],[1,"fw-bold"],[1,"text-muted","font-italic"],[1,"d-flex","mt-2","mb-2"],["mat-flat-button","",1,"ms-auto","me-2",3,"click"],[1,"material-icons"],["mat-flat-button","",1,"me-auto",3,"click"],[4,"ngFor","ngForOf"],["color","accent","mat-flat-button","",1,"me-2",3,"click"],["color","warn","mat-icon-button","",3,"matTooltip","click"]],template:function(_,C){if(1&_&&(w.YNc(0,Le,1,0,"ng-template",null,0,w.W1O),w.TgZ(2,"div"),w.YNc(3,we,54,74,"div",1),w.qZA()),2&_){const h=w.MAs(1);w.xp6(2),w.Gre("",C.theme," h-100 position-relative"),w.xp6(1),w.Q6J("perunWebAppsLoader",C.loading)("perunWebAppsLoaderIndicator",h)}},dependencies:[P.sg,P.O5,F.ey,T.Nt,B.KE,B.TO,I.IC,M.Fj,M.JJ,M.oH,M.On,q.Hw,ue.lW,ue.RK,j.uX,j.SP,Q.oG,e.uh,e.xY,e.H8,be.gD,me.gM,fe.b,re.Y,v.$x,V.e,ee,P.gd,x.X$,ie.c,xe,Ye],styles:[".mat-mdc-form-field-error-wrapper{position:relative!important;word-break:break-word}"]}),r})()},19352:(Xe,ae,p)=>{"use strict";p.d(ae,{H:()=>qe});var e=p(61744),f=p(7274),A=p(80279),S=p(30671),m=p(9244),M=p(21029),w=p(36895),x=p(94650),P=p(97392),F=p(4859),T=p(10266),B=p(97403),I=p(73358),q=p(89383),ue=p(31359);function j(Ze,Pe){1&Ze&&x._UZ(0,"perun-web-apps-loading-dialog")}function Q(Ze,Pe){1&Ze&&(x.TgZ(0,"th",17),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&Ze&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function be(Ze,Pe){if(1&Ze&&(x.TgZ(0,"td",18),x._uU(1),x.qZA()),2&Ze){const se=Pe.$implicit;x.xp6(1),x.Oqu(se.user.id)}}function me(Ze,Pe){1&Ze&&(x.TgZ(0,"th",17),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&Ze&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function fe(Ze,Pe){if(1&Ze&&(x.TgZ(0,"td",18),x._uU(1),x.ALo(2,"userFullName"),x.qZA()),2&Ze){const se=Pe.$implicit;x.xp6(1),x.Oqu(x.lcZ(2,1,se.user))}}function re(Ze,Pe){1&Ze&&(x.TgZ(0,"th",17),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&Ze&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function v(Ze,Pe){if(1&Ze){const se=x.EpF();x.TgZ(0,"button",21),x.NdJ("click",function(){x.CHM(se);const U=x.oxw().$implicit,$=x.oxw(2);return x.KtG($.changeExpiration(U))}),x.TgZ(1,"mat-icon"),x._uU(2," today "),x.qZA()()}}function V(Ze,Pe){if(1&Ze&&(x.TgZ(0,"td",19)(1,"span"),x._uU(2),x.qZA(),x.YNc(3,v,3,0,"button",20),x.qZA()),2&Ze){const se=Pe.$implicit,N=x.oxw(2);x.xp6(2),x.Oqu(N.parseDate(se.validityTo)),x.xp6(1),x.Q6J("ngIf",N.isExpirationAuthorized(se))}}function W(Ze,Pe){1&Ze&&x._UZ(0,"th",17)}function ee(Ze,Pe){1&Ze&&(x.TgZ(0,"mat-icon",26),x._uU(1,"clear"),x.qZA())}function ie(Ze,Pe){1&Ze&&(x.TgZ(0,"mat-icon"),x._uU(1,"settings_backup_restore"),x.qZA())}function xe(Ze,Pe){if(1&Ze){const se=x.EpF();x.TgZ(0,"td",18)(1,"div",22),x.ALo(2,"translate"),x.TgZ(3,"button",23),x.NdJ("click",function(){const $=x.CHM(se).$implicit,ce=x.oxw(2);return x.KtG(ce.markSponsor($))}),x.YNc(4,ee,2,0,"mat-icon",24),x.YNc(5,ie,2,0,"mat-icon",25),x.qZA()()()}if(2&Ze){const se=Pe.$implicit,N=x.oxw(2);x.xp6(1),x.s9C("matTooltip",x.lcZ(2,7,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),x.Q6J("matTooltipDisabled",N.isRemoveAuthorized(se))("matTooltipPosition","above"),x.xp6(2),x.Q2q("data-cy","",se.user.firstName,"-unsponsor-mark-button"),x.Q6J("disabled",!N.isRemoveAuthorized(se)),x.xp6(1),x.Q6J("ngIf",!N.sponsorsToRemove.has(se.user.id)),x.xp6(1),x.Q6J("ngIf",N.sponsorsToRemove.has(se.user.id))}}function Ye(Ze,Pe){1&Ze&&x._UZ(0,"tr",27)}function Le(Ze,Pe){if(1&Ze&&x._UZ(0,"tr",28),2&Ze){const se=Pe.$implicit,N=x.oxw(2);x.ekj("make-red",N.sponsorsToRemove.has(se.user.id))}}function $e(Ze,Pe){if(1&Ze){const se=x.EpF();x.TgZ(0,"div")(1,"h1",2),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"div",3)(5,"table",4),x.ynx(6,5),x.YNc(7,Q,3,3,"th",6),x.YNc(8,be,2,1,"td",7),x.BQk(),x.ynx(9,8),x.YNc(10,me,3,3,"th",6),x.YNc(11,fe,3,3,"td",7),x.BQk(),x.ynx(12,9),x.YNc(13,re,3,3,"th",6),x.YNc(14,V,4,2,"td",10),x.BQk(),x.ynx(15,11),x.YNc(16,W,1,0,"th",6),x.YNc(17,xe,6,9,"td",7),x.BQk(),x.YNc(18,Ye,1,0,"tr",12),x.YNc(19,Le,1,2,"tr",13),x.qZA()(),x.TgZ(20,"div",14)(21,"button",15),x.NdJ("click",function(){x.CHM(se);const U=x.oxw();return x.KtG(U.onCancel())}),x._uU(22),x.ALo(23,"translate"),x.qZA(),x.TgZ(24,"button",16),x.NdJ("click",function(){x.CHM(se);const U=x.oxw();return x.KtG(U.onSubmit())}),x._uU(25),x.ALo(26,"translate"),x.qZA()()()}if(2&Ze){const se=x.oxw();x.xp6(2),x.Oqu(x.lcZ(3,7,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),x.xp6(3),x.Q6J("dataSource",se.dataSource),x.xp6(13),x.Q6J("matHeaderRowDef",se.displayedColumns),x.xp6(1),x.Q6J("matRowDefColumns",se.displayedColumns),x.xp6(3),x.hij(" ",x.lcZ(23,9,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),x.xp6(2),x.Q6J("disabled",se.loading||0===se.sponsorsToRemove.size),x.xp6(1),x.hij(" ",x.lcZ(26,11,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," ")}}let qe=(()=>{class Ze{constructor(se,N,U,$,ce,De,he,Oe){this.dialogRef=se,this.data=N,this.memberService=U,this.userService=$,this.notificator=ce,this.authResolver=De,this.translate=he,this.dialog=Oe,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.sponsorsToRemove=new Set,this.expirationChanged=!1}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new S.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(se){this.sponsorsToRemove.has(se.user.id)?this.sponsorsToRemove.delete(se.user.id):this.sponsorsToRemove.add(se.user.id)}onSubmit(){this.loading=!0;const se=Array.from(this.sponsorsToRemove);this.removeSponsors(se)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(se){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[se.user])}isExpirationAuthorized(se){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[se.user,this.vo])}parseDate(se){return null===se?"Never expire":(0,w.p6)(se,"d.M.y","en")}changeExpiration(se){const N=(0,m.kZ)();N.width="400px",N.data={memberId:this.data.member.id,sponsor:se},this.dialog.open(M.hd,N).afterClosed().subscribe($=>{$&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(ce=>{this.sponsors=ce,this.dataSource=new S.by(this.sponsors),this.loading=!1}))})}removeSponsors(se){this.memberService.removeSponsors(this.data.member.id,se).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return Ze.\u0275fac=function(se){return new(se||Ze)(x.Y36(f.so),x.Y36(f.WI),x.Y36(e.uq),x.Y36(e.Fv),x.Y36(A.V6),x.Y36(A.x4),x.Y36(A.Te),x.Y36(f.uw))},Ze.\u0275cmp=x.Xpm({type:Ze,selectors:[["app-edit-member-sponsors-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expiration"],["class","align-elements","mat-cell","",4,"matCellDef"],["matColumnDef","remove"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"make-red",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","unsponsor-confirm-button","color","warn","mat-flat-button","",1,"ms-2",3,"disabled","click"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"align-elements"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-icon-button","",1,"btn-delete",3,"disabled","click"],["class","icn-delete","color","warn",4,"ngIf"],[4,"ngIf"],["color","warn",1,"icn-delete"],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(se,N){if(1&se&&(x.YNc(0,j,1,0,"ng-template",null,0,x.W1O),x.TgZ(2,"div"),x.YNc(3,$e,27,13,"div",1),x.qZA()),2&se){const U=x.MAs(1);x.xp6(2),x.Gre("",N.theme," position-relative"),x.xp6(1),x.Q6J("perunWebAppsLoader",N.loading)("perunWebAppsLoaderIndicator",U)}},dependencies:[w.O5,P.Hw,F.lW,F.RK,S.BZ,S.fO,S.as,S.w1,S.Dz,S.nj,S.ge,S.ev,S.XQ,S.Gk,f.uh,f.xY,f.H8,T.gM,B.b,I.e,q.X$,ue.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:gray}"]}),Ze})()},74414:(Xe,ae,p)=>{"use strict";p.d(ae,{R:()=>v});var e=p(7274),f=p(24006),A=p(61744),S=p(80279),m=p(94650),M=p(89383),w=p(36895),x=p(3238),P=p(284),F=p(59549),T=p(4859),B=p(84385),I=p(97403),q=p(73358);function ue(V,W){1&V&&m._UZ(0,"perun-web-apps-loading-dialog")}function j(V,W){1&V&&(m.TgZ(0,"div",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&V&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function Q(V,W){1&V&&(m.TgZ(0,"div",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&V&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function be(V,W){1&V&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&V&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")," "))}function me(V,W){1&V&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&V&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")," "))}function fe(V,W){if(1&V&&(m.TgZ(0,"mat-option",15),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"uppercase"),m.qZA()),2&V){const ee=W.$implicit;m.s9C("value",ee),m.xp6(1),m.Oqu(m.lcZ(2,2,m.lcZ(3,4,"SHARED_LIB.LANGUAGES."+ee)))}}function re(V,W){if(1&V){const ee=m.EpF();m.TgZ(0,"div")(1,"h1",2),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",3),m.YNc(5,j,3,3,"div",4),m.YNc(6,Q,3,3,"div",4),m.TgZ(7,"mat-form-field",5),m._UZ(8,"input",6),m.ALo(9,"translate"),m.YNc(10,be,3,3,"mat-error",7),m.qZA(),m.TgZ(11,"mat-form-field",5)(12,"mat-label"),m._uU(13),m.ALo(14,"translate"),m.qZA(),m._UZ(15,"textarea",8),m.YNc(16,me,3,3,"mat-error",7),m.qZA(),m.TgZ(17,"mat-form-field",5)(18,"mat-label"),m._uU(19),m.ALo(20,"translate"),m.qZA(),m.TgZ(21,"mat-select",9),m.NdJ("valueChange",function(xe){m.CHM(ee);const Ye=m.oxw();return m.KtG(Ye.currentLanguage=xe)}),m.YNc(22,fe,4,6,"mat-option",10),m.qZA()()(),m.TgZ(23,"div",11)(24,"button",12),m.NdJ("click",function(){m.CHM(ee);const xe=m.oxw();return m.KtG(xe.onCancel())}),m._uU(25),m.ALo(26,"translate"),m.qZA(),m.TgZ(27,"button",13),m.NdJ("click",function(){m.CHM(ee);const xe=m.oxw();return m.KtG(xe.onSubmit())}),m._uU(28),m.ALo(29,"translate"),m.qZA()()()}if(2&V){const ee=m.oxw();m.xp6(2),m.Oqu(m.lcZ(3,15,"DIALOGS.INVITE_MEMBER.TITLE")),m.xp6(3),m.Q6J("ngIf",!ee.data.groupId),m.xp6(1),m.Q6J("ngIf",ee.data.groupId),m.xp6(2),m.s9C("placeholder",m.lcZ(9,17,"DIALOGS.INVITE_MEMBER.NAME")),m.Q6J("formControl",ee.name),m.xp6(2),m.Q6J("ngIf",ee.name.invalid),m.xp6(3),m.Oqu(m.lcZ(14,19,"DIALOGS.INVITE_MEMBER.EMAIL")),m.xp6(2),m.Q6J("formControl",ee.emailForm),m.xp6(1),m.Q6J("ngIf",ee.emailForm.invalid),m.xp6(3),m.Oqu(m.lcZ(20,21,"DIALOGS.INVITE_MEMBER.LANGUAGE")),m.xp6(2),m.Q6J("value",ee.currentLanguage),m.xp6(1),m.Q6J("ngForOf",ee.languages),m.xp6(3),m.hij(" ",m.lcZ(26,23,"DIALOGS.INVITE_MEMBER.CANCEL")," "),m.xp6(2),m.Q6J("disabled",ee.emailForm.invalid||ee.name.invalid||ee.loading),m.xp6(1),m.hij(" ",m.lcZ(29,25,"DIALOGS.INVITE_MEMBER.INVITE")," ")}}let v=(()=>{class V{constructor(ee,ie,xe,Ye,Le,$e){this.dialogRef=ee,this.data=ie,this.registrarManager=xe,this.notificator=Ye,this.translate=Le,this.store=$e,this.emailForm=new f.NI("",[f.kI.required,f.kI.email.bind(this)]),this.languages=["en"],this.currentLanguage="en",this.name=new f.NI("",f.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.emailForm.invalid||this.name.invalid||(this.data.voId&&!this.data.groupId?(this.loading=!0,this.registrarManager.sendInvitation(this.emailForm.value,this.currentLanguage,this.data.voId,this.name.value).subscribe({next:()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(ee=>{this.notificator.showSuccess(ee),this.dialogRef.close(!0)})},error:()=>this.loading=!1})):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.currentLanguage,this.data.voId,this.data.groupId,this.name.value).subscribe({next:()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(ee=>{this.notificator.showSuccess(ee),this.dialogRef.close(!0)})},error:()=>this.loading=!1})))}}return V.\u0275fac=function(ee){return new(ee||V)(m.Y36(e.so),m.Y36(e.WI),m.Y36(A.tk),m.Y36(S.V6),m.Y36(M.sK),m.Y36(S.d6))},V.\u0275cmp=m.Xpm({type:V,selectors:[["app-invite-member-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],["class","font-italic",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["matInput","","required","",3,"formControl"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],[1,"font-italic"],[3,"value"]],template:function(ee,ie){if(1&ee&&(m.YNc(0,ue,1,0,"ng-template",null,0,m.W1O),m.TgZ(2,"div"),m.YNc(3,re,30,27,"div",1),m.qZA()),2&ee){const xe=m.MAs(1);m.xp6(2),m.Gre("",ie.theme," position-relative"),m.xp6(1),m.Q6J("perunWebAppsLoader",ie.loading)("perunWebAppsLoaderIndicator",xe)}},dependencies:[w.sg,w.O5,x.ey,P.Nt,F.KE,F.hX,F.TO,f.Fj,f.JJ,f.Q7,f.oH,T.lW,e.uh,e.xY,e.H8,B.gD,I.b,q.e,w.gd,M.X$]}),V})()},87842:(Xe,ae,p)=>{"use strict";p.d(ae,{c:()=>Ye});var e=p(7274),f=p(24006),A=p(68675),S=p(54004),m=p(36769),M=p(80279),w=p(61744),x=p(94650),P=p(89383),F=p(36895),T=p(47957),B=p(3238),I=p(284),q=p(59549),ue=p(4859),j=p(10266),Q=p(71948),be=p(98380),me=p(97403),fe=p(73358);function re(Le,$e){1&Le&&x._UZ(0,"perun-web-apps-loading-dialog")}function v(Le,$e){1&Le&&(x.TgZ(0,"mat-radio-button",13),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&Le&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function V(Le,$e){1&Le&&(x.TgZ(0,"mat-radio-button",14),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&Le&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function W(Le,$e){1&Le&&(x.TgZ(0,"perun-web-apps-alert",15),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&Le&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function ee(Le,$e){if(1&Le){const qe=x.EpF();x.TgZ(0,"mat-option",21),x.NdJ("click",function(){const se=x.CHM(qe).$implicit,N=x.oxw(3);return x.KtG(N.selectedGroup=se)}),x.TgZ(1,"span"),x._uU(2),x.qZA()()}if(2&Le){const qe=$e.$implicit;x.Q6J("value",qe),x.xp6(2),x.Oqu(qe.name)}}function ie(Le,$e){if(1&Le){const qe=x.EpF();x.TgZ(0,"mat-form-field",16)(1,"mat-label"),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"input",17),x.NdJ("change",function(){x.CHM(qe);const Pe=x.oxw(2);return x.KtG(Pe.selectedGroup=null)}),x.qZA(),x.TgZ(5,"mat-autocomplete",18,19),x.YNc(7,ee,3,2,"mat-option",20),x.ALo(8,"async"),x.qZA()()}if(2&Le){const qe=x.MAs(6),Ze=x.oxw(2);x.Q6J("@openClose","toGroup"===Ze.moveOption?"open":"closed"),x.xp6(2),x.Oqu(x.lcZ(3,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),x.xp6(2),x.Q6J("formControl",Ze.otherGroupsCtrl)("matAutocomplete",qe),x.xp6(1),x.Q6J("displayWith",Ze.displayFn),x.xp6(2),x.Q6J("ngForOf",x.lcZ(8,8,Ze.filteredGroups))}}function xe(Le,$e){if(1&Le){const qe=x.EpF();x.TgZ(0,"div")(1,"h1",2),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"div",3)(5,"p"),x._uU(6),x.ALo(7,"translate"),x.qZA(),x.TgZ(8,"mat-radio-group",4),x.NdJ("ngModelChange",function(Pe){x.CHM(qe);const se=x.oxw();return x.KtG(se.moveOption=Pe)}),x.YNc(9,v,3,3,"mat-radio-button",5),x.YNc(10,V,3,3,"mat-radio-button",6),x.qZA(),x.YNc(11,W,3,3,"perun-web-apps-alert",7),x.YNc(12,ie,9,10,"mat-form-field",8),x.qZA(),x.TgZ(13,"div",9)(14,"button",10),x.NdJ("click",function(){x.CHM(qe);const Pe=x.oxw();return x.KtG(Pe.close())}),x._uU(15),x.ALo(16,"translate"),x.qZA(),x.TgZ(17,"span",11),x.ALo(18,"translate"),x.TgZ(19,"button",12),x.NdJ("click",function(){x.CHM(qe);const Pe=x.oxw();return x.KtG(Pe.confirm())}),x._uU(20),x.ALo(21,"translate"),x.qZA()()()()}if(2&Le){const qe=x.oxw();x.xp6(2),x.AsE("",x.lcZ(3,14,"DIALOGS.MOVE_GROUP.TITLE"),"",qe.data.group.name,""),x.xp6(4),x.hij(" ",x.lcZ(7,16,"DIALOGS.MOVE_GROUP.INFO")," "),x.xp6(2),x.Q6J("ngModel",qe.moveOption),x.xp6(1),x.Q6J("ngIf",!qe.toRootOptionDisabled),x.xp6(1),x.Q6J("ngIf",!qe.toGroupOptionDisabled),x.xp6(1),x.Q6J("ngIf",qe.toRootOptionDisabled&&qe.toGroupOptionDisabled),x.xp6(1),x.Q6J("ngIf",!qe.toGroupOptionDisabled),x.xp6(3),x.hij(" ",x.lcZ(16,18,"DIALOGS.MOVE_GROUP.CANCEL")," "),x.xp6(2),x.s9C("matTooltip",x.lcZ(18,20,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),x.Q6J("matTooltipDisabled",null!==qe.selectedGroup||"toRoot"===qe.moveOption)("matTooltipPosition","above"),x.xp6(2),x.Q6J("disabled",(qe.otherGroupsCtrl.invalid||null===qe.selectedGroup)&&"toRoot"!==qe.moveOption||qe.loading),x.xp6(1),x.hij(" ",x.lcZ(21,22,"DIALOGS.MOVE_GROUP.CONFIRM")," ")}}let Ye=(()=>{class Le{constructor(qe,Ze,Pe,se,N,U,$){this.dialogRef=qe,this.data=Ze,this.groupService=Pe,this.notificator=se,this.translate=N,this.apiRequest=U,this.authResolver=$,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new f.p4(null,[f.kI.required.bind(this)]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(ce=>this.successMessage=ce),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(ce=>this.errorMessage=ce)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(qe=>{this.otherGroups=qe.filter(Ze=>Ze.id!==this.data.group.id&&"members"!==Ze.name&&this.canMove(Ze)),0===this.otherGroups.length&&(this.toGroupOptionDisabled=!0),(null===this.data.group.parentGroupId||!this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.data.group]))&&(this.toRootOptionDisabled=!0,this.moveOption="toGroup"),this.filteredGroups=this.otherGroupsCtrl.valueChanges.pipe((0,A.O)(""),(0,S.U)(Ze=>Ze?this._filterGroups(Ze):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(qe){return qe&&qe.name}canMove(qe){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[qe,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,qe])}close(){this.dialogRef.close()}confirm(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},qe=>{this.notificator.showRPCError(qe,this.errorMessage),this.dialogRef.close(!1)})}_filterGroups(qe){if("object"==typeof qe)return[];const Ze=qe.toLowerCase();return qe?this.otherGroups.filter(Pe=>Pe.name.toLowerCase().includes(Ze)):this.otherGroups}}return Le.\u0275fac=function(qe){return new(qe||Le)(x.Y36(e.so),x.Y36(e.WI),x.Y36(w.ff),x.Y36(M.V6),x.Y36(P.sK),x.Y36(M.F5),x.Y36(M.x4))},Le.\u0275cmp=x.Xpm({type:Le,selectors:[["app-move-group-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","class","move-options","value","toRoot",4,"ngIf"],["color","primary","value","toGroup",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","w-100 mt-2",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["color","primary","value","toGroup"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"]],template:function(qe,Ze){if(1&qe&&(x.YNc(0,re,1,0,"ng-template",null,0,x.W1O),x.TgZ(2,"div"),x.YNc(3,xe,22,24,"div",1),x.qZA()),2&qe){const Pe=x.MAs(1);x.xp6(2),x.Gre("",Ze.data.theme," position-relative"),x.xp6(1),x.Q6J("perunWebAppsLoader",Ze.loading)("perunWebAppsLoaderIndicator",Pe)}},dependencies:[F.sg,F.O5,T.XC,B.ey,T.ZL,I.Nt,q.KE,q.hX,f.Fj,f.JJ,f.Q7,f.oH,f.On,ue.lW,e.uh,e.xY,e.H8,j.gM,Q.VQ,Q.U0,be.w,me.b,fe.e,F.Ov,P.X$],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[m.BQ]}}),Le})()},58964:(Xe,ae,p)=>{"use strict";p.d(ae,{m:()=>be});var e=p(7274),f=p(61744),A=p(80279),S=p(94650),m=p(89383),M=p(36895),w=p(3238),x=p(59549),P=p(4859),F=p(84385),T=p(97403),B=p(73358);function I(me,fe){1&me&&S._UZ(0,"perun-web-apps-loading-dialog")}function q(me,fe){if(1&me&&(S.TgZ(0,"mat-option",12),S._uU(1),S.qZA()),2&me){const re=fe.$implicit;S.Q6J("value",re),S.xp6(1),S.hij(" ",re.friendlyNameParameter," ")}}function ue(me,fe){if(1&me&&(S.TgZ(0,"mat-option",12),S._uU(1),S.ALo(2,"translate"),S.ALo(3,"uppercase"),S.qZA()),2&me){const re=fe.$implicit;S.Q6J("value",re),S.xp6(1),S.hij(" ",S.lcZ(2,2,S.lcZ(3,4,"SHARED_LIB.LANGUAGES."+re))," ")}}function j(me,fe){if(1&me&&(S.TgZ(0,"mat-option",12),S._uU(1),S.qZA()),2&me){const re=fe.$implicit;S.Q6J("value",re),S.xp6(1),S.hij(" ",re," ")}}function Q(me,fe){if(1&me){const re=S.EpF();S.TgZ(0,"div")(1,"h1",3),S._uU(2),S.ALo(3,"translate"),S.qZA(),S.TgZ(4,"div",4)(5,"mat-form-field")(6,"mat-label"),S._uU(7),S.ALo(8,"translate"),S.qZA(),S.TgZ(9,"mat-select",5),S.NdJ("valueChange",function(V){S.CHM(re);const W=S.oxw();return S.KtG(W.selectedLogin=V)}),S.YNc(10,q,2,2,"mat-option",6),S.qZA()(),S.TgZ(11,"mat-form-field")(12,"mat-label"),S._uU(13),S.ALo(14,"translate"),S.qZA(),S.TgZ(15,"mat-select",5),S.NdJ("valueChange",function(V){S.CHM(re);const W=S.oxw();return S.KtG(W.selectedLang=V)}),S.YNc(16,ue,4,6,"mat-option",6),S.qZA()(),S.TgZ(17,"mat-form-field")(18,"mat-label"),S._uU(19),S.ALo(20,"translate"),S.qZA(),S.TgZ(21,"mat-select",5),S.NdJ("valueChange",function(V){S.CHM(re);const W=S.oxw();return S.KtG(W.selectedMail=V)}),S.YNc(22,j,2,2,"mat-option",6),S.qZA()(),S.TgZ(23,"div",7)(24,"p",8),S._uU(25),S.ALo(26,"translate"),S.qZA(),S.TgZ(27,"p"),S._uU(28),S.qZA()()(),S.TgZ(29,"div",9)(30,"button",10),S.NdJ("click",function(){S.CHM(re);const V=S.oxw();return S.KtG(V.onCancel())}),S._uU(31),S.ALo(32,"translate"),S.qZA(),S.TgZ(33,"button",11),S.NdJ("click",function(){S.CHM(re);const V=S.oxw();return S.KtG(V.onSubmit())}),S._uU(34),S.ALo(35,"translate"),S.qZA()()()}if(2&me){const re=S.oxw();S.xp6(2),S.Oqu(S.lcZ(3,15,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),S.xp6(5),S.Oqu(S.lcZ(8,17,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),S.xp6(2),S.Q6J("value",re.selectedLogin),S.xp6(1),S.Q6J("ngForOf",re.logins),S.xp6(3),S.Oqu(S.lcZ(14,19,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),S.xp6(2),S.Q6J("value",re.selectedLang),S.xp6(1),S.Q6J("ngForOf",re.languages),S.xp6(3),S.Oqu(S.lcZ(20,21,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),S.xp6(2),S.Q6J("value",re.selectedMail),S.xp6(1),S.Q6J("ngForOf",re.mails),S.xp6(3),S.Oqu(S.lcZ(26,23,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),S.xp6(3),S.Oqu(re.selectedLogin.value),S.xp6(3),S.hij(" ",S.lcZ(32,25,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),S.xp6(2),S.Q6J("disabled",re.loading),S.xp6(1),S.hij(" ",S.lcZ(35,27,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," ")}}let be=(()=>{class me{constructor(re,v,V,W,ee,ie,xe){this.dialogRef=re,this.data=v,this.membersManagerService=V,this.attributesManagerService=W,this.store=ee,this.translate=ie,this.notificator=xe,this.languages=this.store.getProperty("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],ie.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(Ye=>this.successMessage=Ye)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const re=this.selectedLogin.friendlyNameParameter,V=window.location.href.split("/"),W=V[0]+"//"+V[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,re,this.pwdMails.get(this.selectedMail),this.selectedLang,W).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}getMailAttributes(){this.pwdMails.set("user:preferredMail","urn:perun:user:attribute-def:def:preferredMail"),this.pwdMails.set("member:mail","urn:perun:member:attribute-def:def:mail"),this.mails=Array.from(this.pwdMails.keys()),this.selectedMail="user:preferredMail"}}return me.\u0275fac=function(re){return new(re||me)(S.Y36(e.so),S.Y36(e.WI),S.Y36(f.uq),S.Y36(f.H8),S.Y36(A.d6),S.Y36(m.sK),S.Y36(A.V6))},me.\u0275cmp=S.Xpm({type:me,selectors:[["app-password-reset-request-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"member-theme","position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"column-size","ms-3"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","reset-passwd-confirm-button","color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],[3,"value"]],template:function(re,v){if(1&re&&(S.YNc(0,I,1,0,"ng-template",null,0,S.W1O),S.TgZ(2,"div",1),S.YNc(3,Q,36,29,"div",2),S.qZA()),2&re){const V=S.MAs(1);S.xp6(3),S.Q6J("perunWebAppsLoader",v.loading)("perunWebAppsLoaderIndicator",V)}},dependencies:[M.sg,w.ey,x.KE,x.hX,P.lW,e.uh,e.xY,e.H8,F.gD,T.b,B.e,M.gd,m.X$],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),me})()},53455:(Xe,ae,p)=>{"use strict";p.d(ae,{X:()=>me});var e=p(7274),f=p(30671),A=p(80279),S=p(61744),m=p(94650),M=p(89383),w=p(4859),x=p(97403),P=p(73358),F=p(31359);function T(fe,re){1&fe&&m._UZ(0,"perun-web-apps-loading-dialog")}function B(fe,re){1&fe&&m._UZ(0,"th",15)}function I(fe,re){if(1&fe&&(m.TgZ(0,"td",16),m._uU(1),m.qZA()),2&fe){const v=re.$implicit;m.xp6(1),m.Oqu(v.id)}}function q(fe,re){1&fe&&m._UZ(0,"th",15)}function ue(fe,re){if(1&fe&&(m.TgZ(0,"td",16),m._uU(1),m.ALo(2,"userFullName"),m.qZA()),2&fe){const v=re.$implicit;m.xp6(1),m.Oqu(m.lcZ(2,1,v.user))}}function j(fe,re){1&fe&&m._UZ(0,"tr",17)}function Q(fe,re){1&fe&&m._UZ(0,"tr",18)}function be(fe,re){if(1&fe){const v=m.EpF();m.TgZ(0,"div")(1,"h1",2),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",3)(5,"p"),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"div",4),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.TgZ(11,"table",5),m.ynx(12,6),m.YNc(13,B,1,0,"th",7),m.YNc(14,I,2,1,"td",8),m.BQk(),m.ynx(15,9),m.YNc(16,q,1,0,"th",7),m.YNc(17,ue,3,3,"td",8),m.BQk(),m.YNc(18,j,1,0,"tr",10),m.YNc(19,Q,1,0,"tr",11),m.qZA()(),m.TgZ(20,"div",12)(21,"button",13),m.NdJ("click",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.onCancel())}),m._uU(22),m.ALo(23,"translate"),m.qZA(),m.TgZ(24,"button",14),m.NdJ("click",function(){m.CHM(v);const W=m.oxw();return m.KtG(W.onSubmit())}),m._uU(25),m.ALo(26,"translate"),m.qZA()()()}if(2&fe){const v=m.oxw();m.xp6(2),m.Oqu(m.lcZ(3,8,"DIALOGS.REMOVE_MEMBERS.TITLE")),m.xp6(4),m.hij(" ",m.lcZ(7,10,v.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),m.xp6(3),m.hij(" ",m.lcZ(10,12,"DIALOGS.REMOVE_MEMBERS.ASK")," "),m.xp6(2),m.Q6J("dataSource",v.dataSource),m.xp6(7),m.Q6J("matHeaderRowDef",v.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",v.displayedColumns),m.xp6(3),m.hij(" ",m.lcZ(23,14,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),m.xp6(3),m.hij(" ",m.lcZ(26,16,v.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let me=(()=>{class fe{constructor(v,V,W,ee,ie,xe){this.dialogRef=v,this.data=V,this.membersService=W,this.groupService=ee,this.notificator=ie,this.translate=xe,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new f.by(this.data.members)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map(v=>v.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(v=>v.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const v=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(v),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return fe.\u0275fac=function(v){return new(v||fe)(m.Y36(e.so),m.Y36(e.WI),m.Y36(S.uq),m.Y36(S.ff),m.Y36(A.V6),m.Y36(M.sK))},fe.\u0275cmp=m.Xpm({type:fe,selectors:[["app-remove-members-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"fw-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","warn","data-cy","remove-members-dialog","mat-flat-button","",1,"ms-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(v,V){if(1&v&&(m.YNc(0,T,1,0,"ng-template",null,0,m.W1O),m.TgZ(2,"div"),m.YNc(3,be,27,18,"div",1),m.qZA()),2&v){const W=m.MAs(1);m.xp6(2),m.Gre("",V.theme," position-relative"),m.xp6(1),m.Q6J("perunWebAppsLoader",V.loading)("perunWebAppsLoaderIndicator",W)}},dependencies:[w.lW,f.BZ,f.fO,f.as,f.w1,f.Dz,f.nj,f.ge,f.ev,f.XQ,f.Gk,e.uh,e.xY,e.H8,x.b,P.e,M.X$,F.d]}),fe})()},533:(Xe,ae,p)=>{"use strict";p.d(ae,{f:()=>x});var e=p(7274),f=p(30671),A=p(80279),S=p(61744),m=p(94650),M=p(89383),w=p(90995);let x=(()=>{class P{constructor(T,B,I,q,ue){this.dialogRef=T,this.data=B,this.notificator=I,this.translate=q,this.resourcesManager=ue,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new f.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(T=>{this.loading=!1,this.notificator.showSuccess(T),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(T){T.deleted?this.onDelete():this.onCancel()}}return P.\u0275fac=function(T){return new(T||P)(m.Y36(e.so),m.Y36(e.WI),m.Y36(A.V6),m.Y36(M.sK),m.Y36(S.xk))},P.\u0275cmp=m.Xpm({type:P,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(T,B){1&T&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(q){return B.onSubmit(q)}),m.qZA()()),2&T&&(m.Tol(B.theme),m.xp6(1),m.Q6J("entityNames",B.dataSource)("entityType","resources")("disableForce",!0)("loading",B.loading))},dependencies:[w.e]}),P})()},11717:(Xe,ae,p)=>{"use strict";p.d(ae,{o:()=>x});var e=p(7274),f=p(30671),A=p(80279),S=p(61744),m=p(94650),M=p(89383),w=p(90995);let x=(()=>{class P{constructor(T,B,I,q,ue){this.dialogRef=T,this.data=B,this.notificator=I,this.voService=q,this.translate=ue,this.force=!1,this.displayedColumns=["name"],this.relations=[],ue.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(j=>this.successMessage=j)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new f.by(this.data.vos),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.MEMBER_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.RESOURCE_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.voService.deleteVo(this.data.vos[0].id,this.force).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(T){this.force=T.force,T.deleted?this.onDelete():this.onCancel()}}return P.\u0275fac=function(T){return new(T||P)(m.Y36(e.so),m.Y36(e.WI),m.Y36(A.V6),m.Y36(S.YF),m.Y36(M.sK))},P.\u0275cmp=m.Xpm({type:P,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(T,B){1&T&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(q){return B.onSubmit(q)}),m.qZA()()),2&T&&(m.Tol(B.theme),m.xp6(1),m.Q6J("entityNames",B.dataSource)("entityType","organizations")("loading",B.loading)("relations",B.relations))},dependencies:[w.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),P})()},91828:(Xe,ae,p)=>{"use strict";p.d(ae,{b:()=>ie});var e=p(7274),f=p(80279),A=p(61744),S=p(36895),m=p(24006),M=p(95017),w=p(64080),x=p(10036),P=p(94650),F=p(284),T=p(59549),B=p(4859),I=p(98380),q=p(68530),ue=p(38383),j=p(73358),Q=p(75162),be=p(39158),me=p(89383);function fe(xe,Ye){if(1&xe){const Le=P.EpF();P.TgZ(0,"mat-form-field",12)(1,"mat-label"),P._uU(2),P.ALo(3,"translate"),P.qZA(),P.TgZ(4,"input",13),P.NdJ("keyup.enter",function(){P.CHM(Le);const qe=P.oxw();return P.KtG(qe.onSearchByString())}),P.qZA(),P.TgZ(5,"mat-error"),P._uU(6),P.ALo(7,"translate"),P.qZA()()}if(2&xe){const Le=P.oxw();P.xp6(2),P.Oqu(P.lcZ(3,3,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),P.xp6(2),P.Q6J("formControl",Le.searchCtrl),P.xp6(2),P.hij(" ",P.lcZ(7,5,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," ")}}function re(xe,Ye){if(1&xe){const Le=P.EpF();P.TgZ(0,"button",14),P.NdJ("click",function(){P.CHM(Le);const qe=P.oxw();return P.KtG(qe.onSearchByString())}),P._uU(1),P.ALo(2,"translate"),P.qZA()}if(2&xe){const Le=P.oxw();P.Q6J("disabled",Le.loading),P.xp6(1),P.hij(" ",P.lcZ(2,2,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," ")}}function v(xe,Ye){1&xe&&P._UZ(0,"perun-web-apps-loading-table")}function V(xe,Ye){if(1&xe&&P._UZ(0,"perun-web-apps-members-list",17),2&xe){const Le=P.oxw(2);P.Q6J("disableRouting",!0)("hidden",Le.loading)("disableStatusChange",!0)("members",Le.members)("selection",Le.selection)("displayedColumns",Le.displayedColumns)("tableId",Le.tableId)}}function W(xe,Ye){if(1&xe&&(P.TgZ(0,"div",15),P.YNc(1,V,1,7,"perun-web-apps-members-list",16),P.qZA()),2&xe){const Le=P.oxw(),$e=P.MAs(8);P.xp6(1),P.Q6J("perunWebAppsLoader",Le.loading)("perunWebAppsLoaderIndicator",$e)}}function ee(xe,Ye){1&xe&&(P.TgZ(0,"perun-web-apps-alert",18),P._uU(1),P.ALo(2,"translate"),P.qZA()),2&xe&&(P.xp6(1),P.hij(" ",P.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let ie=(()=>{class xe{constructor(Le,$e,qe,Ze,Pe,se){this.dialogRef=Le,this.data=$e,this.store=qe,this.membersService=Ze,this.notificator=Pe,this.translate=se,this.loading=!1,this.tableId=x.US,this.expiration="never",this.searchCtrl=new m.p4("",[m.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new M.Ov(!0,[]),this.selectedSponsor=null,this.sponsorType="self",this.minDate=new Date}ngOnInit(){this.theme=this.data.theme,this.serviceMemberId=this.data.serviceMemberId,this.displayedColumns=this.serviceMemberId?["checkbox","id","fullName","sponsored","email"]:["checkbox","id","fullName","status","sponsored","email"],this.serviceMemberId&&(this.searchCtrl.setValue(this.serviceMemberId),this.onSearchByString())}onCancel(){this.dialogRef.close(!1)}sponsor(Le){this.loading=!0;const $e="self"===this.sponsorType?this.store.getPerunPrincipal().user:this.selectedSponsor,qe=Le.map(Ze=>Ze.id);this.membersService.sponsorMembers(qe,$e.id,this.expiration).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}onSubmit(){this.loading=!0;const Le=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(Le)}setExpiration(Le){this.expiration="never"===Le?"never":(0,S.p6)(Le,"yyyy-MM-dd","en-GB")}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.firstSearchDone=!0,this.loading=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.data.voId,[w.r.MEMBER_DEF_EXPIRATION,w.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe({next:$e=>{this.members=$e,this.serviceMemberId&&this.selection.toggle($e[0]),this.loading=!1},error:()=>this.loading=!1}))}}return xe.\u0275fac=function(Le){return new(Le||xe)(P.Y36(e.so),P.Y36(e.WI),P.Y36(f.d6),P.Y36(A.uq),P.Y36(f.V6),P.Y36(f.Te))},xe.\u0275cmp=P.Xpm({type:xe,selectors:[["app-sponsor-existing-member-dialog"]],decls:25,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","me-2 search-field adjust-width",4,"ngIf"],["data-cy","sponsor-search-button","class","ms-auto","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["spinner",""],["class","position-relative",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"voId","voSponsors","sponsorTypeSelected","sponsorSelected"],[3,"minDate","datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","sponsor-member-button","color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],[1,"me-2","search-field","adjust-width"],["data-cy","sponsor-search-input","autocomplete","false","matInput","",3,"formControl","keyup.enter"],["data-cy","sponsor-search-button","color","accent","mat-flat-button","",1,"ms-auto",3,"disabled","click"],[1,"position-relative"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId"],["alert_type","info"]],template:function(Le,$e){1&Le&&(P.TgZ(0,"div")(1,"h1",0),P._uU(2),P.ALo(3,"translate"),P.qZA(),P.TgZ(4,"div",1),P.YNc(5,fe,8,7,"mat-form-field",2),P.YNc(6,re,3,4,"button",3),P.YNc(7,v,1,0,"ng-template",null,4,P.W1O),P.YNc(9,W,2,2,"div",5),P.YNc(10,ee,3,3,"perun-web-apps-alert",6),P.TgZ(11,"app-choose-sponsor",7),P.NdJ("sponsorTypeSelected",function(Ze){return $e.sponsorType=Ze})("sponsorSelected",function(Ze){return $e.selectedSponsor=Ze}),P.qZA(),P.TgZ(12,"div"),P._UZ(13,"br"),P.TgZ(14,"h6"),P._uU(15),P.ALo(16,"translate"),P.qZA(),P.TgZ(17,"perun-web-apps-expiration-select",8),P.NdJ("datePicker",function(Ze){return $e.setExpiration(Ze)}),P.qZA()()(),P.TgZ(18,"div",9)(19,"button",10),P.NdJ("click",function(){return $e.onCancel()}),P._uU(20),P.ALo(21,"translate"),P.qZA(),P.TgZ(22,"button",11),P.NdJ("click",function(){return $e.onSubmit()}),P._uU(23),P.ALo(24,"translate"),P.qZA()()()),2&Le&&(P.Tol($e.theme),P.xp6(2),P.Oqu(P.lcZ(3,15,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),P.xp6(3),P.Q6J("ngIf",!$e.serviceMemberId),P.xp6(1),P.Q6J("ngIf",!$e.serviceMemberId),P.xp6(3),P.Q6J("ngIf",$e.firstSearchDone),P.xp6(1),P.Q6J("ngIf",!$e.firstSearchDone),P.xp6(1),P.Q6J("voId",$e.data.voId)("voSponsors",$e.data.voSponsors),P.xp6(4),P.Oqu(P.lcZ(16,17,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),P.xp6(2),P.Q6J("minDate",$e.minDate),P.xp6(3),P.hij(" ",P.lcZ(21,19,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),P.xp6(2),P.Q6J("disabled",$e.loading||0===$e.selection.selected.length||"other"===$e.sponsorType&&!$e.selectedSponsor),P.xp6(1),P.hij(" ",P.lcZ(24,21,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},dependencies:[S.O5,F.Nt,T.KE,T.hX,T.TO,m.Fj,m.JJ,m.oH,B.lW,e.uh,e.xY,e.H8,I.w,q.K,ue.O,j.e,Q.c,be.l,me.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),xe})()},1186:(Xe,ae,p)=>{"use strict";p.d(ae,{E:()=>Q});var e=p(7274),f=p(61744),A=p(94650),S=p(36895),m=p(3238),M=p(284),w=p(59549),x=p(24006),P=p(4859),F=p(84385),T=p(97403),B=p(73358),I=p(89383);function q(be,me){1&be&&A._UZ(0,"perun-web-apps-loading-dialog")}function ue(be,me){if(1&be){const fe=A.EpF();A.TgZ(0,"div")(1,"mat-form-field",5)(2,"mat-label"),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.TgZ(5,"mat-select",6),A.NdJ("valueChange",function(v){A.CHM(fe);const V=A.oxw(2);return A.KtG(V.embeddedState=v)}),A.TgZ(6,"mat-option",7),A._uU(7),A.ALo(8,"translate"),A.qZA(),A.TgZ(9,"mat-option",8),A._uU(10),A.ALo(11,"translate"),A.qZA()()()()}if(2&be){const fe=A.oxw(2);A.xp6(3),A.hij("",A.lcZ(4,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),A.xp6(2),A.Q6J("value",fe.embeddedState),A.xp6(2),A.Oqu(A.lcZ(8,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(11,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function j(be,me){if(1&be){const fe=A.EpF();A.TgZ(0,"div")(1,"h1",2),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div",3)(5,"mat-form-field")(6,"mat-label"),A._uU(7),A.ALo(8,"translate"),A.qZA(),A.TgZ(9,"input",4),A.NdJ("ngModelChange",function(v){A.CHM(fe);const V=A.oxw();return A.KtG(V.moduleName=v)}),A.qZA()(),A.TgZ(10,"mat-form-field",5)(11,"mat-label"),A._uU(12),A.ALo(13,"translate"),A.qZA(),A.TgZ(14,"mat-select",6),A.NdJ("valueChange",function(v){A.CHM(fe);const V=A.oxw();return A.KtG(V.initialState=v)}),A.TgZ(15,"mat-option",7),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.TgZ(18,"mat-option",8),A._uU(19),A.ALo(20,"translate"),A.qZA()()(),A.TgZ(21,"mat-form-field",5)(22,"mat-label"),A._uU(23),A.ALo(24,"translate"),A.qZA(),A.TgZ(25,"mat-select",6),A.NdJ("valueChange",function(v){A.CHM(fe);const V=A.oxw();return A.KtG(V.extensionState=v)}),A.TgZ(26,"mat-option",7),A._uU(27),A.ALo(28,"translate"),A.qZA(),A.TgZ(29,"mat-option",8),A._uU(30),A.ALo(31,"translate"),A.qZA()()(),A.YNc(32,ue,12,10,"div",9),A.qZA(),A.TgZ(33,"div",10)(34,"button",11),A.NdJ("click",function(){A.CHM(fe);const v=A.oxw();return A.KtG(v.onCancel())}),A._uU(35),A.ALo(36,"translate"),A.qZA(),A.TgZ(37,"button",12),A.NdJ("click",function(){A.CHM(fe);const v=A.oxw();return A.KtG(v.submit())}),A._uU(38),A.ALo(39,"translate"),A.qZA()()()}if(2&be){const fe=A.oxw();A.xp6(2),A.Oqu(A.lcZ(3,15,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),A.xp6(5),A.Oqu(A.lcZ(8,17,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),A.xp6(2),A.Q6J("ngModel",fe.moduleName),A.xp6(3),A.hij("",A.lcZ(13,19,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),A.xp6(2),A.Q6J("value",fe.initialState),A.xp6(2),A.Oqu(A.lcZ(17,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(20,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),A.xp6(4),A.hij("",A.lcZ(24,25,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),A.xp6(2),A.Q6J("value",fe.extensionState),A.xp6(2),A.Oqu(A.lcZ(28,27,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(31,29,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),A.xp6(2),A.Q6J("ngIf","group"===fe.entity&&fe.autoRegistrationEnabled),A.xp6(3),A.hij(" ",A.lcZ(36,31,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),A.xp6(2),A.Q6J("disabled",fe.loading),A.xp6(1),A.hij(" ",A.lcZ(39,33,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," ")}}let Q=(()=>{class be{constructor(fe,re,v){this.dialogRef=fe,this.data=re,this.registrarManager=v,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.applicationForm=this.data.applicationForm,this.moduleName=this.applicationForm.moduleClassName,this.initialState=this.applicationForm.automaticApproval?"auto":"manual",this.extensionState=this.applicationForm.automaticApprovalExtension?"auto":"manual",this.embeddedState=this.applicationForm.automaticApprovalEmbedded?"auto":"manual",this.entity=this.data.entity,this.autoRegistrationEnabled=this.data.autoRegistrationEnabled}onCancel(){this.dialogRef.close()}submit(){this.loading=!0,this.applicationForm.moduleClassName=this.moduleName,this.applicationForm.automaticApproval="auto"===this.initialState,this.applicationForm.automaticApprovalExtension="auto"===this.extensionState,this.applicationForm.automaticApprovalEmbedded="auto"===this.embeddedState,this.registrarManager.updateForm({form:this.applicationForm}).subscribe(fe=>{this.dialogRef.close(fe)},()=>this.loading=!1)}}return be.\u0275fac=function(fe){return new(fe||be)(A.Y36(e.so),A.Y36(e.WI),A.Y36(f.tk))},be.\u0275cmp=A.Xpm({type:be,selectors:[["app-update-application-form-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(fe,re){if(1&fe&&(A.YNc(0,q,1,0,"ng-template",null,0,A.W1O),A.TgZ(2,"div"),A.YNc(3,j,40,35,"div",1),A.qZA()),2&fe){const v=A.MAs(1);A.xp6(2),A.Gre("",re.theme," position-relative"),A.xp6(1),A.Q6J("perunWebAppsLoader",re.loading)("perunWebAppsLoaderIndicator",v)}},dependencies:[S.O5,m.ey,M.Nt,w.KE,w.hX,x.Fj,x.JJ,x.On,P.lW,e.uh,e.xY,e.H8,F.gD,T.b,B.e,I.X$]}),be})()},72263:(Xe,ae,p)=>{"use strict";p.d(ae,{_:()=>tt});var e=p(94650),f=p(61744),A=p(9244),S=p(7274),m=p(80279),M=p(95017),w=p(19516),x=p(37433),P=p(36895),F=p(4859),T=p(97403),B=p(87831),I=p(25788),q=p(7434),ue=p(62109),j=p(74010),Q=p(89593),be=p(89383);let me=(()=>{class rt{constructor(){this.role=null,this.disableAutoSelect=!1,this.roleSelected=new e.vpe,this.nameFunction=wt=>wt.displayName,this.secondaryTextFunction=()=>null}}return rt.\u0275fac=function(wt){return new(wt||rt)},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["perun-web-apps-role-search-select"]],inputs:{role:"role",roles:"roles",disableAutoSelect:"disableAutoSelect"},outputs:{roleSelected:"roleSelected"},decls:4,vars:15,consts:[[3,"entity","entities","disableAutoSelect","mainTextFunction","searchFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(wt,zt){1&wt&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(xi){return zt.roleSelected.emit(xi)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&wt&&e.Q6J("entity",zt.role)("entities",zt.roles)("disableAutoSelect",zt.disableAutoSelect)("mainTextFunction",zt.nameFunction)("searchFunction",zt.nameFunction)("secondaryTextFunction",zt.secondaryTextFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.SELECT_ROLE"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.FIND_ROLE"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.NO_ROLE_FOUND"))},dependencies:[Q.i,be.X$]}),rt})();var fe=p(73358),re=p(56575);let v=(()=>{class rt{transform(wt,zt,ii){return wt.filter(xi=>!zt.get(ii.roleName)?.get(ii.primaryObject)?.includes(xi.id))}}return rt.\u0275fac=function(wt){return new(wt||rt)},rt.\u0275pipe=e.Yjl({name:"unassignedRole",type:rt,pure:!0}),rt})(),V=(()=>{class rt{transform(wt){return wt.map(zt=>zt.facility)}}return rt.\u0275fac=function(wt){return new(wt||rt)},rt.\u0275pipe=e.Yjl({name:"extractFacility",type:rt,pure:!0}),rt})();var W=p(48524);function ee(rt,Ft){1&rt&&e._UZ(0,"perun-web-apps-loading-dialog")}function ie(rt,Ft){if(1&rt){const wt=e.EpF();e.TgZ(0,"perun-web-apps-immediate-filter",13),e.NdJ("filter",function(ii){e.CHM(wt);const xi=e.oxw(2);return e.KtG(xi.filterValue=ii)}),e.qZA()}2&rt&&e.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_OBJECTS_LIST.FILTER")}const xe=function(){return["checkbox","id","shortName","name"]};function Ye(rt,Ft){if(1&rt&&(e._UZ(0,"perun-web-apps-vos-list",14),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&rt){const wt=e.oxw(2);e.Q6J("filterValue",wt.filterValue)("vos",e.Dn7(1,5,e.xi3(2,9,wt.vos,wt.selectedRule),wt.roles,wt.selectedRule))("displayedColumns",e.DdM(12,xe))("selection",wt.selected)("disableRouting",!0)}}const Le=function(){return["select","id","vo","name","description"]};function $e(rt,Ft){if(1&rt&&(e._UZ(0,"perun-web-apps-groups-list",15),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&rt){const wt=e.oxw(2);e.Q6J("groups",e.Dn7(1,5,e.xi3(2,9,wt.groups,wt.selectedRule),wt.roles,wt.selectedRule))("displayedColumns",e.DdM(12,Le))("selection",wt.selected)("filter",wt.filterValue)("disableRouting",!0)}}const qe=function(){return["select","id","name","description"]};function Ze(rt,Ft){if(1&rt&&(e._UZ(0,"perun-web-apps-facilities-list",16),e.ALo(1,"toEnrichedFacility"),e.ALo(2,"unassignedRole"),e.ALo(3,"manageableEntities"),e.ALo(4,"extractFacility")),2&rt){const wt=e.oxw(2);e.Q6J("filterValue",wt.filterValue)("facilities",e.lcZ(1,5,e.Dn7(2,7,e.xi3(3,11,e.lcZ(4,14,wt.facilities),wt.selectedRule),wt.roles,wt.selectedRule)))("displayedColumns",e.DdM(16,qe))("selection",wt.selectedFacilities)("disableRouting",!0)}}const Pe=function(){return["select","id","name"]};function se(rt,Ft){if(1&rt&&(e._UZ(0,"perun-web-apps-resources-list",17),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&rt){const wt=e.oxw(2);e.Q6J("filterValue",wt.filterValue)("resources",e.Dn7(1,5,e.xi3(2,9,wt.resources,wt.selectedRule),wt.roles,wt.selectedRule))("displayedColumns",e.DdM(12,Pe))("selection",wt.selected)("disableRouting",!0)}}function N(rt,Ft){if(1&rt){const wt=e.EpF();e.TgZ(0,"div")(1,"div",2)(2,"h1",2),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.TgZ(5,"div",3)(6,"perun-web-apps-role-search-select",4),e.NdJ("roleSelected",function(ii){e.CHM(wt);const xi=e.oxw();return e.KtG(xi.resetSelection(ii))}),e.qZA(),e.YNc(7,ie,1,1,"perun-web-apps-immediate-filter",5),e.YNc(8,Ye,3,13,"perun-web-apps-vos-list",6),e.YNc(9,$e,3,13,"perun-web-apps-groups-list",7),e.YNc(10,Ze,5,17,"perun-web-apps-facilities-list",8),e.YNc(11,se,3,13,"perun-web-apps-resources-list",9),e.qZA(),e.TgZ(12,"div",10)(13,"button",11),e.NdJ("click",function(){e.CHM(wt);const ii=e.oxw();return e.KtG(ii.cancel())}),e._uU(14),e.ALo(15,"translate"),e.qZA(),e.TgZ(16,"button",12),e.NdJ("click",function(){e.CHM(wt);const ii=e.oxw();return e.KtG(ii.addRole())}),e._uU(17),e.ALo(18,"translate"),e.qZA()()()}if(2&rt){const wt=e.oxw();e.xp6(3),e.Oqu(e.lcZ(4,10,"DIALOGS.ADD_ROLE.TITLE")),e.xp6(3),e.Q6J("roles",wt.rules),e.xp6(1),e.Q6J("ngIf",null==wt.selectedRule?null:wt.selectedRule.primaryObject),e.xp6(1),e.Q6J("ngIf","Vo"===(null==wt.selectedRule?null:wt.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf","Group"===(null==wt.selectedRule?null:wt.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf","Facility"===(null==wt.selectedRule?null:wt.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf","Resource"===(null==wt.selectedRule?null:wt.selectedRule.primaryObject)),e.xp6(3),e.hij(" ",e.lcZ(15,12,"DIALOGS.ADD_ROLE.CANCEL")," "),e.xp6(2),e.Q6J("disabled",null===wt.selectedRule||"Facility"===wt.selectedRule.primaryObject&&wt.selectedFacilities.isEmpty()||wt.selectedRule.primaryObject&&"Facility"!==wt.selectedRule.primaryObject&&wt.selected.isEmpty()),e.xp6(1),e.hij(" ",e.lcZ(18,14,"DIALOGS.ADD_ROLE.ADD")," ")}}let U=(()=>{class rt{constructor(wt,zt,ii,xi,mt){this.dialogRef=wt,this.voService=zt,this.groupService=ii,this.facilityService=xi,this.resourceService=mt,this.loading=!1,this.submitForm=new e.vpe,this.selected=new M.Ov(!0,[]),this.selectedFacilities=new M.Ov(!0,[]),this.filterValue="",this.vos=[],this.groups=[],this.facilities=[],this.resources=[]}ngOnInit(){this.selectedRule=this.rules[0],this.loadObjects()}loadObjects(){this.rules.some(wt=>"Facility"===wt.primaryObject)&&this.facilityService.getAllFacilities().subscribe({next:wt=>this.facilities=(new w.E7).transform(wt)}),this.rules.some(wt=>"Vo"===wt.primaryObject)&&this.voService.getMyVos().subscribe({next:wt=>this.vos=wt}),this.groupService.getAllGroupsFromAllVos().subscribe({next:wt=>this.groups=wt}),this.resourceService.getAllResources().subscribe({next:wt=>this.resources=wt})}cancel(){this.dialogRef.close(!1)}addRole(){this.submitForm.emit("Facility"===this.selectedRule.primaryObject?{role:this.selectedRule,entities:this.selectedFacilities.selected.map(wt=>wt.facility)}:{role:this.selectedRule,entities:this.selected.selected})}resetSelection(wt){this.selectedRule=wt,this.selected.clear(),this.selectedFacilities.clear(),this.filterValue="",this.loadObjects(),this.filterComponent&&this.filterComponent.formControl.setValue("")}}return rt.\u0275fac=function(wt){return new(wt||rt)(e.Y36(S.so),e.Y36(f.YF),e.Y36(f.ff),e.Y36(f.IQ),e.Y36(f.xk))},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["app-add-role-dialog"]],viewQuery:function(wt,zt){if(1&wt&&e.Gf(x.Ld,5),2&wt){let ii;e.iGM(ii=e.CRH())&&(zt.filterComponent=ii.first)}},inputs:{loading:"loading",rules:"rules",roles:"roles",theme:"theme"},outputs:{submitForm:"submitForm"},decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"roles","roleSelected"],["class","font-size-1rem",3,"placeholder","filter",4,"ngIf"],[3,"filterValue","vos","displayedColumns","selection","disableRouting",4,"ngIf"],[3,"groups","displayedColumns","selection","filter","disableRouting",4,"ngIf"],[3,"filterValue","facilities","displayedColumns","selection","disableRouting",4,"ngIf"],[3,"filterValue","resources","displayedColumns","selection","disableRouting",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],[1,"font-size-1rem",3,"placeholder","filter"],[3,"filterValue","vos","displayedColumns","selection","disableRouting"],[3,"groups","displayedColumns","selection","filter","disableRouting"],[3,"filterValue","facilities","displayedColumns","selection","disableRouting"],[3,"filterValue","resources","displayedColumns","selection","disableRouting"]],template:function(wt,zt){if(1&wt&&(e.YNc(0,ee,1,0,"ng-template",null,0,e.W1O),e.TgZ(2,"div"),e.YNc(3,N,19,16,"div",1),e.qZA()),2&wt){const ii=e.MAs(1);e.xp6(2),e.Gre("",zt.theme," position-relative"),e.xp6(1),e.Q6J("perunWebAppsLoader",zt.loading)("perunWebAppsLoaderIndicator",ii)}},dependencies:[P.O5,F.lW,S.uh,S.xY,S.H8,T.b,B.Z,I.W,q.L,ue.C,j.X,me,fe.e,be.X$,re.G,v,V,W.E]}),rt})(),$=(()=>{class rt{constructor(wt,zt,ii,xi,mt,Vt){this.dialogRef=wt,this.data=zt,this.authResolver=ii,this.authzService=xi,this.notificator=mt,this.translate=Vt,this.loading=!1,this.rules=this.authResolver.getAssignableRoleRules("GROUP")}addRole(wt){this.loading=!0,wt.entities&&0!==wt.entities.length?this.authzService.setRoleWithGroupComplementaryObjects({role:wt.role.roleName,authorizedGroup:this.data.entityId,complementaryObjects:wt.entities}).subscribe({next:()=>{this.showSuccess(wt.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}}):this.authzService.setRoleForGroup({role:wt.role.roleName,authorizedGroup:this.data.entityId}).subscribe({next:()=>{this.showSuccess(wt.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}showSuccess(wt){this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_ROLE.SUCCESS",{role:wt}))}}return rt.\u0275fac=function(wt){return new(wt||rt)(e.Y36(S.so),e.Y36(S.WI),e.Y36(m.x4),e.Y36(f.Ct),e.Y36(m.V6),e.Y36(m.Te))},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["app-add-group-role-dialog"]],decls:1,vars:4,consts:[[3,"loading","rules","roles","theme","submitForm"]],template:function(wt,zt){1&wt&&(e.TgZ(0,"app-add-role-dialog",0),e.NdJ("submitForm",function(xi){return zt.addRole(xi)}),e.qZA()),2&wt&&e.Q6J("loading",zt.loading)("rules",zt.rules)("roles",zt.data.roles)("theme","group-theme")},dependencies:[U]}),rt})(),ce=(()=>{class rt{constructor(wt,zt,ii,xi,mt,Vt,gt){this.dialogRef=wt,this.data=zt,this.authResolver=ii,this.authzService=xi,this.notificator=mt,this.translate=Vt,this.displayedRole=gt,this.loading=!1,this.rules=this.authResolver.getAssignableRoleRules("USER")}addRole(wt){this.loading=!0,wt.entities&&0!==wt.entities.length?this.authzService.setRoleWithUserComplementaryObjects({role:wt.role.roleName,user:this.data.entityId,complementaryObjects:wt.entities}).subscribe({next:()=>{this.showSuccess(wt.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}}):this.authzService.setRoleForUser({role:wt.role.roleName,user:this.data.entityId}).subscribe({next:()=>{this.showSuccess(wt.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}showSuccess(wt){this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_ROLE.SUCCESS",{role:wt}))}}return rt.\u0275fac=function(wt){return new(wt||rt)(e.Y36(S.so),e.Y36(S.WI),e.Y36(m.x4),e.Y36(f.Ct),e.Y36(m.V6),e.Y36(m.Te),e.Y36(w.i2))},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["app-add-user-role-dialog"]],features:[e._Bn([w.i2])],decls:1,vars:4,consts:[[3,"loading","rules","theme","roles","submitForm"]],template:function(wt,zt){1&wt&&(e.TgZ(0,"app-add-role-dialog",0),e.NdJ("submitForm",function(xi){return zt.addRole(xi)}),e.qZA()),2&wt&&e.Q6J("loading",zt.loading)("rules",zt.rules)("theme","user-theme")("roles",zt.data.roles)},dependencies:[U]}),rt})();var De=p(21029),he=p(61135),Oe=p(39646),it=p(86099),Ce=p(49770);function ot(rt,Ft,wt){return(0,Ce.P)(()=>rt()?Ft:wt)}var Ue=p(63900),ft=p(18505),Z=p(68675),lt=p(54004),Ae=p(97392),Ke=p(37084),pe=p(51572),Ie=p(10266),Ne=p(73546),we=p(98380),Be=p(38383),r=p(64877),u=p(23123);function _(rt,Ft){if(1&rt){const wt=e.EpF();e.TgZ(0,"button",5),e.NdJ("click",function(){e.CHM(wt);const ii=e.oxw();return e.KtG(ii.addRole())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&rt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.ADD"),"\n"))}function C(rt,Ft){1&rt&&e._UZ(0,"mat-spinner",6)}const h=function(){return["Vo","Group","Resource"]};function o(rt,Ft){if(1&rt){const wt=e.EpF();e.TgZ(0,"span",15),e.ALo(1,"translate"),e.TgZ(2,"button",16),e.NdJ("click",function(){e.CHM(wt);const ii=e.oxw(2).$implicit,xi=e.oxw(2);return e.KtG(xi.openConfirmDialog(ii))}),e._uU(3),e.ALo(4,"translate"),e.qZA()()}if(2&rt){const wt=e.oxw(2).$implicit,zt=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,4,"ROLES.REMOVE_DISABLED_TOOLTIP")),e.Q6J("matTooltipDisabled",0===zt.selection.selected.length&&0===zt.selectedFacilities.selected.length||!zt.disableRemove),e.xp6(2),e.Q6J("disabled","Facility"===wt.primaryObject&&(0===zt.selectedFacilities.selected.length||zt.disableRemove)||e.DdM(8,h).includes(wt.primaryObject)&&(0===zt.selection.selected.length||zt.disableRemove)),e.xp6(1),e.hij(" ",e.lcZ(4,6,"ROLES.REMOVE")," ")}}function n(rt,Ft){if(1&rt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&rt){const wt=e.oxw(5).$implicit,zt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+wt.roleName+"_VOS_"+zt.entityType)," ")}}const t=function(){return["id","name","shortName"]},i=function(){return["checkbox","id","name","shortName"]},a=function(){return["id","name","shortName","authzGroup"]};function l(rt,Ft){if(1&rt&&(e.TgZ(0,"div",20),e.YNc(1,n,3,3,"div",2),e._UZ(2,"perun-web-apps-vos-list",21),e.ALo(3,"async"),e.qZA()),2&rt){const wt=e.oxw(4).$implicit,zt=e.oxw(2);let ii;e.xp6(1),e.Q6J("ngIf",zt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===wt.roleName?e.DdM(8,t):zt.editable?e.DdM(9,i):e.DdM(10,a))("vos",e.lcZ(3,6,zt.vos))("selection",zt.selection)("authzVoNames",zt.voNames)("voWithAuthzGroupPairs",null==zt._complementaryObjectsWithAuthzGroups||null==(ii=zt._complementaryObjectsWithAuthzGroups.get(wt.roleName))?null:ii.get("vo"))}}function d(rt,Ft){if(1&rt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&rt){const wt=e.oxw(5).$implicit,zt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+wt.roleName+"_GROUPS_"+zt.entityType)," ")}}const c=function(){return["id","vo","name","description"]},s=function(){return["select","id","vo","name","description"]},E=function(){return["id","vo","name","description","authzGroup"]};function H(rt,Ft){if(1&rt&&(e.TgZ(0,"div",20),e.YNc(1,d,3,3,"div",2),e._UZ(2,"perun-web-apps-groups-list",22),e.ALo(3,"async"),e.qZA()),2&rt){const wt=e.oxw(4).$implicit,zt=e.oxw(2);let ii;e.xp6(1),e.Q6J("ngIf",zt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===wt.roleName?e.DdM(8,c):zt.editable?e.DdM(9,s):e.DdM(10,E))("groups",e.lcZ(3,6,zt.groups))("selection",zt.selection)("authzVoNames",zt.voNames)("groupWithAuthzGroupPairs",null==zt._complementaryObjectsWithAuthzGroups||null==(ii=zt._complementaryObjectsWithAuthzGroups.get(wt.roleName))?null:ii.get("group"))}}function ne(rt,Ft){if(1&rt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&rt){const wt=e.oxw(5).$implicit,zt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+wt.roleName+"_RESOURCES_"+zt.entityType)," ")}}const ve=function(){return["id","name","vo","facility","description"]},We=function(){return["select","id","name","vo","facility","description"]},Mt=function(){return["id","name","vo","facility","description","authzGroup"]};function pt(rt,Ft){if(1&rt&&(e.TgZ(0,"div",20),e.YNc(1,ne,3,3,"div",2),e._UZ(2,"perun-web-apps-resources-list",23),e.ALo(3,"async"),e.qZA()),2&rt){const wt=e.oxw(4).$implicit,zt=e.oxw(2);let ii;e.xp6(1),e.Q6J("ngIf",zt.showDescription),e.xp6(1),e.Q6J("resources",e.lcZ(3,7,zt.resources))("displayedColumns","MEMBERSHIP"===wt.roleName?e.DdM(9,ve):zt.editable?e.DdM(10,We):e.DdM(11,Mt))("routingVo",!0)("selection",zt.selection)("authzVoNames",zt.voNames)("resourceWithAuthzGroupPairs",null==zt._complementaryObjectsWithAuthzGroups||null==(ii=zt._complementaryObjectsWithAuthzGroups.get(wt.roleName))?null:ii.get("resource"))}}function _t(rt,Ft){if(1&rt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&rt){const wt=e.oxw(5).$implicit,zt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+wt.roleName+"_FACILITIES_"+zt.entityType)," ")}}const ye=function(){return["id","name","description"]},Ee=function(){return["select","id","name","description"]},oe=function(){return["id","name","description","authzGroup"]};function _e(rt,Ft){if(1&rt&&(e.TgZ(0,"div",20),e.YNc(1,_t,3,3,"div",2),e._UZ(2,"perun-web-apps-facilities-list",24),e.ALo(3,"async"),e.qZA()),2&rt){const wt=e.oxw(4).$implicit,zt=e.oxw(2);let ii;e.xp6(1),e.Q6J("ngIf",zt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===wt.roleName?e.DdM(8,ye):zt.editable?e.DdM(9,Ee):e.DdM(10,oe))("facilities",e.lcZ(3,6,zt.facilities))("selection",zt.selectedFacilities)("authzVoNames",zt.voNames)("facilityWithAuthzGroupPairs",null==zt._complementaryObjectsWithAuthzGroups||null==(ii=zt._complementaryObjectsWithAuthzGroups.get(wt.roleName))?null:ii.get("facility"))}}function Te(rt,Ft){if(1&rt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&rt){const wt=e.oxw(5).$implicit,zt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+wt.roleName+"_MEMBERS_"+zt.entityType)," ")}}const ut=function(){return["id","fullName","sponsored"]};function vt(rt,Ft){if(1&rt&&(e.TgZ(0,"div",20),e.YNc(1,Te,3,3,"div",2),e._UZ(2,"perun-web-apps-members-list",25),e.ALo(3,"async"),e.qZA()),2&rt){const wt=e.oxw(6);e.xp6(1),e.Q6J("ngIf",wt.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(5,ut))("members",e.lcZ(3,3,wt.members))}}function Bt(rt,Ft){if(1&rt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&rt){const wt=e.oxw(5).$implicit,zt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+wt.roleName+"_USERS_"+zt.entityType)," ")}}const Rt=function(){return["user","id","name"]};function Ot(rt,Ft){if(1&rt&&(e.TgZ(0,"div",20),e.YNc(1,Bt,3,3,"div",2),e._UZ(2,"app-users-list",26),e.ALo(3,"async"),e.qZA()),2&rt){const wt=e.oxw(6);e.xp6(1),e.Q6J("ngIf",wt.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(6,Rt))("disableRouting",!0)("users",e.lcZ(3,4,wt.users))}}function si(rt,Ft){if(1&rt&&(e.TgZ(0,"div"),e.YNc(1,l,4,11,"div",19),e.YNc(2,H,4,11,"div",19),e.YNc(3,pt,4,12,"div",19),e.YNc(4,_e,4,11,"div",19),e.YNc(5,vt,4,6,"div",19),e.YNc(6,Ot,4,7,"div",19),e.qZA()),2&rt){const wt=e.oxw(3).$implicit;e.xp6(1),e.Q6J("ngIf","Vo"===wt.primaryObject||"MEMBERSHIP"===wt.roleName),e.xp6(1),e.Q6J("ngIf","Group"===wt.primaryObject||"MEMBERSHIP"===wt.roleName),e.xp6(1),e.Q6J("ngIf","Resource"===wt.primaryObject||"MEMBERSHIP"===wt.roleName),e.xp6(1),e.Q6J("ngIf","Facility"===wt.primaryObject||"MEMBERSHIP"===wt.roleName),e.xp6(1),e.Q6J("ngIf","SPONSORSHIP"===wt.roleName),e.xp6(1),e.Q6J("ngIf","SELF"===wt.roleName)}}function hi(rt,Ft){if(1&rt&&(e.TgZ(0,"div",17),e.YNc(1,si,7,6,"div",18),e.qZA()),2&rt){const wt=e.oxw(4),zt=e.MAs(5);e.xp6(1),e.Q6J("perunWebAppsLoader",wt.loading)("perunWebAppsLoaderIndicator",zt)}}function kt(rt,Ft){if(1&rt&&(e.YNc(0,o,5,9,"span",13),e.YNc(1,hi,2,2,"div",14)),2&rt){const wt=e.oxw().$implicit,zt=e.MAs(1),ii=e.oxw(2);e.Q6J("ngIf",ii.editable&&"SELF"!==wt.roleName&&"MEMBERSHIP"!==wt.roleName&&"SPONSORSHIP"!==wt.roleName),e.xp6(1),e.Q6J("ngIf",zt.expanded)}}function xt(rt,Ft){if(1&rt){const wt=e.EpF();e.TgZ(0,"mat-expansion-panel",8,9),e.NdJ("opened",function(){const xi=e.CHM(wt).$implicit,mt=e.oxw(2);return e.KtG(mt.selectedRole.next(xi))})("closed",function(){e.CHM(wt);const ii=e.oxw(2);return e.KtG(ii.selection.clear())}),e.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),e._UZ(4,"mat-icon",10),e.TgZ(5,"p",11),e._uU(6),e.ALo(7,"displayedRole"),e.qZA()()(),e.YNc(8,kt,2,2,"ng-template",12),e.qZA()}if(2&rt){const wt=Ft.$implicit;e.xp6(6),e.Oqu(e.lcZ(7,1,wt))}}function Se(rt,Ft){if(1&rt&&(e.TgZ(0,"mat-accordion"),e.YNc(1,xt,9,3,"mat-expansion-panel",7),e.qZA()),2&rt){const wt=e.oxw();e.xp6(1),e.Q6J("ngForOf",wt.allRules)}}function Je(rt,Ft){1&rt&&(e.TgZ(0,"perun-web-apps-alert",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&rt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.NO_ROLES"),"\n"))}function le(rt,Ft){1&rt&&(e.TgZ(0,"div",28),e._UZ(1,"mat-spinner"),e.qZA())}let tt=(()=>{class rt{constructor(wt,zt,ii,xi,mt,Vt,gt,Ut,Kt,ni,ci,Ai,Di){this.authzResolverService=wt,this.usersService=zt,this.vosService=ii,this.facilitiesService=xi,this.resourcesService=mt,this.groupsService=Vt,this.membersService=gt,this.dialog=Ut,this.notification=Kt,this.translate=ni,this.rolePipe=ci,this.guiAuthResolver=Ai,this.manageableEntities=Di,this.editable=!0,this.reload=new e.vpe,this.startLoading=new e.vpe,this.selection=new M.Ov(!0,[]),this.selectedFacilities=new M.Ov(!0,[]),this.assignableRules=[],this.allRules=[],this.disableRemove=!1,this.voNames=new Map,this.selectedRole=new he.X(null),this.groups=this.selectedRole.pipe((0,Ue.w)(St=>{this.loading=!0;const Gt=this.roles.get(St.roleName).get("Group");return Gt?.length?this.groupsService.getGroupsByIds(Gt):(0,Oe.of)([])}),(0,ft.b)(()=>this.loading=!1),(0,Z.O)([])),this.vos=this.selectedRole.pipe((0,Ue.w)(St=>{this.loading=!0;const Gt=this.roles.get(St.roleName).get("Vo");return Gt?.length?this.vosService.getVosByIds(Gt):(0,Oe.of)([])}),(0,ft.b)(()=>this.loading=!1),(0,Z.O)([])),this.facilities=this.selectedRole.pipe((0,Ue.w)(St=>{this.loading=!0;const Gt=this.roles.get(St.roleName).get("Facility");return Gt?.length?this.facilitiesService.getFacilitiesByIds(Gt):(0,Oe.of)([])}),(0,lt.U)(St=>St.map(Gt=>({facility:Gt}))),(0,ft.b)(()=>this.loading=!1),(0,Z.O)([])),this.resources=this.selectedRole.pipe((0,Ue.w)(St=>{this.loading=!0;const Gt=this.roles.get(St.roleName).get("Resource");return Gt?.length?this.resourcesService.getRichResourcesByIds(Gt):(0,Oe.of)([])}),(0,ft.b)(()=>this.loading=!1),(0,Z.O)([])),this.members=this.selectedRole.pipe((0,Ue.w)(St=>this.membersService.getRichMembersByIds(this.roles.get(St.roleName).get("Member"))),(0,ft.b)(()=>this.loading=!1),(0,Z.O)([])),this.users=this.selectedRole.pipe((0,Ue.w)(St=>this.usersService.getRichUsersByIds([this.entityId].concat(this.roles.get(St.roleName).get("User")))),(0,ft.b)(()=>this.loading=!1),(0,Z.O)([])),this._complementaryObjectsWithAuthzGroups=new Map,this._roles=new Map}get roles(){return this._roles}set roles(wt){this._roles=wt,this.allRules=this.guiAuthResolver.getAllRules().filter(zt=>this._roles.has(zt.roleName))}set complementaryObjectsWithAuthzGroups(wt){this._complementaryObjectsWithAuthzGroups=wt,this.updateVoNames()}ngOnInit(){this.assignableRules=this.guiAuthResolver.getAssignableRoleRules("GROUP"===this.entityType?"GROUP":"USER"),this.selection.changed.subscribe(wt=>{const zt=wt.source.selected.map(xi=>{if("beanName"in xi)return xi}),ii=this.manageableEntities.transform(zt,this.selectedRole.getValue()).length;this.disableRemove=wt.source.selected.length!==ii}),this.selectedFacilities.changed.subscribe(wt=>{const zt=wt.source.selected.map(xi=>{if("facility"in xi)return xi.facility}),ii=this.manageableEntities.transform(zt,this.selectedRole.getValue()).length;this.disableRemove=wt.source.selected.length!==ii})}addRole(){const wt=(0,A.kZ)();let zt;wt.width="650px",wt.data={entityId:this.entityId,roles:this.roles},zt=this.dialog.open("GROUP"===this.entityType?$:ce,wt),zt.afterClosed().subscribe({next:ii=>{ii&&(this.startLoading.emit(),this.refresh())}})}openConfirmDialog(wt){const zt=(0,A.kZ)(),ii=this.getItems();zt.width="550px",zt.data={theme:"GROUP"===this.entityType?"group-theme":"user-theme",title:"ROLES.REMOVE",description:this.selectedRole.getValue().primaryObject?this.translate.instant("ROLES.REMOVE_DESC_WITH_OBJECTS",{role:this.rolePipe.transform(wt),count:ii.length}):this.translate.instant("ROLES.REMOVE_DESC",{role:this.rolePipe.transform(wt)}),items:ii,alert:!1,type:"remove",showAsk:!0},this.dialog.open(De.Ts,zt).afterClosed().subscribe({next:mt=>{mt&&(this.startLoading.emit(),wt.primaryObject?this.removeRoleWithComplementaryObject(wt):this.removeRole(wt))}})}getItems(){return this.selectedRole.getValue().primaryObject?"Facility"===this.selectedRole.getValue().primaryObject?this.selectedFacilities.selected.map(wt=>wt.facility.name):this.selection.selected.map(wt=>wt.name):[]}removeRole(wt){(0,Oe.of)(this.entityType).pipe((0,it.z)(zt=>ot(()=>"GROUP"===zt,this.authzResolverService.unsetRoleForGroup({role:wt.roleName,authorizedGroup:this.entityId}),this.authzResolverService.unsetRoleForUser({role:wt.roleName,user:this.entityId})))).subscribe({next:()=>{this.showSuccess(wt),this.refresh()},error:()=>{this.selection.clear(),this.outerLoading=!1}})}removeRoleWithComplementaryObject(wt){let zt;0!==this.selection.selected.length&&"beanName"in this.selection.selected[0]?(zt=this.selection.selected,"RichResource"===zt[0].beanName&&(zt=zt.map(ii=>this.parseResource(ii)))):0!==this.selectedFacilities.selected.length&&"facility"in this.selectedFacilities.selected[0]&&(zt=this.selectedFacilities.selected.map(ii=>this.parseFacility(ii))),(0,Oe.of)(this.entityType).pipe((0,it.z)(ii=>ot(()=>"GROUP"===ii,this.authzResolverService.unsetRoleWithGroupComplementaryObjects({role:wt.roleName,complementaryObjects:zt,authorizedGroup:this.entityId}),this.authzResolverService.unsetRoleWithUserComplementaryObjects({role:wt.roleName,complementaryObjects:zt,user:this.entityId})))).subscribe({next:()=>{this.showSuccess(wt),this.refresh()},error:()=>{this.selection.clear(),this.outerLoading=!1}})}showSuccess(wt){this.notification.showSuccess(this.translate.instant("ROLES.REMOVE_SUCCESS",{role:this.rolePipe.transform(wt)}))}refresh(){this.selection.clear(),setTimeout(()=>{this.reload.emit(),this.outerLoading=!1},500)}parseFacility(wt){return wt.facility}parseResource(wt){return{beanName:"Resource",id:wt.id,description:wt.description,createdByUid:wt.createdByUid,createdAt:wt.createdAt,facilityId:wt.facilityId,createdBy:wt.createdBy,modifiedAt:wt.modifiedAt,modifiedBy:wt.modifiedBy,name:wt.name,uuid:wt.uuid,voId:wt.voId,modifiedByUid:wt.modifiedByUid}}updateVoNames(){const wt=new Set;this._complementaryObjectsWithAuthzGroups.forEach(zt=>{zt.forEach(ii=>{ii.forEach(xi=>{xi.forEach(mt=>{!wt.has(mt.voId)&&!this.voNames.has(mt.voId)&&wt.add(mt.voId)})})})}),wt.size>0&&this.vosService.getVosByIds([...wt]).subscribe(zt=>{zt.forEach(ii=>{this.voNames.set(ii.id,ii.name)})})}}return rt.\u0275fac=function(wt){return new(wt||rt)(e.Y36(f.Ct),e.Y36(f.Fv),e.Y36(f.YF),e.Y36(f.IQ),e.Y36(f.xk),e.Y36(f.ff),e.Y36(f.uq),e.Y36(S.uw),e.Y36(m.V6),e.Y36(m.Te),e.Y36(w.i2),e.Y36(m.x4),e.Y36(w.GY))},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["app-perun-web-apps-roles-page"]],inputs:{outerLoading:"outerLoading",showDescription:"showDescription",entityId:"entityId",entityType:"entityType",editable:"editable",roles:"roles",complementaryObjectsWithAuthzGroups:"complementaryObjectsWithAuthzGroups"},outputs:{reload:"reload",startLoading:"startLoading"},features:[e._Bn([w.i2,w.GY])],decls:6,vars:4,consts:[["mat-flat-button","","color","accent","class","mb-3 me-2 mt-2",3,"click",4,"ngIf"],["class","ms-auto me-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],["spinner",""],["mat-flat-button","","color","accent",1,"mb-3","me-2","mt-2",3,"click"],[1,"ms-auto","me-auto"],[3,"opened","closed",4,"ngFor","ngForOf"],[3,"opened","closed"],["panel",""],["mat-card-avatar","","svgIcon","perun-user-dark",1,"me-2"],[1,"mt-auto","mb-auto"],["matExpansionPanelContent",""],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled",4,"ngIf"],["class","position-relative",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[1,"position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["class","mb-3",4,"ngIf"],[1,"mb-3"],[3,"displayedColumns","vos","selection","authzVoNames","voWithAuthzGroupPairs"],[3,"displayedColumns","groups","selection","authzVoNames","groupWithAuthzGroupPairs"],[3,"resources","displayedColumns","routingVo","selection","authzVoNames","resourceWithAuthzGroupPairs"],[3,"displayedColumns","facilities","selection","authzVoNames","facilityWithAuthzGroupPairs"],[3,"displayedColumns","members"],[3,"displayedColumns","disableRouting","users"],["alert_type","warn"],[1,"spinner-container"]],template:function(wt,zt){1&wt&&(e.YNc(0,_,3,3,"button",0),e.YNc(1,C,1,0,"mat-spinner",1),e.YNc(2,Se,2,1,"mat-accordion",2),e.YNc(3,Je,3,3,"perun-web-apps-alert",3),e.YNc(4,le,2,0,"ng-template",null,4,e.W1O)),2&wt&&(e.Q6J("ngIf",0!==zt.assignableRules.length&&zt.editable),e.xp6(1),e.Q6J("ngIf",zt.outerLoading),e.xp6(1),e.Q6J("ngIf",!zt.outerLoading&&zt.roles.size>0),e.xp6(1),e.Q6J("ngIf",!zt.outerLoading&&0===zt.roles.size))},dependencies:[P.sg,P.O5,Ae.Hw,Ke.pp,Ke.ib,Ke.yz,Ke.yK,Ke.HS,F.lW,pe.Ou,Ie.gM,Ne.kc,we.w,B.Z,I.W,ue.C,Be.O,j.X,fe.e,r.C,P.Ov,be.X$,u.i],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"],changeDetection:0}),rt})()},60205:(Xe,ae,p)=>{"use strict";p.d(ae,{Q:()=>it});var e=p(94650),f=p(96308),A=p(30671),S=p(95017),m=p(9244),M=p(80279),w=p(36895),x=p(82761),P=p(97392),F=p(56709),T=p(10266),B=p(98380),I=p(34198),q=p(55660),ue=p(18750),j=p(89383),Q=p(9185),be=p(8231),me=p(14849);function fe(Ce,ot){if(1&Ce){const Ue=e.EpF();e.TgZ(0,"th",19)(1,"mat-checkbox",20),e.NdJ("change",function(Z){e.CHM(Ue);const lt=e.oxw(2);return e.KtG(Z?lt.masterToggle():null)}),e.ALo(2,"translate"),e.ALo(3,"masterCheckboxLabel"),e.qZA()()}if(2&Ce){const Ue=e.oxw().ngIf,ft=e.oxw();e.xp6(1),e.Q6J("aria-label",e.lcZ(2,3,e.lcZ(3,5,Ue.all)))("checked",ft.selection.hasValue()&&Ue.all)("indeterminate",ft.selection.hasValue()&&!Ue.all)}}const re=function(Ce){return{name:Ce}};function v(Ce,ot){if(1&Ce){const Ue=e.EpF();e.TgZ(0,"td",21)(1,"mat-checkbox",22),e.NdJ("change",function(Z){const Ae=e.CHM(Ue).$implicit,Ke=e.oxw(2);return e.KtG(Z?Ke.selection.toggle(Ae):null)})("click",function(Z){return Z.stopPropagation()}),e.ALo(2,"lowercase"),e.ALo(3,"translate"),e.ALo(4,"checkboxLabel"),e.qZA()()}if(2&Ce){const Ue=ot.$implicit,ft=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",e.lcZ(2,3,Ue.name),"-checkbox"),e.Q6J("aria-label",e.xi3(3,5,e.lcZ(4,8,ft.selection.isSelected(Ue)),e.VKq(10,re,Ue.name)))("checked",ft.selection.isSelected(Ue))}}function V(Ce,ot){1&Ce&&(e.ynx(0,16),e.YNc(1,fe,4,7,"th",17),e.YNc(2,v,5,12,"td",18),e.BQk())}function W(Ce,ot){1&Ce&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ce&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")," "))}function ee(Ce,ot){if(1&Ce&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&Ce){const Ue=ot.$implicit;e.xp6(1),e.Oqu(Ue.id)}}function ie(Ce,ot){1&Ce&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ce&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")," "))}function xe(Ce,ot){if(1&Ce&&(e.TgZ(0,"td",25),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&Ce){const Ue=ot.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,Ue.name),"-name-td"),e.xp6(2),e.hij(" ",Ue.name," ")}}function Ye(Ce,ot){1&Ce&&e._UZ(0,"th",26)}function Le(Ce,ot){1&Ce&&(e.TgZ(0,"mat-icon",29),e.ALo(1,"translate"),e._uU(2," check_circle_outline "),e.qZA()),2&Ce&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function $e(Ce,ot){1&Ce&&(e.TgZ(0,"mat-icon",30),e.ALo(1,"translate"),e._uU(2," block "),e.qZA()),2&Ce&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function qe(Ce,ot){if(1&Ce&&(e.TgZ(0,"td",25),e.YNc(1,Le,3,3,"mat-icon",27),e.YNc(2,$e,3,3,"mat-icon",28),e.qZA()),2&Ce){const Ue=ot.$implicit;e.xp6(1),e.Q6J("ngIf",Ue.enabled),e.xp6(1),e.Q6J("ngIf",!Ue.enabled)}}function Ze(Ce,ot){1&Ce&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ce&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")," "))}function Pe(Ce,ot){if(1&Ce&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&Ce){const Ue=ot.$implicit;e.xp6(1),e.Oqu(Ue.script)}}function se(Ce,ot){1&Ce&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ce&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")," "))}function N(Ce,ot){if(1&Ce&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&Ce){const Ue=ot.$implicit;e.xp6(1),e.Oqu(Ue.description)}}function U(Ce,ot){1&Ce&&e._UZ(0,"tr",31)}const $=function(Ce){return["/admin/services",Ce]};function ce(Ce,ot){if(1&Ce&&e._UZ(0,"tr",32),2&Ce){const Ue=ot.$implicit,ft=e.oxw();e.ekj("cursor-pointer",!ft.disableRouting)("disable-outline",ft.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",ft.disableRouting?null:e.VKq(6,$,Ue.id))("routerLink",ft.disableRouting?null:e.VKq(8,$,Ue.id))}}function De(Ce,ot){1&Ce&&(e.TgZ(0,"perun-web-apps-alert",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ce&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function he(Ce,ot){1&Ce&&(e.TgZ(0,"perun-web-apps-alert",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ce&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}const Oe=function(Ce){return{all:Ce}};let it=(()=>{class Ce{constructor(Ue,ft){this.authResolver=Ue,this.tableCheckbox=ft,this.services=[],this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new S.Ov(!0,[]),this.disableRouting=!1,this.selectionChanged=new e.vpe,this.pageSizeOptions=m.f7}set matSort(Ue){this.sort=Ue,this.setDataSource()}static getDataForColumn(Ue,ft){switch(ft){case"id":return Ue.id.toString();case"name":return Ue.name;case"enabled":return Ue.enabled?"true":"false";case"script":return Ue.script;case"description":return Ue.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ue=>"id"!==Ue)),this.dataSource=new A.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}exportAllData(Ue){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,Ce.getDataForColumn),Ue)}exportDisplayedData(Ue){const ft=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Z=ft+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ft,Z),this.displayedColumns,Ce.getDataForColumn),Ue)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(Ue,ft)=>(0,m.Sd)(Ue,ft,this.displayedColumns,Ce.getDataForColumn),this.dataSource.sortData=(Ue,ft)=>(0,m.pR)(Ue,ft,Ce.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Ce.\u0275fac=function(Ue){return new(Ue||Ce)(e.Y36(M.x4),e.Y36(M.UA))},Ce.\u0275cmp=e.Xpm({type:Ce,selectors:[["app-services-list"]],viewQuery:function(Ue,ft){if(1&Ue&&(e.Gf(m.l9,7),e.Gf(f.YE,7)),2&Ue){let Z;e.iGM(Z=e.CRH())&&(ft.child=Z.first),e.iGM(Z=e.CRH())&&(ft.matSort=Z.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[e.TTD],decls:24,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enabled"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","script"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","align-bottom green",3,"matTooltip",4,"ngIf"],["class","align-bottom red",3,"matTooltip",4,"ngIf"],[1,"align-bottom","green",3,"matTooltip"],[1,"align-bottom","red",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Ue,ft){1&Ue&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(lt){return ft.exportDisplayedData(lt)})("exportAllData",function(lt){return ft.exportAllData(lt)}),e.TgZ(2,"table",2),e.YNc(3,V,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,W,3,3,"th",5),e.YNc(7,ee,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,ie,3,3,"th",5),e.YNc(10,xe,3,4,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,Ye,1,0,"th",10),e.YNc(13,qe,3,2,"td",8),e.BQk(),e.ynx(14,11),e.YNc(15,Ze,3,3,"th",10),e.YNc(16,Pe,2,1,"td",8),e.BQk(),e.ynx(17,12),e.YNc(18,se,3,3,"th",5),e.YNc(19,N,2,1,"td",8),e.BQk(),e.YNc(20,U,1,0,"tr",13),e.YNc(21,ce,1,10,"tr",14),e.qZA()()(),e.YNc(22,De,3,3,"perun-web-apps-alert",15),e.YNc(23,he,3,3,"perun-web-apps-alert",15)),2&Ue&&(e.Q6J("hidden",void 0===ft.services||0===ft.services.length||0===ft.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",ft.pageSizeOptions)("dataLength",ft.dataSource.filteredData.length)("tableId",ft.tableId),e.xp6(1),e.Q6J("dataSource",ft.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,Oe,e.xi3(4,10,ft.dataSource,ft.selection.selected.length))),e.xp6(17),e.Q6J("matHeaderRowDef",ft.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",ft.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===ft.dataSource.filteredData.length&&void 0!==ft.services&&0!==ft.services.length),e.xp6(1),e.Q6J("ngIf",void 0===ft.services||0===ft.services.length))},dependencies:[w.O5,x.rH,P.Hw,f.YE,f.nU,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,F.oG,T.gM,B.w,I.Y,q.Q,ue.l,w.i8,j.X$,Q.I,be.G,me.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.green[_ngcontent-%COMP%]{color:green}.red[_ngcontent-%COMP%]{color:red}"]}),Ce})()},64877:(Xe,ae,p)=>{"use strict";p.d(ae,{C:()=>Ke});var e=p(96308),f=p(30671),A=p(95017),S=p(9244),m=p(80279),M=p(94650),w=p(36895),x=p(82761),P=p(97392),F=p(56709),T=p(10266),B=p(98380),I=p(34198),q=p(55660),ue=p(18750),j=p(89383),Q=p(31359),be=p(16119),me=p(7598),fe=p(9954),re=p(9185),v=p(8231),V=p(14849);function W(pe,Ie){if(1&pe){const Ne=M.EpF();M.TgZ(0,"mat-checkbox",22),M.NdJ("change",function(Be){M.CHM(Ne);const r=M.oxw(3);return M.KtG(Be?r.masterToggle():null)}),M.ALo(1,"translate"),M.ALo(2,"masterCheckboxLabel"),M.qZA()}if(2&pe){const Ne=M.oxw(2).ngIf,we=M.oxw();M.Q6J("aria-label",M.lcZ(1,3,M.lcZ(2,5,Ne.all)))("checked",we.selection.hasValue()&&Ne.all)("indeterminate",we.selection.hasValue()&&!Ne.all)}}function ee(pe,Ie){if(1&pe&&(M.TgZ(0,"th",20),M.YNc(1,W,3,7,"mat-checkbox",21),M.qZA()),2&pe){const Ne=M.oxw(2);M.xp6(1),M.Q6J("ngIf",Ne.selection.isMultipleSelection())}}const ie=function(pe){return{name:pe}};function xe(pe,Ie){if(1&pe){const Ne=M.EpF();M.TgZ(0,"td",23)(1,"mat-checkbox",24),M.NdJ("change",function(Be){const u=M.CHM(Ne).$implicit,_=M.oxw(2);return M.KtG(Be?_.selection.toggle(u):null)})("click",function(Be){return Be.stopPropagation()}),M.ALo(2,"translate"),M.ALo(3,"checkboxLabel"),M.ALo(4,"userFullName"),M.ALo(5,"lowercase"),M.qZA()()}if(2&pe){const Ne=Ie.$implicit,we=M.oxw(2);M.xp6(1),M.Q2q("data-cy","",M.lcZ(5,11,Ne.firstName),"-checkbox"),M.Q6J("aria-label",M.xi3(2,4,M.lcZ(3,7,we.selection.isSelected(Ne)),M.VKq(13,ie,M.lcZ(4,9,Ne))))("checked",we.selection.isSelected(Ne))("disabled",we.disableSelf&&Ne.id===we.principalId&&!we.authResolver.isPerunAdmin())}}function Ye(pe,Ie){1&pe&&(M.ynx(0,17),M.YNc(1,ee,2,1,"th",18),M.YNc(2,xe,6,15,"td",19),M.BQk())}function Le(pe,Ie){1&pe&&M._UZ(0,"th",25)}function $e(pe,Ie){1&pe&&(M.TgZ(0,"mat-icon",29),M.ALo(1,"translate"),M._uU(2," account_circle "),M.qZA()),2&pe&&M.s9C("matTooltip",M.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function qe(pe,Ie){if(1&pe&&(M._UZ(0,"mat-icon",30),M.ALo(1,"translate")),2&pe){const Ne=M.oxw(2);M.s9C("matTooltip",M.lcZ(1,2,"MANAGERS_LIST.SERVICE")),M.Q6J("svgIcon",Ne.svgIcon)}}function Ze(pe,Ie){if(1&pe&&(M.TgZ(0,"td",26),M.YNc(1,$e,3,3,"mat-icon",27),M.YNc(2,qe,2,4,"mat-icon",28),M.qZA()),2&pe){const Ne=Ie.$implicit;M.xp6(1),M.Q6J("ngIf",!Ne.serviceUser),M.xp6(1),M.Q6J("ngIf",Ne.serviceUser)}}function Pe(pe,Ie){1&pe&&(M.TgZ(0,"th",31),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&pe&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function se(pe,Ie){if(1&pe&&(M.TgZ(0,"td",26),M._uU(1),M.qZA()),2&pe){const Ne=Ie.$implicit;M.xp6(1),M.hij(" ",Ne.id," ")}}function N(pe,Ie){1&pe&&(M.TgZ(0,"th",31),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&pe&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function U(pe,Ie){if(1&pe&&(M.TgZ(0,"td",32),M.ALo(1,"lowercase"),M._uU(2),M.ALo(3,"userFullName"),M.qZA()),2&pe){const Ne=Ie.$implicit;M.Q2q("data-cy","",M.lcZ(1,2,Ne.firstName),"-firstName-td"),M.xp6(2),M.hij(" ",M.lcZ(3,4,Ne)," ")}}function $(pe,Ie){1&pe&&(M.TgZ(0,"th",31),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&pe&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function ce(pe,Ie){if(1&pe&&(M.TgZ(0,"td",32),M._uU(1),M.ALo(2,"userVo"),M.qZA()),2&pe){const Ne=Ie.$implicit;M.xp6(1),M.Oqu(M.lcZ(2,1,Ne))}}function De(pe,Ie){1&pe&&(M.TgZ(0,"th",31),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&pe&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function he(pe,Ie){if(1&pe&&(M.TgZ(0,"td",32),M._uU(1),M.ALo(2,"userEmail"),M.qZA()),2&pe){const Ne=Ie.$implicit;M.xp6(1),M.Oqu(M.lcZ(2,1,Ne))}}function Oe(pe,Ie){1&pe&&(M.TgZ(0,"th",31),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&pe&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function it(pe,Ie){if(1&pe&&(M.TgZ(0,"td",32),M._uU(1),M.ALo(2,"userLogins"),M.qZA()),2&pe){const Ne=Ie.$implicit;M.xp6(1),M.Oqu(M.lcZ(2,1,Ne))}}function Ce(pe,Ie){1&pe&&M._UZ(0,"tr",33)}const ot=function(pe){return["/admin/users",pe]},Ue=function(pe){return["/myProfile/service-identities",pe]};function ft(pe,Ie){if(1&pe&&M._UZ(0,"tr",34),2&pe){const Ne=Ie.$implicit,we=M.oxw();M.ekj("cursor-pointer",!we.disableRouting),M.Q6J("routerLink",we.disableRouting?null:we.routeToAdmin?M.VKq(4,ot,Ne.id):M.VKq(6,Ue,Ne.id))("perunWebAppsMiddleClickRouterLink",we.disableRouting?null:we.routeToAdmin?M.VKq(8,ot,Ne.id):M.VKq(10,Ue,Ne.id))}}function Z(pe,Ie){if(1&pe&&(M.TgZ(0,"perun-web-apps-alert",35),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&pe){const Ne=M.oxw();M.xp6(1),M.hij(" ",Ne.noUsersFoundLabel?Ne.noUsersFoundLabel:M.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function lt(pe,Ie){1&pe&&(M.TgZ(0,"perun-web-apps-alert",35),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&pe&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const Ae=function(pe){return{all:pe}};let Ke=(()=>{class pe{constructor(Ne,we,Be){this.authResolver=Ne,this.tableCheckbox=we,this.storeService=Be,this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.routeToAdmin=!0,this.disableRouting=!1,this.filter="",this.disableSelf=!1,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=S.f7}set matSort(Ne){this.sort=Ne}static getDataForColumn(Ne,we){switch(we){case"id":return Ne.id.toString();case"user":return Ne.serviceUser?"true":"false";case"name":return Ne?Ne.lastName?Ne.lastName:Ne.firstName??"":"";case"organization":return(0,S.OV)(Ne);case"email":return(0,S.kN)(Ne);case"logins":return(0,S.lt)(Ne);default:return""}}static getExportDataForColumn(Ne,we){switch(we){case"id":return Ne.id.toString();case"user":return Ne.serviceUser?"service-user":"user";case"name":return Ne?(0,S.bD)(Ne):"";case"organization":return(0,S.OV)(Ne);case"email":return(0,S.kN)(Ne);case"logins":return(0,S.lt)(Ne);default:return""}}exportAllData(Ne){(0,S.O6)((0,S.Xn)(this.dataSource.filteredData,this.displayedColumns,pe.getExportDataForColumn),Ne)}exportDisplayedData(Ne){const we=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Be=we+this.dataSource.paginator.pageSize;(0,S.O6)((0,S.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(we,Be),this.displayedColumns,pe.getExportDataForColumn),Ne)}setDataSource(){this.dataSource||(this.dataSource=new f.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Ne,we)=>(0,S.Sd)(Ne,we,this.displayedColumns,pe.getDataForColumn),this.dataSource.sortData=(Ne,we)=>(0,S.pR)(Ne,we,pe.getDataForColumn)),this.dataSource.filter=this.filter,this.dataSource.data=this.users}ngOnChanges(){this.principalId=this.storeService.getPerunPrincipal().userId,this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ne=>"id"!==Ne)),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return pe.\u0275fac=function(Ne){return new(Ne||pe)(M.Y36(m.x4),M.Y36(m.UA),M.Y36(m.d6))},pe.\u0275cmp=M.Xpm({type:pe,selectors:[["app-users-list"]],viewQuery:function(Ne,we){if(1&Ne&&(M.Gf(S.l9,7),M.Gf(e.YE,7)),2&Ne){let Be;M.iGM(Be=M.CRH())&&(we.child=Be.first),M.iGM(Be=M.CRH())&&(we.matSort=Be.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[M.TTD],decls:27,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"svgIcon","matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"svgIcon","matTooltip"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(Ne,we){1&Ne&&(M.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),M.NdJ("exportDisplayedData",function(r){return we.exportDisplayedData(r)})("exportAllData",function(r){return we.exportAllData(r)}),M.TgZ(2,"table",2),M.YNc(3,Ye,3,0,"ng-container",3),M.ALo(4,"isAllSelected"),M.ynx(5,4),M.YNc(6,Le,1,0,"th",5),M.YNc(7,Ze,3,2,"td",6),M.BQk(),M.ynx(8,7),M.YNc(9,Pe,3,3,"th",8),M.YNc(10,se,2,1,"td",6),M.BQk(),M.ynx(11,9),M.YNc(12,N,3,3,"th",8),M.YNc(13,U,4,6,"td",10),M.BQk(),M.ynx(14,11),M.YNc(15,$,3,3,"th",8),M.YNc(16,ce,3,3,"td",10),M.BQk(),M.ynx(17,12),M.YNc(18,De,3,3,"th",8),M.YNc(19,he,3,3,"td",10),M.BQk(),M.ynx(20,13),M.YNc(21,Oe,3,3,"th",8),M.YNc(22,it,3,3,"td",10),M.BQk(),M.YNc(23,Ce,1,0,"tr",14),M.YNc(24,ft,1,12,"tr",15),M.qZA()()(),M.YNc(25,Z,3,3,"perun-web-apps-alert",16),M.YNc(26,lt,3,3,"perun-web-apps-alert",16)),2&Ne&&(M.Q6J("hidden",0===we.users.length||!we.dataSource||0===we.dataSource.filteredData.length),M.xp6(1),M.Q6J("dataLength",we.dataSource.filteredData.length)("pageSizeOptions",we.pageSizeOptions)("tableId",we.tableId),M.xp6(1),M.Q6J("dataSource",we.dataSource),M.xp6(1),M.Q6J("ngIf",M.VKq(13,Ae,M.xi3(4,10,we.dataSource,we.selection.selected.length))),M.xp6(20),M.Q6J("matHeaderRowDef",we.displayedColumns),M.xp6(1),M.Q6J("matRowDefColumns",we.displayedColumns),M.xp6(1),M.Q6J("ngIf",0===we.users.length),M.xp6(1),M.Q6J("ngIf",0===we.dataSource.filteredData.length&&0!==we.users.length))},dependencies:[w.O5,x.rH,P.Hw,e.YE,e.nU,f.BZ,f.fO,f.as,f.w1,f.Dz,f.nj,f.ge,f.ev,f.XQ,f.Gk,F.oG,T.gM,B.w,I.Y,q.Q,ue.l,w.i8,j.X$,Q.d,be.S,me.g,fe.Z,re.I,v.G,V.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),pe})()},57706:(Xe,ae,p)=>{"use strict";p.d(ae,{c:()=>A});var e=p(94650),f=p(89383);let A=(()=>{class S{constructor(M){this.translateService=M,this.returnData=""}transform(M){return this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES."+M).subscribe(w=>{this.returnData=w}),this.returnData}}return S.\u0275fac=function(M){return new(M||S)(e.Y36(f.sK,16))},S.\u0275pipe=e.Yjl({name:"applicationFormItemType",type:S,pure:!0}),S})()},43157:(Xe,ae,p)=>{"use strict";p.d(ae,{h:()=>A});var e=p(94650),f=p(89383);let A=(()=>{class S{constructor(M){this.translate=M,this.returnData=""}transform(M){switch(M){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(w=>{this.returnData=`done${w}`});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(w=>{this.returnData=`clear${w}`});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(w=>{this.returnData=`contact_mail ${w}`});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(w=>{this.returnData=`gavel${w}`});break;default:this.returnData=M}return this.returnData}}return S.\u0275fac=function(M){return new(M||S)(e.Y36(f.sK,16))},S.\u0275pipe=e.Yjl({name:"applicationState",type:S,pure:!1}),S})()},70844:(Xe,ae,p)=>{"use strict";p.d(ae,{u:()=>A});var e=p(80279),f=p(94650);let A=(()=>{class S{constructor(M){this.storeService=M,this.USER_CONSENT_RELATED_ATT_NAMESPACE=["urn:perun:user_facility:attribute-def","urn:perun:user:attribute-def","urn:perun:member:attribute-def","urn:perun:member_group:attribute-def","urn:perun:member_resource:attribute-def","urn:perun:ues:attribute-def"]}transform(M,w,x){return!!(this.storeService.getProperty("enforce_consents")&&x&&w)&&this.USER_CONSENT_RELATED_ATT_NAMESPACE.reduce((F,T)=>F||M.startsWith(T),!1)}}return S.\u0275fac=function(M){return new(M||S)(f.Y36(e.d6,16))},S.\u0275pipe=f.Yjl({name:"consentRelatedAttribute",type:S,pure:!0}),S})()},37677:(Xe,ae,p)=>{"use strict";p.d(ae,{A:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){return m.substring(40)}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"extSourceType",type:A,pure:!0}),A})()},32597:(Xe,ae,p)=>{"use strict";p.d(ae,{g:()=>S});var e=p(95698),f=p(94650),A=p(82761);let S=(()=>{class m{constructor(w,x){this.router=w,this.route=x}navigate(w,x=null){this.route.queryParams.pipe((0,e.q)(1)).subscribe(P=>{let F="merge";const T=Object.assign({},P);location.pathname.endsWith("applicationForm/preview")&&(F="",delete T.applicationFormItems),this.router.navigate(w,{relativeTo:x,queryParams:T,queryParamsHandling:F})})}}return m.\u0275fac=function(w){return new(w||m)(f.LFG(A.F0),f.LFG(A.gz))},m.\u0275prov=f.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},14264:(Xe,ae,p)=>{"use strict";p.d(ae,{m:()=>ut});var e=p(36895),f=p(82761),A=p(47957),S=p(4859),m=p(56709),M=p(3238),w=p(99602),x=p(7274),P=p(44850),F=p(37084),T=p(59549),B=p(97392),I=p(284),q=p(98739),ue=p(73162),j=p(51572),Q=p(71948),be=p(84385),me=p(23267),fe=p(90455),re=p(17009),v=p(96308),V=p(30671),W=p(3848),ee=p(10266),ie=p(35423),xe=p(73546),Ye=p(42673),Le=p(77331),$e=p(28255),qe=p(86257),Ze=p(24006),Pe=p(73228),se=p(36769),N=p(80279),U=p(94650),$=p(32597),ce=p(34198),De=p(89383);const he=["collapse"],Oe=function(){return{color:"linkTextColor"}};function it(vt,Bt){1&vt&&(U.TgZ(0,"mat-icon",14),U._uU(1,"keyboard_arrow_right"),U.qZA()),2&vt&&U.Q6J("ngStyle",U.DdM(1,Oe))}function Ce(vt,Bt){1&vt&&(U.TgZ(0,"mat-icon",14),U._uU(1,"keyboard_arrow_down"),U.qZA()),2&vt&&U.Q6J("ngStyle",U.DdM(1,Oe))}function ot(vt,Bt){if(1&vt&&(U.TgZ(0,"span",12),U.YNc(1,it,2,2,"mat-icon",13),U.YNc(2,Ce,2,2,"mat-icon",13),U.qZA()),2&vt){const Rt=U.oxw().$implicit,Ot=U.oxw(2);U.xp6(1),U.Q6J("ngIf",!Ot.isActive(Ot.currentUrl,Rt.showChildrenRegex)),U.xp6(1),U.Q6J("ngIf",Ot.isActive(Ot.currentUrl,Rt.showChildrenRegex))}}const Ue=function(vt,Bt){return{color:vt,"border-color":Bt}};function ft(vt,Bt){if(1&vt){const Rt=U.EpF();U.TgZ(0,"a",17),U.NdJ("click",function(){const hi=U.CHM(Rt).$implicit,kt=U.oxw(4);return U.KtG(kt.navigate(hi.url))}),U._uU(1),U.ALo(2,"translate"),U.qZA()}if(2&vt){const Rt=Bt.$implicit,Ot=U.oxw(4);U.ekj("activated",Ot.isActive(Ot.currentUrl,Rt.activatedRegex)&&void 0===Ot.item.activatedClass),U.Q6J("perunWebAppsMiddleClickRouterLink",Rt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Ot.isActive(Ot.currentUrl,Rt.activatedRegex)&&void 0!==Ot.item.activatedClass?Ot.item.activatedClass:"")("ngStyle",U.WLB(9,Ue,Ot.linkTextColor,Ot.linkTextColor)),U.xp6(1),U.hij(" ",U.lcZ(2,7,Rt.label)," ")}}function Z(vt,Bt){if(1&vt&&(U.TgZ(0,"div",15),U.YNc(1,ft,3,12,"a",16),U.qZA()),2&vt){const Rt=U.oxw().$implicit;U.Q6J("@rollInOut",void 0),U.xp6(1),U.Q6J("ngForOf",null==Rt?null:Rt.children)}}function lt(vt,Bt){if(1&vt){const Rt=U.EpF();U.TgZ(0,"div")(1,"a",9),U.NdJ("click",function(){const hi=U.CHM(Rt).$implicit,kt=U.oxw(2);return U.KtG(kt.navigate(hi.url))}),U._uU(2),U.ALo(3,"translate"),U.YNc(4,ot,3,2,"span",10),U.qZA(),U.YNc(5,Z,2,2,"div",11),U.qZA()}if(2&vt){const Rt=Bt.$implicit,Ot=U.oxw(2);U.xp6(1),U.ekj("activated",Ot.isActive(Ot.currentUrl,Rt.activatedRegex)&&void 0===Ot.item.activatedClass),U.Q6J("perunWebAppsMiddleClickRouterLink",Rt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Ot.isActive(Ot.currentUrl,Rt.activatedRegex)&&void 0!==Ot.item.activatedClass?Ot.item.activatedClass:"")("ngStyle",U.WLB(11,Ue,Ot.linkTextColor,Ot.linkTextColor)),U.xp6(1),U.hij(" ",U.lcZ(3,9,Rt.label)," "),U.xp6(2),U.Q6J("ngIf",Rt.children),U.xp6(1),U.Q6J("ngIf",Ot.isActive(Ot.currentUrl,Rt.showChildrenRegex))}}function Ae(vt,Bt){if(1&vt&&(U.TgZ(0,"div"),U.YNc(1,lt,6,14,"div",8),U.qZA()),2&vt){const Rt=U.oxw();U.Q6J("@rollInOut",void 0),U.xp6(1),U.Q6J("ngForOf",Rt.item.links)}}const Ke=function(vt,Bt){return{background:vt,"border-top":Bt}},pe=function(vt){return{color:vt}},Ie=function(){return{color:"currentColor"}},Ne=function(vt){return{background:vt}};let we=(()=>{class vt{constructor(Rt,Ot,si){this.router=Rt,this.store=Ot,this.queryParamsRouter=si,this.expanded=!0,this.linkBgColor=this.store.getProperty("theme").sidemenu_submenu_bg_color,this.linkTextColor=this.store.getProperty("theme").sidemenu_submenu_text_color,this.dividerStyle="1px solid "+this.store.getProperty("theme").sidemenu_divider_color,this.currentUrl=Rt.url,Rt.events.subscribe(hi=>{hi instanceof f.m2&&(this.currentUrl=hi.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(Rt,Ot){return new RegExp(Ot).test(Rt.split("?")[0])}navigate(Rt){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.queryParamsRouter.navigate(Rt)):this.queryParamsRouter.navigate(Rt)}}return vt.\u0275fac=function(Rt){return new(Rt||vt)(U.Y36(f.F0),U.Y36(N.d6),U.Y36($.g))},vt.\u0275cmp=U.Xpm({type:vt,selectors:[["app-side-menu-item"]],viewQuery:function(Rt,Ot){if(1&Rt&&U.Gf(he,5),2&Rt){let si;U.iGM(si=U.CRH())&&(Ot.collapseDiv=si.first)}},inputs:{item:"item",index:"index",showLinks:"showLinks",sideNav:"sideNav"},decls:12,vars:26,consts:[[1,"entity-menu-item"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","click"],["matRipple","",3,"perunWebAppsMiddleClickRouterLink"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ms-3"],[3,"ngStyle"],[4,"ngIf"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ms-auto",4,"ngIf"],["class","entity-menu-item-sub-menu",4,"ngIf"],[1,"ms-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],[1,"entity-menu-item-sub-menu"],["class","entity-menu-item-sub-menu-item clickable","matRipple","",3,"perunWebAppsMiddleClickRouterLink","activated","matRippleColor","ngClass","ngStyle","click",4,"ngFor","ngForOf"],["matRipple","",1,"entity-menu-item-sub-menu-item","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"]],template:function(Rt,Ot){1&Rt&&(U.TgZ(0,"div",0)(1,"div",1),U.NdJ("click",function(){return Ot.toggle()}),U.TgZ(2,"div",2)(3,"a",3)(4,"div"),U._UZ(5,"mat-icon",4),U.qZA(),U.TgZ(6,"div",5),U._uU(7),U.ALo(8,"translate"),U.qZA()()()(),U.TgZ(9,"div")(10,"div",6),U.YNc(11,Ae,2,2,"div",7),U.qZA()()()),2&Rt&&(U.xp6(1),U.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",U.WLB(18,Ke,Ot.item.backgroundColorCss,Ot.index?Ot.dividerStyle:"none")),U.xp6(1),U.Gre("entity-menu-item-link ",Ot.item.labelClass,""),U.Q6J("perunWebAppsMiddleClickRouterLink",Ot.item.baseLink),U.xp6(1),U.Q6J("ngStyle",U.VKq(21,pe,Ot.item.textColorCss)),U.xp6(2),U.Q6J("ngStyle",U.DdM(23,Ie))("svgIcon",Ot.item.icon),U.xp6(2),U.Oqu(U.lcZ(8,16,Ot.item.label)),U.xp6(2),U.Q6J("@openClose",Ot.expanded?"open":"closed"),U.xp6(1),U.Gre("side-entity-menu ",Ot.item.linksClass,""),U.Q6J("ngStyle",U.VKq(24,Ne,Ot.linkBgColor)),U.xp6(1),U.Q6J("ngIf",Ot.showLinks))},dependencies:[e.mk,e.sg,e.O5,e.PC,B.Hw,M.wG,ce.Y,De.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important;color:var(--side-link-text-hover)!important}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 40px;text-decoration:none;color:#fff;font-size:1rem;display:block}.activated[_ngcontent-%COMP%]{color:#313131!important;border-right:5px solid #313131}.entity-menu-item-header[_ngcontent-%COMP%]{padding:8px 5px 8px 25px;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;word-break:break-word;text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff;text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-item-sub-menu[_ngcontent-%COMP%]{overflow:hidden}.entity-menu-item-sub-menu-item[_ngcontent-%COMP%]{padding-left:4rem!important}"],data:{animation:[se.BQ,se.Ly]}}),vt})(),Be=(()=>{class vt{transform(Rt){if(void 0===Rt.value)return"";switch(Rt.type){case"java.lang.String":return Rt.value;case"java.lang.Integer":case"java.lang.Boolean":default:return String(Rt.value);case"java.util.ArrayList":return this.whenValueIsArray(Rt.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(Rt.value)}}whenValueIsArray(Rt){let Ot="";return Rt.forEach(function(si){Ot=Ot.concat(si+", ")}),Ot}whenValueIsMap(Rt){let Ot="";return Rt.forEach((si,hi)=>{Ot=Ot.concat(hi+": "+si+", ")}),Ot}}return vt.\u0275fac=function(Rt){return new(Rt||vt)},vt.\u0275pipe=U.Yjl({name:"anyToString",type:vt,pure:!0}),vt})();const r=["collapse"],u=function(){return{color:"linkTextColor"}};function _(vt,Bt){1&vt&&(U.TgZ(0,"mat-icon",12),U._uU(1,"keyboard_arrow_right"),U.qZA()),2&vt&&U.Q6J("ngStyle",U.DdM(1,u))}function C(vt,Bt){1&vt&&(U.TgZ(0,"mat-icon",12),U._uU(1,"keyboard_arrow_down"),U.qZA()),2&vt&&U.Q6J("ngStyle",U.DdM(1,u))}function h(vt,Bt){if(1&vt&&(U.TgZ(0,"span",10),U.YNc(1,_,2,2,"mat-icon",11),U.YNc(2,C,2,2,"mat-icon",11),U.qZA()),2&vt){const Rt=U.oxw().$implicit,Ot=U.oxw();U.xp6(1),U.Q6J("ngIf",!Ot.isActive(Ot.currentUrl,Rt.showChildrenRegex)),U.xp6(1),U.Q6J("ngIf",Ot.isActive(Ot.currentUrl,Rt.showChildrenRegex))}}const o=function(vt,Bt){return{color:vt,"border-color":Bt}};function n(vt,Bt){if(1&vt){const Rt=U.EpF();U.TgZ(0,"a",14),U.NdJ("click",function(){const hi=U.CHM(Rt).$implicit,kt=U.oxw(3);return U.KtG(kt.navigate(hi.url))}),U._uU(1),U.ALo(2,"translate"),U.qZA()}if(2&vt){const Rt=Bt.$implicit,Ot=U.oxw(3);U.ekj("activated",Ot.isActive(Ot.currentUrl,Rt.activatedRegex)&&void 0===Ot.item.activatedClass),U.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",U.WLB(9,o,Ot.linkTextColor,Ot.linkTextColor))("ngClass",Ot.isActive(Ot.currentUrl,Rt.activatedRegex)&&void 0!==Ot.item.activatedClass?Ot.item.activatedClass:"")("perunWebAppsMiddleClickRouterLink",Rt.url),U.xp6(1),U.hij(" ",U.lcZ(2,7,Rt.label)," ")}}function t(vt,Bt){if(1&vt&&(U.TgZ(0,"div"),U.YNc(1,n,3,12,"a",13),U.qZA()),2&vt){const Rt=U.oxw().$implicit;U.Q6J("@rollInOut",void 0),U.xp6(1),U.Q6J("ngForOf",null==Rt?null:Rt.children)}}function i(vt,Bt){if(1&vt){const Rt=U.EpF();U.TgZ(0,"div")(1,"a",7),U.NdJ("click",function(){const hi=U.CHM(Rt).$implicit,kt=U.oxw();return U.KtG(kt.navigate(hi.url))}),U._uU(2),U.ALo(3,"translate"),U.YNc(4,h,3,2,"span",8),U.qZA(),U.YNc(5,t,2,2,"div",9),U.qZA()}if(2&vt){const Rt=Bt.$implicit,Ot=U.oxw();U.xp6(1),U.ekj("activated",Ot.isActive(Ot.currentUrl,Rt.activatedRegex)&&void 0===Ot.item.activatedClass),U.Q6J("perunWebAppsMiddleClickRouterLink",Rt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Ot.isActive(Ot.currentUrl,Rt.activatedRegex)&&void 0!==Ot.item.activatedClass?Ot.item.activatedClass:"")("ngStyle",U.WLB(11,o,Ot.linkTextColor,Ot.linkTextColor)),U.xp6(1),U.hij(" ",U.lcZ(3,9,Rt.label)," "),U.xp6(2),U.Q6J("ngIf",Rt.children),U.xp6(1),U.Q6J("ngIf",Ot.isActive(Ot.currentUrl,Rt.showChildrenRegex))}}const a=function(vt){return{background:vt}},l=function(vt){return{color:vt}},d=function(){return{color:"currentColor"}};let c=(()=>{class vt{constructor(Rt,Ot,si){this.router=Rt,this.store=Ot,this.queryParamsRouter=si,this.id="",this.expanded=!1,this.linkBgColor=this.store.getProperty("theme").sidemenu_submenu_bg_color,this.linkTextColor=this.store.getProperty("theme").sidemenu_submenu_text_color,this.currentUrl=Rt.url,Rt.events.subscribe(hi=>{hi instanceof f.m2&&(this.currentUrl=hi.url)})}ngOnInit(){this.expanded=this.showOpen}ngOnChanges(){this.expanded=this.showOpen}toggle(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}isActive(Rt,Ot){return new RegExp(Ot).test(Rt)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(Rt){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.queryParamsRouter.navigate(Rt)):this.queryParamsRouter.navigate(Rt)}}return vt.\u0275fac=function(Rt){return new(Rt||vt)(U.Y36(f.F0),U.Y36(N.d6),U.Y36($.g))},vt.\u0275cmp=U.Xpm({type:vt,selectors:[["app-side-menu-root-item"]],viewQuery:function(Rt,Ot){if(1&Rt&&U.Gf(r,5),2&Rt){let si;U.iGM(si=U.CRH())&&(Ot.collapseDiv=si.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[U.TTD],decls:12,vars:28,consts:[[1,"entity-menu-item",3,"id"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","perunWebAppsMiddleClickRouterLink","click"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ms-3"],[3,"ngStyle"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ms-auto",4,"ngIf"],[4,"ngIf"],[1,"ms-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],["class","ps-5 clickable","matRipple","",3,"activated","matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click",4,"ngFor","ngForOf"],["matRipple","",1,"ps-5","clickable",3,"matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click"]],template:function(Rt,Ot){1&Rt&&(U.TgZ(0,"div",0)(1,"div",1),U.NdJ("click",function(){return Ot.toggle()}),U.TgZ(2,"div")(3,"a",2)(4,"div"),U._UZ(5,"mat-icon",3),U.qZA(),U.TgZ(6,"div",4),U._uU(7),U.ALo(8,"translate"),U.qZA()()()(),U.TgZ(9,"div")(10,"div",5),U.YNc(11,i,6,14,"div",6),U.qZA()()()),2&Rt&&(U.s9C("id",Ot.id),U.xp6(1),U.ekj("root-header-activated",Ot.isActive(Ot.currentUrl,Ot.item.baseColorClassRegex)),U.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",U.VKq(21,a,Ot.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",Ot.item.baseLink),U.xp6(1),U.Gre("entity-menu-item-link ",Ot.item.labelClass,""),U.xp6(1),U.Q6J("ngStyle",U.VKq(23,l,Ot.item.textColorCss)),U.xp6(2),U.Q6J("ngStyle",U.DdM(25,d))("svgIcon",Ot.item.icon),U.xp6(2),U.Oqu(U.lcZ(8,19,Ot.item.label)),U.xp6(2),U.Q6J("@openClose",Ot.expanded?"open":"closed"),U.xp6(1),U.Gre("side-entity-menu ",Ot.item.linksClass,""),U.Q6J("ngStyle",U.VKq(26,a,Ot.linkBgColor)),U.xp6(1),U.Q6J("ngForOf",Ot.item.links))},dependencies:[e.mk,e.sg,e.O5,e.PC,B.Hw,M.wG,ce.Y,De.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 32px;text-decoration:none;font-size:1rem;color:#fff;display:block}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important;color:var(--side-link-text-hover)!important}.root-header-activated[_ngcontent-%COMP%]{background:var(--side-root-item-active)!important;color:var(--side-root-item-text-active)!important}.entity-menu-item-header[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-header[_ngcontent-%COMP%]:hover{background:var(--side-root-item-hover)!important;color:var(--side-root-item-text-hover)!important}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;color:#fff;text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff;text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}"],data:{animation:[se.BQ,se.Ly]}}),vt})();var s=p(73555),E=p(67376),H=p(63189),ne=p(46860),ve=p(37677),We=p(37433),Mt=p(11243),pt=p(19516),_t=p(33231),ye=p(96338),Ee=p(9244),oe=p(28499),_e=p(70844),Te=p(21029);let ut=(()=>{class vt{constructor(Rt){this.translate=Rt,Rt.addLangs(["en","cs"])}}return vt.\u0275fac=function(Rt){return new(Rt||vt)(U.LFG(De.sK))},vt.\u0275mod=U.oAB({type:vt}),vt.\u0275inj=U.cJS({providers:[Be,ve.A,_e.u],imports:[e.ez,f.Bz,A.Bb,I.c,T.lN,Ze.UX,Ze.u5,B.Ps,me.SJ,F.To,De.aw.forChild({}),S.ot,v.JX,V.p0,W.Nh,ie.dp,S.ot,m.p9,x.Is,be.LD,re.ZX,j.Cq,ue.Cv,ee.AV,fe.rP,w.FA,M.XK,Q.Fk,P.t,M.si,q.TU,xe.QW,qe.T5,s._t,xe.QW,Le.Hi,$e.Tx,E.Cl,H.r,ne.A,Ye.g,We.ez,Mt.r,pt.d4,_t.Co,ye.ie,Ee.Je,oe.E3,Te.jD,_t.Co,A.Bb,I.c,f.Bz,Ze.UX,Ze.u5,B.Ps,me.SJ,De.aw,v.JX,V.p0,W.Nh,ie.dp,S.ot,m.p9,x.Is,be.LD,re.ZX,j.Cq,ue.Cv,ee.AV,fe.rP,w.FA,M.XK,Q.Fk,P.t,xe.QW,qe.T5,M.si,q.TU,s._t,Le.Hi,Le.Hi,F.To,$e.Tx,E.Cl,E.Cl,E.Cl,Mt.r]}),vt})();U.B6R(Pe.V,function(){return[e.sg,e.O5,we,c]},[])},69024:(Xe,ae,p)=>{"use strict";p.d(ae,{V:()=>x});var e=p(80279),f=p(61744),A=p(9244),S=p(19516),m=p(64080),M=p(94650),w=p(89383);let x=(()=>{class P{constructor(T,B,I,q,ue,j,Q,be){this.translate=T,this.authResolver=B,this.store=I,this.apiRequest=q,this.attributesManager=ue,this.notificator=j,this.guiAuthResolver=Q,this.routePolicyService=be,this.theme=this.store.getProperty("theme")}getFacilitiesManagementItem(){return{label:"MAIN_MENU.FACILITIES",colorClass:"base-item-color-activated",icon:"perun-facility-white",baseLink:["/facilities"],links:[],baseColorClass:"base-item-color",baseColorClassRegex:"^/facilities$",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color}}getAccessManagementItem(){return{label:"MAIN_MENU.ACCESS",colorClass:"base-item-color-activated",icon:"perun-vo",links:[],baseLink:["/organizations"],baseColorClass:"base-item-color",baseColorClassRegex:"^/organizations$",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color}}getHomeItem(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^/home$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[]}}getUserItem(){return{baseLink:["/myProfile"],expandable:!1,label:"MAIN_MENU.MY_PROFILE",colorClass:"base-item-color-activated",icon:"perun-user",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:["/myProfile"],activatedRegex:"^/myProfile$"},{label:"MENU_ITEMS.USER.ORGANIZATIONS",url:["/myProfile/organizations"],activatedRegex:"^/myProfile/organizations$"},{label:"MENU_ITEMS.USER.GROUPS",url:["/myProfile/groups"],activatedRegex:"^/myProfile/groups$"},{label:"MENU_ITEMS.USER.ATTRIBUTES",url:["/myProfile/attributes"],activatedRegex:"^/myProfile/attributes$"},{label:"MENU_ITEMS.USER.ROLES",url:["/myProfile/roles"],activatedRegex:"/myProfile/roles"},{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["/myProfile/service-identities"],activatedRegex:"^/myProfile/service-identities"},{label:"MENU_ITEMS.USER.BANS",url:["/myProfile/bans"],activatedRegex:"^/myProfile/bans"},{label:"MENU_ITEMS.USER.SETTINGS",url:["/myProfile/settings"],activatedRegex:"^/myProfile/settings$",children:[{label:"MENU_ITEMS.USER.PASSWORD_RESET",url:["/myProfile/settings/passwordReset"],activatedRegex:"^/myProfile/settings/passwordReset"},{label:"MENU_ITEMS.USER.GUI_CONFIG",url:["/myProfile/settings/guiConfig"],activatedRegex:"/myProfile/settings/guiConfig"}],showChildrenRegex:"/myProfile/settings"}]}}getAdminItem(){return{baseLink:["/admin"],expandable:!1,label:"MAIN_MENU.ADMIN",colorClass:"base-item-color-activated",icon:"perun-perun-admin",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[{label:"MENU_ITEMS.ADMIN.OVERVIEW",url:["/admin"],activatedRegex:"^/admin$"},{label:"MENU_ITEMS.ADMIN.ATTRIBUTES",url:["/admin/attributes"],activatedRegex:"^/admin/attributes$"},{label:"MENU_ITEMS.ADMIN.USERS",url:["/admin/users"],activatedRegex:"^/admin/users$"},{label:"MENU_ITEMS.ADMIN.OWNERS",url:["/admin/owners"],activatedRegex:"^/admin/owners$"},{label:"MENU_ITEMS.ADMIN.SERVICES",url:["/admin/services"],activatedRegex:"^/admin/services$"},{label:"MENU_ITEMS.ADMIN.VISUALIZER",url:["/admin/visualizer"],activatedRegex:"^/admin/visualizer$",children:[{label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",url:["/admin/visualizer/attrDependencies"],activatedRegex:"^/admin/visualizer/attrDependencies"},{label:this.translate.instant("MENU_ITEMS.VISUALIZER.USER_DESTINATION"),url:["/admin/visualizer/userDestinationRelationship"],activatedRegex:"^/admin/visualizer/userDestinationRelationship"}],showChildrenRegex:"/admin/visualizer"},{label:"MENU_ITEMS.ADMIN.EXT_SOURCES",url:["/admin/ext_sources"],activatedRegex:"^/admin/ext_sources$"},{label:"MENU_ITEMS.ADMIN.AUDIT_LOG",url:["/admin/audit_log"],activatedRegex:"^/admin/audit_log$"},{label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",url:["/admin/consent_hubs"],activatedRegex:"^/admin/consent_hubs$"},{label:"MENU_ITEMS.ADMIN.SEARCHER",url:["/admin/searcher"],activatedRegex:"^/admin/searcher"}]}}parseFacility(T){return{label:T.name,baseLink:[`/facilities/${T.id}`],backgroundColorCss:this.theme.sidemenu_facility_bg_color,textColorCss:this.theme.sidemenu_facility_text_color,links:this.getFacilityLinks(T),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(T,B){const I=(new S.r5).transform(T,B);return{label:T.name,baseLink:[I],backgroundColorCss:this.theme.sidemenu_resource_bg_color,textColorCss:this.theme.sidemenu_resource_text_color,links:this.getResourceLinks(I,B?"/organizations":"/facilities",T),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseGroup(T){return{label:T.name,baseLink:[`/organizations/${T.voId}/groups/${T.id}`],backgroundColorCss:this.theme.sidemenu_group_bg_color,textColorCss:this.theme.sidemenu_group_text_color,links:this.getGroupLinks(T),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(T,B=!1,I=!1){return{label:T.name,baseLink:[`/organizations/${T.id}`],links:this.getVoLinks(T,I),colorClass:"vo-item",icon:B?"perun-hierarchical-vo":"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_vo_bg_color,textColorCss:this.theme.sidemenu_vo_text_color}}parseMember(T){return{label:(0,A.bD)(T.user),baseLink:[`/organizations/${T.voId}/members/${T.id}`],backgroundColorCss:this.theme.sidemenu_member_bg_color,textColorCss:this.theme.sidemenu_member_text_color,links:this.getMemberLinks(T),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(T,B,I){return{label:(0,A.bD)(T),baseLink:[B],backgroundColorCss:this.theme.sidemenu_user_bg_color,textColorCss:this.theme.sidemenu_user_text_color,links:this.getUserLinks(T,B,I),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(T){return{label:(0,A.bD)(T),baseLink:[`/myProfile/service-identities/${T.id}`],backgroundColorCss:this.theme.sidemenu_user_bg_color,textColorCss:this.theme.sidemenu_user_text_color,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${T.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${T.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"},{label:"MENU_ITEMS.USER.MAILING_LISTS",url:[`/myProfile/service-identities/${T.id}/mailing-lists`],activatedRegex:"/myProfile/service-identities/\\d+/mailing-lists"},{label:"MENU_ITEMS.USER.DATA_QUOTAS",url:[`/myProfile/service-identities/${T.id}/data-quotas`],activatedRegex:"/myProfile/service-identities/\\d+/data-quotas"},{label:"MENU_ITEMS.USER.AUTHENTICATION",url:[`/myProfile/service-identities/${T.id}/authentication`],activatedRegex:"/myProfile/service-identities/\\d+/authentication$",children:[{label:"MENU_ITEMS.USER.LOGINS",url:[`/myProfile/service-identities/${T.id}/authentication/logins`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/logins"},{label:"MENU_ITEMS.USER.CERTIFICATES",url:[`/myProfile/service-identities/${T.id}/authentication/certificates`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/certificates"},{label:"MENU_ITEMS.USER.SSH_KEYS",url:[`/myProfile/service-identities/${T.id}/authentication/ssh-keys`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/ssh-keys"}],showChildrenRegex:"/myProfile/service-identities/\\d+/authentication"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(T){return{label:T.name,baseLink:[`/admin/services/${T.id}`],backgroundColorCss:this.theme.sidemenu_service_bg_color,textColorCss:this.theme.sidemenu_service_text_color,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${T.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${T.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${T.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(T,B){const I=[];if(I.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${T.id}`],activatedRegex:"/organizations/\\d+$"}),this.routePolicyService.canNavigate("organizations-members",T)&&I.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${T.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.routePolicyService.canNavigate("organizations-groups",T)&&I.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${T.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.routePolicyService.canNavigate("organizations-resources",T)){const q=[];this.routePolicyService.canNavigate("organizations-resources-preview",T)&&q.push({label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${T.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}),this.routePolicyService.canNavigate("organizations-resources-tags",T)&&q.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${T.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.routePolicyService.canNavigate("organizations-resources-states",T)&&q.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${T.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),I.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${T.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:q,showChildrenRegex:"/organizations/\\d+/resources"})}if(this.routePolicyService.canNavigate("organizations-applications",T)&&I.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${T.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",T)&&I.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${T.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",T)&&I.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${T.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),this.routePolicyService.canNavigate("organizations-attributes",T)&&I.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${T.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.routePolicyService.canNavigate("organizations-statistics",T)&&I.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${T.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"}),this.routePolicyService.canNavigate("organizations-settings",T)){const q=[];this.routePolicyService.canNavigate("organizations-settings-expiration",T)&&q.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${T.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),this.routePolicyService.canNavigate("organizations-settings-managers",T)&&q.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${T.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",T)&&q.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${T.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("organizations-settings-notifications",T)&&q.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${T.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("organizations-settings-extsources",T)&&q.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${T.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",T)&&q.push({label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",url:[`/organizations/${T.id}/settings/memberOrganizations`],activatedRegex:"/organizations/\\d+/settings/memberOrganizations"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",T)&&B&&q.push({label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",url:[`/organizations/${T.id}/settings/hierarchicalInclusion`],activatedRegex:"/organizations/\\d+/settings/hierarchicalInclusion"}),this.routePolicyService.canNavigate("organizations-settings-bans",T)&&q.push({label:"MENU_ITEMS.VO.BANS",url:[`/organizations/${T.id}/settings/bans`],activatedRegex:"/organizations/\\d+/settings/bans"}),I.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${T.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:q,showChildrenRegex:"/organizations/\\d+/settings"})}return I}getUserLinks(T,B,I){const q=[];return q.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[B],activatedRegex:`${I}$`}),q.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${B}/organizations`],activatedRegex:`${I}/organizations`}),q.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${B}/groups`],activatedRegex:`${I}/groups`}),q.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${B}/accounts`],activatedRegex:`${I}/accounts`}),q.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${B}/identities`],activatedRegex:`${I}/identities`}),q.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${B}/facilities`],activatedRegex:`${I}/facilities`}),q.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${B}/resources`],activatedRegex:`${I}/resources`}),q.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${B}/attributes`],activatedRegex:`${I}/attributes`}),q.push({label:"MENU_ITEMS.USER.ROLES",url:[`${B}/roles`],activatedRegex:`^${B}/roles`}),q.push(T.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${B}/associated-users`],activatedRegex:`^${B}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${B}/service-identities`],activatedRegex:`^${B}/service-identities`}),q.push({label:"MENU_ITEMS.USER.BANS",url:[`${B}/bans`],activatedRegex:`^${B}/bans`}),q}getMemberLinks(T){const B=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${T.voId}/members/${T.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.routePolicyService.canNavigate("members-groups",T)&&B.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`/organizations/${T.voId}/members/${T.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.routePolicyService.canNavigate("members-applications",T)&&B.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`/organizations/${T.voId}/members/${T.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.routePolicyService.canNavigate("members-resources",T)&&B.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${T.voId}/members/${T.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),this.routePolicyService.canNavigate("members-attributes",T)&&B.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${T.voId}/members/${T.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),this.routePolicyService.canNavigate("members-bans",T)&&B.push({label:"MENU_ITEMS.MEMBER.BANS",url:[`/organizations/${T.voId}/members/${T.id}/bans`],activatedRegex:"/organizations/\\d+/members/\\d+/bans"}),B}getFacilityLinks(T){const B=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${T.id}`],activatedRegex:"/facilities/\\d+$"}];if(this.routePolicyService.canNavigate("facilities-resources",T)&&B.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${T.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.routePolicyService.canNavigate("facilities-allowed-users",T)&&B.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${T.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.routePolicyService.canNavigate("facilities-allowed-groups",T)&&B.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${T.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.routePolicyService.canNavigate("facilities-services-status",T)&&B.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${T.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.routePolicyService.canNavigate("facilities-services-destinations",T)&&B.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${T.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.routePolicyService.canNavigate("facilities-hosts",T)&&B.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${T.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),this.routePolicyService.canNavigate("facilities-attributes",T)&&B.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",T.id.toString(),"attributes"],activatedRegex:"/facilities/\\d+/attributes$"}),this.routePolicyService.canNavigate("facilities-settings",T)){const I=[];this.routePolicyService.canNavigate("facilities-settings-owners",T)&&I.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",T.id.toString(),"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),this.routePolicyService.canNavigate("facilities-settings-managers",T)&&I.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",T.id.toString(),"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",T)&&I.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${T.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",T)&&I.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",T.id.toString(),"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),this.routePolicyService.canNavigate("facilities-settings-bans",T)&&I.push({label:"MENU_ITEMS.FACILITY.BANS",url:[`/facilities/${T.id}/settings/bans`],activatedRegex:"/facilities/\\d+/settings/bans"}),B.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",T.id.toString(),"settings"],activatedRegex:"/facilities/\\d+/settings$",children:I,showChildrenRegex:"/facilities/\\d+/settings"})}return B}getGroupLinks(T){const B=[],I=[];return B.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${T.voId}/groups/${T.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.routePolicyService.canNavigate("groups-members",T)&&B.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${T.voId}/groups/${T.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.routePolicyService.canNavigate("groups-subgroups",T)&&"members"!==T.name&&B.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${T.voId}/groups/${T.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.routePolicyService.canNavigate("groups-resources",T)&&B.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${T.voId}/groups/${T.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),"members"!==T.name&&this.routePolicyService.canNavigate("groups-applications",T)&&B.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${T.voId}/groups/${T.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),this.routePolicyService.canNavigate("groups-attributes",T)&&B.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${T.voId}/groups/${T.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"}),this.routePolicyService.canNavigate("groups-statistics",T)&&B.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${T.voId}/groups/${T.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.routePolicyService.canNavigate("groups-roles",T)&&B.push({label:"MENU_ITEMS.GROUP.ROLES",url:[`/organizations/${T.voId}/groups/${T.id}/roles`],activatedRegex:"/organizations/\\d+/groups/\\d+/roles"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(T.id,m.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{I.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${T.voId}/groups/${T.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},q=>{"PrivilegeException"!==q.name&&this.notificator.showRPCError(q)}),this.routePolicyService.canNavigate("groups-settings-managers",T)&&I.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${T.voId}/groups/${T.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),"members"!==T.name&&this.routePolicyService.canNavigate("groups-settings-applicationForm",T)&&I.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${T.voId}/groups/${T.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("groups-settings-notifications",T)&&I.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${T.voId}/groups/${T.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("groups-settings-relations",T)&&I.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${T.voId}/groups/${T.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.routePolicyService.canNavigate("groups-settings-extsources",T)&&I.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${T.voId}/groups/${T.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==I.length&&B.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${T.voId}/groups/${T.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:I,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),B}getResourceLinks(T,B,I){const q=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[T],activatedRegex:`${B}/\\d+/resources/\\d+$`}];if(this.routePolicyService.canNavigate("resources-groups",I)&&q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[T,"groups"],activatedRegex:`${B}/\\d+/resources/\\d+/groups$`}),this.routePolicyService.canNavigate("resources-services",I)&&q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[T,"services"],activatedRegex:`${B}/\\d+/resources/\\d+/services$`}),this.routePolicyService.canNavigate("resources-members",I)&&q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[T,"members"],activatedRegex:`${B}/\\d+/resources/\\d+/members$`}),this.routePolicyService.canNavigate("resources-tags",I)&&q.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[T,"tags"],activatedRegex:`${B}/\\d+/resources/\\d+/tags$`}),this.routePolicyService.canNavigate("resources-attributes",I)&&q.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[T,"attributes"],activatedRegex:`${B}/\\d+/resources/\\d+/attributes$`}),this.routePolicyService.canNavigate("resources-settings",I)){const ue=[];this.routePolicyService.canNavigate("resources-settings-managers",I)&&ue.push({label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[T,"settings","managers"],activatedRegex:`${B}/\\d+/resources/\\d+/settings/managers$`}),this.routePolicyService.canNavigate("resources-settings-bans",I)&&ue.push({label:"MENU_ITEMS.RESOURCE.BANS",url:[T,"settings","bans"],activatedRegex:`${B}/\\d+/resources/\\d+/settings/bans`}),q.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[T,"settings"],activatedRegex:`${B}/\\d+/resources/\\d+/settings$`,children:ue,showChildrenRegex:`${B}/\\d+/resources/\\d+/settings`})}return q}}return P.\u0275fac=function(T){return new(T||P)(M.LFG(w.sK),M.LFG(e.x4),M.LFG(e.d6),M.LFG(e.F5),M.LFG(f.H8),M.LFG(e.V6),M.LFG(e.x4),M.LFG(e.Ip))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})()},73228:(Xe,ae,p)=>{"use strict";p.d(ae,{V:()=>j});var e=p(72077),f=p(69024),A=p(80279),S=p(36769),m=p(94650),M=p(77968);function w(Q,be){if(1&Q&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",10),m.qZA()),2&Q){const me=be.$implicit,fe=be.index,re=m.oxw();m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",fe)("item",me)("sideNav",re.sideNav)}}function x(Q,be){if(1&Q&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&Q){const me=be.$implicit,fe=be.index,re=m.oxw();m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",fe)("item",me)("showLinks",fe===re.accessItems.length-1)("sideNav",re.sideNav)}}function P(Q,be){if(1&Q&&m._UZ(0,"app-side-menu-root-item",12),2&Q){const me=m.oxw();m.Q6J("id","facilities-item-btn")("item",me.facilityItem)("sideNav",me.sideNav)}}function F(Q,be){if(1&Q&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&Q){const me=be.$implicit,fe=be.index,re=m.oxw(2);m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",fe)("item",me)("showLinks",fe===re.facilityItems.length-1)("sideNav",re.sideNav)}}function T(Q,be){if(1&Q&&(m.TgZ(0,"div"),m.YNc(1,F,2,5,"div",3),m.qZA()),2&Q){const me=m.oxw();m.xp6(1),m.Q6J("ngForOf",me.facilityItems)}}function B(Q,be){if(1&Q&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&Q){const me=be.$implicit,fe=be.index,re=m.oxw();m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",fe)("item",me)("showLinks",fe===re.userItems.length-1)("sideNav",re.sideNav)}}function I(Q,be){if(1&Q&&m._UZ(0,"app-side-menu-root-item",13),2&Q){const me=m.oxw();m.Q6J("id","admin-item-btn")("item",me.adminItem)("showOpen",me.adminItemOpened)("sideNav",me.sideNav)}}function q(Q,be){if(1&Q&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&Q){const me=be.$implicit,fe=be.index,re=m.oxw(2);m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",fe)("item",me)("showLinks",!0)("sideNav",re.sideNav)}}function ue(Q,be){if(1&Q&&(m.TgZ(0,"div"),m.YNc(1,q,2,5,"div",3),m.qZA()),2&Q){const me=m.oxw();m.xp6(1),m.Q6J("ngForOf",me.adminItems)}}let j=(()=>{class Q{constructor(me,fe,re){this.sideMenuService=me,this.sideMenuItemService=fe,this.authResolver=re,this.accessItems=[],this.facilityItems=[],this.adminItems=[],this.homeItems=[],this.userItems=[],this.accessItem=this.sideMenuItemService.getAccessManagementItem(),this.adminItem=this.sideMenuItemService.getAdminItem(),this.facilityItem=this.sideMenuItemService.getFacilitiesManagementItem(),this.homeItem=this.sideMenuItemService.getHomeItem(),this.userItem=this.sideMenuItemService.getUserItem(),this.mobileView=!0,this.adminItemOpened=!1,this.userItemOpened=!1}static areSameItems(me,fe){return me.label===fe.label&&me.labelClass===fe.labelClass}static areSameLinks(me,fe){if(me.links.length!==fe.links.length)return!1;for(let re=0;refe.length?me.length:fe.length;for(let v=0;vme.length-1)me.push(fe[v]);else{if(v>fe.length-1){const V=me.length;for(let W=0;W{this.setFacilityItems(me)}),this.sideMenuService.accessItemsChange.subscribe(me=>{this.setAccessItems(me)}),this.sideMenuService.adminItemsChange.subscribe(me=>{this.setAdminItems(me)}),this.sideMenuService.userItemsChange.subscribe(me=>{this.setUserItems(me)}),this.sideMenuService.homeItemsChange.subscribe(me=>{this.setHomeItems(me)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,Q.setNewItems(this.homeItems,[]),Q.setNewItems(this.adminItems,[]),Q.setNewItems(this.accessItems,[]),Q.setNewItems(this.facilityItems,[]),Q.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,Q.setNewItems(this.adminItems,[]),Q.setNewItems(this.accessItems,[]),Q.setNewItems(this.facilityItems,[]),Q.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,Q.setNewItems(this.homeItems,[]),Q.setNewItems(this.adminItems,[]),Q.setNewItems(this.accessItems,[]),Q.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,Q.setNewItems(this.homeItems,[]),Q.setNewItems(this.adminItems,[]),Q.setNewItems(this.facilityItems,[]),Q.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,Q.setNewItems(this.homeItems,[]),Q.setNewItems(this.accessItems,[]),Q.setNewItems(this.facilityItems,[]),Q.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,Q.setNewItems(this.accessItems,[]),Q.setNewItems(this.facilityItems,[]),Q.setNewItems(this.adminItems,[])}setHomeItems(me){this.resetExceptHome(),Q.setNewItems(this.homeItems,me)}setFacilityItems(me){this.resetExceptFacility(),Q.setNewItems(this.facilityItems,me)}setAccessItems(me){this.resetExceptAccess(),Q.setNewItems(this.accessItems,me)}setUserItems(me){this.userItemOpened=0===me.length,this.resetExceptUser(),Q.setNewItems(this.userItems,me)}setAdminItems(me){this.adminItemOpened=0===me.length,this.resetExceptAdmin(),Q.setNewItems(this.adminItems,me)}}return Q.\u0275fac=function(me){return new(me||Q)(m.Y36(M.D),m.Y36(f.V),m.Y36(A.x4))},Q.\u0275cmp=m.Xpm({type:Q,selectors:[["app-side-menu"]],inputs:{sideNav:"sideNav"},decls:13,vars:17,consts:[["id","sideMenuSpacer"],["id","sideMenuAccordion",1,"accordion","entity-menu-accordion"],[3,"id","item","sideNav"],["class","overflow-hidden",4,"ngFor","ngForOf"],["data-cy","access-item-button",3,"item","id","sideNav"],["data-cy","facilities-button",3,"id","item","sideNav",4,"ngIf"],[4,"ngIf"],[3,"id","item","showOpen","sideNav"],["data-cy","admin-button",3,"id","item","showOpen","sideNav",4,"ngIf"],[1,"overflow-hidden"],[3,"index","item","sideNav"],[3,"index","item","showLinks","sideNav"],["data-cy","facilities-button",3,"id","item","sideNav"],["data-cy","admin-button",3,"id","item","showOpen","sideNav"]],template:function(me,fe){1&me&&(m.TgZ(0,"div",0)(1,"div",1),m._UZ(2,"app-side-menu-root-item",2),m.YNc(3,w,2,4,"div",3),m._UZ(4,"app-side-menu-root-item",4),m.TgZ(5,"div"),m.YNc(6,x,2,5,"div",3),m.qZA(),m.YNc(7,P,1,3,"app-side-menu-root-item",5),m.YNc(8,T,2,1,"div",6),m._UZ(9,"app-side-menu-root-item",7),m.YNc(10,B,2,5,"div",3),m.YNc(11,I,1,4,"app-side-menu-root-item",8),m.YNc(12,ue,2,1,"div",6),m.qZA()()),2&me&&(m.xp6(2),m.Q6J("id","home-item-btn")("item",fe.homeItem)("sideNav",fe.sideNav),m.xp6(1),m.Q6J("ngForOf",fe.homeItems),m.xp6(1),m.Q6J("item",fe.accessItem)("id","access-item-btn")("sideNav",fe.sideNav),m.xp6(2),m.Q6J("ngForOf",fe.accessItems),m.xp6(1),m.Q6J("ngIf",fe.authResolver.canManageFacilities()),m.xp6(1),m.Q6J("ngIf",fe.authResolver.canManageFacilities()),m.xp6(1),m.Q6J("id","profile-item-btn")("item",fe.userItem)("showOpen",fe.userItemOpened)("sideNav",fe.sideNav),m.xp6(1),m.Q6J("ngForOf",fe.userItems),m.xp6(1),m.Q6J("ngIf",fe.authResolver.isPerunAdminOrObserver()),m.xp6(1),m.Q6J("ngIf",fe.authResolver.isPerunAdminOrObserver()))},styles:[".entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-accordion[_ngcontent-%COMP%]{background-color:#f4f4f4}#sideMenuAccordion[_ngcontent-%COMP%]{width:300px}#sideMenuSpacer[_ngcontent-%COMP%]{height:100%}"],data:{animation:[S.Ly]}}),Q})()},86511:(Xe,ae,p)=>{"use strict";p.d(ae,{A:()=>S});var e=p(80279),f=p(94650),A=p(89383);let S=(()=>{class m{constructor(w,x){this.notificator=w,this.translate=x}setDialogRef(w){this.dialogRef=w}setType(w){this.entityType=w}getType(){return this.entityType}createCandidate(w){return{userExtSource:w.userExtSource,additionalUserExtSources:w.additionalUserExtSources,attributes:w.attributes,firstName:w.firstName,lastName:w.lastName,middleName:w.middleName,titleBefore:w.titleBefore,titleAfter:w.titleAfter,id:w.id}}getFormattedGroup(w){return{id:w.id,beanName:w.beanName,name:w.name,voId:w.voId}}success(w){this.notificator.showSuccess(this.translate.instant(w)),this.dialogRef.close(!0)}getCandidateWithError(w,x){if("MfaPrivilegeException"===String(x.type))return null;{const P=x.message.split(":").splice(1).join();return{candidate:w,errorName:x.name,errorMsg:P}}}convertToMemberCandidates(w){return w.map(x=>({member:x.member,candidate:x.candidate,richUser:x.richUser}))}}return m.\u0275fac=function(w){return new(w||m)(f.LFG(e.V6),f.LFG(A.sK))},m.\u0275prov=f.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},157:(Xe,ae,p)=>{"use strict";p.d(ae,{b:()=>Mt});var e=p(94650),f=p(73555),A=p(7274),S=p(4859),m=p(89383);let M=(()=>{class pt{constructor(ye){this.dialogRef=ye}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return pt.\u0275fac=function(ye){return new(ye||pt)(e.Y36(A.so))},pt.\u0275cmp=e.Xpm({type:pt,selectors:[["app-delete-application-form-item-dialog"]],decls:20,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"pb-2","fw-bold"],[1,"pb-4","pt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","warn","data-cy","delete-application-form-item-dialog","mat-flat-button","",1,"ms-2",3,"click"]],template:function(ye,Ee){1&ye&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"div",2),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"div",3),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div",4)(14,"button",5),e.NdJ("click",function(){return Ee.onCancel()}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"button",6),e.NdJ("click",function(){return Ee.submit()}),e._uU(18),e.ALo(19,"translate"),e.qZA()()),2&ye&&(e.xp6(1),e.Oqu(e.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")," "),e.xp6(3),e.Oqu(e.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),e.xp6(3),e.Oqu(e.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),e.xp6(4),e.hij(" ",e.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),e.xp6(3),e.hij(" ",e.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},dependencies:[S.lW,A.uh,A.xY,A.H8,m.X$]}),pt})();var w=p(80279),x=p(83491),P=p(9244),F=p(82761),T=p(36895),B=p(24006),I=p(97392),q=p(30671),ue=p(10266),j=p(98380),Q=p(21963),be=p(28820),me=p(57706),fe=p(30076),re=p(64597);const v=["table"];function V(pt,_t){1&pt&&e._UZ(0,"th",22)}function W(pt,_t){if(1&pt){const ye=e.EpF();e.TgZ(0,"td",23)(1,"button",24),e.NdJ("mousedown",function(){e.CHM(ye);const oe=e.oxw(2);return e.KtG(oe.dragDisabled=!1)}),e.TgZ(2,"mat-icon"),e._uU(3,"drag_indicator"),e.qZA()()()}}function ee(pt,_t){1&pt&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&pt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function ie(pt,_t){if(1&pt&&(e.TgZ(0,"td",23),e.ALo(1,"multiWordDataCy"),e._uU(2),e.qZA()),2&pt){const ye=_t.$implicit;e.Q2q("data-cy","",e.lcZ(1,3,ye.shortname),"-shortname-td"),e.xp6(2),e.AsE(" ",ye.shortname,"",ye.required?"*":""," ")}}function xe(pt,_t){1&pt&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&pt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function Ye(pt,_t){if(1&pt&&(e.TgZ(0,"td",23),e._uU(1),e.ALo(2,"applicationFormItemType"),e.qZA()),2&pt){const ye=_t.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,ye.type)," ")}}function Le(pt,_t){1&pt&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&pt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function $e(pt,_t){if(1&pt&&(e.TgZ(0,"div")(1,"mat-icon",28),e._uU(2,"lock "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&pt){const ye=e.oxw().$implicit,Ee=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",Ee.disabledTooltip(ye)),e.xp6(3),e.hij(" ",Ee.disabledHiddenDependency(ye,ye.disabled,ye.disabledDependencyItemId)," ")}}function qe(pt,_t){if(1&pt&&(e.TgZ(0,"td",26),e.YNc(1,$e,5,2,"div",27),e.qZA()),2&pt){const ye=_t.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==ye.disabled)}}function Ze(pt,_t){1&pt&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&pt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function Pe(pt,_t){if(1&pt&&(e.TgZ(0,"div")(1,"mat-icon",28),e._uU(2,"visibility_off "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&pt){const ye=e.oxw().$implicit,Ee=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",Ee.hiddenTooltip(ye)),e.xp6(3),e.hij(" ",Ee.disabledHiddenDependency(ye,ye.hidden,ye.hiddenDependencyItemId)," ")}}function se(pt,_t){if(1&pt&&(e.TgZ(0,"td",26),e.YNc(1,Pe,5,2,"div",27),e.qZA()),2&pt){const ye=_t.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==ye.hidden)}}function N(pt,_t){1&pt&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&pt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function U(pt,_t){1&pt&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",29),e.qZA()())}function $(pt,_t){1&pt&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",30)(3,"br")(4,"input",29),e.qZA()())}function ce(pt,_t){if(1&pt&&(e.TgZ(0,"div"),e._UZ(1,"input",33),e._uU(2),e._UZ(3,"br"),e.qZA()),2&pt){const ye=_t.$implicit;e.xp6(2),e.hij(" ",ye,"")}}function De(pt,_t){if(1&pt&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,ce,4,1,"div",31),e._UZ(3,"input",32),e.ALo(4,"translate"),e.qZA()()),2&pt){const ye=e.oxw().$implicit,Ee=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Ee.getLocalizedOptions(ye)),e.xp6(1),e.s9C("value",e.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function he(pt,_t){if(1&pt&&(e.TgZ(0,"div"),e._UZ(1,"span",34),e.qZA()),2&pt){const ye=e.oxw().$implicit,Ee=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",Ee.getLocalizedLabel(ye),e.oJD)}}function Oe(pt,_t){if(1&pt&&(e.TgZ(0,"div"),e._UZ(1,"span",34),e.ALo(2,"sanitizeHtml"),e.qZA()),2&pt){const ye=e.oxw().$implicit,Ee=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",e.lcZ(2,1,Ee.getLocalizedLabel(ye)),e.oJD)}}function it(pt,_t){if(1&pt&&(e.TgZ(0,"option"),e._uU(1),e.qZA()),2&pt){const ye=_t.$implicit;e.xp6(1),e.hij(" ",ye," ")}}function Ce(pt,_t){if(1&pt&&(e.TgZ(0,"div")(1,"select"),e.YNc(2,it,2,1,"option",31),e.qZA()()),2&pt){const ye=e.oxw().$implicit,Ee=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Ee.getLocalizedOptions(ye))}}function ot(pt,_t){1&pt&&(e.TgZ(0,"div"),e._UZ(1,"textarea"),e.qZA())}function Ue(pt,_t){if(1&pt&&(e.TgZ(0,"option",38),e._uU(1),e.qZA()),2&pt){const ye=_t.$implicit;e.xp6(1),e.hij(" ",ye," ")}}function ft(pt,_t){1&pt&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",29),e.qZA()())}function Z(pt,_t){if(1&pt){const ye=e.EpF();e.TgZ(0,"div")(1,"select",35),e.NdJ("ngModelChange",function(oe){e.CHM(ye);const _e=e.oxw().$implicit,Te=e.oxw(2);return e.KtG(Te.mapForCombobox[_e.id]=oe)}),e.YNc(2,Ue,2,1,"option",36),e.TgZ(3,"option",37),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.YNc(6,ft,3,0,"div",27),e.qZA()}if(2&pt){const ye=e.oxw().$implicit,Ee=e.oxw(2);e.xp6(1),e.Q6J("ngModel",Ee.mapForCombobox[ye.id]),e.xp6(1),e.Q6J("ngForOf",Ee.getLocalizedOptions(ye)),e.xp6(2),e.hij(" ",e.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),e.xp6(2),e.Q6J("ngIf","true"===Ee.mapForCombobox[ye.id])}}function lt(pt,_t){if(1&pt&&(e.TgZ(0,"div"),e._UZ(1,"input",39),e._uU(2),e.qZA()),2&pt){const ye=_t.$implicit;e.xp6(2),e.hij(" ",ye," ")}}function Ae(pt,_t){if(1&pt&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,lt,3,1,"div",31),e.qZA()()),2&pt){const ye=e.oxw().$implicit,Ee=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Ee.getLocalizedOptions(ye))}}function Ke(pt,_t){if(1&pt&&(e.TgZ(0,"div")(1,"button",40),e._uU(2),e.qZA()()),2&pt){const ye=e.oxw().$implicit,Ee=e.oxw(2);e.xp6(2),e.hij(" ",Ee.getLocalizedLabel(ye)," ")}}function pe(pt,_t){1&pt&&(e.TgZ(0,"div")(1,"select",41)(2,"option",42),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"option",43),e._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),e.qZA(),e.TgZ(7,"option",44),e._uU(8,"(GMT -11:00) Midway Island, Samoa"),e.qZA(),e.TgZ(9,"option",45),e._uU(10,"(GMT -10:00) Hawaii"),e.qZA(),e.TgZ(11,"option",46),e._uU(12,"(GMT -9:30) Taiohae"),e.qZA(),e.TgZ(13,"option",47),e._uU(14,"(GMT -9:00) Alaska"),e.qZA(),e.TgZ(15,"option",48),e._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),e.qZA(),e.TgZ(17,"option",49),e._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),e.qZA(),e.TgZ(19,"option",50),e._uU(20," (GMT -6:00) Central Time (US & Canada), Mexico City "),e.qZA(),e.TgZ(21,"option",51),e._uU(22," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),e.qZA(),e.TgZ(23,"option",52),e._uU(24,"(GMT -4:30) Caracas"),e.qZA(),e.TgZ(25,"option",53),e._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),e.qZA(),e.TgZ(27,"option",54),e._uU(28,"(GMT -3:30) Newfoundland"),e.qZA(),e.TgZ(29,"option",55),e._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),e.qZA(),e.TgZ(31,"option",56),e._uU(32,"(GMT -2:00) Mid-Atlantic"),e.qZA(),e.TgZ(33,"option",57),e._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),e.qZA(),e.TgZ(35,"option",58),e._uU(36," (GMT) Western Europe Time, London, Lisbon, Casablanca "),e.qZA(),e.TgZ(37,"option",59),e._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),e.qZA(),e.TgZ(39,"option",60),e._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),e.qZA(),e.TgZ(41,"option",61),e._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),e.qZA(),e.TgZ(43,"option",62),e._uU(44,"(GMT +3:30) Tehran"),e.qZA(),e.TgZ(45,"option",63),e._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),e.qZA(),e.TgZ(47,"option",64),e._uU(48,"(GMT +4:30) Kabul"),e.qZA(),e.TgZ(49,"option",65),e._uU(50," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),e.qZA(),e.TgZ(51,"option",66),e._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),e.qZA(),e.TgZ(53,"option",67),e._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),e.qZA(),e.TgZ(55,"option",68),e._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),e.qZA(),e.TgZ(57,"option",69),e._uU(58,"(GMT +6:30) Yangon, Mandalay"),e.qZA(),e.TgZ(59,"option",70),e._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),e.qZA(),e.TgZ(61,"option",71),e._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),e.qZA(),e.TgZ(63,"option",72),e._uU(64,"(GMT +8:45) Eucla"),e.qZA(),e.TgZ(65,"option",73),e._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),e.qZA(),e.TgZ(67,"option",74),e._uU(68,"(GMT +9:30) Adelaide, Darwin"),e.qZA(),e.TgZ(69,"option",75),e._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),e.qZA(),e.TgZ(71,"option",76),e._uU(72,"(GMT +10:30) Lord Howe Island"),e.qZA(),e.TgZ(73,"option",77),e._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),e.qZA(),e.TgZ(75,"option",78),e._uU(76,"(GMT +11:30) Norfolk Island"),e.qZA(),e.TgZ(77,"option",79),e._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),e.qZA(),e.TgZ(79,"option",80),e._uU(80,"(GMT +12:45) Chatham Islands"),e.qZA(),e.TgZ(81,"option",81),e._uU(82,"(GMT +13:00) Apia, Nukualofa"),e.qZA(),e.TgZ(83,"option",82),e._uU(84,"(GMT +14:00) Line Islands, Tokelau"),e.qZA()()()),2&pt&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function Ie(pt,_t){if(1&pt&&(e.TgZ(0,"div")(1,"button",40),e._uU(2),e.qZA()()),2&pt){const ye=e.oxw().$implicit,Ee=e.oxw(2);e.xp6(2),e.hij(" ",Ee.getLocalizedLabel(ye)," ")}}function Ne(pt,_t){1&pt&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",39),e._uU(3," example group1 "),e._UZ(4,"br")(5,"input",39),e._uU(6," example group2 "),e._UZ(7,"br")(8,"input",39),e._uU(9," example group3 "),e.qZA()())}const we=function(){return["Example 1","Example 2"]},Be=function(pt){return{id:0,beanName:"Attribute",namespace:"",value:pt}};function r(pt,_t){1&pt&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-list",83),e.qZA()),2&pt&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,Be,e.DdM(1,we))))}const u=function(){return{key1:"value 1",key2:"value 2"}};function _(pt,_t){1&pt&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-map",83),e.qZA()),2&pt&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,Be,e.DdM(1,u))))}function C(pt,_t){if(1&pt&&(e.TgZ(0,"td",23),e.YNc(1,U,3,0,"div",27),e.YNc(2,$,5,0,"div",27),e.YNc(3,De,5,4,"div",27),e.YNc(4,he,2,1,"div",27),e.YNc(5,Oe,3,3,"div",27),e.YNc(6,Ce,3,1,"div",27),e.YNc(7,ot,2,0,"div",27),e.YNc(8,Z,7,6,"div",27),e.YNc(9,Ae,3,1,"div",27),e.YNc(10,Ke,3,1,"div",27),e.YNc(11,pe,85,3,"div",27),e.YNc(12,Ie,3,1,"div",27),e.YNc(13,Ne,10,0,"div",27),e.YNc(14,r,2,4,"div",27),e.YNc(15,_,2,4,"div",27),e.qZA()),2&pt){const ye=_t.$implicit;e.xp6(1),e.Q6J("ngIf","TEXTFIELD"===ye.type||"VALIDATED_EMAIL"===ye.type||"USERNAME"===ye.type),e.xp6(1),e.Q6J("ngIf","PASSWORD"===ye.type),e.xp6(1),e.Q6J("ngIf","RADIO"===ye.type),e.xp6(1),e.Q6J("ngIf","HEADING"===ye.type),e.xp6(1),e.Q6J("ngIf","HTML_COMMENT"===ye.type),e.xp6(1),e.Q6J("ngIf","SELECTIONBOX"===ye.type),e.xp6(1),e.Q6J("ngIf","TEXTAREA"===ye.type),e.xp6(1),e.Q6J("ngIf","COMBOBOX"===ye.type),e.xp6(1),e.Q6J("ngIf","CHECKBOX"===ye.type),e.xp6(1),e.Q6J("ngIf","SUBMIT_BUTTON"===ye.type),e.xp6(1),e.Q6J("ngIf","TIMEZONE"===ye.type),e.xp6(1),e.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===ye.type),e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===ye.type),e.xp6(1),e.Q6J("ngIf","LIST_INPUT_BOX"===ye.type),e.xp6(1),e.Q6J("ngIf","MAP_INPUT_BOX"===ye.type)}}function h(pt,_t){1&pt&&e._UZ(0,"th",22)}function o(pt,_t){if(1&pt){const ye=e.EpF();e.TgZ(0,"button",85),e.NdJ("click",function(){e.CHM(ye);const oe=e.oxw(3);return e.KtG(oe.openManagingGroups())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"supervised_user_circle"),e.qZA()()}2&pt&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function n(pt,_t){if(1&pt&&(e.TgZ(0,"td",23),e.YNc(1,o,4,3,"button",84),e.qZA()),2&pt){const ye=_t.$implicit;e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===ye.type&&!ye.forDelete)}}function t(pt,_t){1&pt&&e._UZ(0,"th",22)}function i(pt,_t){if(1&pt){const ye=e.EpF();e.TgZ(0,"button",88),e.NdJ("click",function(){e.CHM(ye);const oe=e.oxw().$implicit,_e=e.oxw(2);return e.KtG(_e.edit(oe))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"edit"),e.qZA()()}2&pt&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function a(pt,_t){1&pt&&(e.TgZ(0,"div",89),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&pt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function l(pt,_t){if(1&pt&&(e.TgZ(0,"td",23),e.YNc(1,i,4,3,"button",86),e.YNc(2,a,3,3,"div",87),e.qZA()),2&pt){const ye=_t.$implicit;e.xp6(1),e.Q6J("ngIf",!ye.forDelete),e.xp6(1),e.Q6J("ngIf",ye.forDelete)}}function d(pt,_t){1&pt&&e._UZ(0,"th",22)}function c(pt,_t){if(1&pt){const ye=e.EpF();e.TgZ(0,"button",91),e.NdJ("click",function(){e.CHM(ye);const oe=e.oxw().$implicit,_e=e.oxw(2);return e.KtG(_e.delete(oe))}),e.ALo(1,"multiWordDataCy"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4,"delete"),e.qZA()()}if(2&pt){const ye=e.oxw().$implicit;e.Q2q("data-cy","",e.lcZ(1,2,ye.shortname),"-delete"),e.s9C("matTooltip",e.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function s(pt,_t){if(1&pt){const ye=e.EpF();e.TgZ(0,"button",85),e.NdJ("click",function(){e.CHM(ye);const oe=e.oxw().$implicit,_e=e.oxw(2);return e.KtG(_e.restore(oe))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"settings_backup_restore"),e.qZA()()}2&pt&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function E(pt,_t){if(1&pt&&(e.TgZ(0,"td",23),e.YNc(1,c,5,6,"button",90),e.YNc(2,s,4,3,"button",84),e.qZA()),2&pt){const ye=_t.$implicit;e.xp6(1),e.Q6J("ngIf",!ye.forDelete),e.xp6(1),e.Q6J("ngIf",ye.forDelete)}}function H(pt,_t){1&pt&&e._UZ(0,"tr",92)}function ne(pt,_t){if(1&pt&&e._UZ(0,"tr",93),2&pt){const ye=_t.$implicit,Ee=e.oxw(2);e.ekj("make-green",ye.id<=0)("make-red",ye.forDelete)("make-yellow",-1!==Ee.itemsChanged.indexOf(ye.id)&&!ye.forDelete&&ye.id>0),e.Q6J("cdkDragData",ye)}}function ve(pt,_t){if(1&pt){const ye=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"table",5,6),e.NdJ("cdkDropListDropped",function(oe){e.CHM(ye);const _e=e.oxw();return e.KtG(_e.drop(oe))}),e.ynx(5,7),e.YNc(6,V,1,0,"th",8),e.YNc(7,W,4,0,"td",9),e.BQk(),e.ynx(8,10),e.YNc(9,ee,3,3,"th",8),e.YNc(10,ie,3,5,"td",9),e.BQk(),e.ynx(11,11),e.YNc(12,xe,3,3,"th",8),e.YNc(13,Ye,3,3,"td",9),e.BQk(),e.ynx(14,12),e.YNc(15,Le,3,3,"th",13),e.YNc(16,qe,2,1,"td",14),e.BQk(),e.ynx(17,15),e.YNc(18,Ze,3,3,"th",13),e.YNc(19,se,2,1,"td",14),e.BQk(),e.ynx(20,16),e.YNc(21,N,3,3,"th",8),e.YNc(22,C,16,15,"td",9),e.BQk(),e.ynx(23,17),e.YNc(24,h,1,0,"th",8),e.YNc(25,n,2,1,"td",9),e.BQk(),e.ynx(26,18),e.YNc(27,t,1,0,"th",8),e.YNc(28,l,3,2,"td",9),e.BQk(),e.ynx(29,19),e.YNc(30,d,1,0,"th",8),e.YNc(31,E,3,2,"td",9),e.BQk(),e.YNc(32,H,1,0,"tr",20),e.YNc(33,ne,1,7,"tr",21),e.qZA()()()()}if(2&pt){const ye=e.oxw();e.xp6(3),e.Q6J("cdkDropListDisabled",ye.dragDisabled)("dataSource",ye.dataSource),e.xp6(29),e.Q6J("matHeaderRowDef",ye.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",ye.displayedColumns)}}function We(pt,_t){1&pt&&(e.TgZ(0,"perun-web-apps-alert",94),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&pt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let Mt=(()=>{class pt{constructor(ye,Ee,oe,_e){this.dialog=ye,this.notificator=Ee,this.router=oe,this.translate=_e,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new e.vpe,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}ngOnInit(){this.ifEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_EMPTY"),this.ifPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_PREFILLED"),this.alwaysDisabled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED_HINT"),this.alwaysHidden=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN_HINT"),this.isDisabledIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.DISABLED_IF_HINT"),this.isHiddenIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.HIDDEN_IF_HINT"),this.isEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_EMPTY_HINT"),this.isPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_PREFILLED_HINT")}ngOnChanges(){this.dataSource=this.applicationFormItems,this.refreshApplicationForm&&(this.itemsChanged=[])}disabledHiddenDependency(ye,Ee,oe){let _e="";if("IF_EMPTY"===Ee||"IF_PREFILLED"===Ee){const Te=null===oe?"":this.applicationFormItems.find(ut=>ut.id===oe).shortname;_e="IF_EMPTY"===Ee?`(${this.ifEmpty} ${Te})`:`(${this.ifPrefilled} ${Te})`}return _e}disabledTooltip(ye){let Ee;switch(ye.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return Ee=null===ye.disabledDependencyItemId?"":this.applicationFormItems.find(oe=>oe.id===ye.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${Ee} ${this.isEmpty}`;case"IF_PREFILLED":return Ee=null===ye.disabledDependencyItemId?"":this.applicationFormItems.find(oe=>oe.id===ye.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${Ee} ${this.isPrefilled}`}}hiddenTooltip(ye){let Ee;switch(ye.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return Ee=null===ye.hiddenDependencyItemId?"":this.applicationFormItems.find(oe=>oe.id===ye.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${Ee} ${this.isEmpty}`;case"IF_PREFILLED":return Ee=null===ye.hiddenDependencyItemId?"":this.applicationFormItems.find(oe=>oe.id===ye.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${Ee} ${this.isPrefilled}`}}edit(ye){const Ee=(0,P.kZ)();Ee.width="600px",Ee.height="600px",Ee.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:ye,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(x._,Ee).afterClosed().subscribe(_e=>{_e&&(this.itemsChanged.push(ye.id),this.applicationFormItemsChange.emit())})}delete(ye){const Ee=(0,P.kZ)();Ee.width="500px",this.dialog.open(M,Ee).afterClosed().subscribe(_e=>{_e&&(ye.forDelete=!0,0===ye.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(ye),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(ye){this.dragDisabled=!0;const Ee=this.applicationFormItems.indexOf(ye.item.data);(0,f.bA)(this.applicationFormItems,Ee,ye.currentIndex),this.itemsChanged.push(this.applicationFormItems[ye.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(ye){if(ye.i18n[this.translate.getDefaultLang()]){const Ee=ye.i18n[this.translate.getDefaultLang()].options;if(null!==Ee&&""!==Ee){const oe=[];for(const _e of Ee.split("|"))oe.push(_e.split("#")[1]);return oe}}return[]}getLocalizedLabel(ye){return ye.i18n[this.translate.getDefaultLang()]?ye.i18n[this.translate.getDefaultLang()].label:ye.shortname}restore(ye){ye.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"],{queryParamsHandling:"preserve"})}}return pt.\u0275fac=function(ye){return new(ye||pt)(e.Y36(A.uw),e.Y36(w.V6),e.Y36(F.F0),e.Y36(m.sK))},pt.\u0275cmp=e.Xpm({type:pt,selectors:[["app-application-form-list"]],viewQuery:function(ye,Ee){if(1&ye&&e.Gf(v,5),2&ye){let oe;e.iGM(oe=e.CRH())&&(Ee.table=oe.first)}},inputs:{applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns",refreshApplicationForm:"refreshApplicationForm"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[e.TTD],decls:2,vars:2,consts:[["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"card","mt-2"],[1,"card-body","table-theme"],[1,"overflow-auto"],["cdkDropList","","cdkDropListData","dataSource","mat-table","",1,"w-100",3,"cdkDropListDisabled","dataSource","cdkDropListDropped"],["table",""],["matColumnDef","drag"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortname"],["matColumnDef","type"],["matColumnDef","disabled"],["class","center","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","hidden"],["matColumnDef","preview"],["matColumnDef","managegroups"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["cdkDrag","","mat-row","",3,"cdkDragData","make-green","make-red","make-yellow",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"mousedown"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center"],[4,"ngIf"],[1,"pointer",3,"matTooltip"],["type","text"],["type","text",1,"mb-1"],[4,"ngFor","ngForOf"],["type","reset",3,"value"],["name","temp","type","radio"],[3,"innerHTML"],[3,"ngModel","ngModelChange"],["selected","","value","false",4,"ngFor","ngForOf"],["value","true"],["selected","","value","false"],["type","checkbox"],["color","accent","mat-flat-button",""],["id","timezone-offset","name","timezone_offset",1,"span5"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["class","ms-auto","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["class","fw-bold",4,"ngIf"],["mat-icon-button","",1,"ms-auto",3,"matTooltip","click"],[1,"fw-bold"],["color","warn","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["color","warn","mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["cdkDrag","","mat-row","",3,"cdkDragData"],["alert_type","warn"]],template:function(ye,Ee){1&ye&&(e.YNc(0,ve,34,4,"div",0),e.YNc(1,We,3,3,"perun-web-apps-alert",1)),2&ye&&(e.Q6J("ngIf",0!==Ee.applicationFormItems.length),e.xp6(1),e.Q6J("ngIf",0===Ee.applicationFormItems.length))},dependencies:[T.sg,T.O5,B._Y,B.YN,B.Kr,B.EJ,B.JJ,B.JL,B.On,B.F,I.Hw,q.BZ,q.fO,q.as,q.w1,q.Dz,q.nj,q.ge,q.ev,q.XQ,q.Gk,S.lW,S.RK,ue.gM,f.Wj,f.Zt,j.w,Q.H,be.$,m.X$,me.c,fe.A,re.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.movable-row[_ngcontent-%COMP%]{cursor:move}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.make-green[_ngcontent-%COMP%]{background-color:#c8e6c9}.make-yellow[_ngcontent-%COMP%]{background-color:#fff9c4}.center[_ngcontent-%COMP%]{text-align:center}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),pt})()},99168:(Xe,ae,p)=>{"use strict";p.d(ae,{S:()=>E});var e=p(94650),f=p(61744),A=p(9244),S=p(96308),m=p(80279),M=p(56451),w=p(18505),x=p(36895),P=p(21029),F=p(10036),T=p(7274),B=p(82761),I=p(30671),q=p(98380),ue=p(34198),j=p(55660),Q=p(18750),be=p(97392),me=p(10266);function fe(H,ne){1&H&&(e.TgZ(0,"div")(1,"mat-icon",1),e._uU(2,"arrow_right_alt"),e.qZA()())}function re(H,ne){1&H&&(e.TgZ(0,"div")(1,"mat-icon",2),e._uU(2,"restore"),e.qZA()())}function v(H,ne){1&H&&(e.TgZ(0,"div")(1,"mat-icon",3),e._uU(2,"nat"),e.qZA()())}let V=(()=>{class H{}return H.\u0275fac=function(ve){return new(ve||H)},H.\u0275cmp=e.Xpm({type:H,selectors:[["app-application-type-icon"]],inputs:{applicationType:"applicationType"},decls:4,vars:3,consts:[[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"]],template:function(ve,We){1&ve&&(e.TgZ(0,"div"),e.YNc(1,fe,3,0,"div",0),e.YNc(2,re,3,0,"div",0),e.YNc(3,v,3,0,"div",0),e.qZA()),2&ve&&(e.xp6(1),e.Q6J("ngIf","INITIAL"===We.applicationType),e.xp6(1),e.Q6J("ngIf","EXTENSION"===We.applicationType),e.xp6(1),e.Q6J("ngIf","EMBEDDED"===We.applicationType))},dependencies:[x.O5,be.Hw,me.gM]}),H})();var W=p(89383),ee=p(43157),ie=p(31359),xe=p(64597);let Ye=(()=>{class H{transform(ve,We,Mt,pt){return We?null:Mt?["/organizations",String(ve.vo.id),"groups",String(Mt.id),"applications",String(ve.id)]:pt?["/organizations",String(ve.vo.id),"members",String(pt.id),"applications",String(ve.id)]:["/organizations",String(ve.vo.id),"applications",String(ve.id)]}}return H.\u0275fac=function(ve){return new(ve||H)},H.\u0275pipe=e.Yjl({name:"selectApplicationLink",type:H,pure:!0}),H})();function Le(H,ne){1&H&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"APPLICATIONS_LIST.ID")," "))}function $e(H,ne){if(1&H&&(e.TgZ(0,"td",26),e.ALo(1,"multiWordDataCy"),e._uU(2),e.qZA()),2&H){const ve=ne.$implicit;e.Q2q("data-cy","",ve.group?ve.group.name:e.lcZ(1,2,"no-group"),"-id-td"),e.xp6(2),e.hij(" ",ve.id," ")}}function qe(H,ne){1&H&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"APPLICATIONS_LIST.CREATED_DATE")," "))}function Ze(H,ne){if(1&H&&(e.TgZ(0,"td",26),e._uU(1),e.ALo(2,"date"),e.qZA()),2&H){const ve=ne.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,ve.createdAt,"d.M.y"))}}function Pe(H,ne){1&H&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.VO_ID")))}function se(H,ne){if(1&H&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&H){const ve=ne.$implicit;e.xp6(1),e.Oqu(ve.vo.id)}}function N(H,ne){1&H&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.VO_NAME")))}function U(H,ne){if(1&H&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&H){const ve=ne.$implicit;e.xp6(1),e.Oqu(ve.vo.name)}}function $(H,ne){1&H&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.GROUP_ID")))}function ce(H,ne){if(1&H&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&H){const ve=ne.$implicit;e.xp6(1),e.hij(" ",ve.group?ve.group.id:""," ")}}function De(H,ne){1&H&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.GROUP_NAME")))}function he(H,ne){if(1&H&&(e.TgZ(0,"td",26),e.ALo(1,"multiWordDataCy"),e._uU(2),e.qZA()),2&H){const ve=ne.$implicit;e.Q2q("data-cy","",ve.group?ve.group.name:e.lcZ(1,2,"no-group"),"-groupname-td"),e.xp6(2),e.hij(" ",ve.group?ve.group.name:""," ")}}function Oe(H,ne){1&H&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"APPLICATIONS_LIST.TYPE")," "))}function it(H,ne){if(1&H&&(e.TgZ(0,"td",26),e._UZ(1,"app-application-type-icon",28),e.qZA()),2&H){const ve=ne.$implicit;e.xp6(1),e.Q6J("applicationType",ve.type)}}function Ce(H,ne){1&H&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"APPLICATIONS_LIST.STATE")," "))}function ot(H,ne){if(1&H&&(e.TgZ(0,"td",26),e._UZ(1,"span",29),e.ALo(2,"applicationState"),e.qZA()),2&H){const ve=ne.$implicit;e.xp6(1),e.Q6J("outerHTML",e.lcZ(2,1,ve.state),e.oJD)}}function Ue(H,ne){1&H&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCENAME")))}function ft(H,ne){if(1&H&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&H){const ve=ne.$implicit;e.xp6(1),e.Oqu(ve.extSourceName)}}function Z(H,ne){1&H&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCETYPE")))}function lt(H,ne){if(1&H&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&H){const ve=ne.$implicit;e.xp6(1),e.Oqu(ve.extSourceType)}}function Ae(H,ne){1&H&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"APPLICATIONS_LIST.USER")," "))}function Ke(H,ne){if(1&H&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&H){const ve=e.oxw().$implicit;e.xp6(1),e.hij(" ",ve.createdBy.slice(ve.createdBy.lastIndexOf("=")+1,ve.createdBy.length)," ")}}function pe(H,ne){if(1&H&&(e._uU(0),e.ALo(1,"userFullName")),2&H){const ve=e.oxw().$implicit;e.hij(" ",e.lcZ(1,1,ve.user)," ")}}function Ie(H,ne){if(1&H&&(e.TgZ(0,"td",26),e.YNc(1,Ke,2,1,"div",30),e.YNc(2,pe,2,3,"ng-template",null,31,e.W1O),e.qZA()),2&H){const ve=ne.$implicit,We=e.MAs(3);e.xp6(1),e.Q6J("ngIf",null===ve.user)("ngIfElse",We)}}function Ne(H,ne){1&H&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.CREATED_BY")))}function we(H,ne){if(1&H&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&H){const ve=ne.$implicit;e.Q2q("data-cy","",ve.createdBy,"-createdBy"),e.xp6(1),e.hij(" ",ve.createdBy.slice(ve.createdBy.lastIndexOf("=")+1,ve.createdBy.length)," ")}}function Be(H,ne){1&H&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_BY")," "))}function r(H,ne){if(1&H&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&H){const ve=ne.$implicit,We=e.oxw();e.xp6(1),e.Oqu(We.getFriendlyName(ve.modifiedBy))}}function u(H,ne){1&H&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_AT")))}function _(H,ne){if(1&H&&(e.TgZ(0,"td",26),e._uU(1),e.ALo(2,"date"),e.qZA()),2&H){const ve=ne.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,ve.modifiedAt,"d.M.y"))}}function C(H,ne){1&H&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"APPLICATIONS_LIST.FEDINFO")))}function h(H,ne){if(1&H&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&H){const ve=ne.$implicit;e.xp6(1),e.Oqu(ve.fedInfo)}}function o(H,ne){if(1&H&&(e.TgZ(0,"th",27),e._uU(1),e.qZA()),2&H){const ve=e.oxw().$implicit;e.xp6(1),e.Oqu(ve)}}function n(H,ne){if(1&H&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&H){const ve=ne.$implicit,We=e.oxw().$implicit,Mt=e.oxw();e.xp6(1),e.hij(" ",Mt.getFedValue(ve.fedInfo,We)," ")}}function t(H,ne){1&H&&(e.ynx(0,32),e.YNc(1,o,2,1,"th",8),e.YNc(2,n,2,1,"td",5),e.BQk()),2&H&&e.s9C("matColumnDef",ne.$implicit)}function i(H,ne){if(1&H&&(e.TgZ(0,"th",27),e._uU(1),e.qZA()),2&H){const ve=e.oxw().$implicit;e.xp6(1),e.Oqu(ve)}}function a(H,ne){if(1&H&&(e.TgZ(0,"td",26),e._uU(1),e.qZA()),2&H){const ve=ne.$implicit,We=e.oxw().$implicit,Mt=e.oxw();e.xp6(1),e.hij(" ",Mt.getValue(ve.formData,We)," ")}}function l(H,ne){1&H&&(e.ynx(0,32),e.YNc(1,i,2,1,"th",8),e.YNc(2,a,2,1,"td",5),e.BQk()),2&H&&e.s9C("matColumnDef",ne.$implicit)}function d(H,ne){1&H&&e._UZ(0,"tr",33)}function c(H,ne){if(1&H&&(e._UZ(0,"tr",34),e.ALo(1,"selectApplicationLink"),e.ALo(2,"selectApplicationLink")),2&H){const ve=ne.$implicit,We=e.oxw();e.ekj("cursor-pointer",!We.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",e.gM2(1,4,ve,We.disableRouting,We.group,We.member))("routerLink",e.gM2(2,9,ve,We.disableRouting,We.group,We.member))}}function s(H,ne){1&H&&(e.TgZ(0,"perun-web-apps-alert",35),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&H&&(e.Q6J("alert_type","warn"),e.xp6(1),e.hij(" ",e.lcZ(2,2,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}let E=(()=>{class H{constructor(ve,We,Mt,pt,_t){this.authResolver=ve,this.tableConfigService=We,this.dynamicPaginatingService=Mt,this.attributesManagerService=pt,this.dialog=_t,this.displayedColumns=[],this.fedColumns=[],this.disableRouting=!1,this.searchString="",this.dateTo=new Date,this.dateFrom=this.yearAgo(),this.fedAttrNames=[],this.refreshTable=!1,this.loading$=new e.vpe,this.parsedColumns=[],this.pageSizeOptions=A.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,M.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,w.b)(()=>this.loadApplicationsPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(We=>"id"!==We)),this.dataSource=new m.Hy(this.dynamicPaginatingService,this.authResolver);const ve=this.dateTo??new Date;this.dataSource.loadApplications(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(ve),this.member?.userId??null,this.group?.id??null,this.getVoId()),this.loading$.emit(this.dataSource.loading$),this.dataSource.loading$.subscribe(We=>{if(We||!this.displayedColumns.includes("fedInfo"))return;this.displayedColumns=this.displayedColumns.filter(pt=>!this.parsedColumns.includes(pt)),this.parsedColumns=[];const Mt=this.dataSource.getData()[0];Mt&&this.parseColumns(Mt.formData)})}ngOnChanges(){this.refreshTable=!1,this.dataSource&&(this.child.paginator.pageIndex=0,this.loadApplicationsPage())}loadApplicationsPage(){const ve="asc"===this.sort.direction?"ASCENDING":"DESCENDING",We=this.dateTo??new Date;this.dataSource.loadApplications(this.child.paginator.pageSize,this.child.paginator.pageIndex,ve,this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(We),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0)}exportDisplayedData(ve){(0,A.O6)((0,A.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn.bind(this)),ve)}exportAllData(ve){const We="asc"===this.sort.direction?"ASCENDING":"DESCENDING",Mt=(0,A.kZ)();Mt.width="300px";const pt=this.dialog.open(P.QQ,Mt),_t=this.dateTo??new Date;this.dataSource.getAllApplications(this.child.paginator.length,We,this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(_t),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0).subscribe(ye=>{pt.close(),(0,A.O6)((0,A.Xn)(ye,this.displayedColumns,this.getExportDataForColumn.bind(this)),ve)})}getExportDataForColumn(ve,We){switch(We){case"id":return ve.id.toString();case"voId":return ve.vo.id.toString();case"voName":return ve.vo.name;case"groupId":return ve.group?.id.toString()??"";case"groupName":return ve.group?.name??"";case"type":return ve.type;case"fedInfo":return ve.fedInfo;case"formData":return this.stringify(ve.formData);case"state":return ve.state;case"extSourceName":return ve.extSourceName;case"extSourceType":return ve.extSourceType;case"user":return ve.user?(0,A.bD)(ve.user):"";case"createdBy":return ve.createdBy;case"createdAt":return ve.createdAt;case"modifiedBy":return ve.modifiedBy;case"modifiedAt":return ve.modifiedAt;default:return ve[We]}}getSortDataColumn(){if(!this.sort)return f.sY.DATE_CREATED;switch(this.sort.active){case"id":return f.sY.ID;case"createdAt":default:return f.sY.DATE_CREATED;case"type":return f.sY.TYPE;case"state":return f.sY.STATE;case"user":return f.sY.SUBMITTER;case"groupName":return f.sY.GROUP_NAME;case"modifiedBy":return f.sY.MODIFIED_BY}}getFriendlyName(ve){const We=ve.lastIndexOf("/CN=");if(-1!==We){const Mt=ve.slice(We+4,ve.length).replace("/unstructuredName="," ");return-1!==Mt.lastIndexOf("\\")?ve.slice(ve.lastIndexOf("=")+1,ve.length):Mt}return ve}yearAgo(){const ve=new Date;return ve.setDate(ve.getDate()-365),ve}dateToString(ve){return(0,x.p6)(ve,"yyyy-MM-dd","en-GB")}getVoId(){return this.vo?this.vo.id:this.group?this.group.voId:this.member?this.member.voId:void 0}stringify(ve){const We=pt=>Object.entries(pt).reduce((_t,[ye,Ee])=>_t[ye]instanceof Object?_t[ye]=We(_t[ye]):(null==Ee||"null"===Ee||0===Ee.length||(_t[ye]=Ee),_t),{});let Mt=JSON.stringify(We(ve));return Mt=Mt.replace("{","["),Mt=Mt.replace("}","]"),Mt}getFormDataString(ve){return this.stringify(ve.formItem)}parseColumns(ve){ve.forEach(We=>{this.displayedColumns.includes(We.shortname)||this.displayedColumns.push(We.shortname),this.parsedColumns.includes(We.shortname)||this.parsedColumns.push(We.shortname)})}getValue(ve,We){const Mt=ve.filter(pt=>pt.shortname===We);return 0===Mt.length?"":Mt[0].value??Mt[0].prefilledValue}getFedValue(ve,We){const Mt=new RegExp(this.fedAttrNames.map(_t=>","+_t+":").join("|"));if(null===ve||0===ve.length)return"";let pt=[];return pt=ve.startsWith(We+":")?ve.split(We+":"):ve.split(","+We+":"),pt.length<2?"":(pt=pt[1].split(Mt),pt[0].endsWith(",")?pt[0].slice(0,-1):pt[0])}}return H.\u0275fac=function(ve){return new(ve||H)(e.Y36(m.x4),e.Y36(F.dB),e.Y36(m.ly),e.Y36(f.H8),e.Y36(T.uw))},H.\u0275cmp=e.Xpm({type:H,selectors:[["app-applications-dynamic-list"]],viewQuery:function(ve,We){if(1&ve&&(e.Gf(A.l9,7),e.Gf(S.YE,5)),2&ve){let Mt;e.iGM(Mt=e.CRH())&&(We.child=Mt.first),e.iGM(Mt=e.CRH())&&(We.sort=Mt.first)}},inputs:{displayedColumns:"displayedColumns",fedColumns:"fedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",group:"group",member:"member",vo:"vo",includeGroupApps:"includeGroupApps",states:"states",dateTo:"dateTo",dateFrom:"dateFrom",fedAttrNames:"fedAttrNames",refreshTable:"refreshTable"},outputs:{loading$:"loading$"},features:[e.TTD],decls:53,vars:10,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","createdAt","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["matColumnDef","voId"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],["matColumnDef","fedInfo"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"applicationType"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(ve,We){1&ve&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(pt){return We.exportDisplayedData(pt)})("exportAllData",function(pt){return We.exportAllData(pt)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,Le,3,3,"th",4),e.YNc(5,$e,3,4,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,qe,3,3,"th",4),e.YNc(8,Ze,3,4,"td",5),e.BQk(),e.ynx(9,7),e.YNc(10,Pe,3,3,"th",8),e.YNc(11,se,2,1,"td",5),e.BQk(),e.ynx(12,9),e.YNc(13,N,3,3,"th",8),e.YNc(14,U,2,1,"td",5),e.BQk(),e.ynx(15,10),e.YNc(16,$,3,3,"th",8),e.YNc(17,ce,2,1,"td",5),e.BQk(),e.ynx(18,11),e.YNc(19,De,3,3,"th",8),e.YNc(20,he,3,4,"td",5),e.BQk(),e.ynx(21,12),e.YNc(22,Oe,3,3,"th",4),e.YNc(23,it,2,1,"td",5),e.BQk(),e.ynx(24,13),e.YNc(25,Ce,3,3,"th",4),e.YNc(26,ot,3,3,"td",5),e.BQk(),e.ynx(27,14),e.YNc(28,Ue,3,3,"th",8),e.YNc(29,ft,2,1,"td",5),e.BQk(),e.ynx(30,15),e.YNc(31,Z,3,3,"th",8),e.YNc(32,lt,2,1,"td",5),e.BQk(),e.ynx(33,16),e.YNc(34,Ae,3,3,"th",4),e.YNc(35,Ie,4,2,"td",5),e.BQk(),e.ynx(36,17),e.YNc(37,Ne,3,3,"th",8),e.YNc(38,we,2,2,"td",5),e.BQk(),e.ynx(39,18),e.YNc(40,Be,3,3,"th",4),e.YNc(41,r,2,1,"td",5),e.BQk(),e.ynx(42,19),e.YNc(43,u,3,3,"th",8),e.YNc(44,_,3,4,"td",5),e.BQk(),e.ynx(45,20),e.YNc(46,C,3,3,"th",8),e.YNc(47,h,2,1,"td",5),e.BQk(),e.YNc(48,t,3,1,"ng-container",21),e.YNc(49,l,3,1,"ng-container",21),e.YNc(50,d,1,0,"tr",22),e.YNc(51,c,3,14,"tr",23),e.qZA()()(),e.YNc(52,s,3,4,"perun-web-apps-alert",24)),2&ve&&(e.Q6J("hidden",0===We.dataSource.allObjectCount),e.xp6(1),e.Q6J("dataLength",We.dataSource.allObjectCount)("pageSizeOptions",We.pageSizeOptions)("tableId",We.tableId),e.xp6(1),e.Q6J("dataSource",We.dataSource),e.xp6(46),e.Q6J("ngForOf",We.fedColumns),e.xp6(1),e.Q6J("ngForOf",We.parsedColumns),e.xp6(1),e.Q6J("matHeaderRowDef",We.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",We.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===We.dataSource.allObjectCount))},dependencies:[x.sg,x.O5,B.rH,S.YE,S.nU,I.BZ,I.fO,I.as,I.w1,I.Dz,I.nj,I.ge,I.ev,I.XQ,I.Gk,q.w,ue.Y,j.Q,Q.l,V,x.uU,W.X$,ee.h,ie.d,xe.R,Ye],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),H})()},45256:(Xe,ae,p)=>{"use strict";p.d(ae,{k:()=>I});var e=p(95017),f=p(61744),A=p(64080),S=p(7274),m=p(80279),M=p(86511),w=p(77579),x=p(56451),P=p(39646),F=p(63900),T=p(68675),B=p(94650);let I=(()=>{class q{constructor(j,Q,be,me,fe,re,v,V,W,ee,ie){this.data=j,this.dialogRef=Q,this.membersManagerService=be,this.voService=me,this.registrarManager=fe,this.groupService=re,this.store=v,this.guiAuthResolver=V,this.requestService=W,this.addMemberService=ee,this.notificator=ie,this.loading=!1,this.searcher=new w.x,this.members=this.searcher.pipe((0,F.w)(xe=>(0,x.T)((0,P.of)(null),this.voService.getCompleteCandidatesForGroup(this.data.group.id,this.attrNames,xe))),(0,T.O)(void 0)),this.failed=[],this.selection=new e.Ov(!0,[]),this.attrNames=[A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.getProperty("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("group")}ngOnInit(){this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group]),this.selection.changed.subscribe(j=>{this.addAuth=!!j.source.selected.every(Q=>Q.member)||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.data.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.data.group])}),this.registrarManager.invitationFormExists(this.data.group.voId,this.data.group.id).subscribe(j=>{this.showInvite=j})}add(){this.loading=!0,this.membersManagerService.addMemberCandidates({candidates:this.addMemberService.convertToMemberCandidates(this.selection.selected),vo:this.data.group.voId,group:this.data.group.id}).subscribe({next:()=>{this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD")},error:j=>{this.loading=!1,this.notificator.showRPCError(j)}})}invite(j){this.loading=!0,this.registrarManager.inviteMemberCandidates({candidates:this.addMemberService.convertToMemberCandidates(this.selection.selected),vo:this.data.group.voId,lang:j,group:this.data.group.id}).subscribe({next:()=>{this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE")},error:Q=>{this.loading=!1,this.notificator.showRPCError(Q)}})}cancel(j){this.dialogRef.close(j)}}return q.\u0275fac=function(j){return new(j||q)(B.Y36(S.WI),B.Y36(S.so),B.Y36(f.uq),B.Y36(f.YF),B.Y36(f.tk),B.Y36(f.ff),B.Y36(m.d6),B.Y36(m.x4),B.Y36(m.F5),B.Y36(M.A),B.Y36(m.V6))},q.\u0275cmp=B.Xpm({type:q,selectors:[["app-group-add-member-dialog"]],decls:2,vars:12,consts:[[3,"showInvite","loading","languages","manualAddingBlocked","addAuth","inviteAuth","failed","members","selection","theme","add","cancel","invite","search"]],template:function(j,Q){1&j&&(B.TgZ(0,"app-add-member-dialog",0),B.NdJ("add",function(){return Q.add()})("cancel",function(me){return Q.cancel(me)})("invite",function(me){return Q.invite(me)})("search",function(me){return Q.searcher.next(me)}),B.ALo(1,"async"),B.qZA()),2&j&&B.Q6J("showInvite",Q.showInvite)("loading",Q.loading)("languages",Q.languages)("manualAddingBlocked",Q.data.manualAddingBlocked)("addAuth",Q.addAuth)("inviteAuth",Q.inviteAuth)("failed",Q.failed)("members",B.lcZ(1,10,Q.members))("selection",Q.selection)("theme","group-theme")}}),q})()},51525:(Xe,ae,p)=>{"use strict";p.d(ae,{H:()=>I});var e=p(7274),f=p(61744),A=p(80279),S=p(95017),m=p(64080),M=p(86511),w=p(77579),x=p(56451),P=p(39646),F=p(63900),T=p(68675),B=p(94650);let I=(()=>{class q{constructor(j,Q,be,me,fe,re,v,V,W){this.data=j,this.dialogRef=Q,this.membersManagerService=be,this.voService=me,this.registrarManager=fe,this.store=re,this.requestService=v,this.addMemberService=V,this.notificator=W,this.loading=!1,this.showInvite=!1,this.searcher=new w.x,this.members=this.searcher.pipe((0,F.w)(ee=>(0,x.T)((0,P.of)(null),this.voService.getCompleteCandidatesForVo(this.data.voId,this.attrNames,ee))),(0,T.O)(void 0)),this.failed=[],this.selection=new S.Ov(!0,[]),this.attrNames=[m.r.USER_DEF_ORGANIZATION,m.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.getProperty("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("vo")}ngOnInit(){this.registrarManager.invitationFormExists(this.data.voId).subscribe(j=>{this.showInvite=j})}add(){this.loading=!0,this.membersManagerService.addMemberCandidates({candidates:this.addMemberService.convertToMemberCandidates(this.selection.selected),vo:this.data.voId}).subscribe({next:()=>{this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD")},error:j=>{this.loading=!1,this.notificator.showRPCError(j)}})}invite(j){this.loading=!0,this.registrarManager.inviteMemberCandidates({candidates:this.addMemberService.convertToMemberCandidates(this.selection.selected),vo:this.data.voId,lang:j}).subscribe({next:()=>{this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE")},error:Q=>{this.loading=!1,this.notificator.showRPCError(Q)}})}cancel(j){this.dialogRef.close(j)}}return q.\u0275fac=function(j){return new(j||q)(B.Y36(e.WI),B.Y36(e.so),B.Y36(f.uq),B.Y36(f.YF),B.Y36(f.tk),B.Y36(A.d6),B.Y36(A.F5),B.Y36(M.A),B.Y36(A.V6))},q.\u0275cmp=B.Xpm({type:q,selectors:[["app-vo-add-member-dialog"]],decls:2,vars:9,consts:[[3,"loading","showInvite","languages","failed","members","selection","theme","add","cancel","invite","search"]],template:function(j,Q){1&j&&(B.TgZ(0,"app-add-member-dialog",0),B.NdJ("add",function(){return Q.add()})("cancel",function(me){return Q.cancel(me)})("invite",function(me){return Q.invite(me)})("search",function(me){return Q.searcher.next(me)}),B.ALo(1,"async"),B.qZA()),2&j&&B.Q6J("loading",Q.loading)("showInvite",Q.showInvite)("languages",Q.languages)("failed",Q.failed)("members",B.lcZ(1,7,Q.members))("selection",Q.selection)("theme","vo-theme")}}),q})()},55857:(Xe,ae,p)=>{"use strict";p.d(ae,{W:()=>ie});var e=p(61744),f=p(10036),A=p(80279),S=p(24006),m=p(36895),M=p(9244),w=p(23325),x=p(39646),P=p(94650),F=p(7274),T=p(4859),B=p(10266),I=p(68530),q=p(96214),ue=p(39798),j=p(64901),Q=p(68788),be=p(73358),me=p(99168),fe=p(89383);function re(xe,Ye){if(1&xe){const Le=P.EpF();P.TgZ(0,"button",11),P.NdJ("click",function(){P.CHM(Le);const qe=P.oxw();return P.KtG(qe.showDetails(!0))}),P._uU(1),P.ALo(2,"translate"),P.qZA()}2&xe&&(P.xp6(1),P.hij(" ",P.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function v(xe,Ye){if(1&xe){const Le=P.EpF();P.TgZ(0,"button",11),P.NdJ("click",function(){P.CHM(Le);const qe=P.oxw();return P.KtG(qe.showDetails(!1))}),P._uU(1),P.ALo(2,"translate"),P.qZA()}2&xe&&(P.xp6(1),P.hij(" ",P.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function V(xe,Ye){if(1&xe){const Le=P.EpF();P.TgZ(0,"button",12),P.NdJ("click",function(){P.CHM(Le);const qe=P.oxw();return P.KtG(qe.setColumns())}),P._uU(1),P.ALo(2,"translate"),P.qZA()}if(2&xe){const Le=P.oxw();P.Q6J("disabled",Le.showAllDetails),P.xp6(1),P.hij(" ",P.lcZ(2,2,"VO_DETAIL.APPLICATION.SET_COLUMN_SETTINGS")," ")}}function W(xe,Ye){1&xe&&P._UZ(0,"perun-web-apps-loading-table")}function ee(xe,Ye){if(1&xe){const Le=P.EpF();P.TgZ(0,"app-applications-dynamic-list",13),P.NdJ("loading$",function(qe){P.CHM(Le);const Ze=P.oxw();return P.KtG(Ze.loading$=qe)}),P.qZA()}if(2&xe){const Le=P.oxw();P.Q6J("tableId",Le.showAllDetails?Le.detailTableId:Le.tableId)("searchString",Le.filterValue)("displayedColumns",Le.currentColumns)("fedColumns",Le.configuredFedColumns)("fedAttrNames",Le.fedAttrNames)("states",Le.currentStates)("dateFrom",Le.startDate.value)("dateTo",Le.endDate.value)("refreshTable",Le.refresh)("group",Le.group)}}let ie=(()=>{class xe{constructor(Le,$e,qe,Ze,Pe,se){this.registrarManager=Le,this.guiAuthResolver=$e,this.entityStorageService=qe,this.attributeManager=Ze,this.dialog=Pe,this.cd=se,this.currentStates=["NEW","VERIFIED"],this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.detailedColumns=["createdAt","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=f.Af,this.tableId=f.gB,this.refresh=!1,this.fedAttrNames=[],this.currentColumns=[],this.configuredColumns=[],this.configuredFedColumns=[],this.columnsAuth=!1}ngOnInit(){this.loading$=(0,x.of)(!0),this.group=this.entityStorageService.getEntity(),this.startDate=new S.p4((0,m.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new S.p4((0,m.p6)(new Date,"yyyy-MM-dd","en-GB")),this.attributeManager.getIdpAttributeDefinitions().subscribe(Le=>{Le.forEach($e=>{this.fedAttrNames.includes($e.friendlyName)||this.fedAttrNames.push($e.friendlyName)})}),this.loadViewConfiguration()}yearAgo(){const Le=new Date;return Le.setDate(Le.getDate()-365),Le}applyFilter(Le){this.filterValue=Le}showDetails(Le){this.showAllDetails=Le,this.loadViewConfiguration()}refreshColumns(){return this.cd.detectChanges(),["id"].concat(this.showAllDetails?this.detailedColumns:this.configuredColumns.length>0?this.configuredColumns:this.simpleColumns)}loadViewConfiguration(){this.cd.detectChanges(),this.attributeManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:def:applicationViewPreferences").subscribe(Le=>{null!=Le?.value&&Le?.value.length>0?(this.configuredColumns=Le.value,this.configuredFedColumns=this.configuredColumns.filter($e=>this.fedAttrNames.includes($e))):(this.configuredColumns=[],this.configuredFedColumns=[]),this.columnsAuth=Le.writable,this.currentColumns=this.refreshColumns()})}setColumns(){const Le=(0,M.kZ)();Le.width="650px",Le.data={columns:[],groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.a,Le).afterClosed().subscribe(qe=>{qe&&this.loadViewConfiguration()})}refreshTable(){this.refresh=!this.refresh,this.cd.detectChanges()}}return xe.id="GroupApplicationsComponent",xe.\u0275fac=function(Le){return new(Le||xe)(P.Y36(e.tk),P.Y36(A.x4),P.Y36(A.fb),P.Y36(e.H8),P.Y36(F.uw),P.Y36(P.sBO))},xe.\u0275cmp=P.Xpm({type:xe,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(Le,$e){2&Le&&P.ekj("router-component",$e.true)},decls:18,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["class","me-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"stateChanged"],[3,"placeholder","filter"],[3,"endDate","startDate"],["matTooltipPosition","above",3,"matTooltipDisabled","matTooltip"],["mat-stroked-button","",3,"disabled","click",4,"ngIf"],["spinner",""],[1,"position-relative"],[3,"tableId","searchString","displayedColumns","fedColumns","fedAttrNames","states","dateFrom","dateTo","refreshTable","group","loading$",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-stroked-button","",1,"me-2",3,"click"],["mat-stroked-button","",3,"disabled","click"],[3,"tableId","searchString","displayedColumns","fedColumns","fedAttrNames","states","dateFrom","dateTo","refreshTable","group","loading$"]],template:function(Le,$e){if(1&Le&&(P.TgZ(0,"h1",0),P._uU(1),P.ALo(2,"translate"),P.qZA(),P.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),P.NdJ("refresh",function(){return $e.refreshTable()}),P.qZA(),P.YNc(5,re,3,3,"button",2),P.YNc(6,v,3,3,"button",2),P.TgZ(7,"perun-web-apps-application-state-selector",3),P.NdJ("stateChanged",function(Ze){return $e.currentStates=Ze}),P.qZA(),P.TgZ(8,"perun-web-apps-debounce-filter",4),P.NdJ("filter",function(Ze){return $e.applyFilter(Ze)}),P.qZA(),P._UZ(9,"perun-web-apps-date-range",5),P.TgZ(10,"span",6),P.ALo(11,"translate"),P.YNc(12,V,3,4,"button",7),P.qZA()(),P.YNc(13,W,1,0,"ng-template",null,8,P.W1O),P.TgZ(15,"div",9),P.YNc(16,ee,1,10,"app-applications-dynamic-list",10),P.ALo(17,"async"),P.qZA()),2&Le){const qe=P.MAs(14);P.xp6(1),P.Oqu(P.lcZ(2,11,"VO_DETAIL.APPLICATION.TITLE")),P.xp6(4),P.Q6J("ngIf",!$e.showAllDetails),P.xp6(1),P.Q6J("ngIf",$e.showAllDetails),P.xp6(2),P.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),P.xp6(1),P.Q6J("endDate",$e.endDate)("startDate",$e.startDate),P.xp6(1),P.s9C("matTooltip",P.lcZ(11,13,"VO_DETAIL.APPLICATION.COLUMNS_TOOLTIP")),P.Q6J("matTooltipDisabled",!$e.showAllDetails),P.xp6(2),P.Q6J("ngIf",$e.columnsAuth),P.xp6(4),P.Q6J("perunWebAppsLoader",P.lcZ(17,15,$e.loading$))("perunWebAppsLoaderIndicator",qe)}},dependencies:[m.O5,T.lW,B.gM,I.K,q.t,ue.S,j.P,Q.x,be.e,me.S,m.Ov,fe.X$]}),xe})()},13600:(Xe,ae,p)=>{"use strict";p.d(ae,{y:()=>pe});var e=p(95017),f=p(80279),A=p(64080),S=p(53455),m=p(61744),M=p(10036),w=p(9244),x=p(74414),P=p(24006),F=p(45256),T=p(94742),B=p(7274),I=p(94650),q=p(4859),ue=p(10266),j=p(71948),Q=p(98380),be=p(97403),me=p(25788),fe=p(7434),re=p(73358),v=p(89383);function V(Ie,Ne){1&Ie&&I._UZ(0,"perun-web-apps-loading-dialog")}const W=function(){return["select","id","name","description"]};function ee(Ie,Ne){if(1&Ie){const we=I.EpF();I.TgZ(0,"div")(1,"h1",2),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"div",3)(5,"mat-radio-group",4),I.NdJ("ngModelChange",function(r){I.CHM(we);const u=I.oxw();return I.KtG(u.copyType=r)}),I.TgZ(6,"span",5),I.ALo(7,"translate"),I.TgZ(8,"mat-radio-button",6),I._uU(9),I.ALo(10,"translate"),I.qZA()(),I.TgZ(11,"mat-radio-button",7),I._uU(12),I.ALo(13,"translate"),I.qZA()(),I.TgZ(14,"perun-web-apps-alert",8),I._uU(15),I.ALo(16,"translate"),I.qZA(),I.TgZ(17,"h5",9),I._uU(18),I.ALo(19,"translate"),I.qZA(),I.TgZ(20,"perun-web-apps-immediate-filter",10),I.NdJ("filter",function(r){I.CHM(we);const u=I.oxw();return I.KtG(u.applyFilter(r))}),I.qZA(),I._UZ(21,"perun-web-apps-groups-list",11),I.qZA(),I.TgZ(22,"div",12)(23,"button",13),I.NdJ("click",function(){I.CHM(we);const r=I.oxw();return I.KtG(r.onCancel())}),I._uU(24),I.ALo(25,"translate"),I.qZA(),I.TgZ(26,"button",14),I.NdJ("click",function(){I.CHM(we);const r=I.oxw();return I.KtG(r.onSubmit())}),I._uU(27),I.ALo(28,"translate"),I.qZA()()()}if(2&Ie){const we=I.oxw();I.xp6(2),I.Oqu(I.lcZ(3,19,"DIALOGS.COPY_MEMBERS.TITLE")),I.xp6(3),I.Q6J("ngModel",we.copyType),I.xp6(1),I.s9C("matTooltip",I.lcZ(7,21,"DIALOGS.COPY_MEMBERS.DISABLED_COPY_SELECTION")),I.Q6J("matTooltipDisabled",we.data.members.length>0),I.xp6(2),I.Q6J("disabled",0===we.data.members.length),I.xp6(1),I.hij(" ",I.lcZ(10,23,"DIALOGS.COPY_MEMBERS.COPY_SELECTION")," "),I.xp6(3),I.hij(" ",I.lcZ(13,25,"DIALOGS.COPY_MEMBERS.COPY_ALL")," "),I.xp6(3),I.hij(" ",I.lcZ(16,27,"DIALOGS.COPY_MEMBERS.ATTRIBUTES_WARN")," "),I.xp6(3),I.Oqu(I.lcZ(19,29,"DIALOGS.COPY_MEMBERS.SELECT_GROUPS")),I.xp6(2),I.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),I.xp6(1),I.Q6J("groups",we.assignableGroups)("selection",we.selection)("disableRouting",!0)("displayedColumns",I.DdM(35,W))("filter",we.filterValue)("tableId",we.tableId),I.xp6(3),I.hij(" ",I.lcZ(25,31,"DIALOGS.COPY_MEMBERS.CANCEL")," "),I.xp6(2),I.Q6J("disabled",we.loading||we.selection.isEmpty()),I.xp6(1),I.hij(" ",I.lcZ(28,33,"DIALOGS.COPY_MEMBERS.COPY")," ")}}let ie=(()=>{class Ie{constructor(we,Be,r,u,_,C){this.dialogRef=we,this.data=Be,this.groupsService=r,this.guiAuthResolver=u,this.translate=_,this.notificator=C,this.loading=!1,this.copyType="all",this.filterValue="",this.tableId=M.rc,this.assignableGroups=[],this.selection=new e.Ov(!0,[]),this.groupAttrNames=[A.r.GROUP_SYNC_ENABLED,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading=!0,this.data.members.length>0&&(this.copyType="selection"),this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(we=>{this.assignableGroups=this.filterAssignableGroups(we),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const we="selection"===this.copyType?this.data.members.map(Be=>Be.id):[];this.groupsService.copyMembers(this.data.groupId,this.selection.selected.map(Be=>Be.id),we).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.COPY_MEMBERS.SUCCESS")),this.dialogRef.close(!0)},error:()=>{this.notificator.showError(this.translate.instant("DIALOGS.COPY_MEMBERS.ERROR")),this.loading=!1}})}applyFilter(we){this.filterValue=we}filterAssignableGroups(we){const Be=[];for(const r of we)"members"!==r.name&&r.id!==this.data.groupId&&!(0,w.bx)(r)&&!(0,w.jh)(r.attributes,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("dest-copyMembers_Group_List_List_boolean_policy",[r])&&Be.push(r);return Be}}return Ie.\u0275fac=function(we){return new(we||Ie)(I.Y36(B.so),I.Y36(B.WI),I.Y36(m.ff),I.Y36(f.x4),I.Y36(f.Te),I.Y36(f.V6))},Ie.\u0275cmp=I.Xpm({type:Ie,selectors:[["app-copy-members-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"flex-container",3,"ngModel","ngModelChange"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","selection",3,"disabled"],["value","all"],["alert_type","warn",1,"mt-4"],[1,"mt-4"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(we,Be){if(1&we&&(I.YNc(0,V,1,0,"ng-template",null,0,I.W1O),I.TgZ(2,"div"),I.YNc(3,ee,29,36,"div",1),I.qZA()),2&we){const r=I.MAs(1);I.xp6(2),I.Gre("",Be.data.theme," position-relative"),I.xp6(1),I.Q6J("perunWebAppsLoader",Be.loading)("perunWebAppsLoaderIndicator",r)}},dependencies:[P.JJ,P.On,q.lW,B.uh,B.xY,B.H8,ue.gM,j.VQ,j.U0,Q.w,be.b,me.W,fe.L,re.e,v.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Ie})();var xe=p(39646),Ye=p(36895),Le=p(3238),$e=p(59549),qe=p(84385),Ze=p(28255),Pe=p(68530),se=p(96214),N=p(64901),U=p(4811),$=p(20551);let ce=(()=>{class Ie{transform(we,Be){return!!("members"===we.name||(0,w.bx)(we)||"add"===Be&&(0,w.jh)(we.attributes,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING))}}return Ie.\u0275fac=function(we){return new(we||Ie)},Ie.\u0275pipe=I.Yjl({name:"groupMembersActionButtonDisabled",type:Ie,pure:!0}),Ie})(),De=(()=>{class Ie{transform(we,Be){return"members"===we.name?"GROUP_DETAIL.MEMBERS.BUTTON_DISABLED_MEMBERS_GROUP":(0,w.bx)(we)?"GROUP_DETAIL.MEMBERS.SYNCHRONIZED":"add"===Be&&(0,w.jh)(we.attributes,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)?"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED":""}}return Ie.\u0275fac=function(we){return new(we||Ie)},Ie.\u0275pipe=I.Yjl({name:"groupMembersActionButtonDisabledTooltip",type:Ie,pure:!0}),Ie})();function he(Ie,Ne){1&Ie&&(I.TgZ(0,"perun-web-apps-alert",18),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&Ie&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function Oe(Ie,Ne){if(1&Ie){const we=I.EpF();I.TgZ(0,"button",19),I.NdJ("click",function(){I.CHM(we);const r=I.oxw();return I.KtG(r.onAddMember())}),I.ALo(1,"groupMembersActionButtonDisabled"),I._uU(2),I.ALo(3,"translate"),I.qZA()}if(2&Ie){const we=I.oxw();I.Q6J("disabled",I.xi3(1,2,we.group,"add")),I.xp6(2),I.hij(" ",I.lcZ(3,5,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function it(Ie,Ne){if(1&Ie&&(I.TgZ(0,"button",20),I.ALo(1,"groupMembersActionButtonDisabled"),I._uU(2),I.ALo(3,"translate"),I.qZA()),2&Ie){const we=I.oxw(),Be=I.MAs(17);I.Q6J("disabled",I.lcZ(1,3,we.group))("matMenuTriggerFor",Be),I.xp6(2),I.hij(" ",I.lcZ(3,5,"GROUP_DETAIL.MEMBERS.INVITE")," ")}}function Ce(Ie,Ne){if(1&Ie){const we=I.EpF();I.TgZ(0,"button",21),I.NdJ("click",function(){I.CHM(we);const r=I.oxw();return I.KtG(r.onInviteMember())}),I.ALo(1,"groupMembersActionButtonDisabled"),I._uU(2),I.ALo(3,"translate"),I.qZA()}if(2&Ie){const we=I.oxw();I.Q6J("disabled",I.lcZ(1,2,we.group)),I.xp6(2),I.hij(" ",I.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_ONE")," ")}}function ot(Ie,Ne){if(1&Ie){const we=I.EpF();I.TgZ(0,"button",21),I.NdJ("click",function(){I.CHM(we);const r=I.oxw();return I.KtG(r.onBulkInvite())}),I.ALo(1,"groupMembersActionButtonDisabled"),I._uU(2),I.ALo(3,"translate"),I.qZA()}if(2&Ie){const we=I.oxw();I.Q6J("disabled",I.lcZ(1,2,we.group)),I.xp6(2),I.hij(" ",I.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_BULK")," ")}}function Ue(Ie,Ne){if(1&Ie){const we=I.EpF();I.TgZ(0,"button",22),I.NdJ("click",function(){I.CHM(we);const r=I.oxw();return I.KtG(r.onCopyMembers())}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&Ie){const we=I.oxw();I.Q6J("disabled",we.copyDisabled),I.xp6(1),I.hij(" ",I.lcZ(2,2,"GROUP_DETAIL.MEMBERS.COPY_MEMBERS")," ")}}function ft(Ie,Ne){if(1&Ie){const we=I.EpF();I.TgZ(0,"button",23),I.NdJ("click",function(){I.CHM(we);const r=I.oxw();return I.KtG(r.onRemoveMembers())}),I.ALo(1,"groupMembersActionButtonDisabled"),I._uU(2),I.ALo(3,"translate"),I.qZA()}if(2&Ie){const we=I.oxw();I.Q6J("disabled",we.selection.isEmpty()||I.lcZ(1,2,we.group)),I.xp6(2),I.hij(" ",I.lcZ(3,4,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function Z(Ie,Ne){if(1&Ie&&(I.TgZ(0,"mat-option",24),I._uU(1),I.ALo(2,"memberStatus"),I.qZA()),2&Ie){const we=Ne.$implicit;I.Q6J("value",we),I.xp6(1),I.Oqu(I.lcZ(2,2,we))}}function lt(Ie,Ne){if(1&Ie&&(I.TgZ(0,"mat-option",24),I._uU(1),I.ALo(2,"memberStatus"),I.qZA()),2&Ie){const we=Ne.$implicit;I.Q6J("value",we),I.xp6(1),I.Oqu(I.lcZ(2,2,we))}}function Ae(Ie,Ne){1&Ie&&I._UZ(0,"perun-web-apps-loading-table")}function Ke(Ie,Ne){if(1&Ie){const we=I.EpF();I.TgZ(0,"perun-web-apps-members-dynamic-list",25),I.NdJ("loading$",function(r){I.CHM(we);const u=I.oxw();return I.KtG(u.loading$=r)}),I.qZA()}if(2&Ie){const we=I.oxw();I.Q6J("attrNames",we.memberAttrNames)("groupId",we.group.id)("tableId",we.tableId)("displayedColumns",we.displayedColumns)("searchString",we.searchString)("updateTable",we.updateTable)("selectedGroupStatuses",we.selectedGroupStatuses)("selectedStatuses",we.selectedStatuses)("selection",we.selection)("voId",we.group.voId)("isMembersGroup","members"===we.group.name)}}let pe=(()=>{class Ie{constructor(we,Be,r,u,_,C,h,o,n){this.groupService=we,this.dialog=Be,this.guiAuthResolver=r,this.storeService=u,this.attributesManager=_,this.apiRequest=C,this.notificator=h,this.entityStorageService=o,this.cd=n,this.synchEnabled=!1,this.updateTable=!1,this.tableId=M.dI,this.memberAttrNames=[A.r.MEMBER_DEF_ORGANIZATION,A.r.MEMBER_DEF_MAIL,A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL,A.r.MEMBER_DEF_EXPIRATION,A.r.MEMBER_DEF_GROUP_EXPIRATION,A.r.MEMBER_LIFECYCLE_ALTERABLE],this.copyDisabled=!1,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new P.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new P.p4,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"],this.groupAttrNames=[A.r.GROUP_SYNC_ENABLED,A.r.GROUP_LAST_SYNC_STATE,A.r.GROUP_LAST_SYNC_TIMESTAMP,A.r.GROUP_STRUCTURE_SYNC_ENABLED,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading$=(0,xe.of)(!0),this.selection=new e.Ov(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.group.voId).then(()=>this.loadPage(this.group.id)),this.isCopyMembersDisabled()}loadPage(we){this.groupService.getRichGroupByIdWithAttributesByNames(we,this.groupAttrNames).subscribe(Be=>{this.group=Be,this.synchEnabled=(0,w.bx)(this.group)})}setAuthRights(){this.addAuth=this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("removeMembers_Group_List_policy",[this.group]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","type","fullName","status","groupStatus","organization","email","logins"],this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_String_String_String_policy",[this.group]),this.copyAuth=this.guiAuthResolver.isAuthorized("source-copyMembers_Group_List_List_boolean_policy",[this.group])}onSearchByString(we){this.searchString=we,this.selection.clear()}onAddMember(){const we=(0,w.kZ)();we.width="1000px",we.data={group:this.group,manualAddingBlocked:this.blockManualMemberAdding},this.dialog.open(F.k,we).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.updateTable=!this.updateTable,this.isCopyMembersDisabled())})}onRemoveMembers(){const we=(0,w.kZ)();we.width="450px",we.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(S.X,we).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.updateTable=!this.updateTable,this.isCopyMembersDisabled())})}onInviteMember(){const we=(0,w.kZ)();we.width="650px",we.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(x.R,we)}onBulkInvite(){const we=(0,w.kZ)();we.width="650px",we.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(T.F,we)}onCopyMembers(){const we=(0,w.kZ)();we.width="650px",we.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme",members:this.selection.selected},this.dialog.open(ie,we).afterClosed().subscribe(r=>{r&&this.selection.clear()})}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const we=this.statuses.value;return we?`${we[0]} ${we.length>1?"(+"+(we.length-1).toString()+" "+(2===we.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(we){return new Promise(Be=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(we,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe({next:r=>{this.blockManualMemberAdding=null!==r.value,Be()},error:r=>{"PrivilegeException"!==r.name&&this.notificator.showError(r.name),Be()}})})}isCopyMembersDisabled(){this.copyDisabled=!0,this.groupService.getGroupDirectMembersCount(this.group.id).subscribe({next:we=>{this.copyDisabled=0===we},error:()=>{this.copyDisabled=!0}})}changeVoStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value,this.cd.detectChanges()}changeGroupStatuses(){this.selection.clear(),this.selectedGroupStatuses=this.groupStatuses.value,this.cd.detectChanges()}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable,this.cd.detectChanges(),this.isCopyMembersDisabled()}}return Ie.id="GroupMembersComponent",Ie.\u0275fac=function(we){return new(we||Ie)(I.Y36(m.ff),I.Y36(B.uw),I.Y36(f.x4),I.Y36(f.d6),I.Y36(m.H8),I.Y36(f.F5),I.Y36(f.V6),I.Y36(f.fb),I.Y36(I.sBO))},Ie.\u0275cmp=I.Xpm({type:Ie,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(we,Be){2&we&&I.ekj("router-component",Be.true)},decls:52,vars:65,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["class","me-2 action-button","color","accent","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","me-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"disabled","click",4,"ngIf"],["class","me-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","me-2","color","warn","data-cy","remove-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"me-2","fix-select"],["multiple","",3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup","loading$",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["alert_type","warn"],["color","accent","data-cy","add-members","mat-flat-button","",1,"me-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"me-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"me-2",3,"disabled","click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"me-2",3,"disabled","click"],[1,"group-theme",3,"value"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup","loading$"]],template:function(we,Be){if(1&we&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.YNc(3,he,3,3,"perun-web-apps-alert",1),I.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),I.NdJ("click",function(){return Be.refreshTable()}),I.qZA(),I.TgZ(6,"span",4),I.ALo(7,"groupMembersActionButtonDisabled"),I.ALo(8,"translate"),I.ALo(9,"groupMembersActionButtonDisabledTooltip"),I.YNc(10,Oe,4,7,"button",5),I.qZA(),I.TgZ(11,"span",4),I.ALo(12,"groupMembersActionButtonDisabled"),I.ALo(13,"translate"),I.ALo(14,"groupMembersActionButtonDisabledTooltip"),I.YNc(15,it,4,7,"button",6),I.TgZ(16,"mat-menu",null,7),I.YNc(18,Ce,4,6,"button",8),I.YNc(19,ot,4,6,"button",8),I.qZA()(),I.TgZ(20,"span",4),I.ALo(21,"translate"),I.YNc(22,Ue,3,4,"button",9),I.qZA(),I.TgZ(23,"span",4),I.ALo(24,"groupMembersActionButtonDisabled"),I.ALo(25,"translate"),I.ALo(26,"groupMembersActionButtonDisabledTooltip"),I.YNc(27,ft,4,6,"button",10),I.qZA(),I.TgZ(28,"mat-form-field",11)(29,"mat-label"),I._uU(30),I.ALo(31,"translate"),I.qZA(),I.TgZ(32,"mat-select",12),I.NdJ("closed",function(){return Be.changeVoStatuses()}),I.TgZ(33,"mat-select-trigger"),I._uU(34),I.ALo(35,"memberStatus"),I.qZA(),I.YNc(36,Z,3,4,"mat-option",13),I.qZA()(),I.TgZ(37,"mat-form-field",11)(38,"mat-label"),I._uU(39),I.ALo(40,"translate"),I.qZA(),I.TgZ(41,"mat-select",12),I.NdJ("closed",function(){return Be.changeGroupStatuses()}),I.TgZ(42,"mat-select-trigger"),I._uU(43),I.ALo(44,"memberStatus"),I.qZA(),I.YNc(45,lt,3,4,"mat-option",13),I.qZA()(),I.TgZ(46,"perun-web-apps-debounce-filter",14),I.NdJ("filter",function(u){return Be.onSearchByString(u)}),I.qZA()(),I.YNc(47,Ae,1,0,"ng-template",null,15,I.W1O),I.TgZ(49,"div",16),I.YNc(50,Ke,1,11,"perun-web-apps-members-dynamic-list",17),I.ALo(51,"async"),I.qZA()),2&we){const r=I.MAs(48);I.xp6(1),I.Oqu(I.lcZ(2,31,"GROUP_DETAIL.MEMBERS.TITLE")),I.xp6(2),I.Q6J("ngIf",Be.synchEnabled),I.xp6(3),I.s9C("matTooltip",I.lcZ(8,36,I.xi3(9,38,Be.group,"add"))),I.Q6J("matTooltipDisabled",!I.xi3(7,33,Be.group,"add"))("matTooltipPosition","above"),I.xp6(4),I.Q6J("ngIf",Be.addAuth),I.xp6(1),I.s9C("matTooltip",I.lcZ(13,43,I.lcZ(14,45,Be.group))),I.Q6J("matTooltipDisabled",!I.lcZ(12,41,Be.group))("matTooltipPosition","above"),I.xp6(4),I.Q6J("ngIf",Be.inviteAuth),I.xp6(3),I.Q6J("ngIf",Be.inviteAuth),I.xp6(1),I.Q6J("ngIf",Be.inviteAuth),I.xp6(1),I.s9C("matTooltip",I.lcZ(21,47,"GROUP_DETAIL.MEMBERS.COPY_MEMBERS_DISABLED")),I.Q6J("matTooltipDisabled",!Be.copyDisabled)("matTooltipPosition","above"),I.xp6(2),I.Q6J("ngIf",Be.copyAuth),I.xp6(1),I.s9C("matTooltip",I.lcZ(25,51,I.lcZ(26,53,Be.group))),I.Q6J("matTooltipDisabled",!I.lcZ(24,49,Be.group))("matTooltipPosition","above"),I.xp6(4),I.Q6J("ngIf",Be.removeAuth),I.xp6(3),I.Oqu(I.lcZ(31,55,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),I.xp6(2),I.Q6J("formControl",Be.statuses),I.xp6(2),I.hij(" ",I.lcZ(35,57,Be.displaySelectedStatuses())," "),I.xp6(2),I.Q6J("ngForOf",Be.statusList),I.xp6(3),I.Oqu(I.lcZ(40,59,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),I.xp6(2),I.Q6J("formControl",Be.groupStatuses),I.xp6(2),I.hij(" ",I.lcZ(44,61,Be.displaySelectedGroupStatuses())," "),I.xp6(2),I.Q6J("ngForOf",Be.groupStatusList),I.xp6(1),I.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),I.xp6(4),I.Q6J("perunWebAppsLoader",I.lcZ(51,63,Be.loading$))("perunWebAppsLoaderIndicator",r)}},dependencies:[Ye.sg,Ye.O5,Le.ey,$e.KE,$e.hX,P.JJ,P.oH,q.lW,qe.gD,qe.$L,ue.gM,Ze.VK,Ze.OP,Ze.p6,Q.w,Pe.K,se.t,N.P,U.m,re.e,Ye.Ov,v.X$,$.l,ce,De],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),Ie})()},37240:(Xe,ae,p)=>{"use strict";p.d(ae,{q:()=>Ke});var e=p(95017),f=p(61744),A=p(10036),S=p(7274),m=p(80279),w=(p(37433),p(94650)),x=p(89383),P=p(36895),F=p(24006),T=p(4859),B=p(10266),I=p(90455),q=p(86257),ue=p(97403),j=p(62109),Q=p(64901),be=p(73358);const me=["list"],fe=["stepper"];function re(pe,Ie){1&pe&&w._UZ(0,"perun-web-apps-loading-dialog")}function v(pe,Ie){1&pe&&(w._uU(0),w.ALo(1,"translate")),2&pe&&w.Oqu(w.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function V(pe,Ie){1&pe&&(w._uU(0),w.ALo(1,"translate")),2&pe&&w.Oqu(w.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const W=function(){return["select","id","name","facility","tags","description"]};function ee(pe,Ie){if(1&pe){const Ne=w.EpF();w.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),w.YNc(4,v,2,3,"ng-template",9),w.TgZ(5,"perun-web-apps-debounce-filter",10),w.NdJ("filter",function(Be){w.CHM(Ne);const r=w.oxw(2);return w.KtG(r.applyFilter(Be))}),w.ALo(6,"translate"),w.qZA(),w._UZ(7,"perun-web-apps-resources-list",11,12),w.qZA(),w.TgZ(9,"mat-step"),w.YNc(10,V,2,3,"ng-template",9),w.TgZ(11,"mat-slide-toggle",13),w.NdJ("toggleChange",function(){w.CHM(Ne);const Be=w.oxw(2);return w.KtG(Be.changeSubgroupsMessage())})("ngModelChange",function(Be){w.CHM(Ne);const r=w.oxw(2);return w.KtG(r.autoAssignSubgroups=Be)}),w._uU(12),w.ALo(13,"translate"),w.qZA(),w.TgZ(14,"div",14),w._UZ(15,"i",15),w.qZA(),w.TgZ(16,"mat-slide-toggle",13),w.NdJ("toggleChange",function(){w.CHM(Ne);const Be=w.oxw(2);return w.KtG(Be.changeInactiveMessage())})("ngModelChange",function(Be){w.CHM(Ne);const r=w.oxw(2);return w.KtG(r.asActive=Be)}),w._uU(17),w.ALo(18,"translate"),w.qZA(),w.TgZ(19,"div",14),w._uU(20),w.qZA(),w.TgZ(21,"mat-slide-toggle",13),w.NdJ("toggleChange",function(){w.CHM(Ne);const Be=w.oxw(2);return w.KtG(Be.changeAsyncMessage())})("ngModelChange",function(Be){w.CHM(Ne);const r=w.oxw(2);return w.KtG(r.async=Be)}),w._uU(22),w.ALo(23,"translate"),w.qZA(),w.TgZ(24,"div",14),w._uU(25),w.qZA()()()()}if(2&pe){const Ne=w.MAs(8),we=w.oxw(2);w.xp6(1),w.Q6J("linear",!0),w.xp6(2),w.Q6J("completed",0!==we.selection.selected.length&&void 0!==Ne&&Ne.addAuth),w.xp6(2),w.s9C("placeholder",w.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),w.xp6(2),w.Q6J("filterValue",we.filterValue)("groupToResource",we.data.group)("disableRouting",!0)("resources",we.resources)("selection",we.selection)("displayedColumns",w.DdM(27,W))("tableId",we.tableId),w.xp6(4),w.Q6J("ngModel",we.autoAssignSubgroups),w.xp6(1),w.hij(" ",w.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),w.xp6(3),w.Q6J("innerHTML",we.autoAssignHint,w.oJD),w.xp6(1),w.Q6J("ngModel",we.asActive),w.xp6(1),w.hij(" ",w.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),w.xp6(3),w.hij(" ",we.asActiveHint," "),w.xp6(1),w.Q6J("ngModel",we.async),w.xp6(1),w.hij(" ",w.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),w.xp6(3),w.hij(" ",we.asyncHint," ")}}function ie(pe,Ie){if(1&pe){const Ne=w.EpF();w.TgZ(0,"button",22),w.NdJ("click",function(){w.CHM(Ne);const Be=w.oxw(3);return w.KtG(Be.stepperPrevious())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&pe&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function xe(pe,Ie){if(1&pe){const Ne=w.EpF();w.TgZ(0,"button",23),w.NdJ("click",function(){w.CHM(Ne);const Be=w.oxw(3);return w.KtG(Be.stepperNext())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&pe){const Ne=w.oxw(3);w.ekj("ms-2",void 0!==Ne.stepper&&0!==Ne.stepper.selectedIndex)("ms-auto",!(void 0!==Ne.stepper&&0!==Ne.stepper.selectedIndex)),w.Q6J("disabled",0===Ne.selection.selected.length||void 0!==Ne.list&&!Ne.list.addAuth),w.xp6(1),w.hij(" ",w.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function Ye(pe,Ie){if(1&pe){const Ne=w.EpF();w.TgZ(0,"button",24),w.NdJ("click",function(){w.CHM(Ne);const Be=w.oxw(3);return w.KtG(Be.onSubmit())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&pe){const Ne=w.oxw(3);w.Q6J("disabled",0===Ne.selection.selected.length||Ne.loading),w.xp6(1),w.hij(" ",w.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function Le(pe,Ie){if(1&pe){const Ne=w.EpF();w.TgZ(0,"div",16)(1,"button",17),w.NdJ("click",function(){w.CHM(Ne);const Be=w.oxw(2);return w.KtG(Be.onCancel())}),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,ie,3,3,"button",18),w.YNc(5,xe,3,8,"button",19),w.TgZ(6,"span",20),w.ALo(7,"translate"),w.YNc(8,Ye,3,4,"button",21),w.qZA()()}if(2&pe){const Ne=w.oxw(2);w.xp6(2),w.hij(" ",w.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),w.xp6(2),w.Q6J("ngIf",void 0!==Ne.stepper&&0!==Ne.stepper.selectedIndex),w.xp6(1),w.Q6J("ngIf",void 0!==Ne.stepper&&Ne.stepper.selectedIndex!==Ne.stepper._steps.length-1),w.xp6(1),w.s9C("matTooltip",w.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),w.Q6J("matTooltipDisabled",void 0===Ne.list||Ne.list.addAuth),w.xp6(2),w.Q6J("ngIf",void 0!==Ne.stepper&&Ne.stepper.selectedIndex===Ne.stepper._steps.length-1)}}function $e(pe,Ie){if(1&pe&&(w.TgZ(0,"div")(1,"h1",2),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,ee,26,28,"div",3),w.YNc(5,Le,9,10,"div",4),w.qZA()),2&pe){const Ne=w.oxw();w.xp6(2),w.Oqu(w.lcZ(3,3,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),w.xp6(2),w.Q6J("ngIf",Ne.resources),w.xp6(1),w.Q6J("ngIf",void 0!==Ne.stepper)}}let qe=(()=>{class pe{constructor(Ne,we,Be,r,u,_,C){this.dialogRef=Ne,this.data=we,this.notificator=Be,this.translate=r,this.resourcesManager=u,this.guiAuthResolver=_,this.cd=C,this.filterValue="",this.resources=null,this.selection=new e.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=A.dK}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.autoAssignHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT"),this.resourcesManager.getRichResources(this.data.group.voId).subscribe({next:Ne=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe({next:we=>{this.resources=[];for(const Be of Ne)-1===we.findIndex(r=>r.id===Be.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,Be])&&this.resources.push(Be);this.loading=!1,this.cd.detectChanges()},error:()=>this.loading=!1})},error:()=>this.loading=!1})}applyFilter(Ne){this.filterValue=Ne}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const Ne=this.selection.selected.map(we=>we.id);this.resourcesManager.assignGroupToResources(this.data.group.id,Ne,this.async,!this.asActive,this.autoAssignSubgroups).subscribe({next:()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(we=>{this.notificator.showSuccess(we),this.dialogRef.close(!0)})},error:()=>this.loading=!1})}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return pe.\u0275fac=function(Ne){return new(Ne||pe)(w.Y36(S.so),w.Y36(S.WI),w.Y36(m.V6),w.Y36(x.sK),w.Y36(f.xk),w.Y36(m.x4),w.Y36(w.sBO))},pe.\u0275cmp=w.Xpm({type:pe,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(Ne,we){if(1&Ne&&(w.Gf(me,5),w.Gf(fe,5)),2&Ne){let Be;w.iGM(Be=w.CRH())&&(we.list=Be.first),w.iGM(Be=w.CRH())&&(we.stepper=Be.first)}},decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"filterValue","groupToResource","disableRouting","resources","selection","displayedColumns","tableId"],["list",""],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ms-auto","mat-flat-button","",3,"click",4,"ngIf"],["class","ms-auto","color","accent","mat-flat-button","","type","button",3,"ms-2","ms-auto","disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["class","ms-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","","type","button",1,"ms-auto",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(Ne,we){if(1&Ne&&(w.YNc(0,re,1,0,"ng-template",null,0,w.W1O),w.TgZ(2,"div"),w.YNc(3,$e,6,5,"div",1),w.qZA()),2&Ne){const Be=w.MAs(1);w.xp6(2),w.Gre("",we.theme," position-relative"),w.xp6(1),w.Q6J("perunWebAppsLoader",we.loading)("perunWebAppsLoaderIndicator",Be)}},dependencies:[P.O5,F.JJ,F.On,T.lW,S.uh,S.xY,S.H8,B.gM,I.Rr,q.C0,q.VY,q.Vq,ue.b,j.C,Q.P,be.e,x.X$]}),pe})();var Ze=p(30671);function Pe(pe,Ie){1&pe&&w._UZ(0,"perun-web-apps-loading-dialog")}function se(pe,Ie){1&pe&&w._UZ(0,"th",14)}function N(pe,Ie){if(1&pe&&(w.TgZ(0,"td",15),w._uU(1),w.qZA()),2&pe){const Ne=Ie.$implicit;w.xp6(1),w.Oqu(Ne.name)}}function U(pe,Ie){1&pe&&w._UZ(0,"tr",16)}function $(pe,Ie){1&pe&&w._UZ(0,"tr",17)}function ce(pe,Ie){if(1&pe){const Ne=w.EpF();w.TgZ(0,"div")(1,"h1",2),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"div",3)(5,"p"),w._uU(6),w.ALo(7,"translate"),w.qZA(),w.TgZ(8,"div",4),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"table",5),w.ynx(12,6),w.YNc(13,se,1,0,"th",7),w.YNc(14,N,2,1,"td",8),w.BQk(),w.YNc(15,U,1,0,"tr",9),w.YNc(16,$,1,0,"tr",10),w.qZA()(),w.TgZ(17,"div",11)(18,"button",12),w.NdJ("click",function(){w.CHM(Ne);const Be=w.oxw();return w.KtG(Be.onCancel())}),w._uU(19),w.ALo(20,"translate"),w.qZA(),w.TgZ(21,"button",13),w.NdJ("click",function(){w.CHM(Ne);const Be=w.oxw();return w.KtG(Be.onSubmit())}),w._uU(22),w.ALo(23,"translate"),w.qZA()()()}if(2&pe){const Ne=w.oxw();w.xp6(2),w.Oqu(w.lcZ(3,9,"DIALOGS.REMOVE_RESOURCES.TITLE")),w.xp6(4),w.hij(" ",w.lcZ(7,11,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),w.xp6(3),w.hij(" ",w.lcZ(10,13,"DIALOGS.REMOVE_RESOURCES.ASK")," "),w.xp6(2),w.Q6J("dataSource",Ne.dataSource),w.xp6(4),w.Q6J("matHeaderRowDef",Ne.displayedColumns),w.xp6(1),w.Q6J("matRowDefColumns",Ne.displayedColumns),w.xp6(3),w.hij(" ",w.lcZ(20,15,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),w.xp6(2),w.Q6J("disabled",Ne.loading),w.xp6(1),w.hij(" ",w.lcZ(23,17,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let De=(()=>{class pe{constructor(Ne,we,Be,r,u){this.dialogRef=Ne,this.data=we,this.notificator=Be,this.translate=r,this.resourcesManager=u,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Ze.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const Ne=this.data.resources.map(we=>we.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,Ne).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(we=>{this.loading=!1,this.notificator.showSuccess(we),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return pe.\u0275fac=function(Ne){return new(Ne||pe)(w.Y36(S.so),w.Y36(S.WI),w.Y36(m.V6),w.Y36(x.sK),w.Y36(f.xk))},pe.\u0275cmp=w.Xpm({type:pe,selectors:[["app-remove-group-resource-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"fw-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","warn","mat-flat-button","",1,"ms-2",3,"disabled","click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Ne,we){if(1&Ne&&(w.YNc(0,Pe,1,0,"ng-template",null,0,w.W1O),w.TgZ(2,"div"),w.YNc(3,ce,24,19,"div",1),w.qZA()),2&Ne){const Be=w.MAs(1);w.xp6(2),w.Gre("",we.data.theme," position-relative"),w.xp6(1),w.Q6J("perunWebAppsLoader",we.loading)("perunWebAppsLoaderIndicator",Be)}},dependencies:[T.lW,Ze.BZ,Ze.fO,Ze.as,Ze.w1,Ze.Dz,Ze.nj,Ze.ge,Ze.ev,Ze.XQ,Ze.Gk,S.uh,S.xY,S.H8,ue.b,be.e,x.X$]}),pe})();var he=p(9244),Oe=p(68530),it=p(96214),Ce=p(7434);const ot=["list"];function Ue(pe,Ie){if(1&pe){const Ne=w.EpF();w.TgZ(0,"button",8),w.NdJ("click",function(){w.CHM(Ne);const Be=w.oxw();return w.KtG(Be.addResource())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&pe&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function ft(pe,Ie){1&pe&&w._UZ(0,"perun-web-apps-loading-table")}const Z=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function lt(pe,Ie){if(1&pe){const Ne=w.EpF();w.TgZ(0,"perun-web-apps-resources-list",11,12),w.NdJ("refreshTable",function(){w.CHM(Ne);const Be=w.oxw(2);return w.KtG(Be.refreshTable())}),w.qZA()}if(2&pe){const Ne=w.oxw(2);w.Q6J("disableRouting",!Ne.routingAuth)("filterValue",Ne.filterValue)("resources",Ne.resources)("routingVo",!0)("displayedColumns",w.DdM(10,Z))("selection",Ne.selected)("groupId",Ne.group.id)("groupToResource",Ne.group)("resourcesToDisableCheckbox",Ne.resourcesToDisable)("tableId",Ne.tableId)}}function Ae(pe,Ie){if(1&pe&&(w.TgZ(0,"div",9),w.YNc(1,lt,2,11,"perun-web-apps-resources-list",10),w.qZA()),2&pe){const Ne=w.oxw(),we=w.MAs(13);w.xp6(1),w.Q6J("perunWebAppsLoader",Ne.loading)("perunWebAppsLoaderIndicator",we)}}let Ke=(()=>{class pe{constructor(Ne,we,Be,r,u){this.resourcesManager=Ne,this.groupService=we,this.dialog=Be,this.guiAuthResolver=r,this.entityStorageService=u,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=A.v1,this.addAuth=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthorization(),this.refreshTable()}setAuthorization(){null!==this.resources&&0!==this.resources.length&&(this.routingAuth=this.guiAuthResolver.isAuthorized("getResourceById_int_policy",[this.resources[0]])),this.addAuth=this.guiAuthResolver.isAuthorized("getResources_Vo_policy",[this.group])}refreshTable(){this.loading=!0,this.resourcesManager.getResourceAssignments(this.group.id).subscribe(Ne=>{this.resources=Ne.map(we=>{const Be=we.enrichedResource.resource;return Be.facility=we.facility,Be.status=we.status,Be.resourceTags=we.resourceTags,Be.failureCause=we.failureCause,Be.sourceGroupId=we.sourceGroupId,Be}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(we=>null!==we.sourceGroupId).map(we=>we.id)),this.setAuthorization(),this.loading=!1})}applyFilter(Ne){this.filterValue=Ne}addResource(){const Ne=(0,he.kZ)();Ne.width="1000px",Ne.data={theme:"group-theme",group:this.group},this.dialog.open(qe,Ne).afterClosed().subscribe(Be=>{Be&&this.refreshTable()})}removeResource(){const Ne=(0,he.kZ)();Ne.width="450px",Ne.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(De,Ne).afterClosed().subscribe(Be=>{Be&&(this.selected.clear(),this.refreshTable())})}}return pe.id="GroupResourcesComponent",pe.\u0275fac=function(Ne){return new(Ne||pe)(w.Y36(f.xk),w.Y36(f.ff),w.Y36(S.uw),w.Y36(m.x4),w.Y36(m.fb))},pe.\u0275cmp=w.Xpm({type:pe,selectors:[["app-group-resources"]],viewQuery:function(Ne,we){if(1&Ne&&w.Gf(ot,5),2&Ne){let Be;w.iGM(Be=w.CRH())&&(we.list=Be.first)}},hostVars:2,hostBindings:function(Ne,we){2&Ne&&w.ekj("router-component",we.true)},decls:15,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","me-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"me-2",3,"disabled","click"],[3,"placeholder","filter"],["spinner",""],["class","position-relative",4,"ngIf"],["color","accent","mat-flat-button","",1,"me-2","action-button",3,"click"],[1,"position-relative"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable"],["list",""]],template:function(Ne,we){1&Ne&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return we.refreshTable()}),w.qZA(),w.YNc(5,Ue,3,3,"button",2),w.TgZ(6,"span",3),w.ALo(7,"translate"),w.TgZ(8,"button",4),w.NdJ("click",function(){return we.removeResource()}),w._uU(9),w.ALo(10,"translate"),w.qZA()(),w.TgZ(11,"perun-web-apps-immediate-filter",5),w.NdJ("filter",function(r){return we.applyFilter(r)}),w.qZA(),w.YNc(12,ft,1,0,"ng-template",null,6,w.W1O),w.YNc(14,Ae,2,2,"div",7),w.qZA()),2&Ne&&(w.xp6(2),w.Oqu(w.lcZ(3,8,"GROUP_DETAIL.RESOURCES.TITLE")),w.xp6(3),w.Q6J("ngIf",we.addAuth),w.xp6(1),w.s9C("matTooltip",w.lcZ(7,10,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),w.Q6J("matTooltipDisabled",0===we.selected.selected.length||void 0!==we.list&&we.list.removeAuth),w.xp6(2),w.Q6J("disabled",0===we.selected.selected.length||void 0!==we.list&&!we.list.removeAuth),w.xp6(1),w.hij(" ",w.lcZ(10,12,"GROUP_DETAIL.RESOURCES.DELETE")," "),w.xp6(2),w.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),w.xp6(3),w.Q6J("ngIf",we.resources))},dependencies:[P.O5,T.lW,B.gM,Oe.K,it.t,Ce.L,j.C,be.e,x.X$]}),pe})()},61639:(Xe,ae,p)=>{"use strict";p.d(ae,{C:()=>m});var e=p(61744),f=p(80279),A=p(94650),S=p(72263);let m=(()=>{class M{constructor(x,P,F){this.authzResolverService=x,this.entityStorageService=P,this.roleService=F,this.roles=new Map}ngOnInit(){this.groupId=this.entityStorageService.getEntity().id,this.getData()}getData(){this.outerLoading=!0,this.roles.clear(),this.authzResolverService.getGroupRoles(this.groupId).subscribe(x=>{const P=Object.keys(x).map(F=>F.toUpperCase());this.roles=this.roleService.prepareRoles(x,P),this.outerLoading=!1})}}return M.id="GroupRolesComponent",M.\u0275fac=function(x){return new(x||M)(A.Y36(e.Ct),A.Y36(f.fb),A.Y36(f.Nj))},M.\u0275cmp=A.Xpm({type:M,selectors:[["app-group-roles"]],hostVars:2,hostBindings:function(x,P){2&x&&A.ekj("router-component",P.true)},decls:1,vars:5,consts:[[3,"outerLoading","roles","entityId","entityType","showDescription","reload","startLoading"]],template:function(x,P){1&x&&(A.TgZ(0,"app-perun-web-apps-roles-page",0),A.NdJ("reload",function(){return P.getData()})("startLoading",function(){return P.outerLoading=!0}),A.qZA()),2&x&&A.Q6J("outerLoading",P.outerLoading)("roles",P.roles)("entityId",P.groupId)("entityType","GROUP")("showDescription",!0)},dependencies:[S._]}),M})()},14336:(Xe,ae,p)=>{"use strict";p.d(ae,{Z:()=>it});var e=p(80279),f=p(93657),A=p(83491),S=p(95502),m=p(1186),M=p(61744),w=p(9244),x=p(94650),P=p(7274),F=p(89383),T=p(82761),B=p(36895),I=p(24006),q=p(97392),ue=p(4859),j=p(51572),Q=p(10266),be=p(90455),me=p(44850),fe=p(98380),re=p(68530),v=p(96214),V=p(73358),W=p(157);const ee=["autoRegToggle"];function ie(Ce,ot){1&Ce&&x._UZ(0,"mat-spinner",3)}function xe(Ce,ot){if(1&Ce&&(x.TgZ(0,"span"),x._uU(1," , "),x.TgZ(2,"mat-icon",24),x._uU(3,"nat"),x.qZA(),x._uU(4),x.ALo(5,"translate"),x.ALo(6,"translate"),x.qZA()),2&Ce){const Ue=x.oxw(3);x.xp6(4),x.hij(" ",Ue.applicationForm.automaticApprovalEmbedded?x.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):x.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function Ye(Ce,ot){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"div")(1,"mat-slide-toggle",25,26),x.NdJ("change",function(){x.CHM(Ue);const Z=x.oxw(3);return x.KtG(Z.updateAutoRegistration())}),x._uU(3),x.ALo(4,"translate"),x.qZA()()}if(2&Ce){const Ue=x.oxw(3);x.xp6(1),x.Q6J("disabled",!Ue.changeAutoRegistration)("ngModel",Ue.autoRegistrationEnabled),x.xp6(2),x.hij(" ",x.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function Le(Ce,ot){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"button",27),x.NdJ("click",function(){x.CHM(Ue);const Z=x.oxw(3);return x.KtG(Z.settings())}),x.TgZ(1,"i",12),x._uU(2,"edit"),x.qZA(),x._uU(3),x.ALo(4,"translate"),x.qZA()}2&Ce&&(x.xp6(3),x.hij(" ",x.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function $e(Ce,ot){if(1&Ce&&(x.TgZ(0,"div",17)(1,"div",18)(2,"div",19),x._uU(3),x.ALo(4,"translate"),x.qZA(),x.TgZ(5,"div")(6,"span",19),x._uU(7),x.ALo(8,"translate"),x.qZA(),x._uU(9,": "),x.TgZ(10,"mat-icon",20),x._uU(11,"arrow_right_alt"),x.qZA(),x._uU(12),x.ALo(13,"translate"),x.ALo(14,"translate"),x.TgZ(15,"mat-icon",21),x._uU(16,"restore"),x.qZA(),x._uU(17),x.ALo(18,"translate"),x.ALo(19,"translate"),x.YNc(20,xe,7,5,"span",2),x.qZA(),x.YNc(21,Ye,5,5,"div",2),x.qZA(),x.TgZ(22,"div",22),x.YNc(23,Le,5,3,"button",23),x.qZA()()),2&Ce){const Ue=x.oxw(2);x.xp6(1),x.Q6J("ngClass",Ue.autoRegistrationEnabled?"w-75":"w-50"),x.xp6(2),x.AsE(" ",x.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",Ue.applicationForm.moduleClassName," "),x.xp6(4),x.Oqu(x.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),x.xp6(5),x.hij(" ",Ue.applicationForm.automaticApproval?x.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):x.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),x.xp6(5),x.hij(" ",Ue.applicationForm.automaticApprovalExtension?x.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):x.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),x.xp6(3),x.Q6J("ngIf",Ue.autoRegistrationEnabled),x.xp6(1),x.Q6J("ngIf",Ue.voHasEmbeddedGroupApplication),x.xp6(2),x.Q6J("ngIf",Ue.editAuth)}}function qe(Ce,ot){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"button",28),x.NdJ("click",function(){x.CHM(Ue);const Z=x.oxw(2);return x.KtG(Z.add())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}2&Ce&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function Ze(Ce,ot){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"button",29),x.NdJ("click",function(){x.CHM(Ue);const Z=x.oxw(2);return x.KtG(Z.save())}),x.TgZ(1,"i",12),x._uU(2,"save"),x.qZA(),x._uU(3),x.ALo(4,"translate"),x.qZA()}if(2&Ce){const Ue=x.oxw(2);x.Q6J("disabled",!Ue.itemsChanged),x.xp6(3),x.hij(" ",x.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function Pe(Ce,ot){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"button",30),x.NdJ("click",function(){x.CHM(Ue);const Z=x.oxw(2);return x.KtG(Z.copy())}),x.TgZ(1,"i",12),x._uU(2,"file_copy"),x.qZA(),x._uU(3),x.ALo(4,"translate"),x.qZA()}2&Ce&&(x.xp6(3),x.hij(" ",x.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function se(Ce,ot){1&Ce&&(x.TgZ(0,"perun-web-apps-alert",31),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&Ce&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}function N(Ce,ot){1&Ce&&x._UZ(0,"perun-web-apps-loading-table")}const U=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},$=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function ce(Ce,ot){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"app-application-form-list",32),x.NdJ("applicationFormItemsChange",function(){x.CHM(Ue);const Z=x.oxw(2);return x.KtG(Z.changeItems())}),x.qZA()}if(2&Ce){const Ue=x.oxw(2);x.Q6J("applicationForm",Ue.applicationForm)("applicationFormItems",Ue.applicationFormItems)("displayedColumns",Ue.editAuth?x.DdM(5,U):x.DdM(6,$))("refreshApplicationForm",Ue.refreshApplicationForm)("theme","group-theme")}}function De(Ce,ot){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"div"),x.YNc(1,$e,24,21,"div",4),x._UZ(2,"mat-divider",5),x.TgZ(3,"div",6)(4,"perun-web-apps-refresh-button",7),x.NdJ("refresh",function(){x.CHM(Ue);const Z=x.oxw();return x.KtG(Z.updateFormItems())}),x.qZA(),x.YNc(5,qe,3,3,"button",8),x.YNc(6,Ze,5,4,"button",9),x.YNc(7,Pe,5,3,"button",10),x.TgZ(8,"button",11),x.NdJ("click",function(){x.CHM(Ue);const Z=x.oxw();return x.KtG(Z.preview())}),x.TgZ(9,"i",12),x._uU(10,"search"),x.qZA(),x._uU(11),x.ALo(12,"translate"),x.qZA()(),x.YNc(13,se,3,3,"perun-web-apps-alert",13),x.YNc(14,N,1,0,"ng-template",null,14,x.W1O),x.TgZ(16,"div",15),x.YNc(17,ce,1,7,"app-application-form-list",16),x.qZA()()}if(2&Ce){const Ue=x.MAs(15),ft=x.oxw();x.xp6(1),x.Q6J("ngIf",!ft.loading),x.xp6(4),x.Q6J("ngIf",ft.editAuth),x.xp6(1),x.Q6J("ngIf",ft.editAuth),x.xp6(1),x.Q6J("ngIf",ft.editAuth),x.xp6(4),x.hij(" ",x.lcZ(12,8,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),x.xp6(2),x.Q6J("ngIf",ft.editAuth),x.xp6(4),x.Q6J("perunWebAppsLoader",ft.loading)("perunWebAppsLoaderIndicator",Ue)}}function he(Ce,ot){if(1&Ce){const Ue=x.EpF();x.TgZ(0,"button",35),x.NdJ("click",function(){x.CHM(Ue);const Z=x.oxw(2);return x.KtG(Z.createEmptyApplicationForm())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}2&Ce&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function Oe(Ce,ot){if(1&Ce&&(x.TgZ(0,"div")(1,"perun-web-apps-alert",33),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.YNc(4,he,3,3,"button",34),x.qZA()),2&Ce){const Ue=x.oxw();x.xp6(2),x.Oqu(x.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),x.xp6(2),x.Q6J("ngIf",Ue.createEmptyForm)}}let it=(()=>{class Ce{constructor(Ue,ft,Z,lt,Ae,Ke,pe,Ie,Ne){this.registrarManager=Ue,this.dialog=ft,this.notificator=Z,this.translate=lt,this.apiRequest=Ae,this.router=Ke,this.guiAuthResolver=pe,this.attributesManager=Ie,this.entityStorageService=Ne,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuth(),this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.group.id).subscribe(Ue=>{this.applicationForm=Ue,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(ft=>{this.applicationFormItems=ft,this.attributesManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(Z=>{this.voHasEmbeddedGroupApplication=null!==Z.value,this.autoRegistrationEnabled=!!Z.value,this.loading=!1})},()=>this.loading=!1)},Ue=>{"FormNotExistsException"===Ue.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError(Ue)})}setAuth(){this.editAuth=this.guiAuthResolver.isAuthorized("group-updateFormItems_ApplicationForm_List_policy",[this.group]),this.createEmptyForm=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.changeAutoRegistration=this.guiAuthResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[this.group])}add(){let Ue=(0,w.kZ)();Ue.width="500px",Ue.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(f.J,Ue).afterClosed().subscribe(Z=>{Z&&(this.applicationFormItems=Object.assign([],Z[0]),Ue=(0,w.kZ)(),Ue.width="600px",Ue.height="600px",Ue.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:Z[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(A._,Ue),this.itemsChanged=!0)})}copy(){const Ue=(0,w.kZ)();Ue.width="500px",Ue.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(S.W,Ue).afterClosed().subscribe(Z=>{Z&&this.updateFormItems()})}settings(){const Ue=(0,w.kZ)();Ue.width="400px",Ue.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(m.E,Ue).afterClosed().subscribe(Z=>{Z&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(lt=>{this.notificator.showSuccess(lt)}),this.applicationForm=Z)})}preview(){this.router.navigate(["/organizations",this.group.voId,"groups",this.group.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)},queryParamsHandling:"merge"})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe({next:Ue=>{this.applicationFormItems=Ue,this.itemsChanged=!1,this.refreshApplicationForm=!1,this.loading=!1},error:()=>this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let Ue=0;for(const ft of this.applicationFormItems)ft.ordnum=Ue,ft.forDelete||Ue++;this.registrarManager.updateFormItemsForGroup({group:this.group.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(ft=>{this.notificator.showSuccess(ft)}),this.updateFormItems()})}clear(){this.applicationFormItems=[],this.itemsChanged=!0}updateAutoRegistration(){this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.registrarManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Ue=>{this.notificator.showSuccess(Ue)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1)):this.registrarManager.addGroupsToAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Ue=>{this.notificator.showSuccess(Ue)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return Ce.id="GroupSettingsApplicationFormComponent",Ce.\u0275fac=function(Ue){return new(Ue||Ce)(x.Y36(M.tk),x.Y36(P.uw),x.Y36(e.V6),x.Y36(F.sK),x.Y36(e.F5),x.Y36(T.F0),x.Y36(e.x4),x.Y36(M.H8),x.Y36(e.fb))},Ce.\u0275cmp=x.Xpm({type:Ce,selectors:[["app-group-settings-application-form"]],viewQuery:function(Ue,ft){if(1&Ue&&x.Gf(ee,5),2&Ue){let Z;x.iGM(Z=x.CRH())&&(ft.autoRegToggle=Z.first)}},hostVars:2,hostBindings:function(Ue,ft){2&Ue&&x.ekj("router-component",ft.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ms-auto me-auto",4,"ngIf"],[4,"ngIf"],[1,"ms-auto","me-auto"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","me-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","class","me-2","data-cy","save-application-form","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","me-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],["spinner",""],[1,"position-relative"],[3,"applicationForm","applicationFormItems","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[1,"d-flex","w-50"],[3,"ngClass"],[1,"fw-bold"],["matTooltip","Initial",1,"align-bottom"],["matTooltip","Extension",1,"align-bottom"],[1,"w-25"],["class","ms-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["matTooltip","Embedded",1,"align-bottom"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ms-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"me-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"me-2",3,"disabled","click"],["mat-stroked-button","",1,"me-2","action-button",3,"click"],["alert_type","info"],[3,"applicationForm","applicationFormItems","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],["alert_type","warn"],["data-cy","create-empty-form","mat-stroked-button","",3,"click",4,"ngIf"],["data-cy","create-empty-form","mat-stroked-button","",3,"click"]],template:function(Ue,ft){1&Ue&&(x.TgZ(0,"h1",0),x._uU(1),x.ALo(2,"translate"),x.qZA(),x.YNc(3,ie,1,0,"mat-spinner",1),x.YNc(4,De,18,10,"div",2),x.YNc(5,Oe,5,4,"div",2)),2&Ue&&(x.xp6(1),x.hij(" ",x.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),x.xp6(2),x.Q6J("ngIf",ft.loading),x.xp6(1),x.Q6J("ngIf",!ft.noApplicationForm),x.xp6(1),x.Q6J("ngIf",!ft.loading&&ft.noApplicationForm))},dependencies:[B.mk,B.O5,I.JJ,I.On,q.Hw,ue.lW,j.Ou,Q.gM,be.Rr,me.d,fe.w,re.K,v.t,V.e,W.b,F.X$]}),Ce})()},15592:(Xe,ae,p)=>{"use strict";p.d(ae,{u:()=>$});var e=p(81889),f=p(95017),A=p(41656),S=p(9244),m=p(61744),M=p(64080),w=p(10036),x=p(87842),P=p(80279),F=p(54004),T=p(68675),B=p(94650),I=p(7274),q=p(36895),ue=p(24006),j=p(4859),Q=p(10266),be=p(90455),me=p(68530),fe=p(25788),re=p(96214),v=p(58956),V=p(64901),W=p(73358),ee=p(89383);const ie=["toggle"];function xe(ce,De){if(1&ce){const he=B.EpF();B.TgZ(0,"button",11),B.NdJ("click",function(){B.CHM(he);const it=B.oxw();return B.KtG(it.onCreateGroup())}),B._uU(1),B.ALo(2,"translate"),B.qZA()}2&ce&&(B.xp6(1),B.hij(" ",B.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function Ye(ce,De){if(1&ce){const he=B.EpF();B.TgZ(0,"button",14),B.NdJ("click",function(){B.CHM(he);const it=B.oxw(2);return B.KtG(it.deleteGroup())}),B._uU(1),B.ALo(2,"translate"),B.qZA()}if(2&ce){const he=B.oxw().ngIf,Oe=B.oxw();B.Q6J("disabled",0===Oe.selected.selected.length||!he.removeAuth),B.xp6(1),B.hij(" ",B.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function Le(ce,De){if(1&ce&&(B.TgZ(0,"span",12),B.ALo(1,"translate"),B.YNc(2,Ye,3,4,"button",13),B.qZA()),2&ce){const he=De.ngIf,Oe=B.oxw();B.s9C("matTooltip",B.lcZ(1,3,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),B.Q6J("matTooltipDisabled",0===Oe.selected.selected.length||he.removeAuth),B.xp6(2),B.Q6J("ngIf",Oe.deleteAuth)}}function $e(ce,De){1&ce&&B._UZ(0,"perun-web-apps-loading-table")}function qe(ce,De){if(1&ce){const he=B.EpF();B.TgZ(0,"perun-web-apps-groups-tree",17),B.NdJ("moveGroup",function(it){B.CHM(he);const Ce=B.oxw(2);return B.KtG(Ce.onMoveGroup(it))})("refreshTable",function(){B.CHM(he);const it=B.oxw(2);return B.KtG(it.refreshTable())}),B.qZA()}if(2&ce){const he=B.oxw(2);B.Q6J("disableRouting",!he.routeAuth)("expandAll",he.filtering)("groups",he.groups)("hideCheckbox",!he.deleteAuth)("filterValue",he.filterValue)("selection",he.selected)}}const Ze=function(){return["select","id","name","description","menu"]},Pe=function(){return["id","name","description","menu"]};function se(ce,De){if(1&ce){const he=B.EpF();B.TgZ(0,"perun-web-apps-groups-list",18),B.NdJ("groupMoved",function(it){B.CHM(he);const Ce=B.oxw(2);return B.KtG(Ce.onMoveGroup(it))})("refreshTable",function(){B.CHM(he);const it=B.oxw(2);return B.KtG(it.refreshTable())}),B.qZA()}if(2&ce){const he=B.oxw(2);B.Q6J("disableMembers",!0)("disableRouting",!he.routeAuth)("displayedColumns",he.deleteAuth?B.DdM(7,Ze):B.DdM(8,Pe))("groups",he.groups)("selection",he.selected)("filter",he.filterValue)("tableId",he.tableId)}}function N(ce,De){if(1&ce&&(B.TgZ(0,"div"),B.YNc(1,qe,1,6,"perun-web-apps-groups-tree",15),B.YNc(2,se,1,9,"perun-web-apps-groups-list",16),B.qZA()),2&ce){const he=B.oxw();B.xp6(1),B.Q6J("ngIf",!he.showGroupList),B.xp6(1),B.Q6J("ngIf",he.showGroupList)}}const U=function(ce){return{removeAuth:ce}};let $=(()=>{class ce{constructor(he,Oe,it,Ce){this.dialog=he,this.groupService=Oe,this.guiAuthResolver=it,this.entityStorageService=Ce,this.groups=[],this.selected=new f.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=w.bf,this.filterValue="",this.removeAuth$=this.selected.changed.pipe((0,F.U)(ot=>ot.source.selected.reduce((Ue,ft)=>Ue&&this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[ft]),!0)),(0,T.O)(!0))}onCreateGroup(){const he=(0,S.kZ)();he.width="450px",he.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(e.y,he).afterClosed().subscribe(it=>{it&&(this.loading=!0,this.refreshTable())})}ngOnInit(){"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree")}),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.createAuth=this.guiAuthResolver.isAuthorized("createGroup_Group_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.group]),0!==this.groups.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.groups[0]]))}deleteGroup(){const he=(0,S.kZ)();he.width="450px",he.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(A.P,he).afterClosed().subscribe(it=>{it&&this.refreshTable()})}labelToggle(){this.showGroupList=!this.showGroupList,this.refreshTable()}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[M.r.GROUP_DEF_MAIL_FOOTER,M.r.GROUP_SYNC_ENABLED,M.r.GROUP_LAST_SYNC_STATE,M.r.GROUP_LAST_SYNC_TIMESTAMP,M.r.GROUP_STRUCTURE_SYNC_ENABLED,M.r.GROUP_LAST_STRUCTURE_SYNC_STATE,M.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(he=>{this.groups=he,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(he){this.filterValue=he,this.filtering=""!==he}onMoveGroup(he){const Oe=(0,S.kZ)();Oe.width="550px",Oe.data={group:he,theme:"group-theme"},this.dialog.open(x.c,Oe).afterClosed().subscribe(Ce=>{Ce&&this.refreshTable()})}}return ce.id="GroupSubgroupsComponent",ce.\u0275fac=function(he){return new(he||ce)(B.Y36(I.uw),B.Y36(m.ff),B.Y36(P.x4),B.Y36(P.fb))},ce.\u0275cmp=B.Xpm({type:ce,selectors:[["app-group-subgroups"]],viewQuery:function(he,Oe){if(1&he&&B.Gf(ie,7),2&he){let it;B.iGM(it=B.CRH())&&(Oe.toggle=it.first)}},hostVars:2,hostBindings:function(he,Oe){2&he&&B.ekj("router-component",Oe.true)},decls:21,vars:19,consts:[[1,"page-subtitle"],[3,"refresh"],["class","me-2 action-button","color","accent","data-cy","new-subgroup-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],[1,"slide-label",3,"click"],["color","primary","labelPosition","before",1,"me-1",3,"ngModel","change","ngModelChange"],["toggle",""],["spinner",""],[1,"position-relative","mt-3"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["color","accent","data-cy","new-subgroup-button","mat-flat-button","",1,"me-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","class","me-2","data-cy","delete-group-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"me-2",3,"disabled","click"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable",4,"ngIf"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","groupMoved","refreshTable",4,"ngIf"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","groupMoved","refreshTable"]],template:function(he,Oe){if(1&he&&(B.TgZ(0,"div")(1,"h1",0),B._uU(2),B.ALo(3,"translate"),B.qZA(),B.TgZ(4,"perun-web-apps-refresh-button",1),B.NdJ("refresh",function(){return Oe.refreshTable()}),B.qZA(),B.YNc(5,xe,3,3,"button",2),B.YNc(6,Le,3,5,"span",3),B.ALo(7,"async"),B.TgZ(8,"perun-web-apps-debounce-filter",4),B.NdJ("filter",function(Ce){return Oe.applyFilter(Ce)}),B.qZA(),B.TgZ(9,"label",5),B.NdJ("click",function(){return Oe.labelToggle()}),B._uU(10),B.ALo(11,"translate"),B.qZA(),B.TgZ(12,"mat-slide-toggle",6,7),B.NdJ("change",function(){return Oe.selected.clear()})("ngModelChange",function(Ce){return Oe.showGroupList=Ce}),B.qZA(),B.TgZ(14,"label",5),B.NdJ("click",function(){return Oe.labelToggle()}),B._uU(15),B.ALo(16,"translate"),B.qZA(),B.YNc(17,$e,1,0,"ng-template",null,8,B.W1O),B.TgZ(19,"div",9),B.YNc(20,N,3,2,"div",10),B.qZA()()),2&he){const it=B.MAs(18);B.xp6(2),B.Oqu(B.lcZ(3,9,"GROUP_DETAIL.SUBGROUPS.TITLE")),B.xp6(3),B.Q6J("ngIf",Oe.createAuth),B.xp6(1),B.Q6J("ngIf",B.VKq(17,U,B.lcZ(7,11,Oe.removeAuth$))),B.xp6(2),B.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),B.xp6(2),B.hij(" ",B.lcZ(11,13,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")," "),B.xp6(2),B.Q6J("ngModel",Oe.showGroupList),B.xp6(3),B.hij(" ",B.lcZ(16,15,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")," "),B.xp6(5),B.Q6J("perunWebAppsLoader",Oe.loading)("perunWebAppsLoaderIndicator",it)}},dependencies:[q.O5,ue.JJ,ue.On,j.lW,Q.gM,be.Rr,me.K,fe.W,re.t,v.I,V.P,W.e,q.Ov,ee.X$],styles:[".slide-label[_ngcontent-%COMP%]{display:inline;cursor:pointer}"]}),ce})()},85243:(Xe,ae,p)=>{"use strict";p.d(ae,{j:()=>he});var e=p(61744),f=p(10036),A=p(95017),S=p(9244),m=p(7274),M=p(80279),w=p(64080),x=p(94650),P=p(89383),F=p(4859),T=p(97403),B=p(25788),I=p(7434),q=p(73358);function ue(Oe,it){1&Oe&&x._UZ(0,"perun-web-apps-loading-dialog")}const j=function(){return["select","id","name","description"]};function Q(Oe,it){if(1&Oe){const Ce=x.EpF();x.TgZ(0,"div")(1,"h1",2),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"div",3)(5,"perun-web-apps-immediate-filter",4),x.NdJ("filter",function(Ue){x.CHM(Ce);const ft=x.oxw();return x.KtG(ft.applyFilter(Ue))}),x.qZA(),x._UZ(6,"perun-web-apps-groups-list",5),x.qZA(),x.TgZ(7,"div",6)(8,"button",7),x.NdJ("click",function(){x.CHM(Ce);const Ue=x.oxw();return x.KtG(Ue.onCancel())}),x._uU(9),x.ALo(10,"translate"),x.qZA(),x.TgZ(11,"button",8),x.NdJ("click",function(){x.CHM(Ce);const Ue=x.oxw();return x.KtG(Ue.onAdd())}),x._uU(12),x.ALo(13,"translate"),x.qZA()()()}if(2&Oe){const Ce=x.oxw();x.xp6(2),x.Oqu(x.lcZ(3,13,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),x.xp6(3),x.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER"),x.xp6(1),x.Q6J("disableGroups",!0)("disableMembers",!0)("displayedColumns",x.DdM(19,j))("groupsToDisableCheckbox",Ce.membersGroups)("disableRouting",!0)("groups",Ce.groups)("filter",Ce.filterValue)("selection",Ce.selection),x.xp6(3),x.hij(" ",x.lcZ(10,15,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),x.xp6(2),x.Q6J("disabled",0===Ce.selection.selected.length),x.xp6(1),x.hij(" ",x.lcZ(13,17,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let be=(()=>{class Oe{constructor(Ce,ot,Ue,ft,Z,lt,Ae){this.dialogRef=Ce,this.data=ot,this.groupManager=Ue,this.memberManager=ft,this.notificator=Z,this.translate=lt,this.authResolver=Ae,this.loading=!1,this.groups=[],this.selection=new A.Ov(!0,[]),this.attrNames=[w.r.GROUP_SYNC_ENABLED,w.r.GROUP_LAST_SYNC_STATE,w.r.GROUP_LAST_SYNC_TIMESTAMP,w.r.GROUP_STRUCTURE_SYNC_ENABLED,w.r.GROUP_LAST_STRUCTURE_SYNC_STATE,w.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.filterValue=""}ngOnInit(){this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(Ce=>{this.member=Ce,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(ot=>{this.groups=ot.filter(Ue=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[Ue])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const Ce=this.selection.selected.map(ot=>ot.id);this.loading=!0,this.groupManager.addMember(Ce,this.member.id).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(Ce){this.filterValue=Ce}}return Oe.\u0275fac=function(Ce){return new(Ce||Oe)(x.Y36(m.so),x.Y36(m.WI),x.Y36(e.ff),x.Y36(e.uq),x.Y36(M.V6),x.Y36(P.sK),x.Y36(M.x4))},Oe.\u0275cmp=x.Xpm({type:Oe,selectors:[["app-add-member-group-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"disableGroups","disableMembers","displayedColumns","groupsToDisableCheckbox","disableRouting","groups","filter","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(Ce,ot){if(1&Ce&&(x.YNc(0,ue,1,0,"ng-template",null,0,x.W1O),x.TgZ(2,"div"),x.YNc(3,Q,14,20,"div",1),x.qZA()),2&Ce){const Ue=x.MAs(1);x.xp6(2),x.Gre("",ot.theme," position-relative"),x.xp6(1),x.Q6J("perunWebAppsLoader",ot.loading)("perunWebAppsLoaderIndicator",Ue)}},dependencies:[F.lW,m.uh,m.xY,m.H8,T.b,B.W,I.L,q.e,P.X$]}),Oe})();var me=p(30671);function fe(Oe,it){1&Oe&&x._UZ(0,"perun-web-apps-loading-dialog")}function re(Oe,it){1&Oe&&x._UZ(0,"th",14)}function v(Oe,it){if(1&Oe&&(x.TgZ(0,"td",15),x._uU(1),x.qZA()),2&Oe){const Ce=it.$implicit;x.xp6(1),x.Oqu(Ce.name)}}function V(Oe,it){1&Oe&&x._UZ(0,"tr",16)}function W(Oe,it){1&Oe&&x._UZ(0,"tr",17)}function ee(Oe,it){if(1&Oe){const Ce=x.EpF();x.TgZ(0,"div")(1,"h1",2),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"div",3)(5,"p"),x._uU(6),x.ALo(7,"translate"),x.qZA(),x.TgZ(8,"div",4),x._uU(9),x.ALo(10,"translate"),x.qZA(),x.TgZ(11,"table",5),x.ynx(12,6),x.YNc(13,re,1,0,"th",7),x.YNc(14,v,2,1,"td",8),x.BQk(),x.YNc(15,V,1,0,"tr",9),x.YNc(16,W,1,0,"tr",10),x.qZA()(),x.TgZ(17,"div",11)(18,"button",12),x.NdJ("click",function(){x.CHM(Ce);const Ue=x.oxw();return x.KtG(Ue.onCancel())}),x._uU(19),x.ALo(20,"translate"),x.qZA(),x.TgZ(21,"button",13),x.NdJ("click",function(){x.CHM(Ce);const Ue=x.oxw();return x.KtG(Ue.onRemove())}),x._uU(22),x.ALo(23,"translate"),x.qZA()()()}if(2&Oe){const Ce=x.oxw();x.xp6(2),x.Oqu(x.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),x.xp6(4),x.Oqu(x.lcZ(7,11,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),x.xp6(3),x.hij(" ",x.lcZ(10,13,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),x.xp6(2),x.Q6J("dataSource",Ce.dataSource),x.xp6(4),x.Q6J("matHeaderRowDef",Ce.displayedColumns),x.xp6(1),x.Q6J("matRowDefColumns",Ce.displayedColumns),x.xp6(3),x.hij(" ",x.lcZ(20,15,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),x.xp6(2),x.Q6J("disabled",Ce.loading),x.xp6(1),x.hij(" ",x.lcZ(23,17,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," ")}}let ie=(()=>{class Oe{constructor(Ce,ot,Ue,ft,Z){this.dialogRef=Ce,this.data=ot,this.groupManager=Ue,this.notificator=ft,this.translate=Z,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new me.by(this.data.groups)}onRemove(){this.loading=!0;const Ce=this.dataSource.data.map(ot=>ot.id);this.groupManager.removeMember(Ce,this.data.memberId).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return Oe.\u0275fac=function(Ce){return new(Ce||Oe)(x.Y36(m.so),x.Y36(m.WI),x.Y36(e.ff),x.Y36(M.V6),x.Y36(P.sK))},Oe.\u0275cmp=x.Xpm({type:Oe,selectors:[["app-remove-member-group-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"fw-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","warn","mat-flat-button","",1,"ms-2",3,"disabled","click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Ce,ot){if(1&Ce&&(x.YNc(0,fe,1,0,"ng-template",null,0,x.W1O),x.TgZ(2,"div"),x.YNc(3,ee,24,19,"div",1),x.qZA()),2&Ce){const Ue=x.MAs(1);x.xp6(2),x.Gre("",ot.theme," position-relative"),x.xp6(1),x.Q6J("perunWebAppsLoader",ot.loading)("perunWebAppsLoaderIndicator",Ue)}},dependencies:[F.lW,me.BZ,me.fO,me.as,me.w1,me.Dz,me.nj,me.ge,me.ev,me.XQ,me.Gk,m.uh,m.xY,m.H8,T.b,q.e,P.X$]}),Oe})();var xe=p(54004),Ye=p(68675),Le=p(82761),$e=p(36895),qe=p(10266),Ze=p(68530),Pe=p(96214);function se(Oe,it){if(1&Oe){const Ce=x.EpF();x.TgZ(0,"button",8),x.NdJ("click",function(){x.CHM(Ce);const Ue=x.oxw();return x.KtG(Ue.addGroup())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}2&Oe&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function N(Oe,it){if(1&Oe){const Ce=x.EpF();x.TgZ(0,"span",9),x.ALo(1,"translate"),x.TgZ(2,"button",10),x.NdJ("click",function(){x.CHM(Ce);const Ue=x.oxw();return x.KtG(Ue.removeGroup())}),x._uU(3),x.ALo(4,"translate"),x.qZA()()}if(2&Oe){const Ce=it.ngIf,ot=x.oxw();x.s9C("matTooltip",x.lcZ(1,4,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),x.Q6J("matTooltipDisabled",Ce.removeAuth),x.xp6(2),x.Q6J("disabled",0===ot.selection.selected.length||!Ce.removeAuth),x.xp6(1),x.hij(" ",x.lcZ(4,6,"MEMBER_DETAIL.GROUPS.REMOVE")," ")}}function U(Oe,it){1&Oe&&x._UZ(0,"perun-web-apps-loading-table")}const $=function(){return["select","id","name","description","expiration","groupStatus"]};function ce(Oe,it){if(1&Oe){const Ce=x.EpF();x.TgZ(0,"perun-web-apps-groups-list",11),x.NdJ("refreshTable",function(){x.CHM(Ce);const Ue=x.oxw();return x.KtG(Ue.refreshTable())}),x.qZA()}if(2&Oe){const Ce=x.oxw();x.Q6J("displayedColumns",x.DdM(8,$))("memberId",Ce.memberId)("disableRouting",!Ce.routeAuth)("groups",Ce.groups)("filter",Ce.filterValue)("memberGroupStatus",null==Ce.member?null:Ce.member.groupStatus)("selection",Ce.selection)("tableId",Ce.tableId)}}const De=function(Oe){return{removeAuth:Oe}};let he=(()=>{class Oe{constructor(Ce,ot,Ue,ft,Z){this.groupsService=Ce,this.route=ot,this.dialog=Ue,this.authResolver=ft,this.memberService=Z,this.groups=[],this.filterValue="",this.tableId=f.W1,this.selection=new A.Ov(!0,[]),this.removeAuth$=this.selection.changed.pipe((0,xe.U)(lt=>lt.source.selected.reduce((Ae,Ke)=>Ae&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[Ke]),!0)),(0,Ye.O)(!0))}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(Ce=>{this.memberId=Number(Ce.memberId),this.memberService.getMemberById(this.memberId).subscribe(ot=>{this.member=ot,this.groupsService.getAllGroups(this.member.voId).subscribe(Ue=>{this.allGroups=Ue,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,[w.r.MEMBER_DEF_GROUP_EXPIRATION,w.r.MEMBER_GROUP_STATUS,w.r.MEMBER_GROUP_STATUS_INDIRECT]).subscribe(Ce=>{this.selection.clear(),this.groups=Ce,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const Ce={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((ot,Ue)=>ot||this.authResolver.isAuthorized("addMember_Group_Member_policy",[Ue]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[Ce,this.groups[0]]))}addGroup(){const Ce=(0,S.kZ)();Ce.width="850px",Ce.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(Ue=>Ue.id)),theme:"member-theme"},this.dialog.open(be,Ce).afterClosed().subscribe(Ue=>{Ue&&this.refreshTable()})}removeGroup(){const Ce=(0,S.kZ)();Ce.width="650px",Ce.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(ie,Ce).afterClosed().subscribe(Ue=>{Ue&&this.refreshTable()})}applyFilter(Ce){this.filterValue=Ce}}return Oe.id="MemberGroupsComponent",Oe.\u0275fac=function(Ce){return new(Ce||Oe)(x.Y36(e.ff),x.Y36(Le.gz),x.Y36(m.uw),x.Y36(M.x4),x.Y36(e.uq))},Oe.\u0275cmp=x.Xpm({type:Oe,selectors:[["app-member-groups"]],hostVars:2,hostBindings:function(Ce,ot){2&Ce&&x.ekj("router-component",ot.true)},decls:12,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","me-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"displayedColumns","memberId","disableRouting","groups","filter","memberGroupStatus","selection","tableId","refreshTable",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["color","accent","mat-flat-button","",1,"me-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"me-2",3,"disabled","click"],[3,"displayedColumns","memberId","disableRouting","groups","filter","memberGroupStatus","selection","tableId","refreshTable"]],template:function(Ce,ot){if(1&Ce&&(x.TgZ(0,"h1",0),x._uU(1),x.ALo(2,"translate"),x.qZA(),x.TgZ(3,"perun-web-apps-refresh-button",1),x.NdJ("refresh",function(){return ot.refreshTable()}),x.qZA(),x.YNc(4,se,3,3,"button",2),x.YNc(5,N,5,8,"span",3),x.ALo(6,"async"),x.TgZ(7,"perun-web-apps-immediate-filter",4),x.NdJ("filter",function(ft){return ot.applyFilter(ft)}),x.qZA(),x.YNc(8,U,1,0,"ng-template",null,5,x.W1O),x.TgZ(10,"div",6),x.YNc(11,ce,1,9,"perun-web-apps-groups-list",7),x.qZA()),2&Ce){const Ue=x.MAs(9);x.xp6(1),x.Oqu(x.lcZ(2,6,"MEMBER_DETAIL.GROUPS.TITLE")),x.xp6(3),x.Q6J("ngIf",ot.addAuth),x.xp6(1),x.Q6J("ngIf",x.VKq(10,De,x.lcZ(6,8,ot.removeAuth$))),x.xp6(2),x.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),x.xp6(4),x.Q6J("perunWebAppsLoader",ot.loading)("perunWebAppsLoaderIndicator",Ue)}},dependencies:[$e.O5,F.lW,qe.gM,Ze.K,B.W,Pe.t,I.L,q.e,$e.Ov,P.X$]}),Oe})()},94856:(Xe,ae,p)=>{"use strict";p.d(ae,{c:()=>xe});var e=p(61744),f=p(10036),A=p(24006),S=p(36895),m=p(80279),M=p(9244),w=p(23325),x=p(39646),P=p(94650),F=p(7274),T=p(4859),B=p(56709),I=p(10266),q=p(68530),ue=p(96214),j=p(39798),Q=p(64901),be=p(68788),me=p(73358),fe=p(99168),re=p(89383);function v(Ye,Le){if(1&Ye){const $e=P.EpF();P.TgZ(0,"button",12),P.NdJ("click",function(){P.CHM($e);const Ze=P.oxw();return P.KtG(Ze.showDetails(!0))}),P._uU(1),P.ALo(2,"translate"),P.qZA()}2&Ye&&(P.xp6(1),P.hij(" ",P.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function V(Ye,Le){if(1&Ye){const $e=P.EpF();P.TgZ(0,"button",12),P.NdJ("click",function(){P.CHM($e);const Ze=P.oxw();return P.KtG(Ze.showDetails(!1))}),P._uU(1),P.ALo(2,"translate"),P.qZA()}2&Ye&&(P.xp6(1),P.hij(" ",P.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function W(Ye,Le){if(1&Ye){const $e=P.EpF();P.TgZ(0,"button",13),P.NdJ("click",function(){P.CHM($e);const Ze=P.oxw();return P.KtG(Ze.setColumns())}),P._uU(1),P.ALo(2,"translate"),P.qZA()}if(2&Ye){const $e=P.oxw();P.Q6J("disabled",$e.showAllDetails),P.xp6(1),P.hij(" ",P.lcZ(2,2,"VO_DETAIL.APPLICATION.SET_COLUMN_SETTINGS")," ")}}function ee(Ye,Le){1&Ye&&P._UZ(0,"perun-web-apps-loading-table")}function ie(Ye,Le){if(1&Ye){const $e=P.EpF();P.TgZ(0,"app-applications-dynamic-list",14),P.NdJ("loading$",function(Ze){P.CHM($e);const Pe=P.oxw();return P.KtG(Pe.loading$=Ze)}),P.qZA()}if(2&Ye){const $e=P.oxw();P.Q6J("tableId",$e.showAllDetails?$e.detailTableId:$e.tableId)("searchString",$e.filterValue)("displayedColumns",$e.currentColumns)("fedColumns",$e.configuredFedColumns)("fedAttrNames",$e.fedAttrNames)("states",$e.currentStates)("dateFrom",$e.startDate.value)("dateTo",$e.endDate.value)("includeGroupApps",$e.showGroupApps)("refreshTable",$e.refresh)("vo",$e.vo)}}let xe=(()=>{class Ye{constructor($e,qe,Ze,Pe,se){this.registrarManager=$e,this.entityStorageService=qe,this.attributeManager=Ze,this.dialog=Pe,this.cd=se,this.currentStates=["NEW","VERIFIED"],this.simplePrependColumns=["id"],this.groupPrependColumns=["id","groupId","groupName"],this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.detailedColumns=["createdAt","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.configuredColumns=[],this.configuredFedColumns=[],this.currentColumns=[],this.columnsAuth=!1,this.filterValue="",this.showAllDetails=!1,this.detailTableId=f.Jf,this.tableId=f.Hi,this.showGroupApps=!1,this.refresh=!1,this.fedAttrNames=[]}ngOnInit(){this.loading$=(0,x.of)(!0),this.vo=this.entityStorageService.getEntity(),this.startDate=new A.NI((0,S.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new A.NI((0,S.p6)(new Date,"yyyy-MM-dd","en-GB")),this.attributeManager.getIdpAttributeDefinitions().subscribe($e=>{$e.forEach(qe=>{this.fedAttrNames.includes(qe.friendlyName)||this.fedAttrNames.push(qe.friendlyName)})}),this.loadViewConfiguration()}yearAgo(){const $e=new Date;return $e.setDate($e.getDate()-365),$e}showGroupApplications($e){this.showGroupApps=$e.checked,this.currentColumns=this.refreshColumns()}showDetails($e){this.showAllDetails=$e,this.loadViewConfiguration()}applyFilter($e){this.filterValue=$e}refreshColumns(){return this.cd.detectChanges(),this.showAllDetails?this.showGroupApps?this.groupPrependColumns.concat(this.detailedColumns):this.simplePrependColumns.concat(this.detailedColumns):this.configuredColumns.length>0?this.showGroupApps?this.groupPrependColumns.concat(this.configuredColumns):this.simplePrependColumns.concat(this.configuredColumns):this.showGroupApps?this.groupPrependColumns.concat(this.simpleColumns):this.simplePrependColumns.concat(this.simpleColumns)}loadViewConfiguration(){this.cd.detectChanges(),this.attributeManager.getVoAttributeByName(this.vo.id,"urn:perun:vo:attribute-def:def:applicationViewPreferences").subscribe($e=>{null!=$e?.value&&$e?.value.length>0?(this.configuredColumns=$e.value,this.configuredFedColumns=this.configuredColumns.filter(qe=>this.fedAttrNames.includes(qe))):(this.configuredColumns=[],this.configuredFedColumns=[]),this.columnsAuth=$e.writable,this.currentColumns=this.refreshColumns()})}setColumns(){const $e=(0,M.kZ)();$e.width="650px",$e.data={columns:[],voId:this.vo.id,theme:"vo-theme"},this.dialog.open(w.a,$e).afterClosed().subscribe(Ze=>{Ze&&this.loadViewConfiguration()})}refreshTable(){this.refresh=!this.refresh,this.cd.detectChanges()}}return Ye.id="VoApplicationsComponent",Ye.\u0275fac=function($e){return new($e||Ye)(P.Y36(e.tk),P.Y36(m.fb),P.Y36(e.H8),P.Y36(F.uw),P.Y36(P.sBO))},Ye.\u0275cmp=P.Xpm({type:Ye,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function($e,qe){2&$e&&P.ekj("router-component",qe.true)},decls:22,vars:21,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","me-2",3,"click",4,"ngIf"],[3,"stateChanged"],[3,"placeholder","filter"],[3,"endDate","startDate"],["color","primary",3,"checked","change"],["matTooltipPosition","above",3,"matTooltipDisabled","matTooltip"],["mat-stroked-button","","class","ms-2",3,"disabled","click",4,"ngIf"],["spinner",""],[1,"position-relative"],[3,"tableId","searchString","displayedColumns","fedColumns","fedAttrNames","states","dateFrom","dateTo","includeGroupApps","refreshTable","vo","loading$",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-stroked-button","",1,"me-2",3,"click"],["mat-stroked-button","",1,"ms-2",3,"disabled","click"],[3,"tableId","searchString","displayedColumns","fedColumns","fedAttrNames","states","dateFrom","dateTo","includeGroupApps","refreshTable","vo","loading$"]],template:function($e,qe){if(1&$e&&(P.TgZ(0,"h1",0),P._uU(1),P.ALo(2,"translate"),P.qZA(),P.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),P.NdJ("refresh",function(){return qe.refreshTable()}),P.qZA(),P.YNc(5,v,3,3,"button",2),P.YNc(6,V,3,3,"button",2),P.TgZ(7,"perun-web-apps-application-state-selector",3),P.NdJ("stateChanged",function(Pe){return qe.currentStates=Pe}),P.qZA(),P.TgZ(8,"perun-web-apps-debounce-filter",4),P.NdJ("filter",function(Pe){return qe.applyFilter(Pe)}),P.qZA(),P._UZ(9,"perun-web-apps-date-range",5),P.TgZ(10,"div")(11,"mat-checkbox",6),P.NdJ("change",function(Pe){return qe.showGroupApplications(Pe)}),P._uU(12),P.ALo(13,"translate"),P.qZA(),P.TgZ(14,"span",7),P.ALo(15,"translate"),P.YNc(16,W,3,4,"button",8),P.qZA()()(),P.YNc(17,ee,1,0,"ng-template",null,9,P.W1O),P.TgZ(19,"div",10),P.YNc(20,ie,1,11,"app-applications-dynamic-list",11),P.ALo(21,"async"),P.qZA()),2&$e){const Ze=P.MAs(18);P.xp6(1),P.Oqu(P.lcZ(2,13,"VO_DETAIL.APPLICATION.TITLE")),P.xp6(4),P.Q6J("ngIf",!qe.showAllDetails),P.xp6(1),P.Q6J("ngIf",qe.showAllDetails),P.xp6(2),P.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),P.xp6(1),P.Q6J("endDate",qe.endDate)("startDate",qe.startDate),P.xp6(2),P.Q6J("checked",qe.showGroupApps),P.xp6(1),P.hij(" ",P.lcZ(13,15,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),P.xp6(2),P.s9C("matTooltip",P.lcZ(15,17,"VO_DETAIL.APPLICATION.COLUMNS_TOOLTIP")),P.Q6J("matTooltipDisabled",!qe.showAllDetails),P.xp6(2),P.Q6J("ngIf",qe.columnsAuth),P.xp6(4),P.Q6J("perunWebAppsLoader",P.lcZ(21,19,qe.loading$))("perunWebAppsLoaderIndicator",Ze)}},dependencies:[S.O5,T.lW,B.oG,I.gM,q.K,ue.t,j.S,Q.P,be.x,me.e,fe.S,S.Ov,re.X$]}),Ye})()},4732:(Xe,ae,p)=>{"use strict";p.d(ae,{G:()=>De});var e=p(81889),f=p(41656),A=p(95017),S=p(87842),m=p(9244),M=p(61744),w=p(10036),x=p(64080),P=p(80279),F=p(61135),T=p(56451),B=p(63900),I=p(18505),q=p(68675),ue=p(54004),j=p(94650),Q=p(7274),be=p(36895),me=p(24006),fe=p(4859),re=p(10266),v=p(90455),V=p(68530),W=p(25788),ee=p(96214),ie=p(58956),xe=p(64901),Ye=p(73358),Le=p(89383);const $e=["toggle"];function qe(he,Oe){if(1&he){const it=j.EpF();j.TgZ(0,"button",11),j.NdJ("click",function(){j.CHM(it);const ot=j.oxw();return j.KtG(ot.onCreateGroup())}),j._uU(1),j.ALo(2,"translate"),j.qZA()}2&he&&(j.xp6(1),j.hij(" ",j.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function Ze(he,Oe){if(1&he){const it=j.EpF();j.TgZ(0,"span",12),j.ALo(1,"translate"),j.TgZ(2,"button",13),j.NdJ("click",function(){j.CHM(it);const ot=j.oxw();return j.KtG(ot.deleteGroup())}),j._uU(3),j.ALo(4,"translate"),j.qZA()()}if(2&he){const it=Oe.ngIf,Ce=j.oxw();j.s9C("matTooltip",j.lcZ(1,4,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),j.Q6J("matTooltipDisabled",it.removeAuth),j.xp6(2),j.Q6J("disabled",0===Ce.selected.selected.length||!it.removeAuth),j.xp6(1),j.hij(" ",j.lcZ(4,6,"VO_DETAIL.GROUPS.DELETE_GROUP")," ")}}function Pe(he,Oe){if(1&he){const it=j.EpF();j.TgZ(0,"perun-web-apps-groups-tree",15),j.NdJ("moveGroup",function(ot){j.CHM(it);const Ue=j.oxw(2);return j.KtG(Ue.onMoveGroup(ot))})("refreshTable",function(){j.CHM(it);const ot=j.oxw(2);return j.KtG(ot.refresh())}),j.qZA()}if(2&he){const it=j.oxw(2);j.Q6J("expandAll",it.filtering)("disableRouting",!it.routeAuth)("groups",it.groups)("selection",it.selected)("filterValue",it.filterValue)("vo",it.vo)}}function se(he,Oe){if(1&he&&(j.TgZ(0,"div"),j.YNc(1,Pe,1,6,"perun-web-apps-groups-tree",14),j.ALo(2,"async"),j.qZA()),2&he){const it=j.oxw(),Ce=j.MAs(21);j.xp6(1),j.Q6J("perunWebAppsLoader",j.lcZ(2,2,it.loading$))("perunWebAppsLoaderIndicator",Ce)}}function N(he,Oe){if(1&he){const it=j.EpF();j.TgZ(0,"perun-web-apps-groups-list",17),j.NdJ("groupMoved",function(ot){j.CHM(it);const Ue=j.oxw(2);return j.KtG(Ue.onMoveGroup(ot))})("queryChanged",function(ot){j.CHM(it);const Ue=j.oxw(2);return j.KtG(Ue.nextPage.next(ot))})("refreshTable",function(){j.CHM(it);const ot=j.oxw(2);return j.KtG(ot.refresh())})("downloadAll",function(ot){j.CHM(it);const Ue=j.oxw(2);return j.KtG(Ue.downloadAll(ot))}),j.ALo(1,"async"),j.qZA()}if(2&he){const it=j.oxw(2);j.Q6J("disableMembers",!0)("displayedColumns",it.displayedColumns)("disableRouting",!it.routeAuth)("groups",j.lcZ(1,7,it.groupPage$))("selection",it.selected)("filter",it.filterValue)("tableId",it.tableId)}}function U(he,Oe){if(1&he&&(j.TgZ(0,"div"),j.YNc(1,N,2,9,"perun-web-apps-groups-list",16),j.ALo(2,"async"),j.qZA()),2&he){const it=j.oxw(),Ce=j.MAs(21);j.xp6(1),j.Q6J("perunWebAppsLoader",j.lcZ(2,2,it.loading$))("perunWebAppsLoaderIndicator",Ce)}}function $(he,Oe){1&he&&j._UZ(0,"perun-web-apps-loading-table")}const ce=function(he){return{removeAuth:he}};let De=(()=>{class he{constructor(it,Ce,ot,Ue,ft){this.dialog=it,this.groupService=Ce,this.authResolver=ot,this.entityStorageService=Ue,this.groupUtils=ft,this.groups=[],this.nextPage=new F.X({}),this.groupPage$=this.nextPage.pipe((0,B.w)(Z=>this.groupService.getGroupsPage({vo:this.vo.id,attrNames:this.attrNames,query:{order:Z.order,pageSize:Z.pageSize,offset:Z.offset,searchString:Z.searchString,sortColumn:Z.sortColumn}})),(0,I.b)(Z=>{this.groups=Z.data,this.setAuthRights(),this.selected.clear(),setTimeout(()=>this.loadingSubject$.next(!1),200)}),(0,q.O)({data:[],totalCount:0,offset:0,pageSize:0})),this.showGroupList=!1,this.selected=new A.Ov(!0,[]),this.loadingSubject$=new F.X(!1),this.loading$=(0,T.T)(this.loadingSubject$,this.nextPage.pipe((0,ue.U)(()=>!0))),this.filtering=!1,this.filterValue="",this.tableId=w.rc,this.displayedColumns=["select","id","name","description","menu"],this.removeAuth$=this.selected.changed.pipe((0,ue.U)(Z=>Z.source.selected.reduce((lt,Ae)=>lt&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,Ae]),!0)),(0,q.O)(!0)),this.attrNames=[x.r.GROUP_SYNC_ENABLED,x.r.GROUP_LAST_SYNC_STATE,x.r.GROUP_LAST_SYNC_TIMESTAMP,x.r.GROUP_STRUCTURE_SYNC_ENABLED,x.r.GROUP_LAST_STRUCTURE_SYNC_STATE,x.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}onCreateGroup(){const it=(0,m.kZ)();it.width="450px",it.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(e.y,it).afterClosed().subscribe(ot=>{ot&&this.refresh()})}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),"list"===localStorage.getItem("preferedValue")?(this.toggle.toggle(),this.showGroupList=!0):this.refresh(),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree"),this.refresh()})}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createGroup_Vo_Group_policy",[this.vo]),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[this.vo,this.groups[0]]))}deleteGroup(){const it=(0,m.kZ)();it.width="450px",it.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(f.P,it).afterClosed().subscribe(ot=>{ot&&this.refresh()})}labelToggle(){this.showGroupList=!this.showGroupList,this.refresh()}removeAllGroups(){this.selected.clear()}onMoveGroup(it){const Ce=(0,m.kZ)();Ce.width="550px",Ce.data={group:it,theme:"vo-theme"},this.dialog.open(S.c,Ce).afterClosed().subscribe(Ue=>{Ue&&this.refresh()})}loadAllGroups(){this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,this.attrNames).subscribe(it=>{this.groups=it,this.selected.clear(),this.setAuthRights(),this.loadingSubject$.next(!1)})}applyFilter(it){this.filterValue=it,this.filtering=""!==it}refresh(){this.loadingSubject$.next(!0),this.showGroupList?this.nextPage.next(this.nextPage.value):this.loadAllGroups()}downloadAll(it){const Ce=this.nextPage.getValue(),ot=(Ue,ft)=>this.groupUtils.getDataForColumn(Ue,ft);this.groupService.getGroupsPage({vo:this.vo.id,attrNames:this.attrNames,query:{order:Ce.order,pageSize:it.length,offset:0,searchString:Ce.searchString,sortColumn:Ce.sortColumn}}).subscribe({next:Ue=>{(0,m.O6)((0,m.Xn)(Ue.data,this.displayedColumns,ot),it.format)}})}}return he.id="VoGroupsComponent",he.\u0275fac=function(it){return new(it||he)(j.Y36(Q.uw),j.Y36(M.ff),j.Y36(P.x4),j.Y36(P.fb),j.Y36(P.K1))},he.\u0275cmp=j.Xpm({type:he,selectors:[["app-vo-groups"]],viewQuery:function(it,Ce){if(1&it&&j.Gf($e,7),2&it){let ot;j.iGM(ot=j.CRH())&&(Ce.toggle=ot.first)}},hostVars:2,hostBindings:function(it,Ce){2&it&&j.ekj("router-component",Ce.true)},decls:22,vars:19,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","me-2 action-button","data-cy","create-group-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],[1,"slide-label",3,"click"],["color","primary",1,"me-1",3,"ngModel","change","ngModelChange"],["toggle",""],[1,"mt-3","position-relative"],[4,"ngIf"],["spinner",""],["color","accent","data-cy","create-group-button","mat-flat-button","",1,"me-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"me-2",3,"disabled","click"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable"],["theme","vo-theme",3,"disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","groupMoved","queryChanged","refreshTable","downloadAll",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["theme","vo-theme",3,"disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","groupMoved","queryChanged","refreshTable","downloadAll"]],template:function(it,Ce){1&it&&(j.TgZ(0,"div")(1,"h1",0),j._uU(2),j.ALo(3,"translate"),j.qZA(),j.TgZ(4,"perun-web-apps-refresh-button",1),j.NdJ("refresh",function(){return Ce.refresh()}),j.qZA(),j.YNc(5,qe,3,3,"button",2),j.YNc(6,Ze,5,8,"span",3),j.ALo(7,"async"),j.TgZ(8,"perun-web-apps-debounce-filter",4),j.NdJ("filter",function(Ue){return Ce.applyFilter(Ue)}),j.qZA(),j.TgZ(9,"label",5),j.NdJ("click",function(){return Ce.labelToggle()}),j._uU(10),j.ALo(11,"translate"),j.qZA(),j.TgZ(12,"mat-slide-toggle",6,7),j.NdJ("change",function(){return Ce.removeAllGroups()})("ngModelChange",function(Ue){return Ce.showGroupList=Ue}),j.qZA(),j.TgZ(14,"label",5),j.NdJ("click",function(){return Ce.labelToggle()}),j._uU(15),j.ALo(16,"translate"),j.qZA(),j.TgZ(17,"div",8),j.YNc(18,se,3,4,"div",9),j.YNc(19,U,3,4,"div",9),j.qZA()(),j.YNc(20,$,1,0,"ng-template",null,10,j.W1O)),2&it&&(j.xp6(2),j.Oqu(j.lcZ(3,9,"VO_DETAIL.GROUPS.TITLE")),j.xp6(3),j.Q6J("ngIf",Ce.createAuth),j.xp6(1),j.Q6J("ngIf",j.VKq(17,ce,j.lcZ(7,11,Ce.removeAuth$))),j.xp6(2),j.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),j.xp6(2),j.hij("",j.lcZ(11,13,"VO_DETAIL.GROUPS.TREE_VIEW")," "),j.xp6(2),j.Q6J("ngModel",Ce.showGroupList),j.xp6(3),j.hij("",j.lcZ(16,15,"VO_DETAIL.GROUPS.LIST_VIEW")," "),j.xp6(3),j.Q6J("ngIf",!Ce.showGroupList),j.xp6(1),j.Q6J("ngIf",Ce.showGroupList))},dependencies:[be.O5,me.JJ,me.On,fe.lW,re.gM,v.Rr,V.K,W.W,ee.t,ie.I,xe.P,Ye.e,be.Ov,Le.X$],styles:[".slide-label[_ngcontent-%COMP%]{display:inline;cursor:pointer}"],changeDetection:0}),he})()},81847:(Xe,ae,p)=>{"use strict";p.d(ae,{y:()=>$});var e=p(95017),f=p(80279),A=p(53455),S=p(61744),m=p(64080),M=p(24006),w=p(10036),x=p(9244),P=p(74414),F=p(51525),T=p(94742),B=p(39646),I=p(94650),q=p(7274),ue=p(36895),j=p(3238),Q=p(59549),be=p(4859),me=p(84385),fe=p(10266),re=p(28255),v=p(68530),V=p(96214),W=p(64901),ee=p(4811),ie=p(73358),xe=p(89383),Ye=p(20551);function Le(ce,De){if(1&ce){const he=I.EpF();I.TgZ(0,"button",17),I.NdJ("click",function(){I.CHM(he);const it=I.oxw();return I.KtG(it.onAddMember())}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&ce){const he=I.oxw();I.Q6J("disabled",he.blockManualMemberAdding),I.xp6(1),I.hij(" ",I.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function $e(ce,De){if(1&ce&&(I.TgZ(0,"button",18),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&ce){const he=I.oxw(),Oe=I.MAs(11);I.Q6J("disabled",he.blockManualMemberAdding)("matMenuTriggerFor",Oe),I.xp6(1),I.hij(" ",I.lcZ(2,3,"VO_DETAIL.MEMBERS.INVITE")," ")}}function qe(ce,De){if(1&ce){const he=I.EpF();I.TgZ(0,"button",19),I.NdJ("click",function(){I.CHM(he);const it=I.oxw();return I.KtG(it.onInviteMember())}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&ce&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE_ONE")," "))}function Ze(ce,De){if(1&ce){const he=I.EpF();I.TgZ(0,"button",19),I.NdJ("click",function(){I.CHM(he);const it=I.oxw();return I.KtG(it.onBulkInvite())}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&ce&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE_BULK")," "))}function Pe(ce,De){if(1&ce){const he=I.EpF();I.TgZ(0,"button",20),I.NdJ("click",function(){I.CHM(he);const it=I.oxw();return I.KtG(it.onRemoveMembers())}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&ce){const he=I.oxw();I.Q6J("disabled",he.selection.isEmpty()),I.xp6(1),I.hij(" ",I.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function se(ce,De){if(1&ce&&(I.TgZ(0,"mat-option",21),I._uU(1),I.ALo(2,"memberStatus"),I.qZA()),2&ce){const he=De.$implicit;I.Q6J("value",he),I.xp6(1),I.Oqu(I.lcZ(2,2,he))}}function N(ce,De){1&ce&&I._UZ(0,"perun-web-apps-loading-table")}function U(ce,De){if(1&ce){const he=I.EpF();I.TgZ(0,"perun-web-apps-members-dynamic-list",22),I.NdJ("loading$",function(it){I.CHM(he);const Ce=I.oxw();return I.KtG(Ce.loading$=it)}),I.qZA()}if(2&ce){const he=I.oxw();I.Q6J("attrNames",he.attrNames)("selection",he.selection)("tableId",he.tableId)("displayedColumns",he.displayedColumns)("updateTable",he.updateTable)("searchString",he.searchString)("selectedStatuses",he.selectedStatuses)("voId",he.vo.id)("isMembersGroup",!1)}}let $=(()=>{class ce{constructor(he,Oe,it,Ce,ot,Ue,ft,Z){this.notificator=he,this.dialog=Oe,this.authzService=it,this.storeService=Ce,this.attributesManager=ot,this.apiRequest=Ue,this.entityStorageService=ft,this.cd=Z,this.members=null,this.selection=new e.Ov(!0,[]),this.attrNames=[m.r.MEMBER_DEF_ORGANIZATION,m.r.MEMBER_DEF_MAIL,m.r.USER_DEF_ORGANIZATION,m.r.USER_DEF_PREFERRED_MAIL,m.r.MEMBER_DEF_EXPIRATION,m.r.MEMBER_LIFECYCLE_ALTERABLE],this.statuses=new M.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=w.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}ngOnInit(){this.loading$=(0,B.of)(!0),this.statuses.setValue(this.selectedStatuses),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.vo.id)}setAuthRights(){this.addAuth=this.authzService.isAuthorized("createMember_Vo_User_List_policy",[this.vo])&&this.authzService.isAuthorized("createMember_Vo_Candidate_List_policy",[this.vo]),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","fullName","status","organization","email","logins"],null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0]])),this.inviteAuth=this.authzService.isAuthorized("vo-sendInvitation_Vo_Group_String_String_String_policy",[this.vo])}onSearchByString(he){this.searchString=he,this.selection.clear()}onAddMember(){const he=(0,x.kZ)();he.width="1000px",he.data={voId:this.vo.id},this.dialog.open(F.H,he).afterClosed().subscribe(it=>{it&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const he=(0,x.kZ)();he.width="450px",he.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(A.X,he).afterClosed().subscribe(it=>{it&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const he=(0,x.kZ)();he.width="650px",he.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(P.R,he)}onBulkInvite(){const he=(0,x.kZ)();he.width="650px",he.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(T.F,he)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const he=this.statuses.value;return he?`${he[0]} ${he.length>1?"(+"+(he.length-1).toString()+" "+(2===he.length?"other)":"others)"):""}`:""}isManualAddingBlocked(he){return new Promise(Oe=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(he,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe({next:it=>{this.blockManualMemberAdding=null!==it.value,Oe()},error:it=>{"PrivilegeException"!==it.name&&this.notificator.showError(it.name),Oe()}})})}changeStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value,this.cd.detectChanges()}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable,this.cd.detectChanges()}}return ce.id="VoMembersComponent",ce.\u0275fac=function(he){return new(he||ce)(I.Y36(f.V6),I.Y36(q.uw),I.Y36(f.x4),I.Y36(f.d6),I.Y36(S.H8),I.Y36(f.F5),I.Y36(f.fb),I.Y36(I.sBO))},ce.\u0275cmp=I.Xpm({type:ce,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(he,Oe){2&he&&I.ekj("router-component",Oe.true)},decls:30,vars:25,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","me-2 action-button","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","me-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-members","class","me-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"me-2","fix-select"],["multiple","",3,"formControl","closed"],["class","vo-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup","loading$",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["color","accent","data-cy","add-members","mat-flat-button","",1,"me-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"me-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"me-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup","loading$"]],template:function(he,Oe){if(1&he&&(I.TgZ(0,"div",0)(1,"h1",1),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),I.NdJ("click",function(){return Oe.refreshTable()}),I.qZA(),I.TgZ(6,"div",4),I.ALo(7,"translate"),I.YNc(8,Le,3,4,"button",5),I.qZA(),I.YNc(9,$e,3,5,"button",6),I.TgZ(10,"mat-menu",null,7),I.YNc(12,qe,3,3,"button",8),I.YNc(13,Ze,3,3,"button",8),I.qZA(),I.YNc(14,Pe,3,4,"button",9),I.TgZ(15,"mat-form-field",10)(16,"mat-label"),I._uU(17),I.ALo(18,"translate"),I.qZA(),I.TgZ(19,"mat-select",11),I.NdJ("closed",function(){return Oe.changeStatuses()}),I.TgZ(20,"mat-select-trigger"),I._uU(21),I.ALo(22,"memberStatus"),I.qZA(),I.YNc(23,se,3,4,"mat-option",12),I.qZA()(),I.TgZ(24,"perun-web-apps-debounce-filter",13),I.NdJ("filter",function(Ce){return Oe.onSearchByString(Ce)}),I.qZA()(),I.YNc(25,N,1,0,"ng-template",null,14,I.W1O),I.TgZ(27,"div",15),I.YNc(28,U,1,9,"perun-web-apps-members-dynamic-list",16),I.ALo(29,"async"),I.qZA()()),2&he){const it=I.MAs(26);I.xp6(2),I.Oqu(I.lcZ(3,15,"VO_DETAIL.MEMBERS.TITLE")),I.xp6(4),I.s9C("matTooltip",I.lcZ(7,17,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),I.Q6J("matTooltipDisabled",!Oe.blockManualMemberAdding),I.xp6(2),I.Q6J("ngIf",Oe.addAuth),I.xp6(1),I.Q6J("ngIf",Oe.inviteAuth),I.xp6(3),I.Q6J("ngIf",Oe.inviteAuth),I.xp6(1),I.Q6J("ngIf",Oe.inviteAuth),I.xp6(1),I.Q6J("ngIf",Oe.removeAuth),I.xp6(3),I.Oqu(I.lcZ(18,19,"VO_DETAIL.MEMBERS.FILTER_STATUS")),I.xp6(2),I.Q6J("formControl",Oe.statuses),I.xp6(2),I.hij(" ",I.lcZ(22,21,Oe.displaySelectedStatuses())," "),I.xp6(2),I.Q6J("ngForOf",Oe.statusList),I.xp6(1),I.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),I.xp6(4),I.Q6J("perunWebAppsLoader",I.lcZ(29,23,Oe.loading$))("perunWebAppsLoaderIndicator",it)}},dependencies:[ue.sg,ue.O5,j.ey,Q.KE,Q.hX,M.JJ,M.oH,be.lW,me.gD,me.$L,fe.gM,re.VK,re.OP,re.p6,v.K,V.t,W.P,ee.m,ie.e,ue.Ov,xe.X$,Ye.l],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),ce})()},68056:(Xe,ae,p)=>{"use strict";p.d(ae,{z:()=>fe});var e=p(95017),f=p(61744),A=p(533),S=p(10036),m=p(9244),M=p(80279),w=p(94650),x=p(7274),P=p(36895),F=p(4859),T=p(68530),B=p(96214),I=p(7434),q=p(62109),ue=p(73358),j=p(89383);function Q(re,v){if(1&re){const V=w.EpF();w.TgZ(0,"button",7),w.NdJ("click",function(){w.CHM(V);const ee=w.oxw();return w.KtG(ee.deleteSelectedResources())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&re){const V=w.oxw();w.Q6J("disabled",0===V.selected.selected.length),w.xp6(1),w.hij(" ",w.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function be(re,v){1&re&&w._UZ(0,"perun-web-apps-loading-table")}function me(re,v){if(1&re&&w._UZ(0,"perun-web-apps-resources-list",8),2&re){const V=w.oxw();w.Q6J("disableRouting",!V.routeAuth)("filterValue",V.filterValue)("resources",V.resources)("routingVo",!0)("displayedColumns",V.displayedColumns)("selection",V.selected)("tableId",V.tableId)}}let fe=(()=>{class re{constructor(V,W,ee,ie){this.resourcesManager=V,this.dialog=W,this.authResolver=ee,this.entityStorageService=ie,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=S.nT,this.routeAuth=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.vo]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[this.vo,this.resources[0]])),this.displayedColumns=this.removeAuth?["select","id","name","facility","tags","description"]:["id","name","facility","tags","description"]}refreshTable(){this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe(V=>{this.resources=V,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(V){this.filterValue=V}deleteSelectedResources(){const V=(0,m.kZ)();V.width="450px",V.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(A.f,V).afterClosed().subscribe(ee=>{ee&&this.refreshTable()})}}return re.id="VoResourcesPreviewComponent",re.\u0275fac=function(V){return new(V||re)(w.Y36(f.xk),w.Y36(x.uw),w.Y36(M.x4),w.Y36(M.fb))},re.\u0275cmp=w.Xpm({type:re,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(V,W){2&V&&w.ekj("router-component",W.true)},decls:11,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","me-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["color","warn","mat-flat-button","",1,"me-2",3,"disabled","click"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId"]],template:function(V,W){if(1&V&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return W.refreshTable()}),w.qZA(),w.YNc(5,Q,3,4,"button",2),w.TgZ(6,"perun-web-apps-immediate-filter",3),w.NdJ("filter",function(ie){return W.applyFilter(ie)}),w.qZA(),w.YNc(7,be,1,0,"ng-template",null,4,w.W1O),w.TgZ(9,"div",5),w.YNc(10,me,1,7,"perun-web-apps-resources-list",6),w.qZA()()),2&V){const ee=w.MAs(8);w.xp6(2),w.Oqu(w.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),w.xp6(3),w.Q6J("ngIf",W.removeAuth),w.xp6(1),w.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),w.xp6(4),w.Q6J("perunWebAppsLoader",W.loading)("perunWebAppsLoaderIndicator",ee)}},dependencies:[P.O5,F.lW,T.K,B.t,I.L,q.C,ue.e,j.X$]}),re})()},24219:(Xe,ae,p)=>{"use strict";p.d(ae,{z:()=>lt});var e=p(80279),f=p(61744),A=p(94650),S=p(36895),m=p(3848),M=p(98380),w=p(96214),x=p(30671),P=p(51572),F=p(44850),T=p(37084),B=p(89383);function I(Ae,Ke){1&Ae&&A._UZ(0,"mat-spinner",2)}function q(Ae,Ke){if(1&Ae&&(A.TgZ(0,"mat-panel-description")(1,"div")(2,"i",10),A._uU(3," error "),A.qZA(),A._uU(4),A.ALo(5,"translate"),A.ALo(6,"translate"),A.qZA()()),2&Ae){const pe=A.oxw().$implicit,Ie=A.oxw(2);A.xp6(4),A.HOy(" ",Ie.getErrorCountStates(pe)," ",A.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",pe.taskList.length," ",A.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function ue(Ae,Ke){1&Ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function j(Ae,Ke){if(1&Ae&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&Ae){const pe=Ke.$implicit;A.xp6(1),A.Oqu(pe.id)}}function Q(Ae,Ke){1&Ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function be(Ae,Ke){if(1&Ae&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&Ae){const pe=Ke.$implicit;A.xp6(1),A.Oqu(pe.service.name)}}function me(Ae,Ke){1&Ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function fe(Ae,Ke){if(1&Ae&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&Ae){const pe=Ke.$implicit;A.xp6(1),A.Oqu(pe.status)}}function re(Ae,Ke){1&Ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function v(Ae,Ke){if(1&Ae&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&Ae){const pe=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,pe.schedule,"d.M.y H:mm:ss")," ")}}function V(Ae,Ke){1&Ae&&(A._uU(0),A.ALo(1,"translate")),2&Ae&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function W(Ae,Ke){if(1&Ae&&(A.TgZ(0,"td",24),A.YNc(1,v,3,4,"div",25),A.YNc(2,V,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&Ae){const pe=Ke.$implicit,Ie=A.MAs(3);A.xp6(1),A.Q6J("ngIf",pe.schedule)("ngIfElse",Ie)}}function ee(Ae,Ke){1&Ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function ie(Ae,Ke){if(1&Ae&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&Ae){const pe=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,pe.schedule,"d.M.y H:mm:ss")," ")}}function xe(Ae,Ke){1&Ae&&(A._uU(0),A.ALo(1,"translate")),2&Ae&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Ye(Ae,Ke){if(1&Ae&&(A.TgZ(0,"td",24),A.YNc(1,ie,3,4,"div",25),A.YNc(2,xe,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&Ae){const pe=Ke.$implicit,Ie=A.MAs(3);A.xp6(1),A.Q6J("ngIf",pe.startTime)("ngIfElse",Ie)}}function Le(Ae,Ke){1&Ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function $e(Ae,Ke){if(1&Ae&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&Ae){const pe=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,pe.schedule,"d.M.y H:mm:ss")," ")}}function qe(Ae,Ke){1&Ae&&(A._uU(0),A.ALo(1,"translate")),2&Ae&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Ze(Ae,Ke){if(1&Ae&&(A.TgZ(0,"td",24),A.YNc(1,$e,3,4,"div",25),A.YNc(2,qe,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&Ae){const pe=Ke.$implicit,Ie=A.MAs(3);A.xp6(1),A.Q6J("ngIf",pe.endTime)("ngIfElse",Ie)}}function Pe(Ae,Ke){1&Ae&&A._UZ(0,"tr",28)}const se=function(Ae,Ke,pe){return{redTableItem:Ae,greenTableItem:Ke,yellowTableItem:pe}};function N(Ae,Ke){if(1&Ae&&A._UZ(0,"tr",29),2&Ae){const pe=Ke.$implicit;A.Q6J("ngClass",A.kEZ(1,se,"ERROR"===pe.status||"SENDERROR"===pe.status||"GENERROR"===pe.status,"DONE"===pe.status,"WARNING"===pe.status))}}function U(Ae,Ke){if(1&Ae&&(A.TgZ(0,"table",12),A.ynx(1,13),A.YNc(2,ue,3,3,"th",14),A.YNc(3,j,2,1,"td",15),A.BQk(),A.ynx(4,16),A.YNc(5,Q,3,3,"th",14),A.YNc(6,be,2,1,"td",15),A.BQk(),A.ynx(7,17),A.YNc(8,me,3,3,"th",14),A.YNc(9,fe,2,1,"td",15),A.BQk(),A.ynx(10,18),A.YNc(11,re,3,3,"th",14),A.YNc(12,W,4,2,"td",15),A.BQk(),A.ynx(13,19),A.YNc(14,ee,3,3,"th",14),A.YNc(15,Ye,4,2,"td",15),A.BQk(),A.ynx(16,20),A.YNc(17,Le,3,3,"th",14),A.YNc(18,Ze,4,2,"td",15),A.BQk(),A.YNc(19,Pe,1,0,"tr",21),A.YNc(20,N,1,5,"tr",22),A.qZA()),2&Ae){const pe=A.oxw(2).$implicit,Ie=A.oxw(2);A.Q6J("dataSource",Ie.datasources[Ie.propagation.indexOf(pe)]),A.xp6(19),A.Q6J("matHeaderRowDef",Ie.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",Ie.displayedColumns)}}function $(Ae,Ke){1&Ae&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function ce(Ae,Ke){if(1&Ae&&(A._UZ(0,"mat-divider"),A.YNc(1,U,21,3,"table",11),A.YNc(2,$,3,3,"div",8)),2&Ae){const pe=A.oxw().$implicit;A.xp6(1),A.Q6J("ngIf",0!==pe.taskList.length),A.xp6(1),A.Q6J("ngIf",0===pe.taskList.length)}}function De(Ae,Ke){if(1&Ae&&(A.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),A._UZ(3,"img",6),A.TgZ(4,"div",7),A._uU(5),A.qZA()(),A.YNc(6,q,7,8,"mat-panel-description",8),A.qZA(),A.YNc(7,ce,3,2,"ng-template",9),A.qZA()),2&Ae){const pe=Ke.$implicit,Ie=A.oxw(2);A.xp6(5),A.hij(" ",pe.resource.name," "),A.xp6(1),A.Q6J("ngIf",0!==Ie.getErrorCountStates(pe))}}function he(Ae,Ke){if(1&Ae&&(A.TgZ(0,"div",3)(1,"mat-accordion",4),A.YNc(2,De,8,2,"mat-expansion-panel",5),A.qZA()()),2&Ae){const pe=A.oxw();A.xp6(2),A.Q6J("ngForOf",pe.propagation)}}let Oe=(()=>{class Ae{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(pe){let Ie=0;for(const Ne of pe.taskList)("ERROR"===Ne.status||"GENERROR"===Ne.status||"SENDERROR"===Ne.status)&&Ie++;return Ie}getDataSource(){this.datasources=[];for(const pe of this.propagation)this.datasources.push(new x.by(pe.taskList))}ngOnChanges(){this.getDataSource()}}return Ae.\u0275fac=function(pe){return new(pe||Ae)},Ae.\u0275cmp=A.Xpm({type:Ae,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[A.TTD],decls:2,vars:2,consts:[["class","ms-auto me-auto",4,"ngIf"],["class","p-2",4,"ngIf"],[1,"ms-auto","me-auto"],[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["height","28","src","assets/img/PerunWebImages/resource-black.svg","width","28"],[1,"ms-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","scheduled"],["matColumnDef","started"],["matColumnDef","ended"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["class","font-italic"],["notYet",""],["mat-header-row",""],["mat-row","",3,"ngClass"]],template:function(pe,Ie){1&pe&&(A.YNc(0,I,1,0,"mat-spinner",0),A.YNc(1,he,3,1,"div",1)),2&pe&&(A.Q6J("ngIf",Ie.loading),A.xp6(1),A.Q6J("ngIf",!Ie.loading))},dependencies:[S.mk,S.sg,S.O5,x.BZ,x.fO,x.as,x.w1,x.Dz,x.nj,x.ge,x.ev,x.XQ,x.Gk,P.Ou,F.d,T.pp,T.ib,T.yz,T.yK,T.u4,T.HS,S.uU,B.X$],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{margin-left:15%;justify-content:space-between;align-items:center}"]}),Ae})();function it(Ae,Ke){if(1&Ae&&(A._uU(0),A.ALo(1,"translate"),A.TgZ(2,"span",5),A._uU(3),A.qZA()),2&Ae){const pe=A.oxw();A.hij(" ",A.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),A.xp6(3),A.Oqu(pe.errorPropagation.length)}}function Ce(Ae,Ke){1&Ae&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function ot(Ae,Ke){if(1&Ae&&(A.YNc(0,Ce,3,3,"perun-web-apps-alert",6),A._UZ(1,"app-state-tab",7)),2&Ae){const pe=A.oxw();A.Q6J("ngIf",!pe.loading&&0===pe.errorPropagation.length),A.xp6(1),A.Q6J("loading",pe.loading)("propagation",pe.errorPropagation)}}function Ue(Ae,Ke){if(1&Ae&&(A._uU(0),A.ALo(1,"translate"),A.TgZ(2,"span",9),A._uU(3),A.qZA()),2&Ae){const pe=A.oxw();A.hij(" ",A.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),A.xp6(3),A.Oqu(pe.okPropagation.length)}}function ft(Ae,Ke){1&Ae&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function Z(Ae,Ke){if(1&Ae&&(A.YNc(0,ft,3,3,"perun-web-apps-alert",6),A._UZ(1,"app-state-tab",7)),2&Ae){const pe=A.oxw();A.Q6J("ngIf",!pe.loading&&0===pe.okPropagation.length),A.xp6(1),A.Q6J("loading",pe.loading)("propagation",pe.okPropagation)}}let lt=(()=>{class Ae{constructor(pe,Ie){this.taskService=pe,this.entityStorageService=Ie,this.loading=!1,this.okPropagation=[],this.errorPropagation=[],this.resourceStates=[],this.selectedIndex=0}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.taskService.getAllResourcesState(this.vo.id).subscribe(pe=>{this.resourceStates=pe,this.okPropagation=[],this.errorPropagation=[];for(const Ie of pe){let Ne=!0;for(const we of Ie.taskList)if("ERROR"===we.status||"GENERROR"===we.status||"SENDERROR"===we.status){Ne=!1;break}Ne?this.okPropagation.push(Ie):this.errorPropagation.push(Ie)}this.loading=!1},()=>this.loading=!1)}}return Ae.id="VoResourcesStatesComponent",Ae.\u0275fac=function(pe){return new(pe||Ae)(A.Y36(f.Ob),A.Y36(e.fb))},Ae.\u0275cmp=A.Xpm({type:Ae,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(pe,Ie){2&pe&&A.ekj("router-component",Ie.true)},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"refresh"],["animationDuration","0ms","mat-stretch-tabs","false",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ms-1"],["alert_type","warn",4,"ngIf"],[3,"loading","propagation"],["alert_type","warn"],[1,"badge","badge-success","ms-1"]],template:function(pe,Ie){1&pe&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return Ie.refreshTable()}),A.qZA(),A.TgZ(4,"mat-tab-group",2),A.NdJ("selectedIndexChange",function(we){return Ie.selectedIndex=we}),A.TgZ(5,"mat-tab"),A.YNc(6,it,4,4,"ng-template",3),A.YNc(7,ot,2,3,"ng-template",4),A.qZA(),A.TgZ(8,"mat-tab"),A.YNc(9,Ue,4,4,"ng-template",3),A.YNc(10,Z,2,3,"ng-template",4),A.qZA()()),2&pe&&(A.xp6(1),A.Oqu(A.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),A.xp6(3),A.Q6J("selectedIndex",Ie.selectedIndex))},dependencies:[S.O5,m.Vc,m.uD,m.uX,m.SP,M.w,w.t,Oe,B.X$]}),Ae})()},10369:(Xe,ae,p)=>{"use strict";p.d(ae,{w:()=>Ze});var e=p(1186),f=p(80279),A=p(95502),S=p(93657),m=p(83491),M=p(61744),w=p(9244),x=p(94650),P=p(7274),F=p(89383),T=p(82761),B=p(36895),I=p(97392),q=p(4859),ue=p(51572),j=p(10266),Q=p(44850),be=p(98380),me=p(68530),fe=p(96214),re=p(73358),v=p(157);function V(Pe,se){1&Pe&&x._UZ(0,"mat-spinner",15)}function W(Pe,se){if(1&Pe){const N=x.EpF();x.TgZ(0,"button",23),x.NdJ("click",function(){x.CHM(N);const $=x.oxw(2);return x.KtG($.settings())}),x.TgZ(1,"i",10),x._uU(2,"edit"),x.qZA(),x._uU(3),x.ALo(4,"translate"),x.qZA()}2&Pe&&(x.xp6(3),x.hij(" ",x.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function ee(Pe,se){if(1&Pe&&(x.TgZ(0,"div",16)(1,"div",17)(2,"div",18),x._uU(3),x.ALo(4,"translate"),x.qZA(),x.TgZ(5,"div")(6,"span",18),x._uU(7),x.ALo(8,"translate"),x.qZA(),x._uU(9,": "),x.TgZ(10,"mat-icon",19),x._uU(11,"arrow_right_alt"),x.qZA(),x._uU(12),x.ALo(13,"translate"),x.ALo(14,"translate"),x.TgZ(15,"mat-icon",20),x._uU(16,"restore"),x.qZA(),x._uU(17),x.ALo(18,"translate"),x.ALo(19,"translate"),x.qZA()(),x.TgZ(20,"div",21),x.YNc(21,W,5,3,"button",22),x.qZA()()),2&Pe){const N=x.oxw();x.xp6(3),x.AsE(" ",x.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",N.applicationForm.moduleClassName," "),x.xp6(4),x.Oqu(x.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),x.xp6(5),x.hij(" ",N.applicationForm.automaticApproval?x.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):x.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),x.xp6(5),x.hij(" ",N.applicationForm.automaticApprovalExtension?x.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):x.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),x.xp6(4),x.Q6J("ngIf",N.editAuth)}}function ie(Pe,se){if(1&Pe){const N=x.EpF();x.TgZ(0,"button",24),x.NdJ("click",function(){x.CHM(N);const $=x.oxw();return x.KtG($.add())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}2&Pe&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function xe(Pe,se){if(1&Pe){const N=x.EpF();x.TgZ(0,"button",25),x.NdJ("click",function(){x.CHM(N);const $=x.oxw();return x.KtG($.save())}),x.TgZ(1,"i",10),x._uU(2,"save"),x.qZA(),x._uU(3),x.ALo(4,"translate"),x.qZA()}if(2&Pe){const N=x.oxw();x.Q6J("disabled",!N.itemsChanged),x.xp6(3),x.hij(" ",x.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function Ye(Pe,se){if(1&Pe){const N=x.EpF();x.TgZ(0,"button",26),x.NdJ("click",function(){x.CHM(N);const $=x.oxw();return x.KtG($.copy())}),x.TgZ(1,"i",10),x._uU(2,"file_copy"),x.qZA(),x._uU(3),x.ALo(4,"translate"),x.qZA()}2&Pe&&(x.xp6(3),x.hij(" ",x.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function Le(Pe,se){1&Pe&&(x.TgZ(0,"perun-web-apps-alert",27),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&Pe&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}function $e(Pe,se){1&Pe&&x._UZ(0,"perun-web-apps-loading-table")}function qe(Pe,se){if(1&Pe){const N=x.EpF();x.TgZ(0,"app-application-form-list",28),x.NdJ("applicationFormItemsChange",function(){x.CHM(N);const $=x.oxw();return x.KtG($.changeItems())}),x.qZA()}if(2&Pe){const N=x.oxw();x.Q6J("applicationForm",N.applicationForm)("applicationFormItems",N.applicationFormItems)("displayedColumns",N.displayedColumns)("refreshApplicationForm",N.refreshApplicationForm)("theme","vo-theme")}}let Ze=(()=>{class Pe{constructor(N,U,$,ce,De,he,Oe,it){this.registrarManager=N,this.dialog=U,this.notificator=$,this.translate=ce,this.router=De,this.authResolver=he,this.voService=Oe,this.entityStorageService=it,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarManager.getVoApplicationForm(this.vo.id).subscribe(N=>{this.applicationForm=N,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(U=>{this.applicationFormItems=U,this.loading=!1})})}add(){let N=(0,w.kZ)();N.width="500px",N.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(S.J,N).afterClosed().subscribe($=>{$&&(this.applicationFormItems=Object.assign([],$[0]),N=(0,w.kZ)(),N.width="600px",N.height="600px",N.data={voId:this.vo.id,applicationFormItem:$[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(m._,N),this.itemsChanged=!0)})}copy(){const N=(0,w.kZ)();N.width="500px",N.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(A.W,N).afterClosed().subscribe($=>{$&&this.updateFormItems()})}settings(){const N=(0,w.kZ)();N.width="400px",N.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(e.E,N).afterClosed().subscribe($=>{$&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(ce=>{this.notificator.showSuccess(ce)}),this.applicationForm=$)})}preview(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)},queryParamsHandling:"merge"})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(N=>{this.applicationFormItems=N,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){this.loading=!0;let N=0;for(const U of this.applicationFormItems)U.ordnum=N,U.forDelete||N++;this.registrarManager.updateFormItemsForVo({vo:this.vo.id,items:this.applicationFormItems}).subscribe({next:()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(U=>{this.notificator.showSuccess(U)}),this.updateFormItems()},error:()=>this.loading=!1})}clear(){this.applicationFormItems.forEach(N=>N.forDelete=!0),this.itemsChanged=!0}setAuthRights(){this.editAuth=this.authResolver.isAuthorized("vo-updateFormItems_ApplicationForm_List_policy",[this.vo]),this.displayedColumns=this.editAuth?["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]:["shortname","type","disabled","hidden","preview","managegroups"]}}return Pe.id="VoSettingsApplicationFormComponent",Pe.\u0275fac=function(N){return new(N||Pe)(x.Y36(M.tk),x.Y36(P.uw),x.Y36(f.V6),x.Y36(F.sK),x.Y36(T.F0),x.Y36(f.x4),x.Y36(M.YF),x.Y36(f.fb))},Pe.\u0275cmp=x.Xpm({type:Pe,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(N,U){2&N&&x.ekj("router-component",U.true)},decls:22,vars:14,consts:[[1,"page-subtitle"],["class","ms-auto me-auto",4,"ngIf"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","me-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","data-cy","save-application-form","class","me-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","me-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],["spinner",""],[1,"position-relative"],[3,"applicationForm","applicationFormItems","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[1,"ms-auto","me-auto"],[1,"d-flex","w-50"],[1,"w-50"],[1,"fw-bold"],["matTooltip","Initial",1,"align-bottom"],["matTooltip","Extension",1,"align-bottom"],[1,"w-25"],["class","ms-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ms-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"me-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"me-2",3,"disabled","click"],["mat-stroked-button","",1,"me-2","action-button",3,"click"],["alert_type","info"],[3,"applicationForm","applicationFormItems","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"]],template:function(N,U){if(1&N&&(x.TgZ(0,"h1",0),x._uU(1),x.ALo(2,"translate"),x.qZA(),x.YNc(3,V,1,0,"mat-spinner",1),x.TgZ(4,"div"),x.YNc(5,ee,22,18,"div",2),x._UZ(6,"mat-divider",3),x.TgZ(7,"div",4)(8,"perun-web-apps-refresh-button",5),x.NdJ("refresh",function(){return U.updateFormItems()}),x.qZA(),x.YNc(9,ie,3,3,"button",6),x.YNc(10,xe,5,4,"button",7),x.YNc(11,Ye,5,3,"button",8),x.TgZ(12,"button",9),x.NdJ("click",function(){return U.preview()}),x.TgZ(13,"i",10),x._uU(14,"search"),x.qZA(),x._uU(15),x.ALo(16,"translate"),x.qZA()(),x.YNc(17,Le,3,3,"perun-web-apps-alert",11),x.YNc(18,$e,1,0,"ng-template",null,12,x.W1O),x.TgZ(20,"div",13),x.YNc(21,qe,1,5,"app-application-form-list",14),x.qZA()()),2&N){const $=x.MAs(19);x.xp6(1),x.hij(" ",x.lcZ(2,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),x.xp6(2),x.Q6J("ngIf",U.loading),x.xp6(2),x.Q6J("ngIf",!U.loading),x.xp6(4),x.Q6J("ngIf",U.editAuth),x.xp6(1),x.Q6J("ngIf",U.editAuth),x.xp6(1),x.Q6J("ngIf",U.editAuth),x.xp6(4),x.hij(" ",x.lcZ(16,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),x.xp6(2),x.Q6J("ngIf",U.editAuth),x.xp6(4),x.Q6J("perunWebAppsLoader",U.loading)("perunWebAppsLoaderIndicator",$)}},dependencies:[B.O5,I.Hw,q.lW,ue.Ou,j.gM,Q.d,be.w,me.K,fe.t,re.e,v.b,F.X$]}),Pe})()},11042:(Xe,ae,p)=>{"use strict";p.d(ae,{T:()=>On});var e=p(61744),f=p(95017),A=p(10036),S=p(9244),m=p(7274),M=p(80279),w=p(24006),x=p(36895),P=p(28499),F=p(77579),T=p(94650),B=p(89383),I=p(3238),q=p(284),ue=p(59549),j=p(97392),Q=p(4859),be=p(56709),me=p(84385),fe=p(10266),re=p(86257),v=p(98380),V=p(97403),W=p(73358),ee=p(13469),ie=p(75162),xe=p(64080),Ye=p(71948),Le=p(25788),$e=p(7434),qe=p(61150);function Ze(Dt,ai){1&Dt&&(T.TgZ(0,"div")(1,"perun-web-apps-alert",8),T._uU(2),T.ALo(3,"translate"),T.qZA()()),2&Dt&&(T.xp6(2),T.Oqu(T.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Pe(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"div")(1,"h5",9),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-create-group-form",10),T.NdJ("asSubgroupChanged",function(Jt){T.CHM(ct);const pi=T.oxw();return T.KtG(pi.onAsSubgroupChange(Jt))})("nameChanged",function(Jt){T.CHM(ct);const pi=T.oxw();return T.KtG(pi.onNameChange(Jt))})("descriptionChanged",function(Jt){T.CHM(ct);const pi=T.oxw();return T.KtG(pi.onDescriptionChange(Jt))})("parentGroupChanged",function(Jt){T.CHM(ct);const pi=T.oxw();return T.KtG(pi.onParentChange(Jt))}),T.qZA()()}if(2&Dt){const ct=T.oxw();T.xp6(2),T.Oqu(T.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")),T.xp6(2),T.Q6J("voGroups",ct.allVoGroups)}}const se=function(){return["select","id","name","description"]};function N(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"div")(1,"h5",9),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-immediate-filter",11),T.NdJ("filter",function(Jt){T.CHM(ct);const pi=T.oxw();return T.KtG(pi.applyFilter(Jt))}),T.qZA(),T._UZ(5,"perun-web-apps-groups-list",12),T.qZA()}if(2&Dt){const ct=T.oxw();T.xp6(2),T.Oqu(T.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")),T.xp6(2),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("groups",ct.assignableGroups)("selection",ct.selection)("disableRouting",!0)("displayedColumns",T.DdM(10,se))("filter",ct.filterValue)("tableId",ct.tableId)}}let U=(()=>{class Dt{constructor(ct,Zt,Jt){this.groupsService=ct,this.guiAuthResolver=Zt,this.attributesService=Jt,this.groupsToAdd=new T.vpe,this.submitAllowed=new T.vpe,this.loading=!1,this.assignableGroups=[],this.allVoGroups=[],this.manualMemberAddingBlocked=!1,this.groupAssignment="none",this.selection=new f.Ov(!0,[]),this.name="",this.description="",this.asSubgroup=!1,this.parentGroup=null,this.filterValue="",this.tableId=A.rc,this.groupToCreate={id:0,beanName:"Group"},this.groupIds=[],this.groupAttrNames=[xe.r.GROUP_SYNC_ENABLED,xe.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.onSubmit=this.submit.subscribe(()=>this.handleGroups()),this.selection.changed.subscribe(()=>this.isSubmitAllowed()),this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.voId,beanName:"Vo"}]),this.attributesService.getVoAttributes(this.voId).subscribe(ct=>{this.manualMemberAddingBlocked=(0,S.jh)(ct,xe.r.VO_BLOCK_MANUAL_MEMBER_ADDING),this.groupsService.getAllRichGroupsWithAttributesByNames(this.voId,this.groupAttrNames).subscribe(Zt=>{this.allVoGroups=Zt.filter(Jt=>"members"!==Jt.name),this.assignableGroups=this.filterAssignableGroups(Zt),this.isSubmitAllowed()})})}ngOnDestroy(){void 0!==this.onSubmit&&this.onSubmit.unsubscribe()}groupAssigmentChanged(){this.selection.clear(),this.groupToCreate.name="",this.groupToCreate.description="",this.asSubgroup=!1,this.groupToCreate.parentGroupId=null,this.isSubmitAllowed()}applyFilter(ct){this.filterValue=ct}onNameChange(ct){this.groupToCreate.name=ct,this.isSubmitAllowed()}onParentChange(ct){this.groupToCreate.parentGroupId=null===ct?null:ct.id,this.isSubmitAllowed()}onAsSubgroupChange(ct){this.asSubgroup=ct,this.isSubmitAllowed()}onDescriptionChange(ct){this.groupToCreate.description=ct,this.isSubmitAllowed()}isSubmitAllowed(){this.submitAllowed.emit(!(null===this.groupAssignment||"existing"===this.groupAssignment&&0===this.selection.selected.length||"new"===this.groupAssignment&&(0===this.groupToCreate.name.length||0===this.groupToCreate.description.length)||this.asSubgroup&&null===this.groupToCreate.parentGroupId))}handleGroups(){this.loading=!0,"new"===this.groupAssignment?this.asSubgroup?this.groupsService.createGroupWithParentGroupNameDescription(this.groupToCreate.parentGroupId,this.groupToCreate.name,this.groupToCreate.description).subscribe({next:ct=>{this.groupIds.push(ct.id),this.groupsToAdd.emit(this.groupIds)},error:()=>this.loading=!1}):this.groupsService.createGroupWithVoNameDescription(this.voId,this.groupToCreate.name,this.groupToCreate.description).subscribe({next:ct=>{this.groupIds.push(ct.id),this.groupsToAdd.emit(this.groupIds)},error:()=>this.loading=!1}):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(ct=>ct.id)),this.groupsToAdd.emit(this.groupIds))}filterAssignableGroups(ct){const Zt=[];for(const Jt of ct)!(0,S.bx)(Jt)&&!(0,S.jh)(Jt.attributes,xe.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[Jt])&&Zt.push(Jt);return Zt}}return Dt.\u0275fac=function(ct){return new(ct||Dt)(T.Y36(e.ff),T.Y36(M.x4),T.Y36(e.H8))},Dt.\u0275cmp=T.Xpm({type:Dt,selectors:[["app-assign-groups-sponsored-members-component"]],inputs:{submit:"submit",voId:"voId"},outputs:{groupsToAdd:"groupsToAdd",submitAllowed:"submitAllowed"},decls:21,vars:26,consts:[[1,"mt-2"],[1,"mb-4"],[1,"flex-container",3,"ngModel","change","ngModelChange"],["value","none","data-cy","no-assign-button"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","new",3,"disabled"],["value","existing",3,"disabled"],[4,"ngIf"],["alert_type","info",1,"mt-4"],[1,"mt-4"],[3,"voGroups","asSubgroupChanged","nameChanged","descriptionChanged","parentGroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(ct,Zt){1&ct&&(T.TgZ(0,"div",0)(1,"h5",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-radio-group",2),T.NdJ("change",function(){return Zt.groupAssigmentChanged()})("ngModelChange",function(pi){return Zt.groupAssignment=pi}),T.TgZ(5,"mat-radio-button",3),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.TgZ(8,"span",4),T.ALo(9,"translate"),T.TgZ(10,"mat-radio-button",5),T._uU(11),T.ALo(12,"translate"),T.qZA()(),T.TgZ(13,"span",4),T.ALo(14,"translate"),T.TgZ(15,"mat-radio-button",6),T._uU(16),T.ALo(17,"translate"),T.qZA()()()(),T.YNc(18,Ze,4,3,"div",7),T.YNc(19,Pe,5,4,"div",7),T.YNc(20,N,6,11,"div",7)),2&ct&&(T.xp6(2),T.Oqu(T.lcZ(3,14,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),T.xp6(2),T.Q6J("ngModel",Zt.groupAssignment),T.xp6(2),T.hij(" ",T.lcZ(7,16,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),T.xp6(2),T.s9C("matTooltip",T.lcZ(9,18,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),T.Q6J("matTooltipDisabled",!Zt.manualMemberAddingBlocked&&Zt.createGroupAuth),T.xp6(2),T.Q6J("disabled",Zt.manualMemberAddingBlocked||!Zt.createGroupAuth),T.xp6(1),T.hij(" ",T.lcZ(12,20,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),T.xp6(2),T.s9C("matTooltip",T.lcZ(14,22,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),T.Q6J("matTooltipDisabled",!Zt.manualMemberAddingBlocked&&0!==Zt.assignableGroups.length),T.xp6(2),T.Q6J("disabled",Zt.manualMemberAddingBlocked||0===Zt.assignableGroups.length),T.xp6(1),T.hij(" ",T.lcZ(17,24,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),T.xp6(2),T.Q6J("ngIf","none"===Zt.groupAssignment),T.xp6(1),T.Q6J("ngIf","new"===Zt.groupAssignment),T.xp6(1),T.Q6J("ngIf","existing"===Zt.groupAssignment))},dependencies:[x.O5,w.JJ,w.On,fe.gM,Ye.VQ,Ye.U0,v.w,Le.W,$e.L,qe.r,B.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Dt})();var $=p(39158),ce=p(31359);const De=["stepper"];function he(Dt,ai){1&Dt&&T._UZ(0,"perun-web-apps-loading-dialog")}function Oe(Dt,ai){1&Dt&&(T.TgZ(0,"h1",5),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function it(Dt,ai){1&Dt&&(T._uU(0),T.ALo(1,"translate")),2&Dt&&T.Oqu(T.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function Ce(Dt,ai){1&Dt&&(T.TgZ(0,"perun-web-apps-alert",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function ot(Dt,ai){1&Dt&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Ue(Dt,ai){1&Dt&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function ft(Dt,ai){1&Dt&&(T._uU(0),T.ALo(1,"translate")),2&Dt&&T.Oqu(T.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function Z(Dt,ai){if(1&Dt&&(T.TgZ(0,"mat-option",34),T._uU(1),T.qZA()),2&Dt){const ct=ai.$implicit;T.Q6J("value",ct),T.uIk("data-cy",ct),T.xp6(1),T.hij(" ",ct," ")}}function lt(Dt,ai){1&Dt&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function Ae(Dt,ai){1&Dt&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Ke(Dt,ai){1&Dt&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function pe(Dt,ai){if(1&Dt&&(T.TgZ(0,"mat-option",34),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"uppercase"),T.qZA()),2&Dt){const ct=ai.$implicit;T.s9C("value",ct),T.xp6(1),T.hij(" ",T.lcZ(2,2,T.lcZ(3,4,"SHARED_LIB.LANGUAGES."+ct))," ")}}function Ie(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"mat-form-field")(1,"mat-label"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-select",35),T.NdJ("valueChange",function(Jt){T.CHM(ct);const pi=T.oxw(3);return T.KtG(pi.currentLanguage=Jt)}),T.YNc(5,pe,4,6,"mat-option",23),T.qZA()()}if(2&Dt){const ct=T.oxw(3);T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.INVITE_MEMBER.LANGUAGE")),T.xp6(2),T.Q6J("value",ct.currentLanguage),T.xp6(1),T.Q6J("ngForOf",ct.languages)}}function Ne(Dt,ai){1&Dt&&(T._uU(0),T.ALo(1,"translate")),2&Dt&&T.Oqu(T.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function we(Dt,ai){1&Dt&&(T._uU(0),T.ALo(1,"translate")),2&Dt&&T.Oqu(T.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function Be(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"div",6)(1,"mat-stepper",7,8)(3,"mat-step",9),T.YNc(4,it,2,3,"ng-template",10),T.YNc(5,Ce,3,3,"perun-web-apps-alert",11),T.TgZ(6,"form",12)(7,"h5",13),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"mat-form-field",14)(11,"mat-label"),T._uU(12),T.ALo(13,"translate"),T.qZA(),T._UZ(14,"input",15),T.YNc(15,ot,3,3,"mat-error",16),T.qZA(),T.TgZ(16,"mat-form-field")(17,"mat-label"),T._uU(18),T.ALo(19,"translate"),T.qZA(),T._UZ(20,"input",17),T.YNc(21,Ue,3,3,"mat-error",16),T.qZA(),T.TgZ(22,"mat-form-field")(23,"mat-label"),T._uU(24),T.ALo(25,"translate"),T.qZA(),T._UZ(26,"input",18),T.qZA(),T.TgZ(27,"mat-form-field")(28,"mat-label"),T._uU(29),T.ALo(30,"translate"),T.qZA(),T._UZ(31,"input",19),T.qZA()()(),T.TgZ(32,"mat-step",9),T.YNc(33,ft,2,3,"ng-template",10),T.TgZ(34,"h5",13),T._uU(35),T.ALo(36,"translate"),T.qZA(),T.TgZ(37,"form",20)(38,"mat-form-field",21)(39,"mat-label"),T._uU(40),T.ALo(41,"translate"),T.qZA(),T.TgZ(42,"mat-select",22),T.NdJ("valueChange",function(Jt){T.CHM(ct);const pi=T.oxw(2);return T.KtG(pi.onNamespaceChanged(Jt))}),T.YNc(43,Z,2,3,"mat-option",23),T.qZA(),T.YNc(44,lt,3,3,"mat-error",16),T.qZA(),T.TgZ(45,"mat-form-field",24),T.ALo(46,"translate"),T.TgZ(47,"mat-label"),T._uU(48),T.ALo(49,"translate"),T.qZA(),T._UZ(50,"input",25),T.YNc(51,Ae,3,3,"mat-error",16),T.qZA(),T.TgZ(52,"mat-form-field")(53,"mat-label"),T._uU(54),T.ALo(55,"translate"),T.qZA(),T._UZ(56,"input",26),T.YNc(57,Ke,3,3,"mat-error",16),T.qZA(),T.TgZ(58,"span",24),T.ALo(59,"translate"),T.TgZ(60,"mat-checkbox",27),T.NdJ("change",function(){T.CHM(ct);const Jt=T.oxw(2);return T.KtG(Jt.passwordResetChange())}),T._uU(61),T.ALo(62,"translate"),T.qZA()(),T.YNc(63,Ie,6,5,"mat-form-field",16),T._UZ(64,"perun-web-apps-password-form",28),T.qZA()(),T.TgZ(65,"mat-step"),T.YNc(66,Ne,2,3,"ng-template",10),T.TgZ(67,"div",29)(68,"h5",13),T._uU(69),T.ALo(70,"translate"),T.qZA(),T.TgZ(71,"app-choose-sponsor",30),T.NdJ("sponsorTypeSelected",function(Jt){T.CHM(ct);const pi=T.oxw(2);return T.KtG(pi.sponsorType=Jt)})("sponsorSelected",function(Jt){T.CHM(ct);const pi=T.oxw(2);return T.KtG(pi.selectedSponsor=Jt)}),T.qZA(),T.TgZ(72,"h6",14),T._uU(73),T.ALo(74,"translate"),T.qZA(),T.TgZ(75,"perun-web-apps-expiration-select",31),T.NdJ("datePicker",function(Jt){T.CHM(ct);const pi=T.oxw(2);return T.KtG(pi.setExpiration(Jt))}),T.qZA()()(),T.TgZ(76,"mat-step"),T.YNc(77,we,2,3,"ng-template",10),T.TgZ(78,"app-assign-groups-sponsored-members-component",32),T.NdJ("groupsToAdd",function(Jt){T.CHM(ct);const pi=T.oxw(2);return T.KtG(pi.createMember(Jt))})("submitAllowed",function(Jt){T.CHM(ct);const pi=T.oxw(2);return T.KtG(pi.submitAllowed=Jt)}),T.qZA()()()()}if(2&Dt){const ct=T.oxw(2);T.xp6(1),T.Q6J("linear",!0),T.xp6(2),T.Q6J("stepControl",ct.userControl),T.xp6(2),T.Q6J("ngIf",ct.functionalityNotSupported),T.xp6(1),T.Q6J("formGroup",ct.userControl),T.xp6(2),T.hij(" ",T.lcZ(9,37,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),T.xp6(4),T.Oqu(T.lcZ(13,39,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),T.xp6(3),T.Q6J("ngIf",ct.userControl.hasError("required","firstName")),T.xp6(3),T.Oqu(T.lcZ(19,41,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),T.xp6(3),T.Q6J("ngIf",ct.userControl.hasError("required","lastName")),T.xp6(3),T.Oqu(T.lcZ(25,43,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),T.xp6(5),T.Oqu(T.lcZ(30,45,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),T.xp6(3),T.Q6J("stepControl",ct.namespaceControl),T.xp6(3),T.Oqu(T.lcZ(36,47,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),T.xp6(2),T.Q6J("formGroup",ct.namespaceControl),T.xp6(3),T.Oqu(T.lcZ(41,49,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),T.xp6(3),T.Q6J("ngForOf",ct.namespaceOptions),T.xp6(1),T.Q6J("ngIf",ct.namespaceControl.hasError("required","namespace")),T.xp6(1),T.s9C("matTooltip",T.lcZ(46,51,null===ct.selectedNamespace?"DIALOGS.CREATE_SPONSORED_MEMBER.NO_NAMESPACE_SELECTED":"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),T.Q6J("matTooltipDisabled",ct.namespaceControl.get("login").enabled),T.xp6(3),T.Oqu(T.lcZ(49,53,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),T.xp6(3),T.Q6J("ngIf",ct.namespaceControl.hasError("required","login")),T.xp6(3),T.Oqu(T.lcZ(55,55,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),T.xp6(3),T.Q6J("ngIf",ct.namespaceControl.hasError("required","email")||ct.namespaceControl.hasError("pattern","email")),T.xp6(1),T.s9C("matTooltip",T.lcZ(59,57,null===ct.selectedNamespace?"DIALOGS.CREATE_SPONSORED_MEMBER.NO_NAMESPACE_SELECTED":"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),T.Q6J("matTooltipDisabled",ct.namespaceControl.get("passwordReset").enabled),T.xp6(3),T.hij("",T.lcZ(62,59,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),T.xp6(2),T.Q6J("ngIf",ct.namespaceControl.get("passwordReset").value),T.xp6(1),T.Q6J("formGroup",ct.namespaceControl)("namespace",ct.selectedNamespace)("tooltipPwdViaEmail",ct.namespaceControl.get("passwordReset").value),T.xp6(5),T.hij(" ",T.lcZ(70,61,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")," "),T.xp6(2),T.Q6J("voId",ct.data.voId)("voSponsors",ct.data.sponsors),T.xp6(2),T.Oqu(T.lcZ(74,63,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION")),T.xp6(2),T.Q6J("minDate",ct.minDate),T.xp6(3),T.Q6J("voId",ct.data.voId)("submit",ct.groupsToAssign.asObservable())}}function r(Dt,ai){1&Dt&&(T.TgZ(0,"perun-web-apps-alert",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.WITH_ERRORS")))}function u(Dt,ai){if(1&Dt&&(T.TgZ(0,"div",6)(1,"div",36)(2,"mat-icon",37),T._uU(3,"done"),T.qZA(),T._uU(4),T.ALo(5,"translate"),T.TgZ(6,"i"),T._uU(7),T.ALo(8,"userFullName"),T.qZA(),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.TgZ(11,"div"),T._uU(12),T.ALo(13,"translate"),T.qZA(),T.TgZ(14,"div"),T._uU(15),T.ALo(16,"translate"),T.qZA(),T.TgZ(17,"perun-web-apps-alert",38),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.YNc(20,r,3,3,"perun-web-apps-alert",11),T.qZA()),2&Dt){const ct=T.oxw(2);T.xp6(4),T.hij(" ",T.lcZ(5,9,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),T.xp6(3),T.Oqu(T.lcZ(8,11,ct.createdMember.user)),T.xp6(2),T.hij(" ",T.lcZ(10,13,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),T.xp6(3),T.AsE("",T.lcZ(13,15,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",ct.loginThatWasSet,""),T.xp6(3),T.AsE(" ",T.lcZ(16,17,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",ct.namespaceControl.get("passwordCtrl").value," "),T.xp6(3),T.Oqu(T.lcZ(19,19,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION")),T.xp6(2),T.Q6J("ngIf",ct.finishedWithErrors)}}function _(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"div",39)(1,"button",40),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw(2);return T.KtG(Jt.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA()()}2&Dt&&(T.xp6(2),T.hij(" ",T.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function C(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"button",45),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw(3);return T.KtG(Jt.stepperPrevious())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function h(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"button",46),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw(3);return T.KtG(Jt.stepperNext())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Dt){const ct=T.oxw(3);T.ekj("ms-2",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)("ms-auto",!(void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)),T.Q6J("disabled",ct.getStepperNextConditions()),T.xp6(1),T.hij(" ",T.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function o(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"button",47),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw(3);return T.KtG(Jt.onConfirm())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Dt){const ct=T.oxw(3);T.Q6J("disabled",!ct.submitAllowed),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function n(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"div",39)(1,"button",41),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw(2);return T.KtG(Jt.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,C,3,3,"button",42),T.YNc(5,h,3,8,"button",43),T.YNc(6,o,3,4,"button",44),T.qZA()}if(2&Dt){const ct=T.oxw(2);T.xp6(2),T.hij(" ",T.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),T.xp6(2),T.Q6J("ngIf",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex),T.xp6(1),T.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex!==ct.stepper._steps.length-1),T.xp6(1),T.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex===ct.stepper._steps.length-1)}}function t(Dt,ai){if(1&Dt&&(T.TgZ(0,"div"),T.YNc(1,Oe,3,3,"h1",2),T.YNc(2,Be,79,65,"div",3),T.YNc(3,u,21,21,"div",3),T.YNc(4,_,4,3,"div",4),T.YNc(5,n,7,6,"div",4),T.qZA()),2&Dt){const ct=T.oxw();T.xp6(1),T.Q6J("ngIf",!ct.successfullyCreated),T.xp6(1),T.Q6J("ngIf",!ct.successfullyCreated),T.xp6(1),T.Q6J("ngIf",ct.successfullyCreated),T.xp6(1),T.Q6J("ngIf",ct.successfullyCreated),T.xp6(1),T.Q6J("ngIf",!ct.successfullyCreated&&void 0!==ct.stepper)}}let i=(()=>{class Dt{constructor(ct,Zt,Jt,pi,Mi,Oi,nn,Mn,br,Sn,vn,cr){this.dialogRef=ct,this.data=Zt,this.membersService=Jt,this.apiRequestConfiguration=pi,this.usersService=Mi,this.store=Oi,this.translator=nn,this.authzService=Mn,this.guiAuthResolver=br,this.formBuilder=Sn,this.cd=vn,this.groupsService=cr,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.selectedNamespace=null,this.userControl=null,this.namespaceControl=null,this.selectedSponsor=null,this.sponsorType="self",this.languages=["en"],this.currentLanguage="en",this.finishedWithErrors=!1,this.submitAllowed=!1,this.groupsToAssign=new F.x,this.minDate=new Date,this.namespaceRules=[],this.parsedRules=new Map,this.expiration="never"}static parseAttributes(ct,Zt,Jt){for(const pi of Zt)switch(pi){case"login":ct.login=Jt;break;case"password":ct.password=Jt}}onConfirm(){this.loading=!0,this.groupsToAssign.next()}createMember(ct){this.loading=!0;const Zt={vo:this.data.voId,userData:{firstName:this.userControl.get("firstName").value,lastName:this.userControl.get("lastName").value,titleAfter:this.userControl.get("titleAfter").value,titleBefore:this.userControl.get("titleBefore").value,email:this.namespaceControl.get("email").value},sponsor:"other"===this.sponsorType?this.selectedSponsor.id:this.store.getPerunPrincipal().userId},Jt=this.namespaceControl.get("namespace").value,pi=this.parsedRules.get(Jt);"No namespace"!==Jt&&(Zt.userData.namespace=Jt),"disabled"!==pi.login&&(Zt.userData.login=this.namespaceControl.get("login").value),"disabled"!==pi.password&&(Zt.sendActivationLink=this.namespaceControl.get("passwordReset").value,Zt.language=this.currentLanguage,Zt.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(Zt.validityTo=this.expiration),this.membersService.createSponsoredMember(Zt).subscribe(Mi=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=Mi,Mi&&Mi.userAttributes&&Mi.userAttributes.filter(Oi=>"login-namespace"===Oi.baseFriendlyName).filter(Oi=>Oi.friendlyNameParameter===Jt).filter(Oi=>null!==Oi.value).forEach(Oi=>{this.loginThatWasSet=Oi.value}),ct.length>0&&this.groupsService.addMember(ct,Mi.id).subscribe({next:()=>this.loading=!1,error:()=>{this.finishedWithErrors=!0,this.loading=!1}}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(ct){this.selectedNamespace=ct;const Zt=null===this.selectedNamespace?{login:"disabled",password:"disabled"}:this.parsedRules.get(ct),Jt=this.namespaceControl.get("login"),pi=this.namespaceControl.get("passwordCtrl"),Mi=this.namespaceControl.get("passwordAgainCtrl"),Oi=this.namespaceControl.get("passwordReset");"disabled"!==Zt.login?(0,S.mH)(Jt,"optional"===Zt.login?[]:[w.kI.required]):(Jt.disable(),Jt.setValue("")),"disabled"!==Zt.password?((0,S.mH)(pi,"optional"===Zt.password?[]:[w.kI.required],[(0,P.yT)(ct,this.usersService,this.apiRequestConfiguration)]),(0,S.mH)(Mi,[]),(0,S.mH)(Oi,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(pi.disable(),pi.setValue(""),Mi.disable(),Mi.setValue(""),Oi.disable(),Oi.setValue(!1))}passwordResetChange(){const ct=this.namespaceControl.get("passwordCtrl"),Zt=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(ct.disable(),ct.setValue(""),Zt.disable(),Zt.setValue("")):(ct.enable(),Zt.enable())}setExpiration(ct){this.expiration="never"===ct?"never":(0,x.p6)(ct,"yyyy-MM-dd","en-GB")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.userControl.invalid;case 1:return this.namespaceControl.invalid||this.namespaceControl.get("passwordCtrl").pending;case 2:return null===this.sponsorType||"other"===this.sponsorType&&null===this.selectedSponsor;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.userControl=this.formBuilder.group({firstName:["",w.kI.required],lastName:["",w.kI.required],titleBefore:[""],titleAfter:[""]}),this.languages=this.store.getProperty("supported_languages"),this.namespaceControl=this.formBuilder.group({namespace:["",w.kI.required],login:["",[w.kI.required]],passwordCtrl:["",w.kI.required,[(0,P.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[w.kI.required,w.kI.pattern(S.B2)]]},{validators:S.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(ct=>{this.store.getProperty("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(ct),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.onNamespaceChanged(this.selectedNamespace),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const ct of this.namespaceRules){this.namespaceOptions.push(ct.namespaceName);const Zt={login:"disabled",password:"disabled"};Dt.parseAttributes(Zt,ct.requiredAttributes,"required"),Dt.parseAttributes(Zt,ct.optionalAttributes,"optional"),this.parsedRules.set(ct.namespaceName,Zt)}1===this.namespaceOptions.length&&(this.selectedNamespace=this.namespaceOptions[0])}}return Dt.\u0275fac=function(ct){return new(ct||Dt)(T.Y36(m.so),T.Y36(m.WI),T.Y36(e.uq),T.Y36(M.F5),T.Y36(e.Fv),T.Y36(M.d6),T.Y36(B.sK),T.Y36(e.Ct),T.Y36(M.x4),T.Y36(w.QS),T.Y36(T.sBO),T.Y36(e.ff))},Dt.\u0275cmp=T.Xpm({type:Dt,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(ct,Zt){if(1&ct&&T.Gf(De,5),2&ct){let Jt;T.iGM(Jt=T.CRH())&&(Zt.stepper=Jt.first)}},decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title","",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"dialog-container",3,"formGroup"],[1,"mt-2"],[1,"mt-4"],["data-cy","first-name-input","matInput","","formControlName","firstName","required",""],[4,"ngIf"],["data-cy","last-name-input","matInput","","formControlName","lastName","required",""],["matInput","","formControlName","titleBefore"],["matInput","","formControlName","titleAfter"],[1,"dialog-container","mt-4",3,"formGroup"],["data-cy","namespace-filter"],["formControlName","namespace","required","",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["data-cy","login-input","matInput","","formControlName","login","required",""],["data-cy","email-input","matInput","","formControlName","email","required",""],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","namespace","tooltipPwdViaEmail"],[1,"dialog-container"],[3,"voId","voSponsors","sponsorTypeSelected","sponsorSelected"],[1,"mt-2",3,"minDate","datePicker"],[3,"voId","submit","groupsToAdd","submitAllowed"],["alert_type","error"],[3,"value"],[3,"value","valueChange"],[1,"bigger-font","mb-2"],[1,"me-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","","data-cy","ok-button",1,"ms-auto",3,"click"],["mat-flat-button","",3,"click"],["class","ms-auto","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","next-button","color","accent","mat-flat-button","","type","button",3,"ms-2","ms-auto","disabled","click",4,"ngIf"],["data-cy","confirm-button","class","ms-2","color","accent","mat-flat-button","","type","button",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","next-button","color","accent","mat-flat-button","","type","button",3,"disabled","click"],["data-cy","confirm-button","color","accent","mat-flat-button","","type","button",1,"ms-2",3,"disabled","click"]],template:function(ct,Zt){if(1&ct&&(T.YNc(0,he,1,0,"ng-template",null,0,T.W1O),T.TgZ(2,"div"),T.YNc(3,t,6,5,"div",1),T.qZA()),2&ct){const Jt=T.MAs(1);T.xp6(2),T.Gre("",Zt.theme," position-relative"),T.xp6(1),T.Q6J("perunWebAppsLoader",Zt.loading)("perunWebAppsLoaderIndicator",Jt)}},dependencies:[x.sg,x.O5,I.ey,q.Nt,ue.KE,ue.hX,ue.TO,w._Y,w.Fj,w.JJ,w.JL,w.Q7,w.sg,w.u,j.Hw,Q.lW,be.oG,m.uh,m.xY,m.H8,me.gD,fe.gM,re.C0,re.VY,re.Vq,v.w,V.b,W.e,ee.G,ie.c,U,$.l,x.gd,B.X$,ce.d],styles:[".bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:8px}mat-icon[_ngcontent-%COMP%]{color:#28a745;font-size:36px;vertical-align:bottom}"]}),Dt})();var a=p(28255);const l=["stepper"];function d(Dt,ai){1&Dt&&T._UZ(0,"perun-web-apps-loading-dialog")}function c(Dt,ai){1&Dt&&(T._uU(0),T.ALo(1,"translate")),2&Dt&&T.Oqu(T.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function s(Dt,ai){1&Dt&&(T.TgZ(0,"perun-web-apps-alert",25),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function E(Dt,ai){if(1&Dt&&(T.TgZ(0,"mat-option",26),T._uU(1),T.qZA()),2&Dt){const ct=ai.$implicit;T.Q6J("value",ct),T.uIk("data-cy",ct),T.xp6(1),T.hij(" ",ct," ")}}function H(Dt,ai){1&Dt&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function ne(Dt,ai){1&Dt&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function ve(Dt,ai){if(1&Dt&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt){const ct=T.oxw(3);T.xp6(1),T.AsE(" ",T.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",ct.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function We(Dt,ai){if(1&Dt&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt){const ct=T.oxw(3);T.xp6(1),T.AsE(" ",T.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",ct.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function Mt(Dt,ai){if(1&Dt&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt){const ct=T.oxw(3);T.xp6(1),T.AsE(" ",T.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",ct.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function pt(Dt,ai){1&Dt&&(T._uU(0),T.ALo(1,"translate")),2&Dt&&T.Oqu(T.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function _t(Dt,ai){1&Dt&&(T.TgZ(0,"perun-web-apps-alert",27),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function ye(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"mat-radio-group",28),T.NdJ("ngModelChange",function(Jt){T.CHM(ct);const pi=T.oxw(3);return T.KtG(pi.passwordReset=Jt)}),T.TgZ(1,"mat-radio-button",29),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-radio-button",30),T._uU(5),T.ALo(6,"translate"),T.qZA()()}if(2&Dt){const ct=T.oxw(3);T.Q6J("ngModel",ct.passwordReset),T.xp6(2),T.hij(" ",T.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),T.xp6(3),T.hij(" ",T.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function Ee(Dt,ai){if(1&Dt&&(T.TgZ(0,"mat-option",26),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"uppercase"),T.qZA()),2&Dt){const ct=ai.$implicit;T.s9C("value",ct),T.xp6(1),T.hij(" ",T.lcZ(2,2,T.lcZ(3,4,"SHARED_LIB.LANGUAGES."+ct))," ")}}function oe(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"mat-form-field",31)(1,"mat-label"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-select",32),T.NdJ("valueChange",function(Jt){T.CHM(ct);const pi=T.oxw(3);return T.KtG(pi.currentLanguage=Jt)}),T.YNc(5,Ee,4,6,"mat-option",15),T.qZA()()}if(2&Dt){const ct=T.oxw(3);T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.INVITE_MEMBER.LANGUAGE")),T.xp6(2),T.Q6J("value",ct.currentLanguage),T.xp6(1),T.Q6J("ngForOf",ct.languages)}}function _e(Dt,ai){1&Dt&&(T._uU(0),T.ALo(1,"translate")),2&Dt&&T.Oqu(T.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function Te(Dt,ai){1&Dt&&(T._uU(0),T.ALo(1,"translate")),2&Dt&&T.Oqu(T.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function ut(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"mat-stepper",7,8)(2,"mat-step",9),T.YNc(3,c,2,3,"ng-template",10),T.YNc(4,s,3,3,"perun-web-apps-alert",11),T.TgZ(5,"h5",12),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.TgZ(8,"form",13)(9,"mat-form-field")(10,"mat-label"),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.TgZ(13,"mat-select",14),T.YNc(14,E,2,3,"mat-option",15),T.qZA(),T.YNc(15,H,3,3,"mat-error",5),T.qZA(),T.TgZ(16,"div"),T._uU(17),T.ALo(18,"translate"),T.qZA(),T.TgZ(19,"div",16),T._uU(20),T.qZA(),T.TgZ(21,"mat-form-field",17)(22,"mat-label"),T._uU(23),T.ALo(24,"translate"),T.qZA(),T.TgZ(25,"textarea",18),T._uU(26," "),T.qZA(),T.YNc(27,ne,3,3,"mat-error",5),T.YNc(28,ve,3,4,"mat-error",5),T.YNc(29,We,3,4,"mat-error",5),T.YNc(30,Mt,3,4,"mat-error",5),T.qZA()()(),T.TgZ(31,"mat-step"),T.YNc(32,pt,2,3,"ng-template",10),T.TgZ(33,"div",12)(34,"h5",19),T._uU(35),T.ALo(36,"translate"),T.qZA(),T.YNc(37,_t,3,3,"perun-web-apps-alert",20),T.YNc(38,ye,7,7,"mat-radio-group",21),T.YNc(39,oe,6,5,"mat-form-field",22),T.qZA()(),T.TgZ(40,"mat-step"),T.YNc(41,_e,2,3,"ng-template",10),T.TgZ(42,"div",12)(43,"h5",19),T._uU(44),T.ALo(45,"translate"),T.qZA(),T.TgZ(46,"perun-web-apps-expiration-select",23),T.NdJ("datePicker",function(Jt){T.CHM(ct);const pi=T.oxw(2);return T.KtG(pi.setExpiration(Jt))}),T.qZA()()(),T.TgZ(47,"mat-step"),T.YNc(48,Te,2,3,"ng-template",10),T.TgZ(49,"app-assign-groups-sponsored-members-component",24),T.NdJ("groupsToAdd",function(Jt){T.CHM(ct);const pi=T.oxw(2);return T.KtG(pi.onGenerate(Jt))})("submitAllowed",function(Jt){T.CHM(ct);const pi=T.oxw(2);return T.KtG(pi.submitAllowed=Jt)}),T.qZA()()()}if(2&Dt){const ct=T.oxw(2);T.Q6J("linear",!0),T.xp6(2),T.Q6J("stepControl",ct.usersInfoFormGroup),T.xp6(2),T.Q6J("ngIf",ct.functionalityNotSupported),T.xp6(2),T.Oqu(T.lcZ(7,25,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),T.xp6(2),T.Q6J("formGroup",ct.usersInfoFormGroup),T.xp6(3),T.Oqu(T.lcZ(12,27,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),T.xp6(3),T.Q6J("ngForOf",ct.namespaceOptions),T.xp6(1),T.Q6J("ngIf",ct.usersInfoFormGroup.hasError("required","namespace")),T.xp6(2),T.Oqu(T.lcZ(18,29,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),T.xp6(3),T.hij(" ",ct.getSelectedNamespaceRules().csvGenHeaderDescription," "),T.xp6(3),T.Oqu(T.lcZ(24,31,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),T.xp6(2),T.s9C("placeholder",ct.getSelectedNamespaceRules().csvGenPlaceholder),T.xp6(2),T.Q6J("ngIf",ct.usersInfoFormGroup.hasError("required","sponsoredMembers")),T.xp6(1),T.Q6J("ngIf",ct.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),T.xp6(1),T.Q6J("ngIf",ct.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),T.xp6(1),T.Q6J("ngIf",ct.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),T.xp6(5),T.hij(" ",T.lcZ(36,33,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),T.xp6(2),T.Q6J("ngIf","No namespace"===ct.getSelectedNamespaceRules().namespaceName),T.xp6(1),T.Q6J("ngIf","No namespace"!==ct.getSelectedNamespaceRules().namespaceName),T.xp6(1),T.Q6J("ngIf","reset"===ct.passwordReset),T.xp6(5),T.Oqu(T.lcZ(45,35,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),T.xp6(2),T.Q6J("minDate",ct.minDate)("expiration",ct.expiration),T.xp6(3),T.Q6J("voId",ct.data.voId)("submit",ct.groupsToAssign.asObservable())}}function vt(Dt,ai){1&Dt&&(T.TgZ(0,"perun-web-apps-alert",34),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.Q6J("alert_type","success"),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function Bt(Dt,ai){1&Dt&&(T.TgZ(0,"perun-web-apps-alert",34),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.Q6J("alert_type","warn"),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function Rt(Dt,ai){if(1&Dt&&(T.TgZ(0,"div"),T.YNc(1,vt,3,4,"perun-web-apps-alert",33),T.YNc(2,Bt,3,4,"perun-web-apps-alert",33),T.qZA()),2&Dt){const ct=T.oxw(2);T.xp6(1),T.Q6J("ngIf",!1===ct.finishedWithErrors),T.xp6(1),T.Q6J("ngIf",ct.finishedWithErrors)}}function Ot(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"button",40),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw(3);return T.KtG(Jt.stepperPrevious())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function si(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"button",41),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw(3);return T.KtG(Jt.stepperNext())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Dt){const ct=T.oxw(3);T.ekj("ms-2",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)("ms-auto",!(void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)),T.Q6J("disabled",ct.getStepperNextConditions()),T.xp6(1),T.hij(" ",T.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function hi(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"button",42),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw(3);return T.KtG(Jt.onSubmit())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Dt){const ct=T.oxw(3);T.Q6J("disabled",!ct.submitAllowed),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function kt(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"div",35)(1,"button",36),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw(2);return T.KtG(Jt.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Ot,3,3,"button",37),T.YNc(5,si,3,8,"button",38),T.YNc(6,hi,3,4,"button",39),T.qZA()}if(2&Dt){const ct=T.oxw(2);T.xp6(2),T.hij(" ",T.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),T.xp6(2),T.Q6J("ngIf",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex),T.xp6(1),T.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex!==ct.stepper._steps.length-1),T.xp6(1),T.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex===ct.stepper._steps.length-1)}}function xt(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"div",35)(1,"button",43),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw(2);return T.KtG(Jt.onClose())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"button",44),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"mat-menu",null,45)(9,"button",46),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw(2);return T.KtG(Jt.generatePdf())}),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"button",46),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw(2);return T.KtG(Jt.downloadCsv())}),T._uU(13),T.ALo(14,"translate"),T.qZA()()()}if(2&Dt){const ct=T.MAs(8);T.xp6(2),T.hij(" ",T.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),T.xp6(2),T.Q6J("matMenuTriggerFor",ct),T.xp6(1),T.hij(" ",T.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),T.xp6(5),T.hij(" ",T.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),T.xp6(3),T.hij(" ",T.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}function Se(Dt,ai){if(1&Dt&&(T.TgZ(0,"div")(1,"h1",2),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",3),T.YNc(5,ut,50,37,"mat-stepper",4),T.YNc(6,Rt,3,2,"div",5),T.qZA(),T.YNc(7,kt,7,6,"div",6),T.YNc(8,xt,15,13,"div",6),T.qZA()),2&Dt){const ct=T.oxw();T.xp6(2),T.Oqu(T.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),T.xp6(3),T.Q6J("ngIf","user-input"===ct.state&&0!==ct.namespaceRules.length),T.xp6(1),T.Q6J("ngIf","results"===ct.state),T.xp6(1),T.Q6J("ngIf",void 0!==ct.stepper&&"results"!==ct.state),T.xp6(1),T.Q6J("ngIf","results"===ct.state)}}let Je=(()=>{class Dt{constructor(ct,Zt,Jt,pi,Mi,Oi,nn,Mn,br,Sn,vn,cr){this.dialogRef=ct,this.data=Zt,this.store=Jt,this.membersService=pi,this.notificator=Mi,this.translate=Oi,this.guiAuthResolver=nn,this.groupsService=Mn,this.attributesService=br,this.formBuilder=Sn,this.sponsoredMembersPDFService=vn,this.cd=cr,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.state="user-input",this.passwordReset="generate",this.expiration="never",this.finishedWithErrors=!1,this.submitAllowed=!1,this.groupsToAssign=new F.x,this.languages=["en"],this.currentLanguage="en",this.minDate=new Date,this.namespaceRules=[],this.resultData=[]}static didSomeGenerationFailed(ct){return ct.forEach(Zt=>{if("OK"!==Zt.status)return!0}),!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.languages=this.store.getProperty("supported_languages"),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",w.kI.required],sponsoredMembers:["",[w.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.membersService.getAllNamespacesRules().subscribe(ct=>{this.store.getProperty("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",csvGenHeader:"firstname;lastname;urn:perun:user:attribute-def:def:preferredMail",csvGenPlaceholder:"John;Doe;john@mail.cz",csvGenHeaderDescription:"First name;Last name;Email"}),this.namespaceRules=this.namespaceRules.concat(ct),this.namespaceRules.forEach(Zt=>this.namespaceOptions.push(Zt.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1,this.cd.detectChanges()})}onCancel(){this.dialogRef.close(!1)}onClose(){this.dialogRef.close(!0)}setExpiration(ct){this.expiration="never"===ct?"never":(0,x.p6)(ct,"yyyy-MM-dd","en-GB")}onSubmit(){this.loading=!0,this.groupsToAssign.next()}getSelectedNamespaceRules(){return this.namespaceRules.find(ct=>ct.namespaceName===this.usersInfoFormGroup.get("namespace").value)}generatePdf(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");this.loading=!0,this.sponsoredMembersPDFService.generate(this.resultData).then(()=>this.loading=!1)}downloadCsv(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");(0,S.O6)(this.createOutputObjects(this.resultData),"csv","member-logins")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.usersInfoFormGroup.invalid;case 1:return null===this.passwordReset;case 2:return null===this.expiration;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}onGenerate(ct){this.loading=!0;const Zt=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),Jt=this.getSelectedNamespaceRules().csvGenHeader,pi=[];for(const Oi of Zt){const nn=this.parseMemberLine(Oi);if("format"===nn||"email"===nn)return void(this.loading=!1);""!==nn&&pi.push(nn)}const Mi={data:pi,header:Jt,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset,language:this.currentLanguage};ct.length>0&&(Mi.groups=ct),"never"!==this.expiration&&(Mi.validityTo=(0,x.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(Mi.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(Mi).subscribe(Oi=>{this.state="results",this.finishedWithErrors=Dt.didSomeGenerationFailed(Oi),this.loading=!1,this.resultData=Oi},()=>this.loading=!1)}createOutputObjects(ct){let Zt="",Jt="",pi="",Mi="";const Oi=[];return ct.forEach(nn=>{Zt=nn.name.replace(";"," ").split(";")[0],Jt=nn.status,pi=nn.login?nn.login:pi,Mi=nn.password?nn.password:Mi;const Mn={name:Zt,status:Jt,login:pi,password:Mi};nn.note&&(Mn.note=nn.note),Oi.push(Mn)}),Oi}parseMemberLine(ct){const Zt=ct.trim();if(""===Zt)return"";const Jt=Zt.split(";"),pi=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(Jt.length!==pi.length)return"format";if("mail"===pi[2].slice(pi[2].length-4).toLowerCase()&&!Jt[2].trim().match(S.B2))return"email";if("login"===pi[3]&&""===Jt[3].trim())return"login";let Mi="";for(const Oi of Jt)Mi+=Oi.trim()+";";return Mi.slice(0,-1)}userInputValidator(){return ct=>{const Zt=ct.value.split("\n");for(const Jt of Zt){const pi=this.parseMemberLine(Jt);if("format"===pi)return{invalidFormat:{value:Jt}};if("email"===pi)return{invalidEmail:{value:Jt}};if("login"===pi)return{invalidLogin:{value:Jt}}}return null}}}return Dt.\u0275fac=function(ct){return new(ct||Dt)(T.Y36(m.so),T.Y36(m.WI),T.Y36(M.d6),T.Y36(e.uq),T.Y36(M.V6),T.Y36(B.sK),T.Y36(M.x4),T.Y36(e.ff),T.Y36(e.H8),T.Y36(w.QS),T.Y36(M.HV),T.Y36(T.sBO))},Dt.\u0275cmp=T.Xpm({type:Dt,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(ct,Zt){if(1&ct&&T.Gf(l,5),2&ct){let Jt;T.iGM(Jt=T.CRH())&&(Zt.stepper=Jt.first)}},decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"mt-2"],[1,"flex-container","mt-2",3,"formGroup"],["data-cy","namespace-filter","formControlName","namespace","required",""],[3,"value",4,"ngFor","ngForOf"],[1,"fw-bold"],[1,"pt-2"],["data-cy","csv-input","cols","50","id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","formControlName","sponsoredMembers","matInput","","rows","8",1,"md-textarea","form-control",3,"placeholder"],[1,"mb-4"],["alert_type","info",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["class","w-100",4,"ngIf"],[3,"minDate","expiration","datePicker"],[3,"voId","submit","groupsToAdd","submitAllowed"],["alert_type","error"],[3,"value"],["alert_type","info"],[3,"ngModel","ngModelChange"],["value","generate"],["value","reset"],[1,"w-100"],[3,"value","valueChange"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ms-auto","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","next-button","color","accent","mat-flat-button","",3,"ms-2","ms-auto","disabled","click",4,"ngIf"],["data-cy","submit-button","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","next-button","color","accent","mat-flat-button","",3,"disabled","click"],["data-cy","submit-button","color","accent","mat-flat-button","",3,"disabled","click"],["mat-flat-button","","data-cy","close-button",3,"click"],["color","accent","mat-flat-button","",1,"ms-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(ct,Zt){if(1&ct&&(T.YNc(0,d,1,0,"ng-template",null,0,T.W1O),T.TgZ(2,"div"),T.YNc(3,Se,9,7,"div",1),T.qZA()),2&ct){const Jt=T.MAs(1);T.xp6(2),T.Gre("",Zt.theme," position-relative"),T.xp6(1),T.Q6J("perunWebAppsLoader",Zt.loading)("perunWebAppsLoaderIndicator",Jt)}},dependencies:[x.sg,x.O5,I.ey,q.Nt,ue.KE,ue.hX,ue.TO,w._Y,w.Fj,w.JJ,w.JL,w.Q7,w.sg,w.u,w.On,Q.lW,m.uh,m.xY,m.H8,me.gD,Ye.VQ,Ye.U0,re.C0,re.VY,re.Vq,a.VK,a.OP,a.p6,v.w,V.b,W.e,ie.c,U,x.gd,B.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Dt})();var le=p(91828),tt=p(96308),rt=p(30671),Ft=p(19352),wt=p(58964),zt=p(82761),ii=p(34198),xi=p(55660),mt=p(18750),Vt=p(20919),gt=p(5865),Ut=p(9185),Kt=p(8231),ni=p(14849);function ci(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"th",20)(1,"mat-checkbox",21),T.NdJ("change",function(Jt){T.CHM(ct);const pi=T.oxw(2);return T.KtG(Jt?pi.masterToggle():null)}),T.ALo(2,"translate"),T.ALo(3,"masterCheckboxLabel"),T.qZA()()}if(2&Dt){const ct=T.oxw().ngIf,Zt=T.oxw();T.xp6(1),T.Q6J("aria-label",T.lcZ(2,3,T.lcZ(3,5,ct.all)))("checked",Zt.selection.hasValue()&&ct.all)("indeterminate",Zt.selection.hasValue()&&!ct.all)}}const Ai=function(Dt){return{name:Dt}};function Di(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"td",22)(1,"mat-checkbox",23),T.NdJ("change",function(Jt){const Mi=T.CHM(ct).$implicit,Oi=T.oxw(2);return T.KtG(Jt?Oi.selection.toggle(Mi):null)})("click",function(Jt){return Jt.stopPropagation()}),T.ALo(2,"translate"),T.ALo(3,"checkboxLabel"),T.ALo(4,"userFullName"),T.qZA()()}if(2&Dt){const ct=ai.$implicit,Zt=T.oxw(2);T.xp6(1),T.Q6J("aria-label",T.xi3(2,2,T.lcZ(3,5,Zt.selection.isSelected(ct)),T.VKq(9,Ai,T.lcZ(4,7,ct.member.user))))("checked",Zt.selection.isSelected(ct))}}function St(Dt,ai){1&Dt&&(T.ynx(0,17),T.YNc(1,ci,4,7,"th",18),T.YNc(2,Di,5,11,"td",19),T.BQk())}function Gt(Dt,ai){1&Dt&&(T.TgZ(0,"th",24),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function J(Dt,ai){if(1&Dt&&(T.TgZ(0,"td",25),T._uU(1),T.qZA()),2&Dt){const ct=ai.$implicit;T.xp6(1),T.hij(" ",ct.member.id," ")}}function He(Dt,ai){1&Dt&&(T.TgZ(0,"th",24),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function bt(Dt,ai){if(1&Dt&&(T.TgZ(0,"td",26),T._uU(1),T.ALo(2,"userFullName"),T.qZA()),2&Dt){const ct=ai.$implicit;T.xp6(1),T.hij(" ",T.lcZ(2,1,ct.member.user)," ")}}function Pt(Dt,ai){1&Dt&&(T.TgZ(0,"th",27),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.EMAIL")," "))}function ui(Dt,ai){if(1&Dt&&(T.TgZ(0,"td",26),T._uU(1),T.ALo(2,"memberEmail"),T.qZA()),2&Dt){const ct=ai.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,ct.member))}}function vi(Dt,ai){1&Dt&&(T.TgZ(0,"th",27),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.LOGIN")," "))}function Bi(Dt,ai){if(1&Dt&&(T.TgZ(0,"td",26),T._uU(1),T.ALo(2,"memberLogins"),T.qZA()),2&Dt){const ct=ai.$implicit;T.xp6(1),T.hij(" ",T.lcZ(2,1,ct.member)," ")}}function $i(Dt,ai){1&Dt&&(T.TgZ(0,"th",24),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function ki(Dt,ai){if(1&Dt&&(T.TgZ(0,"span"),T._uU(1),T.ALo(2,"userFullName"),T._UZ(3,"br"),T.qZA()),2&Dt){const ct=ai.$implicit;T.xp6(1),T.hij(" ",T.lcZ(2,1,ct.user),"")}}function sn(Dt,ai){if(1&Dt&&(T.TgZ(0,"td",26),T.YNc(1,ki,4,3,"span",28),T.qZA()),2&Dt){const ct=ai.$implicit;T.xp6(1),T.Q6J("ngForOf",ct.sponsors)}}function _n(Dt,ai){1&Dt&&T._UZ(0,"th",24)}function Li(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"span",31),T.ALo(1,"translate"),T.TgZ(2,"button",32),T.NdJ("mouseenter",function(){T.CHM(ct);const Jt=T.oxw(2);return T.KtG(Jt.disableRouting=!0)})("mouseleave",function(){T.CHM(ct);const Jt=T.oxw(2);return T.KtG(Jt.disableRouting=Jt.routingStrategy)})("click",function(){T.CHM(ct);const Jt=T.oxw().$implicit,pi=T.oxw();return T.KtG(pi.resetPassword(Jt))}),T.TgZ(3,"mat-icon"),T._uU(4,"vpn_key"),T.qZA()()()}if(2&Dt){const ct=T.oxw().$implicit,Zt=T.oxw();T.Q6J("matTooltipPosition","above")("matTooltip",T.lcZ(1,4,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),T.xp6(2),T.Q2q("data-cy","",ct.member.user.firstName,"-reset-passwd-button"),T.Q6J("disabled",Zt.loading)}}function Un(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"td",26)(1,"button",29),T.NdJ("click",function(){const pi=T.CHM(ct).$implicit,Mi=T.oxw();return T.KtG(Mi.showSponsors(pi))})("mouseenter",function(){T.CHM(ct);const Jt=T.oxw();return T.KtG(Jt.disableRouting=!0)})("mouseleave",function(){T.CHM(ct);const Jt=T.oxw();return T.KtG(Jt.disableRouting=Jt.routingStrategy)}),T.TgZ(2,"mat-icon"),T._uU(3,"edit"),T.qZA()(),T.YNc(4,Li,5,6,"span",30),T.qZA()}if(2&Dt){const ct=ai.$implicit,Zt=T.oxw();T.xp6(1),T.Q2q("data-cy","",ct.member.user.firstName,"-edit-sponsors-button"),T.xp6(3),T.Q6J("ngIf",Zt.passwdResetAuth(ct))}}function Xn(Dt,ai){1&Dt&&T._UZ(0,"tr",33)}const lr=function(Dt,ai){return["/organizations",Dt,"members",ai]};function Wn(Dt,ai){if(1&Dt&&T._UZ(0,"tr",34),2&Dt){const ct=ai.$implicit,Zt=T.oxw();T.ekj("cursor-pointer",!Zt.disableRouting)("disable-outline",Zt.disableRouting),T.Q2q("data-cy","",ct.member.user.firstName,"-name"),T.Q6J("perunWebAppsMiddleClickRouterLink",Zt.disableRouting?null:T.WLB(7,lr,ct.member.voId,ct.member.id))("routerLink",Zt.disableRouting?null:T.WLB(10,lr,ct.member.voId,ct.member.id))}}function rn(Dt,ai){1&Dt&&(T.TgZ(0,"perun-web-apps-alert",35),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Bn(Dt,ai){1&Dt&&(T.TgZ(0,"perun-web-apps-alert",35),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}const xn=function(Dt){return{all:Dt}};let un=(()=>{class Dt{constructor(ct,Zt,Jt,pi,Mi){this.dialog=ct,this.authResolver=Zt,this.storeService=Jt,this.attributesManager=pi,this.tableCheckbox=Mi,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","email","logins","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new T.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=S.f7}set matSort(ct){this.sort=ct}static getSortDataForColumn(ct,Zt){switch(Zt){case"id":return ct.member.id.toString();case"name":return ct.member.user?ct.member.user.lastName?ct.member.user.lastName:ct.member.user.firstName??"":"";case"sponsors":return ct.sponsors.length.toString();default:return""}}static getDataForColumn(ct,Zt){switch(Zt){case"id":return ct.member.id.toString();case"name":return ct.member.user?(0,S.bD)(ct.member.user):"";case"sponsors":return ct.sponsors.map(Jt=>(0,S.bD)(Jt.user)).join();default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ct=>"id"!==ct)),this.setDataSource(),this.routingStrategy=this.disableRouting}exportAllData(ct){(0,S.O6)((0,S.Xn)(this.dataSource.filteredData,this.displayedColumns,Dt.getDataForColumn),ct)}exportDisplayedData(ct){const Zt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Jt=Zt+this.dataSource.paginator.pageSize;(0,S.O6)((0,S.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Zt,Jt),this.displayedColumns,Dt.getDataForColumn),ct)}setDataSource(){this.dataSource||(this.dataSource=new rt.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(ct,Zt)=>(0,S.Sd)(ct,Zt,this.displayedColumns,Dt.getDataForColumn),this.dataSource.sortData=(ct,Zt)=>(0,S.pR)(ct,Zt,Dt.getSortDataForColumn)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(ct){const Zt=(0,S.kZ)();Zt.width="650px",Zt.data={sponsors:ct.sponsors,member:ct.member,theme:"vo-theme"},this.dialog.open(Ft.H,Zt).afterClosed().subscribe(pi=>{pi&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}resetPassword(ct){this.loading=!0;const Zt=this.storeService.getProperty("password_namespace_attributes").map(Jt=>{const pi=Jt.split(":");return pi[pi.length-1]});this.attributesManager.getLogins(ct.member.userId).subscribe(Jt=>{const pi=Jt.filter(nn=>Zt.includes(nn.friendlyNameParameter)),Mi=(0,S.kZ)();Mi.width="400px",Mi.data={userId:ct.member.userId,memberId:ct.member.id,logins:pi},this.dialog.open(wt.m,Mi).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(ct){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:ct.member.voId,beanName:"Vo"},ct.member])}}return Dt.\u0275fac=function(ct){return new(ct||Dt)(T.Y36(m.uw),T.Y36(M.x4),T.Y36(M.d6),T.Y36(e.H8),T.Y36(M.UA))},Dt.\u0275cmp=T.Xpm({type:Dt,selectors:[["app-sponsored-members-list"]],viewQuery:function(ct,Zt){if(1&ct&&(T.Gf(S.l9,7),T.Gf(tt.YE,7)),2&ct){let Jt;T.iGM(Jt=T.CRH())&&(Zt.child=Jt.first),T.iGM(Jt=T.CRH())&&(Zt.matSort=Jt.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[T.TTD],decls:27,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","email"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","logins"],["matColumnDef","sponsors"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],[4,"ngFor","ngForOf"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"click","mouseenter","mouseleave"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"disabled","mouseenter","mouseleave","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(ct,Zt){1&ct&&(T.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),T.NdJ("exportDisplayedData",function(pi){return Zt.exportDisplayedData(pi)})("exportAllData",function(pi){return Zt.exportAllData(pi)}),T.TgZ(2,"table",2),T.YNc(3,St,3,0,"ng-container",3),T.ALo(4,"isAllSelected"),T.ynx(5,4),T.YNc(6,Gt,3,3,"th",5),T.YNc(7,J,2,1,"td",6),T.BQk(),T.ynx(8,7),T.YNc(9,He,3,3,"th",5),T.YNc(10,bt,3,3,"td",8),T.BQk(),T.ynx(11,9),T.YNc(12,Pt,3,3,"th",10),T.YNc(13,ui,3,3,"td",8),T.BQk(),T.ynx(14,11),T.YNc(15,vi,3,3,"th",10),T.YNc(16,Bi,3,3,"td",8),T.BQk(),T.ynx(17,12),T.YNc(18,$i,3,3,"th",5),T.YNc(19,sn,2,1,"td",8),T.BQk(),T.ynx(20,13),T.YNc(21,_n,1,0,"th",5),T.YNc(22,Un,5,2,"td",8),T.BQk(),T.YNc(23,Xn,1,0,"tr",14),T.YNc(24,Wn,1,13,"tr",15),T.qZA()()(),T.YNc(25,rn,3,3,"perun-web-apps-alert",16),T.YNc(26,Bn,3,3,"perun-web-apps-alert",16)),2&ct&&(T.Q6J("hidden",0===Zt.dataSource.filteredData.length||0===Zt.sponsoredMembers.length),T.xp6(1),T.Q6J("pageSizeOptions",Zt.pageSizeOptions)("dataLength",Zt.dataSource.filteredData.length)("tableId",Zt.tableId),T.xp6(1),T.Q6J("dataSource",Zt.dataSource),T.xp6(1),T.Q6J("ngIf",T.VKq(13,xn,T.xi3(4,10,Zt.dataSource,Zt.selection.selected.length))),T.xp6(20),T.Q6J("matHeaderRowDef",Zt.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",Zt.displayedColumns),T.xp6(1),T.Q6J("ngIf",0===Zt.dataSource.filteredData.length&&0!==Zt.sponsoredMembers.length),T.xp6(1),T.Q6J("ngIf",0===Zt.sponsoredMembers.length))},dependencies:[x.sg,x.O5,zt.rH,j.Hw,Q.RK,tt.YE,tt.nU,rt.BZ,rt.fO,rt.as,rt.w1,rt.Dz,rt.nj,rt.ge,rt.ev,rt.XQ,rt.Gk,be.oG,fe.gM,v.w,ii.Y,xi.Q,mt.l,B.X$,ce.d,Vt.D,gt.p,Ut.I,Kt.G,ni.r],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Dt})();var er=p(68530),ln=p(96214);function tn(Dt,ai){if(1&Dt&&(T.TgZ(0,"button",12),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Dt){const ct=T.oxw(),Zt=T.MAs(9);T.Q6J("disabled",ct.findSponsorsAuth&&0===ct.voSponsors.length)("matMenuTriggerFor",Zt),T.xp6(1),T.hij(" ",T.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function Br(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"button",13),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw();return T.KtG(Jt.onCreate())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function zi(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"button",14),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw();return T.KtG(Jt.onGenerate())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function Yn(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"button",15),T.NdJ("click",function(){T.CHM(ct);const Jt=T.oxw();return T.KtG(Jt.onSponsorExistingMember())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Dt&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function tr(Dt,ai){1&Dt&&T._UZ(0,"perun-web-apps-loading-table")}function Nn(Dt,ai){if(1&Dt){const ct=T.EpF();T.TgZ(0,"app-sponsored-members-list",16),T.NdJ("refreshTable",function(){T.CHM(ct);const Jt=T.oxw();return T.KtG(Jt.refresh())}),T.qZA()}if(2&Dt){const ct=T.oxw();T.Q6J("disableRouting",!ct.routeAuth)("selection",ct.selection)("filterValue",ct.searchString)("sponsoredMembers",ct.members)("tableId",ct.tableId)}}let On=(()=>{class Dt{constructor(ct,Zt,Jt,pi,Mi,Oi,nn){this.membersManager=ct,this.dialog=Zt,this.authResolver=Jt,this.storeService=pi,this.authzResolver=Mi,this.entityStorageService=Oi,this.findSponsors=nn,this.members=[],this.voSponsors=[],this.selection=new f.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=A.Bf,this.attrNames=[xe.r.USER_DEF_PREFERRED_MAIL]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.setAuthRights(),this.findSponsorsAuth=this.findSponsors.findSponsorsAuth(this.vo),this.findSponsorsAuth?this.findSponsors.getSponsors(this.vo.id).subscribe(ct=>{this.voSponsors=ct,this.refresh()}):this.refresh()}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createSponsoredMember_Vo_String_Map_String_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.generateAuth=this.authResolver.isAuthorized("createSponsoredMembers_Vo_String_List_User_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.setSponsorshipAuth=this.authResolver.isAuthorized("setSponsorshipForMember_Member_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0].member]))}onCreate(){const ct=(0,S.kZ)();ct.width="750px",ct.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(i,ct).afterClosed().subscribe(Jt=>{Jt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(pi=>{this.storeService.setPerunPrincipal(pi),this.refresh()}))})}onGenerate(){const ct=(0,S.kZ)();ct.width="750px",ct.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Je,ct).afterClosed().subscribe(Jt=>{Jt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(pi=>{this.storeService.setPerunPrincipal(pi),this.refresh()}))})}onSponsorExistingMember(){const ct=(0,S.kZ)();ct.width="650px",ct.data={voId:this.vo.id,theme:"vo-theme",voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth},this.dialog.open(le.b,ct).afterClosed().subscribe(Jt=>{Jt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(pi=>{this.storeService.setPerunPrincipal(pi),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(ct=>{this.selection.clear(),this.members=ct,this.setAuthRights(),this.loading=!1})}applyFilter(ct){this.searchString=ct}}return Dt.id="VoSponsoredMembersComponent",Dt.\u0275fac=function(ct){return new(ct||Dt)(T.Y36(e.uq),T.Y36(m.uw),T.Y36(M.x4),T.Y36(M.d6),T.Y36(e.Ct),T.Y36(M.fb),T.Y36(M.Mf))},Dt.\u0275cmp=T.Xpm({type:Dt,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(ct,Zt){2&ct&&T.ekj("router-component",Zt.true)},decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["data-cy","sponsor-dropdown-button","class","me-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["data-cy","sponsor-new-button","class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["data-cy","sponsor-csv-button","class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["data-cy","sponsor-existing-button","color","accent","class","me-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["data-cy","sponsor-dropdown-button","color","accent","mat-flat-button","",1,"me-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["data-cy","sponsor-new-button","mat-menu-item","",1,"action-button",3,"click"],["data-cy","sponsor-csv-button","mat-menu-item","",1,"action-button",3,"click"],["data-cy","sponsor-existing-button","color","accent","mat-flat-button","",1,"me-2","action-button",3,"click"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable"]],template:function(ct,Zt){if(1&ct&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return Zt.refresh()}),T.qZA(),T.TgZ(5,"span",2),T.ALo(6,"translate"),T.YNc(7,tn,3,5,"button",3),T.qZA(),T.TgZ(8,"mat-menu",null,4),T.YNc(10,Br,3,3,"button",5),T.YNc(11,zi,3,3,"button",6),T.qZA(),T.YNc(12,Yn,3,3,"button",7),T.TgZ(13,"perun-web-apps-immediate-filter",8),T.NdJ("filter",function(pi){return Zt.applyFilter(pi)}),T.qZA(),T.YNc(14,tr,1,0,"ng-template",null,9,T.W1O),T.TgZ(16,"div",10),T.YNc(17,Nn,1,5,"app-sponsored-members-list",11),T.qZA()()),2&ct){const Jt=T.MAs(15);T.xp6(2),T.Oqu(T.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),T.xp6(3),T.s9C("matTooltip",T.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),T.Q6J("matTooltipDisabled",!(Zt.findSponsorsAuth&&0===Zt.voSponsors.length)),T.xp6(2),T.Q6J("ngIf",Zt.createAuth||Zt.generateAuth),T.xp6(3),T.Q6J("ngIf",Zt.createAuth),T.xp6(1),T.Q6J("ngIf",Zt.generateAuth),T.xp6(1),T.Q6J("ngIf",Zt.setSponsorshipAuth),T.xp6(1),T.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),T.xp6(4),T.Q6J("perunWebAppsLoader",Zt.loading)("perunWebAppsLoaderIndicator",Jt)}},dependencies:[x.O5,Q.lW,fe.gM,a.VK,a.OP,a.p6,un,er.K,ln.t,$e.L,W.e,B.X$]}),Dt})()},25309:(Xe,ae,p)=>{"use strict";p.d(ae,{Y:()=>se});var e=p(61744),f=p(9244),A=p(80279),S=p(11717),m=p(95017),M=p(7274),w=p(24006),x=p(94650),P=p(89383),F=p(82761),T=p(284),B=p(59549),I=p(4859),q=p(10266),ue=p(97403),j=p(73358);function Q(N,U){1&N&&x._UZ(0,"perun-web-apps-loading-dialog")}function be(N,U){if(1&N){const $=x.EpF();x.TgZ(0,"div")(1,"h1",2),x._uU(2),x.ALo(3,"translate"),x.qZA(),x.TgZ(4,"div",3)(5,"mat-form-field")(6,"mat-label"),x._uU(7),x.ALo(8,"translate"),x.qZA(),x._UZ(9,"input",4),x.TgZ(10,"mat-error"),x._uU(11),x.ALo(12,"translate"),x.qZA()(),x.TgZ(13,"mat-form-field")(14,"mat-label"),x._uU(15),x.ALo(16,"translate"),x.qZA(),x._UZ(17,"input",5),x.TgZ(18,"mat-error"),x._uU(19),x.ALo(20,"translate"),x.qZA()()(),x.TgZ(21,"div",6)(22,"button",7),x.NdJ("click",function(){x.CHM($);const De=x.oxw();return x.KtG(De.onCancel())}),x._uU(23),x.ALo(24,"translate"),x.qZA(),x.TgZ(25,"div",8),x.ALo(26,"translate"),x.TgZ(27,"button",9),x.NdJ("click",function(){x.CHM($);const De=x.oxw();return x.KtG(De.onSubmit())}),x._uU(28),x.ALo(29,"translate"),x.qZA()()()()}if(2&N){const $=x.oxw();x.xp6(2),x.Oqu(x.lcZ(3,12,"DIALOGS.CREATE_VO.TITLE")),x.xp6(5),x.Oqu(x.lcZ(8,14,"DIALOGS.CREATE_VO.FULL_NAME")),x.xp6(2),x.Q6J("formControl",$.fullNameCtrl),x.xp6(2),x.hij(" ",x.lcZ(12,16,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),x.xp6(4),x.Oqu(x.lcZ(16,18,"DIALOGS.CREATE_VO.SHORT_NAME")),x.xp6(2),x.Q6J("formControl",$.shortNameCtrl),x.xp6(2),x.hij(" ",x.lcZ(20,20,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),x.xp6(4),x.hij(" ",x.lcZ(24,22,"DIALOGS.CREATE_VO.CANCEL")," "),x.xp6(2),x.s9C("matTooltip",x.lcZ(26,24,"DIALOGS.CREATE_VO.TOOLTIP")),x.Q6J("matTooltipDisabled",$.shortNameCtrl.valid&&$.fullNameCtrl.valid),x.xp6(2),x.Q6J("disabled",$.shortNameCtrl.invalid||$.fullNameCtrl.invalid),x.xp6(1),x.hij(" ",x.lcZ(29,26,"DIALOGS.CREATE_VO.CREATE")," ")}}let me=(()=>{class N{constructor($,ce,De,he,Oe,it){this.dialogRef=$,this.data=ce,this.notificator=De,this.voService=he,this.translate=Oe,this.router=it,Oe.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(Ce=>this.successMessage=Ce)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new w.p4(null,[w.kI.required,w.kI.pattern("^[\\w.-]+$"),w.kI.maxLength(33)]),this.fullNameCtrl=new w.p4(null,[w.kI.required,w.kI.pattern(".*[\\S]+.*"),w.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe({next:$=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.router.navigate(["/organizations",$.id],{queryParamsHandling:"preserve"}),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return N.\u0275fac=function($){return new($||N)(x.Y36(M.so),x.Y36(M.WI),x.Y36(A.V6),x.Y36(e.YF),x.Y36(P.sK),x.Y36(F.F0))},N.\u0275cmp=x.Xpm({type:N,selectors:[["app-create-vo-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","vo-name-input","required","",3,"formControl"],["matInput","","data-cy","vo-shortname-input","required","",3,"formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","data-cy","create-vo-button","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function($,ce){if(1&$&&(x.YNc(0,Q,1,0,"ng-template",null,0,x.W1O),x.TgZ(2,"div"),x.YNc(3,be,30,28,"div",1),x.qZA()),2&$){const De=x.MAs(1);x.xp6(2),x.Gre("",ce.theme," position-relative"),x.xp6(1),x.Q6J("perunWebAppsLoader",ce.loading)("perunWebAppsLoaderIndicator",De)}},dependencies:[T.Nt,B.KE,B.hX,B.TO,w.Fj,w.JJ,w.Q7,w.oH,I.lW,M.uh,M.xY,M.H8,q.gM,ue.b,j.e,P.X$],styles:[".mat-mdc-dialog-content[_ngcontent-%COMP%]{height:auto}@media (min-width: 421px) and (max-width: 755px){.mat-mdc-dialog-content[_ngcontent-%COMP%]{height:150px}}@media (max-width: 420px){.mat-mdc-dialog-content[_ngcontent-%COMP%]{height:175px}}"]}),N})();var fe=p(10036),re=p(77968),v=p(36895),V=p(97392),W=p(68530),ee=p(87831),ie=p(96214),xe=p(4235),Ye=p(7434);function Le(N,U){if(1&N){const $=x.EpF();x.TgZ(0,"button",10),x.NdJ("click",function(){x.CHM($);const De=x.oxw();return x.KtG(De.onCreateVo())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}2&N&&(x.xp6(1),x.hij(" ",x.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function $e(N,U){if(1&N){const $=x.EpF();x.TgZ(0,"button",11),x.NdJ("click",function(){x.CHM($);const De=x.oxw();return x.KtG(De.onRemoveVo())}),x._uU(1),x.ALo(2,"translate"),x.qZA()}if(2&N){const $=x.oxw();x.Q6J("disabled",0===$.selection.selected.length),x.xp6(1),x.hij(" ",x.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function qe(N,U){1&N&&x._UZ(0,"perun-web-apps-loading-table")}function Ze(N,U){if(1&N&&x._UZ(0,"perun-web-apps-vos-list",12),2&N){const $=x.oxw();x.Q6J("tableId",$.tableId)("displayedColumns",$.displayedColumns)("filterValue",$.filterValue)("recentIds",$.recentIds)("selection",$.selection)("vos",$.vos)}}const Pe=function(){return{color:"black"}};let se=(()=>{class N{constructor($,ce,De,he,Oe,it){this.sideMenuService=$,this.voService=ce,this.guiAuthResolver=De,this.dialog=he,this.notificator=Oe,this.apiRequest=it,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=fe.tw}ngOnInit(){this.loading=!0,this.selection=new m.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","hierarchy","recent","shortName","name"]:["id","recent","hierarchy","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyEnrichedVos().subscribe({next:$=>{this.vos=$,this.recentIds=(0,f.vL)("vos"),this.loading=!1},error:$=>{"PrivilegeException"===$.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError($)}})}applyFilter($){this.filterValue=$}onCreateVo(){const $=(0,f.kZ)();$.width="610px",$.data={theme:"vo-theme"},this.dialog.open(me,$).afterClosed().subscribe(De=>{De&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const $=(0,f.kZ)();$.width="500px",$.data={theme:"vo-theme",vos:[this.selection.selected[0].vo]},this.dialog.open(S.o,$).afterClosed().subscribe(De=>{De&&this.refreshTable()})}}return N.id="VoSelectPageComponent",N.\u0275fac=function($){return new($||N)(x.Y36(re.D),x.Y36(e.YF),x.Y36(A.x4),x.Y36(M.uw),x.Y36(A.V6),x.Y36(A.F5))},N.\u0275cmp=x.Xpm({type:N,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function($,ce){2&$&&x.ekj("router-component",ce.true)},decls:14,vars:11,consts:[[1,"container-fluid","ps-xl-5","pe-xl-5","vo-theme"],[1,"page-title","d-flex"],["svgIcon","perun-vo-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["class","me-2 action-button","data-cy","new-vo-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","me-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter"],["spinner",""],[1,"position-relative"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["data-cy","new-vo-button","color","accent","mat-flat-button","",1,"me-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"me-2",3,"disabled","click"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos"]],template:function($,ce){if(1&$&&(x.TgZ(0,"div",0),x._UZ(1,"perun-web-apps-back-button"),x.TgZ(2,"h1",1),x._UZ(3,"mat-icon",2),x._uU(4),x.ALo(5,"translate"),x.qZA(),x.TgZ(6,"perun-web-apps-refresh-button",3),x.NdJ("refresh",function(){return ce.refreshTable()}),x.qZA(),x.YNc(7,Le,3,3,"button",4),x.YNc(8,$e,3,4,"button",5),x.TgZ(9,"perun-web-apps-immediate-filter",6),x.NdJ("filter",function(he){return ce.applyFilter(he)}),x.qZA(),x.YNc(10,qe,1,0,"ng-template",null,7,x.W1O),x.TgZ(12,"div",8),x.YNc(13,Ze,1,6,"perun-web-apps-vos-list",9),x.qZA()()),2&$){const De=x.MAs(11);x.xp6(3),x.Q6J("ngStyle",x.DdM(10,Pe)),x.xp6(1),x.hij(" ",x.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),x.xp6(3),x.Q6J("ngIf",ce.createAuth),x.xp6(1),x.Q6J("ngIf",ce.deleteAuth),x.xp6(1),x.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),x.xp6(4),x.Q6J("perunWebAppsLoader",ce.loading)("perunWebAppsLoaderIndicator",De)}},dependencies:[v.O5,v.PC,V.Hw,I.lW,W.K,ee.Z,ie.t,xe.W,Ye.L,j.e,P.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),N})()},92013:(Xe,ae,p)=>{"use strict";var e=p(11481),f=p(94650),A=p(82761);let S=(()=>{class te{}return te.\u0275fac=function(O){return new(O||te)},te.\u0275cmp=f.Xpm({type:te,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(O,Y){}}),te})();var m=p(61744),M=p(80279),w=p(9244),x=p(21029),P=p(40034),F=p(77968),T=p(89383),B=p(7274),I=p(36895),q=p(24006),ue=p(97392),j=p(23267),Q=p(4859),be=p(56709),me=p(10266),fe=p(68530),re=p(87831),v=p(25788),V=p(62109),W=p(74010),ee=p(73358);function ie(te,k){1&te&&f._UZ(0,"perun-web-apps-loading-table")}const xe=function(){return["id","recent","shortName","name"]};function Ye(te,k){if(1&te&&f._UZ(0,"perun-web-apps-vos-list",9),2&te){const O=f.oxw(2);f.Q6J("pageSizeOptions",null)("displayedColumns",f.DdM(4,xe))("recentIds",O.recentIds)("vos",O.objects)}}function Le(te,k){if(1&te&&(f.TgZ(0,"span",7),f.YNc(1,Ye,1,5,"perun-web-apps-vos-list",8),f.qZA()),2&te){const O=f.oxw(),Y=f.MAs(10);f.xp6(1),f.Q6J("perunWebAppsLoader",O.loading)("perunWebAppsLoaderIndicator",Y)}}const $e=function(){return["id","recent","vo","name","description"]};function qe(te,k){if(1&te&&f._UZ(0,"perun-web-apps-groups-list",11),2&te){const O=f.oxw(2);f.Q6J("pageSizeOptions",null)("displayedColumns",f.DdM(4,$e))("groups",O.objects)("recentIds",O.recentIds)}}function Ze(te,k){if(1&te&&(f.TgZ(0,"span",7),f.YNc(1,qe,1,5,"perun-web-apps-groups-list",10),f.qZA()),2&te){const O=f.oxw(),Y=f.MAs(10);f.xp6(1),f.Q6J("perunWebAppsLoader",O.loading)("perunWebAppsLoaderIndicator",Y)}}const Pe=function(){return["id","recent","name","vo","facility"]};function se(te,k){if(1&te&&f._UZ(0,"perun-web-apps-resources-list",13),2&te){const O=f.oxw(2);f.Q6J("pageSizeOptions",null)("displayedColumns",f.DdM(5,Pe))("resources",O.objects)("recentIds",O.recentIds)("routingVo",!0)}}function N(te,k){if(1&te&&(f.TgZ(0,"span",7),f.YNc(1,se,1,6,"perun-web-apps-resources-list",12),f.qZA()),2&te){const O=f.oxw(),Y=f.MAs(10);f.xp6(1),f.Q6J("perunWebAppsLoader",O.loading)("perunWebAppsLoaderIndicator",Y)}}const U=function(){return["id","recent","name","description"]};function $(te,k){if(1&te&&f._UZ(0,"perun-web-apps-facilities-list",15),2&te){const O=f.oxw(2);f.Q6J("displayedColumns",f.DdM(4,U))("facilities",O.objects)("pageSizeOptions",null)("recentIds",O.recentIds)}}function ce(te,k){if(1&te&&(f.TgZ(0,"span",7),f.YNc(1,$,1,5,"perun-web-apps-facilities-list",14),f.qZA()),2&te){const O=f.oxw(),Y=f.MAs(10);f.xp6(1),f.Q6J("perunWebAppsLoader",O.loading)("perunWebAppsLoaderIndicator",Y)}}let De=(()=>{class te{constructor(O,Y,Ge){this.authzResolver=O,this.guiAuthResolver=Y,this.resourceService=Ge,this.objects=[],this.loading=!1,this.recentIds=[]}ngOnInit(){this.loading=!0,this.primaryObject=this.guiAuthResolver.getPrimaryObjectOfRole(this.roleName),this.svgIcon="perun-"+this.primaryObject.toLowerCase()+"-black",this.title="USER_DETAIL.DASHBOARD.CARD_TITLE_"+this.roleName,this.roleTooltipInfo="USER_DETAIL.DASHBOARD.ROLE_INFO_"+this.roleName,this.getObjects()}getObjects(){switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe(O=>{this.objects=O,this.recentIds=(0,w.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(O=>{this.objects=O,this.recentIds=(0,w.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(O=>{this.objects=O,this.recentIds=(0,w.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(O=>{this.objects=O.map(Y=>({facility:Y})),this.recentIds=(0,w.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(m.Ct),f.Y36(M.x4),f.Y36(m.xk))},te.\u0275cmp=f.Xpm({type:te,selectors:[["app-perun-web-apps-dashboard-card"]],inputs:{role:"role",roleName:"roleName"},decls:15,vars:11,consts:[[1,"card","p-3"],[1,"flex-column","card-title"],[1,"cover-image",3,"svgIcon"],["matTooltipPosition","above",3,"matTooltip"],[1,"dashboard-icon"],["spinner",""],["class","position-relative",4,"ngIf"],[1,"position-relative"],[3,"pageSizeOptions","displayedColumns","recentIds","vos",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"pageSizeOptions","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","displayedColumns","groups","recentIds",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"pageSizeOptions","displayedColumns","groups","recentIds"],[3,"pageSizeOptions","displayedColumns","resources","recentIds","routingVo",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"pageSizeOptions","displayedColumns","resources","recentIds","routingVo"],[3,"displayedColumns","facilities","pageSizeOptions","recentIds",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"displayedColumns","facilities","pageSizeOptions","recentIds"]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0)(1,"div",1),f._UZ(2,"mat-icon",2),f._uU(3),f.ALo(4,"translate"),f.TgZ(5,"span",3),f.ALo(6,"translate"),f.TgZ(7,"mat-icon",4),f._uU(8,"info_outline"),f.qZA()()(),f.YNc(9,ie,1,0,"ng-template",null,5,f.W1O),f.YNc(11,Le,2,2,"span",6),f.YNc(12,Ze,2,2,"span",6),f.YNc(13,N,2,2,"span",6),f.YNc(14,ce,2,2,"span",6),f.qZA()),2&O&&(f.xp6(2),f.Q6J("svgIcon",Y.svgIcon),f.xp6(1),f.hij(" ",f.lcZ(4,7,Y.title)," "),f.xp6(2),f.s9C("matTooltip",f.lcZ(6,9,Y.roleTooltipInfo)),f.xp6(6),f.Q6J("ngIf","Vo"===Y.primaryObject),f.xp6(1),f.Q6J("ngIf","Group"===Y.primaryObject),f.xp6(1),f.Q6J("ngIf","Resource"===Y.primaryObject),f.xp6(1),f.Q6J("ngIf","Facility"===Y.primaryObject))},dependencies:[I.O5,ue.Hw,me.gM,fe.K,re.Z,v.W,V.C,W.X,ee.e,T.X$],styles:[".dashboard-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}.card-title[_ngcontent-%COMP%]{font-size:1.4rem;flex-wrap:wrap}.cover-image[_ngcontent-%COMP%]{transform:scale(1.8);margin-left:.9rem;margin-right:.7rem}"]}),te})();var he=p(51572),Oe=p(3238),it=p(98380),Ce=p(34198),ot=p(55660);function Ue(te,k){1&te&&f._UZ(0,"mat-spinner",3)}function ft(te,k){1&te&&(f.TgZ(0,"perun-web-apps-alert",4),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&te&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}const Z=function(te){return[te]};function lt(te,k){if(1&te&&(f.TgZ(0,"div",7)(1,"a",8),f.NdJ("auxclick",function(Y){return Y.preventDefault()}),f.TgZ(2,"span",9),f._uU(3),f.qZA(),f._UZ(4,"mat-icon",10),f.TgZ(5,"p",11),f._uU(6),f.qZA()()()),2&te){const O=k.$implicit;f.xp6(1),f.Gre("",O.style," item-itself"),f.s9C("matTooltip",O.tooltip),f.Q6J("perunWebAppsMiddleClickRouterLink",f.VKq(9,Z,O.url))("routerLink",O.url),f.xp6(2),f.Oqu(O.type),f.xp6(1),f.Q6J("svgIcon",O.cssIcon),f.xp6(2),f.Oqu(O.label)}}function Ae(te,k){if(1&te&&(f.TgZ(0,"div",5),f.YNc(1,lt,7,11,"div",6),f.qZA()),2&te){const O=f.oxw();f.xp6(1),f.Q6J("ngForOf",O.items)}}let Ke=(()=>{class te{constructor(O,Y,Ge,ht){this.vosManager=O,this.groupsManager=Y,this.authResolver=Ge,this.facilitiesManager=ht,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,w.j4)("recent");for(const O of this.recentItems)switch(O.type){case"Vo":this.vosIds.push(O.id);break;case"Group":this.groupsIds.push(O.id);break;case"Facility":this.facilitiesIds.push(O.id)}0===this.vosIds.length&&this.vosIds.push(-1),0===this.groupsIds.length&&this.groupsIds.push(-1),0===this.facilitiesIds.length&&this.facilitiesIds.push(-1),this.getVos()}getVos(){this.authResolver.isAuthorized("getVosByIds_List_policy",[])?this.vosManager.getVosByIds(this.vosIds).subscribe(O=>{this.vos=O,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(O=>{this.groups=O,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(O=>{this.facilities=O,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const O of this.recentItems)switch(O.type){case"Vo":{const Y=this.vos.filter(Ge=>Ge.id===O.id)[0];Y&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${Y.id}`,label:Y.name,tooltip:Y.name,style:"vo-btn",type:"Organization"});break}case"Group":{const Y=this.groups.filter(Ge=>Ge.id===O.id)[0];Y&&this.items.push({cssIcon:"perun-group",url:`/organizations/${Y.voId}/groups/${Y.id}`,label:Y.shortName,tooltip:`${O.voName} : ${Y.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const Y=this.facilities.filter(Ge=>Ge.id===O.id)[0];Y&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${Y.id}`,label:Y.name,tooltip:Y.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(m.YF),f.Y36(m.ff),f.Y36(M.x4),f.Y36(m.IQ))},te.\u0275cmp=f.Xpm({type:te,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:3,vars:3,consts:[["class","ms-auto me-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],[1,"ms-auto","me-auto"],["alert_type","info"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],[3,"perunWebAppsMiddleClickRouterLink","routerLink","matTooltip","auxclick"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(O,Y){1&O&&(f.YNc(0,Ue,1,0,"mat-spinner",0),f.YNc(1,ft,3,3,"perun-web-apps-alert",1),f.YNc(2,Ae,2,1,"div",2)),2&O&&(f.Q6J("ngIf",Y.loading),f.xp6(1),f.Q6J("ngIf",0===Y.items.length&&!Y.loading),f.xp6(1),f.Q6J("ngIf",Y.items.length>0))},dependencies:[I.sg,I.O5,A.rH,ue.Hw,he.Ou,me.gM,Oe.wG,it.w,Ce.Y,ot.Q,T.X$],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px;align-self:center}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;font-size:1.25rem;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word;text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}.item-type[_ngcontent-%COMP%]{font-size:.75rem}.truncate[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}"]}),te})();var pe=p(31359);function Ie(te,k){if(1&te){const O=f.EpF();f.TgZ(0,"div")(1,"mat-checkbox",8),f.NdJ("change",function(Ge){const Ht=f.CHM(O).$implicit,Nt=f.oxw();return f.KtG(Ge?Nt.changeRoleView(Ht):null)}),f._uU(2),f.ALo(3,"translate"),f.qZA()()}if(2&te){const O=k.$implicit,Y=f.oxw();f.xp6(1),f.Q6J("checked",Y.isRoleShowed(O)),f.xp6(1),f.Oqu(f.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+O))}}function Ne(te,k){if(1&te){const O=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){f.CHM(O);const Ge=f.oxw(2);return f.KtG(Ge.rightSettingOpened=!0)}),f.TgZ(1,"mat-icon"),f._uU(2,"settings"),f.qZA()()}}function we(te,k){1&te&&(f.TgZ(0,"span"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&te&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function Be(te,k){1&te&&(f.TgZ(0,"span"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&te&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function r(te,k){if(1&te){const O=f.EpF();f.TgZ(0,"button",23),f.NdJ("click",function(){f.CHM(O);const Ge=f.oxw(3);return f.KtG(Ge.goToUserProfile())}),f.TgZ(1,"mat-icon",24),f._uU(2,"exit_to_app"),f.qZA(),f._uU(3),f.ALo(4,"translate"),f.qZA()}if(2&te){const O=f.oxw(3);f.xp6(3),f.AsE("",f.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",O.userProfileName," ")}}const u=function(){return["/myProfile"]};function _(te,k){if(1&te&&(f.TgZ(0,"div")(1,"div",16)(2,"div",17),f._uU(3),f.ALo(4,"translate"),f.qZA(),f.TgZ(5,"div",18),f.YNc(6,we,3,3,"span",14),f.YNc(7,Be,3,3,"span",14),f.qZA(),f.TgZ(8,"div",19)(9,"button",20),f._UZ(10,"mat-icon",21),f._uU(11),f.ALo(12,"translate"),f.qZA(),f.YNc(13,r,5,4,"button",22),f.qZA()()()),2&te){const O=f.oxw(2);f.xp6(3),f.hij(" ",f.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),f.xp6(3),f.Q6J("ngIf",!O.userProfileUrl),f.xp6(1),f.Q6J("ngIf",O.userProfileUrl),f.xp6(2),f.Q6J("routerLink",f.DdM(10,u)),f.xp6(2),f.hij(" ",f.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),f.xp6(2),f.Q6J("ngIf",O.userProfileUrl)}}function C(te,k){1&te&&(f.TgZ(0,"span")(1,"div",3),f._uU(2),f.ALo(3,"translate"),f.qZA(),f._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),f.qZA()),2&te&&(f.xp6(2),f.hij(" ",f.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function h(te,k){1&te&&(f.TgZ(0,"div",27),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&te&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function o(te,k){if(1&te&&f._UZ(0,"app-perun-web-apps-dashboard-card",30),2&te){const O=f.oxw().$implicit,Y=f.oxw(3);f.Q6J("roleName",O)("role",Y.roles[O])}}function n(te,k){if(1&te&&(f.TgZ(0,"div",28),f.YNc(1,o,1,2,"app-perun-web-apps-dashboard-card",29),f.qZA()),2&te){const O=k.$implicit,Y=f.oxw(3);f.xp6(1),f.Q6J("ngIf",Y.isRoleShowed(O))}}function t(te,k){if(1&te&&(f.TgZ(0,"div"),f.YNc(1,C,5,3,"span",14),f.YNc(2,h,3,3,"div",25),f.TgZ(3,"div"),f.YNc(4,n,2,1,"div",26),f.qZA()()),2&te){const O=f.oxw(2);f.xp6(1),f.Q6J("ngIf",O.recentlyViewedShow),f.xp6(1),f.Q6J("ngIf",O.rolesToHide.toString()!==O.roleNames.toString()),f.xp6(2),f.Q6J("ngForOf",O.roleNames)}}function i(te,k){if(1&te&&(f.TgZ(0,"div",9)(1,"h1",10),f._UZ(2,"mat-icon",11),f.TgZ(3,"span",12),f._uU(4),f.ALo(5,"translate"),f.ALo(6,"userFullName"),f.qZA(),f.YNc(7,Ne,3,0,"button",13),f.qZA(),f.YNc(8,_,14,11,"div",14),f.YNc(9,t,5,3,"div",14),f.qZA()),2&te){const O=f.oxw();f.xp6(4),f.AsE("",f.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",f.lcZ(6,7,O.user),""),f.xp6(3),f.Q6J("ngIf",!O.isOnlySelfRole),f.xp6(1),f.Q6J("ngIf",O.isOnlySelfRole),f.xp6(1),f.Q6J("ngIf",!O.isOnlySelfRole)}}let a=(()=>{class te{constructor(O,Y,Ge,ht,Ht,Nt,Qt,oi,Ei,yi){this.userManager=O,this.storeService=Y,this.sideMenuService=Ge,this.route=ht,this.router=Ht,this.notificator=Nt,this.translateService=Qt,this.dialog=oi,this.apiRequestConfiguration=Ei,this.otherApplicationService=yi,this.roles={},this.userProfileUrl="",this.isOnlySelfRole=!1,this.rightSettingOpened=!1,this.recentlyViewedShow=!0,this.rolesToHide=[],this.allowedRoles=["VOADMIN","GROUPADMIN","FACILITYADMIN","SPONSOR","RESOURCEADMIN","TOPGROUPCREATOR","VOOBSERVER","GROUPOBSERVER","GROUPMEMBERSHIPMANAGER","FACILITYOBSERVER","RESOURCEOBSERVER"],Qt.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(Xi=>this.mailSuccessMessage=Xi)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const O=Object.keys(this.roles);this.isOnlySelfRole=O.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(Y=>O.includes(Y)),this.getDashboardSettings()}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}changeRoleView(O){if(this.isRoleShowed(O)){const Y=[];for(const Ge of this.roleNames)this.isRoleShowed(Ge)||Y.push(Ge),Ge===O&&Y.push(Ge);this.rolesToHide=Y}else this.rolesToHide=this.rolesToHide.filter(Y=>Y!==O);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(O){return!this.rolesToHide.includes(O)}validatePreferredMailChange(){const O=this.route.snapshot.queryParamMap,Y=O.get("token"),Ge=O.get("u");Y&&Ge&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(Y,Number.parseInt(Ge,10)).subscribe({next:()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0,queryParamsHandling:"preserve"})},error:()=>{const ht=(0,w.kZ)();ht.width="600px",this.dialog.open(x.qD,ht).afterClosed().subscribe(()=>{this.getDashboardSettings()})}}))}getDashboardSettings(){const O=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===O||O;const Y=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===Y?[]:Y}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication(P.p.Profile),this.userProfileName=this.storeService.getProperty("profile_label_en")}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(m.Fv),f.Y36(M.d6),f.Y36(F.D),f.Y36(A.gz),f.Y36(A.F0),f.Y36(M.V6),f.Y36(T.sK),f.Y36(B.uw),f.Y36(M.F5),f.Y36(M.jq))},te.\u0275cmp=f.Xpm({type:te,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(O,Y){2&O&&f.ekj("router-component",Y.true)},decls:16,vars:13,consts:[["hasBackdrop","true",1,"dashboard"],["mode","over","position","end",3,"opened","openedChange"],[1,"m-4","user-theme"],[1,"page-subtitle"],[3,"ngModel","ngModelChange","change"],[1,"text-bigger","mt-1","mb-1"],[4,"ngFor","ngForOf"],["class","container-fluid ps-xl-5 pe-xl-5 user-theme",4,"ngIf"],[3,"checked","change"],[1,"container-fluid","ps-xl-5","pe-xl-5","user-theme"],[1,"page-title","d-flex"],["svgIcon","perun-home-white",1,"home-image","perun-icon"],["data-cy","dashboard-welcome",1,"pt-1"],["class","ms-auto text-bigger","mat-stroked-button","",3,"click",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"ms-auto","text-bigger",3,"click"],[1,"card","m-3","p-5"],[1,"text-align"],[1,"text-align","pt-3"],[1,"mx-auto","pt-3"],["queryParamsHandling","merge","mat-stroked-button","",1,"text-bigger",3,"routerLink"],["svgIcon","perun-user-dark",1,"me-1","user-icon","perun-icon"],["class","text-bigger ms-2 mt-2","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"text-bigger","ms-2","mt-2",3,"click"],[1,"me-1"],["class","page-subtitle mt-4",4,"ngIf"],["class","mb-3",4,"ngFor","ngForOf"],[1,"page-subtitle","mt-4"],[1,"mb-3"],[3,"roleName","role",4,"ngIf"],[3,"roleName","role"]],template:function(O,Y){1&O&&(f.TgZ(0,"mat-sidenav-container",0)(1,"mat-sidenav",1),f.NdJ("openedChange",function(ht){return Y.rightSettingOpened=ht}),f.TgZ(2,"div",2)(3,"div",3),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div")(7,"mat-checkbox",4),f.NdJ("ngModelChange",function(ht){return Y.recentlyViewedShow=ht})("change",function(ht){return ht?Y.recentlyViewedChanged():null}),f._uU(8),f.ALo(9,"translate"),f.qZA()(),f.TgZ(10,"div",5),f._uU(11),f.ALo(12,"translate"),f.qZA(),f.YNc(13,Ie,4,4,"div",6),f.qZA()(),f.TgZ(14,"mat-sidenav-content"),f.YNc(15,i,10,9,"div",7),f.qZA()()),2&O&&(f.xp6(1),f.Q6J("opened",Y.rightSettingOpened),f.xp6(3),f.Oqu(f.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),f.xp6(3),f.Q6J("ngModel",Y.recentlyViewedShow),f.xp6(1),f.Oqu(f.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),f.xp6(3),f.Oqu(f.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),f.xp6(2),f.Q6J("ngForOf",Y.roleNames),f.xp6(2),f.Q6J("ngIf",void 0!==Y.user))},dependencies:[I.sg,I.O5,A.rH,q.JJ,q.On,ue.Hw,j.JX,j.TM,j.Rh,Q.lW,be.oG,De,Ke,T.X$,pe.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;-moz-column-gap:1rem;column-gap:1rem;margin:0}.dashboard-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0 1rem 1rem 0;display:inline-block;min-width:300px;width:100%}.home-image[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.7rem;margin-left:.6rem}.text-align[_ngcontent-%COMP%]{text-align:center;font-size:1.25rem}.text-bigger[_ngcontent-%COMP%]{font-size:1.1rem}.user-icon[_ngcontent-%COMP%]{vertical-align:top}.dashboard[_ngcontent-%COMP%]{position:relative;min-height:calc(100vh - 234px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),te})();var l=p(4235);let d=(()=>{class te{}return te.\u0275fac=function(O){return new(O||te)},te.\u0275cmp=f.Xpm({type:te,selectors:[["app-perun-web-apps-not-found-page"]],decls:5,vars:3,consts:[[1,"container-fluid","ps-xl-5","pe-xl-5"],[1,"page-title"]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0),f._UZ(1,"perun-web-apps-back-button"),f.TgZ(2,"h1",1),f._uU(3),f.ALo(4,"translate"),f.qZA()()),2&O&&(f.xp6(3),f.Oqu(f.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},dependencies:[l.W,T.X$]}),te})();var c=p(37433),s=p(59549),E=p(284),H=p(63189),ne=p(46860);let ve=(()=>{class te{}return te.\u0275fac=function(O){return new(O||te)},te.\u0275mod=f.oAB({type:te}),te.\u0275inj=f.cJS({imports:[I.ez,Q.ot,ue.Ps,A.Bz,c.ez,T.aw,s.lN,q.UX,E.c,H.r,ne.A]}),te})(),We=(()=>{class te{constructor(O,Y){this.auth=O,this.router=Y}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(M.e8),f.Y36(A.F0))},te.\u0275cmp=f.Xpm({type:te,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ms-auto","me-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"button",4),f.NdJ("click",function(){return Y.startAuth()}),f._uU(7),f.ALo(8,"translate"),f.TgZ(9,"mat-icon"),f._uU(10," login "),f.qZA()()()()()),2&O&&(f.xp6(4),f.hij(" ",f.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),f.xp6(3),f.hij(" ",f.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Q.lW,ue.Hw,T.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),te})();var Mt=p(41619);function pt(te,k){if(1&te&&(f.TgZ(0,"div",8),f._UZ(1,"div",9),f.qZA()),2&te){const O=f.oxw();f.xp6(1),f.Q6J("innerHTML",O.logo,f.oJD)}}function _t(te,k){if(1&te&&(f.TgZ(0,"div",10),f._UZ(1,"div",11)(2,"mat-icon",12),f.qZA()),2&te){const O=f.oxw();f.xp6(1),f.Q6J("innerHTML",O.logo,f.oJD)}}const ye=function(te){return{color:te}};function Ee(te,k){if(1&te&&(f.TgZ(0,"p",13),f._uU(1),f.qZA()),2&te){const O=f.oxw();f.Q6J("ngStyle",f.VKq(2,ye,O.textColor)),f.xp6(1),f.hij(" ",O.headerTitle," ")}}const oe=function(te,k){return{background:te,color:k}},_e=function(te,k){return{"min-height":te,"background-color":k}};let Te=(()=>{class te{constructor(O,Y,Ge,ht){this.storeService=O,this.sanitizer=Y,this.preferredLangService=Ge,this.translateService=ht,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const O=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(O)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(M.d6),f.Y36(e.H7),f.Y36(M.BN),f.Y36(T.sK))},te.\u0275cmp=f.Xpm({type:te,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ms-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ms-2","me-2"],[1,"ms-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0),f.YNc(1,pt,2,1,"div",1),f.YNc(2,_t,3,1,"div",2),f.YNc(3,Ee,2,4,"p",3),f.qZA(),f.TgZ(4,"div",4)(5,"div",5)(6,"div",6),f._UZ(7,"router-outlet"),f.qZA(),f.TgZ(8,"div",7),f._UZ(9,"perun-web-apps-footer"),f.qZA()()()),2&O&&(f.Q6J("ngStyle",f.WLB(5,oe,Y.headerBackgroundColor,Y.headerTextColor)),f.xp6(1),f.Q6J("ngIf","admin-gui"===Y.application||"user-profile"===Y.application||"consolidator"===Y.application),f.xp6(1),f.Q6J("ngIf","publications"===Y.application),f.xp6(1),f.Q6J("ngIf",!!Y.headerTitle),f.xp6(2),f.Q6J("ngStyle",f.WLB(8,_e,Y.getContentInnerMinHeight(),Y.contentBackgroundColor)))},dependencies:[I.O5,I.PC,ue.Hw,A.lC,Mt.$],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),te})();function ut(te,k){1&te&&(f.TgZ(0,"perun-web-apps-alert",9),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&te&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const Bt=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"api-callback",component:S},{path:"login",component:We},{path:"service-access",component:(()=>{class te{constructor(O,Y,Ge){this.authzService=O,this.auth=Y,this.router=Ge,this.usernameCtrl=new q.NI(null,[q.kI.required]),this.passwordCtrl=new q.NI(null,[q.kI.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:O=>{sessionStorage.setItem("baPrincipal",JSON.stringify(O)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(m.Ct),f.Y36(M.e8),f.Y36(A.F0))},te.\u0275cmp=f.Xpm({type:te,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ms-auto","me-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline","subscriptSizing","dynamic"],["matInput","","required","",3,"formControl","keyup.enter"],["appearance","outline","subscriptSizing","dynamic",1,"my-3"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.YNc(6,ut,3,3,"perun-web-apps-alert",3),f.TgZ(7,"mat-form-field",4)(8,"mat-label"),f._uU(9),f.ALo(10,"translate"),f.qZA(),f.TgZ(11,"input",5),f.NdJ("keyup.enter",function(){return Y.startAuth()}),f.qZA(),f.TgZ(12,"mat-error"),f._uU(13),f.ALo(14,"translate"),f.qZA()(),f.TgZ(15,"mat-form-field",6)(16,"mat-label"),f._uU(17),f.ALo(18,"translate"),f.qZA(),f.TgZ(19,"input",7),f.NdJ("keyup.enter",function(){return Y.startAuth()}),f.qZA(),f.TgZ(20,"mat-error"),f._uU(21),f.ALo(22,"translate"),f.qZA()(),f.TgZ(23,"button",8),f.NdJ("click",function(){return Y.startAuth()}),f._uU(24),f.ALo(25,"translate"),f.TgZ(26,"mat-icon"),f._uU(27," login "),f.qZA()()()()()),2&O&&(f.xp6(4),f.Oqu(f.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),f.xp6(2),f.Q6J("ngIf",Y.wrongUsernameOrPassword),f.xp6(3),f.Oqu(f.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),f.xp6(2),f.Q6J("formControl",Y.usernameCtrl),f.xp6(2),f.hij(" ",f.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),f.xp6(4),f.Oqu(f.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),f.xp6(2),f.Q6J("formControl",Y.passwordCtrl)("type","password"),f.xp6(2),f.hij(" ",f.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),f.xp6(2),f.Q6J("disabled",Y.usernameCtrl.invalid||Y.passwordCtrl.invalid),f.xp6(1),f.hij(" ",f.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[I.O5,Q.lW,ue.Hw,s.KE,s.hX,s.TO,q.Fj,q.JJ,q.Q7,q.oH,E.Nt,it.w,T.X$],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-mdc-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),te})()},{path:"organizations",loadChildren:()=>Promise.all([p.e(283),p.e(109),p.e(907),p.e(254)]).then(p.bind(p,74254)).then(te=>te.VosModule)},{path:"admin",loadChildren:()=>Promise.all([p.e(283),p.e(338),p.e(109),p.e(275)]).then(p.bind(p,52275)).then(te=>te.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([p.e(283),p.e(338),p.e(109),p.e(275),p.e(907),p.e(775)]).then(p.bind(p,27775)).then(te=>te.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([p.e(283),p.e(338)]).then(p.bind(p,38338)).then(te=>te.UsersModule)},{path:"home",component:a},{path:"notAuthorized",component:c.y9},{path:"**",component:d}];let Rt=(()=>{class te{}return te.\u0275fac=function(O){return new(O||te)},te.\u0275mod=f.oAB({type:te}),te.\u0275inj=f.cJS({imports:[A.Bz.forRoot(Bt,{preloadingStrategy:A.GZ,scrollPositionRestoration:"enabled"}),A.Bz]}),te})();var Ot=p(72077),si=p(14264);class hi{constructor(k,O="/assets/i18n/",Y=".json"){this.http=k,this.prefix=O,this.suffix=Y}getTranslation(k){return this.http.get(`${this.prefix}${k}${this.suffix}`)}}var kt=p(80529),xt=p(37340);function Je(te){return new f.vHH(3e3,!1)}function Bn(){return typeof window<"u"&&typeof window.document<"u"}function xn(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function un(te){switch(te.length){case 0:return new xt.ZN;case 1:return te[0];default:return new xt.ZE(te)}}function er(te,k,O,Y,Ge=new Map,ht=new Map){const Ht=[],Nt=[];let Qt=-1,oi=null;if(Y.forEach(Ei=>{const yi=Ei.get("offset"),Xi=yi==Qt,en=Xi&&oi||new Map;Ei.forEach((Hi,Gi)=>{let fn=Gi,Tn=Hi;if("offset"!==Gi)switch(fn=k.normalizePropertyName(fn,Ht),Tn){case xt.k1:Tn=Ge.get(Gi);break;case xt.l3:Tn=ht.get(Gi);break;default:Tn=k.normalizeStyleValue(Gi,fn,Tn,Ht)}en.set(fn,Tn)}),Xi||Nt.push(en),oi=en,Qt=yi}),Ht.length)throw function ui(te){return new f.vHH(3502,!1)}();return Nt}function ln(te,k,O,Y){switch(k){case"start":te.onStart(()=>Y(O&&tn(O,"start",te)));break;case"done":te.onDone(()=>Y(O&&tn(O,"done",te)));break;case"destroy":te.onDestroy(()=>Y(O&&tn(O,"destroy",te)))}}function tn(te,k,O){const ht=Br(te.element,te.triggerName,te.fromState,te.toState,k||te.phaseName,O.totalTime??te.totalTime,!!O.disabled),Ht=te._data;return null!=Ht&&(ht._data=Ht),ht}function Br(te,k,O,Y,Ge="",ht=0,Ht){return{element:te,triggerName:k,fromState:O,toState:Y,phaseName:Ge,totalTime:ht,disabled:!!Ht}}function zi(te,k,O){let Y=te.get(k);return Y||te.set(k,Y=O),Y}function Yn(te){const k=te.indexOf(":");return[te.substring(1,k),te.slice(k+1)]}let tr=(te,k)=>!1,Nn=(te,k,O)=>[],On=null;function Dt(te){const k=te.parentNode||te.host;return k===On?null:k}(xn()||typeof Element<"u")&&(Bn()?(On=(()=>document.documentElement)(),tr=(te,k)=>{for(;k;){if(k===te)return!0;k=Dt(k)}return!1}):tr=(te,k)=>te.contains(k),Nn=(te,k,O)=>{if(O)return Array.from(te.querySelectorAll(k));const Y=te.querySelector(k);return Y?[Y]:[]});let Zt=null,Jt=!1;const nn=tr,Mn=Nn;let Sn=(()=>{class te{validateStyleProperty(O){return function pi(te){Zt||(Zt=function Oi(){return typeof document<"u"?document.body:null}()||{},Jt=!!Zt.style&&"WebkitAppearance"in Zt.style);let k=!0;return Zt.style&&!function ct(te){return"ebkit"==te.substring(1,6)}(te)&&(k=te in Zt.style,!k&&Jt&&(k="Webkit"+te.charAt(0).toUpperCase()+te.slice(1)in Zt.style)),k}(O)}matchesElement(O,Y){return!1}containsElement(O,Y){return nn(O,Y)}getParentElement(O){return Dt(O)}query(O,Y,Ge){return Mn(O,Y,Ge)}computeStyle(O,Y,Ge){return Ge||""}animate(O,Y,Ge,ht,Ht,Nt=[],Qt){return new xt.ZN(Ge,ht)}}return te.\u0275fac=function(O){return new(O||te)},te.\u0275prov=f.Yz7({token:te,factory:te.\u0275fac}),te})(),vn=(()=>{class te{}return te.NOOP=new Sn,te})();const cr=1e3,dt="ng-enter",Wt="ng-leave",je="ng-trigger",at=".ng-trigger",It="ng-animating",Xt=".ng-animating";function gi(te){if("number"==typeof te)return te;const k=te.match(/^(-?[\.\d]+)(m?s)/);return!k||k.length<2?0:Zi(parseFloat(k[1]),k[2])}function Zi(te,k){return"s"===k?te*cr:te}function Ui(te,k,O){return te.hasOwnProperty("duration")?te:function qi(te,k,O){let Ge,ht=0,Ht="";if("string"==typeof te){const Nt=te.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Nt)return k.push(Je()),{duration:0,delay:0,easing:""};Ge=Zi(parseFloat(Nt[1]),Nt[2]);const Qt=Nt[3];null!=Qt&&(ht=Zi(parseFloat(Qt),Nt[4]));const oi=Nt[5];oi&&(Ht=oi)}else Ge=te;if(!O){let Nt=!1,Qt=k.length;Ge<0&&(k.push(function le(){return new f.vHH(3100,!1)}()),Nt=!0),ht<0&&(k.push(function tt(){return new f.vHH(3101,!1)}()),Nt=!0),Nt&&k.splice(Qt,0,Je())}return{duration:Ge,delay:ht,easing:Ht}}(te,k,O)}function Vn(te,k={}){return Object.keys(te).forEach(O=>{k[O]=te[O]}),k}function bn(te){const k=new Map;return Object.keys(te).forEach(O=>{k.set(O,te[O])}),k}function ir(te,k=new Map,O){if(O)for(let[Y,Ge]of O)k.set(Y,Ge);for(let[Y,Ge]of te)k.set(Y,Ge);return k}function Qr(te,k,O){return O?k+":"+O+";":""}function la(te){let k="";for(let O=0;O{const ht=kr(Ge);O&&!O.has(Ge)&&O.set(Ge,te.style[ht]),te.style[ht]=Y}),xn()&&la(te))}function $r(te,k){te.style&&(k.forEach((O,Y)=>{const Ge=kr(Y);te.style[Ge]=""}),xn()&&la(te))}function Rr(te){return Array.isArray(te)?1==te.length?te[0]:(0,xt.vP)(te):te}const ea=new RegExp("{{\\s*(.+?)\\s*}}","g");function ca(te){let k=[];if("string"==typeof te){let O;for(;O=ea.exec(te);)k.push(O[1]);ea.lastIndex=0}return k}function ta(te,k,O){const Y=te.toString(),Ge=Y.replace(ea,(ht,Ht)=>{let Nt=k[Ht];return null==Nt&&(O.push(function Ft(te){return new f.vHH(3003,!1)}()),Nt=""),Nt.toString()});return Ge==Y?te:Ge}function Dn(te){const k=[];let O=te.next();for(;!O.done;)k.push(O.value),O=te.next();return k}const qn=/-+([a-z0-9])/g;function kr(te){return te.replace(qn,(...k)=>k[1].toUpperCase())}function Cn(te){return te.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function hn(te,k,O){switch(k.type){case 7:return te.visitTrigger(k,O);case 0:return te.visitState(k,O);case 1:return te.visitTransition(k,O);case 2:return te.visitSequence(k,O);case 3:return te.visitGroup(k,O);case 4:return te.visitAnimate(k,O);case 5:return te.visitKeyframes(k,O);case 6:return te.visitStyle(k,O);case 8:return te.visitReference(k,O);case 9:return te.visitAnimateChild(k,O);case 10:return te.visitAnimateRef(k,O);case 11:return te.visitQuery(k,O);case 12:return te.visitStagger(k,O);default:throw function wt(te){return new f.vHH(3004,!1)}()}}function wa(te,k){return window.getComputedStyle(te)[k]}const wr="*";function Oa(te,k){const O=[];return"string"==typeof te?te.split(/\s*,\s*/).forEach(Y=>function Fi(te,k,O){if(":"==te[0]){const Qt=function Qa(te,k){switch(te){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(O,Y)=>parseFloat(Y)>parseFloat(O);case":decrement":return(O,Y)=>parseFloat(Y) *"}}(te,O);if("function"==typeof Qt)return void k.push(Qt);te=Qt}const Y=te.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Y||Y.length<4)return O.push(function Gt(te){return new f.vHH(3015,!1)}()),k;const Ge=Y[1],ht=Y[2],Ht=Y[3];k.push(Ve(Ge,Ht));"<"==ht[0]&&!(Ge==wr&&Ht==wr)&&k.push(Ve(Ht,Ge))}(Y,O,k)):O.push(te),O}const Qe=new Set(["true","1"]),ze=new Set(["false","0"]);function Ve(te,k){const O=Qe.has(te)||ze.has(te),Y=Qe.has(k)||ze.has(k);return(Ge,ht)=>{let Ht=te==wr||te==Ge,Nt=k==wr||k==ht;return!Ht&&O&&"boolean"==typeof Ge&&(Ht=Ge?Qe.has(te):ze.has(te)),!Nt&&Y&&"boolean"==typeof ht&&(Nt=ht?Qe.has(k):ze.has(k)),Ht&&Nt}}const ei=new RegExp("s*:selfs*,?","g");function _i(te,k,O,Y){return new li(te).build(k,O,Y)}class li{constructor(k){this._driver=k}build(k,O,Y){const Ge=new ko(O);return this._resetContextStyleTimingState(Ge),hn(this,Rr(k),Ge)}_resetContextStyleTimingState(k){k.currentQuerySelector="",k.collectedStyles=new Map,k.collectedStyles.set("",new Map),k.currentTime=0}visitTrigger(k,O){let Y=O.queryCount=0,Ge=O.depCount=0;const ht=[],Ht=[];return"@"==k.name.charAt(0)&&O.errors.push(function ii(){return new f.vHH(3006,!1)}()),k.definitions.forEach(Nt=>{if(this._resetContextStyleTimingState(O),0==Nt.type){const Qt=Nt,oi=Qt.name;oi.toString().split(/\s*,\s*/).forEach(Ei=>{Qt.name=Ei,ht.push(this.visitState(Qt,O))}),Qt.name=oi}else if(1==Nt.type){const Qt=this.visitTransition(Nt,O);Y+=Qt.queryCount,Ge+=Qt.depCount,Ht.push(Qt)}else O.errors.push(function xi(){return new f.vHH(3007,!1)}())}),{type:7,name:k.name,states:ht,transitions:Ht,queryCount:Y,depCount:Ge,options:null}}visitState(k,O){const Y=this.visitStyle(k.styles,O),Ge=k.options&&k.options.params||null;if(Y.containsDynamicStyles){const ht=new Set,Ht=Ge||{};Y.styles.forEach(Nt=>{Nt instanceof Map&&Nt.forEach(Qt=>{ca(Qt).forEach(oi=>{Ht.hasOwnProperty(oi)||ht.add(oi)})})}),ht.size&&(Dn(ht.values()),O.errors.push(function mt(te,k){return new f.vHH(3008,!1)}()))}return{type:0,name:k.name,style:Y,options:Ge?{params:Ge}:null}}visitTransition(k,O){O.queryCount=0,O.depCount=0;const Y=hn(this,Rr(k.animation),O);return{type:1,matchers:Oa(k.expr,O.errors),animation:Y,queryCount:O.queryCount,depCount:O.depCount,options:Ir(k.options)}}visitSequence(k,O){return{type:2,steps:k.steps.map(Y=>hn(this,Y,O)),options:Ir(k.options)}}visitGroup(k,O){const Y=O.currentTime;let Ge=0;const ht=k.steps.map(Ht=>{O.currentTime=Y;const Nt=hn(this,Ht,O);return Ge=Math.max(Ge,O.currentTime),Nt});return O.currentTime=Ge,{type:3,steps:ht,options:Ir(k.options)}}visitAnimate(k,O){const Y=function Ao(te,k){if(te.hasOwnProperty("duration"))return te;if("number"==typeof te)return Er(Ui(te,k).duration,0,"");const O=te;if(O.split(/\s+/).some(ht=>"{"==ht.charAt(0)&&"{"==ht.charAt(1))){const ht=Er(0,0,"");return ht.dynamic=!0,ht.strValue=O,ht}const Ge=Ui(O,k);return Er(Ge.duration,Ge.delay,Ge.easing)}(k.timings,O.errors);O.currentAnimateTimings=Y;let Ge,ht=k.styles?k.styles:(0,xt.oB)({});if(5==ht.type)Ge=this.visitKeyframes(ht,O);else{let Ht=k.styles,Nt=!1;if(!Ht){Nt=!0;const oi={};Y.easing&&(oi.easing=Y.easing),Ht=(0,xt.oB)(oi)}O.currentTime+=Y.duration+Y.delay;const Qt=this.visitStyle(Ht,O);Qt.isEmptyStep=Nt,Ge=Qt}return O.currentAnimateTimings=null,{type:4,timings:Y,style:Ge,options:null}}visitStyle(k,O){const Y=this._makeStyleAst(k,O);return this._validateStyleAst(Y,O),Y}_makeStyleAst(k,O){const Y=[],Ge=Array.isArray(k.styles)?k.styles:[k.styles];for(let Nt of Ge)"string"==typeof Nt?Nt===xt.l3?Y.push(Nt):O.errors.push(new f.vHH(3002,!1)):Y.push(bn(Nt));let ht=!1,Ht=null;return Y.forEach(Nt=>{if(Nt instanceof Map&&(Nt.has("easing")&&(Ht=Nt.get("easing"),Nt.delete("easing")),!ht))for(let Qt of Nt.values())if(Qt.toString().indexOf("{{")>=0){ht=!0;break}}),{type:6,styles:Y,easing:Ht,offset:k.offset,containsDynamicStyles:ht,options:null}}_validateStyleAst(k,O){const Y=O.currentAnimateTimings;let Ge=O.currentTime,ht=O.currentTime;Y&&ht>0&&(ht-=Y.duration+Y.delay),k.styles.forEach(Ht=>{"string"!=typeof Ht&&Ht.forEach((Nt,Qt)=>{const oi=O.collectedStyles.get(O.currentQuerySelector),Ei=oi.get(Qt);let yi=!0;Ei&&(ht!=Ge&&ht>=Ei.startTime&&Ge<=Ei.endTime&&(O.errors.push(function Ut(te,k,O,Y,Ge){return new f.vHH(3010,!1)}()),yi=!1),ht=Ei.startTime),yi&&oi.set(Qt,{startTime:ht,endTime:Ge}),O.options&&function Xr(te,k,O){const Y=k.params||{},Ge=ca(te);Ge.length&&Ge.forEach(ht=>{Y.hasOwnProperty(ht)||O.push(function rt(te){return new f.vHH(3001,!1)}())})}(Nt,O.options,O.errors)})})}visitKeyframes(k,O){const Y={type:5,styles:[],options:null};if(!O.currentAnimateTimings)return O.errors.push(function Kt(){return new f.vHH(3011,!1)}()),Y;let ht=0;const Ht=[];let Nt=!1,Qt=!1,oi=0;const Ei=k.steps.map(Tn=>{const Gn=this._makeStyleAst(Tn,O);let Mr=null!=Gn.offset?Gn.offset:function jn(te){if("string"==typeof te)return null;let k=null;if(Array.isArray(te))te.forEach(O=>{if(O instanceof Map&&O.has("offset")){const Y=O;k=parseFloat(Y.get("offset")),Y.delete("offset")}});else if(te instanceof Map&&te.has("offset")){const O=te;k=parseFloat(O.get("offset")),O.delete("offset")}return k}(Gn.styles),hr=0;return null!=Mr&&(ht++,hr=Gn.offset=Mr),Qt=Qt||hr<0||hr>1,Nt=Nt||hr0&&ht{const Mr=Xi>0?Gn==en?1:Xi*Gn:Ht[Gn],hr=Mr*fn;O.currentTime=Hi+Gi.delay+hr,Gi.duration=hr,this._validateStyleAst(Tn,O),Tn.offset=Mr,Y.styles.push(Tn)}),Y}visitReference(k,O){return{type:8,animation:hn(this,Rr(k.animation),O),options:Ir(k.options)}}visitAnimateChild(k,O){return O.depCount++,{type:9,options:Ir(k.options)}}visitAnimateRef(k,O){return{type:10,animation:this.visitReference(k.animation,O),options:Ir(k.options)}}visitQuery(k,O){const Y=O.currentQuerySelector,Ge=k.options||{};O.queryCount++,O.currentQuery=k;const[ht,Ht]=function Ji(te){const k=!!te.split(/\s*,\s*/).find(O=>":self"==O);return k&&(te=te.replace(ei,"")),te=te.replace(/@\*/g,at).replace(/@\w+/g,O=>at+"-"+O.slice(1)).replace(/:animating/g,Xt),[te,k]}(k.selector);O.currentQuerySelector=Y.length?Y+" "+ht:ht,zi(O.collectedStyles,O.currentQuerySelector,new Map);const Nt=hn(this,Rr(k.animation),O);return O.currentQuery=null,O.currentQuerySelector=Y,{type:11,selector:ht,limit:Ge.limit||0,optional:!!Ge.optional,includeSelf:Ht,animation:Nt,originalSelector:k.selector,options:Ir(k.options)}}visitStagger(k,O){O.currentQuery||O.errors.push(function Di(){return new f.vHH(3013,!1)}());const Y="full"===k.timings?{duration:0,delay:0,easing:"full"}:Ui(k.timings,O.errors,!0);return{type:12,animation:hn(this,Rr(k.animation),O),timings:Y,options:null}}}class ko{constructor(k){this.errors=k,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ir(te){return te?(te=Vn(te)).params&&(te.params=function Ea(te){return te?Vn(te):null}(te.params)):te={},te}function Er(te,k,O){return{duration:te,delay:k,easing:O}}function La(te,k,O,Y,Ge,ht,Ht=null,Nt=!1){return{type:1,element:te,keyframes:k,preStyleProps:O,postStyleProps:Y,duration:Ge,delay:ht,totalTime:Ge+ht,easing:Ht,subTimeline:Nt}}class ia{constructor(){this._map=new Map}get(k){return this._map.get(k)||[]}append(k,O){let Y=this._map.get(k);Y||this._map.set(k,Y=[]),Y.push(...O)}has(k){return this._map.has(k)}clear(){this._map.clear()}}const da=new RegExp(":enter","g"),Pr=new RegExp(":leave","g");function ua(te,k,O,Y,Ge,ht=new Map,Ht=new Map,Nt,Qt,oi=[]){return(new na).buildKeyframes(te,k,O,Y,Ge,ht,Ht,Nt,Qt,oi)}class na{buildKeyframes(k,O,Y,Ge,ht,Ht,Nt,Qt,oi,Ei=[]){oi=oi||new ia;const yi=new Co(k,O,oi,Ge,ht,Ei,[]);yi.options=Qt;const Xi=Qt.delay?gi(Qt.delay):0;yi.currentTimeline.delayNextStep(Xi),yi.currentTimeline.setStyles([Ht],null,yi.errors,Qt),hn(this,Y,yi);const en=yi.timelines.filter(Hi=>Hi.containsAnimation());if(en.length&&Nt.size){let Hi;for(let Gi=en.length-1;Gi>=0;Gi--){const fn=en[Gi];if(fn.element===O){Hi=fn;break}}Hi&&!Hi.allowOnlyTimelineStyles()&&Hi.setStyles([Nt],null,yi.errors,Qt)}return en.length?en.map(Hi=>Hi.buildKeyframes()):[La(O,[],[],[],0,Xi,"",!1)]}visitTrigger(k,O){}visitState(k,O){}visitTransition(k,O){}visitAnimateChild(k,O){const Y=O.subInstructions.get(O.element);if(Y){const Ge=O.createSubContext(k.options),ht=O.currentTimeline.currentTime,Ht=this._visitSubInstructions(Y,Ge,Ge.options);ht!=Ht&&O.transformIntoNewTimeline(Ht)}O.previousNode=k}visitAnimateRef(k,O){const Y=O.createSubContext(k.options);Y.transformIntoNewTimeline(),this._applyAnimationRefDelays([k.options,k.animation.options],O,Y),this.visitReference(k.animation,Y),O.transformIntoNewTimeline(Y.currentTimeline.currentTime),O.previousNode=k}_applyAnimationRefDelays(k,O,Y){for(const Ge of k){const ht=Ge?.delay;if(ht){const Ht="number"==typeof ht?ht:gi(ta(ht,Ge?.params??{},O.errors));Y.delayNextStep(Ht)}}}_visitSubInstructions(k,O,Y){let ht=O.currentTimeline.currentTime;const Ht=null!=Y.duration?gi(Y.duration):null,Nt=null!=Y.delay?gi(Y.delay):null;return 0!==Ht&&k.forEach(Qt=>{const oi=O.appendInstructionToTimeline(Qt,Ht,Nt);ht=Math.max(ht,oi.duration+oi.delay)}),ht}visitReference(k,O){O.updateOptions(k.options,!0),hn(this,k.animation,O),O.previousNode=k}visitSequence(k,O){const Y=O.subContextCount;let Ge=O;const ht=k.options;if(ht&&(ht.params||ht.delay)&&(Ge=O.createSubContext(ht),Ge.transformIntoNewTimeline(),null!=ht.delay)){6==Ge.previousNode.type&&(Ge.currentTimeline.snapshotCurrentStyles(),Ge.previousNode=dr);const Ht=gi(ht.delay);Ge.delayNextStep(Ht)}k.steps.length&&(k.steps.forEach(Ht=>hn(this,Ht,Ge)),Ge.currentTimeline.applyStylesToKeyframe(),Ge.subContextCount>Y&&Ge.transformIntoNewTimeline()),O.previousNode=k}visitGroup(k,O){const Y=[];let Ge=O.currentTimeline.currentTime;const ht=k.options&&k.options.delay?gi(k.options.delay):0;k.steps.forEach(Ht=>{const Nt=O.createSubContext(k.options);ht&&Nt.delayNextStep(ht),hn(this,Ht,Nt),Ge=Math.max(Ge,Nt.currentTimeline.currentTime),Y.push(Nt.currentTimeline)}),Y.forEach(Ht=>O.currentTimeline.mergeTimelineCollectedStyles(Ht)),O.transformIntoNewTimeline(Ge),O.previousNode=k}_visitTiming(k,O){if(k.dynamic){const Y=k.strValue;return Ui(O.params?ta(Y,O.params,O.errors):Y,O.errors)}return{duration:k.duration,delay:k.delay,easing:k.easing}}visitAnimate(k,O){const Y=O.currentAnimateTimings=this._visitTiming(k.timings,O),Ge=O.currentTimeline;Y.delay&&(O.incrementTime(Y.delay),Ge.snapshotCurrentStyles());const ht=k.style;5==ht.type?this.visitKeyframes(ht,O):(O.incrementTime(Y.duration),this.visitStyle(ht,O),Ge.applyStylesToKeyframe()),O.currentAnimateTimings=null,O.previousNode=k}visitStyle(k,O){const Y=O.currentTimeline,Ge=O.currentAnimateTimings;!Ge&&Y.hasCurrentStyleProperties()&&Y.forwardFrame();const ht=Ge&&Ge.easing||k.easing;k.isEmptyStep?Y.applyEmptyStep(ht):Y.setStyles(k.styles,ht,O.errors,O.options),O.previousNode=k}visitKeyframes(k,O){const Y=O.currentAnimateTimings,Ge=O.currentTimeline.duration,ht=Y.duration,Nt=O.createSubContext().currentTimeline;Nt.easing=Y.easing,k.styles.forEach(Qt=>{Nt.forwardTime((Qt.offset||0)*ht),Nt.setStyles(Qt.styles,Qt.easing,O.errors,O.options),Nt.applyStylesToKeyframe()}),O.currentTimeline.mergeTimelineCollectedStyles(Nt),O.transformIntoNewTimeline(Ge+ht),O.previousNode=k}visitQuery(k,O){const Y=O.currentTimeline.currentTime,Ge=k.options||{},ht=Ge.delay?gi(Ge.delay):0;ht&&(6===O.previousNode.type||0==Y&&O.currentTimeline.hasCurrentStyleProperties())&&(O.currentTimeline.snapshotCurrentStyles(),O.previousNode=dr);let Ht=Y;const Nt=O.invokeQuery(k.selector,k.originalSelector,k.limit,k.includeSelf,!!Ge.optional,O.errors);O.currentQueryTotal=Nt.length;let Qt=null;Nt.forEach((oi,Ei)=>{O.currentQueryIndex=Ei;const yi=O.createSubContext(k.options,oi);ht&&yi.delayNextStep(ht),oi===O.element&&(Qt=yi.currentTimeline),hn(this,k.animation,yi),yi.currentTimeline.applyStylesToKeyframe(),Ht=Math.max(Ht,yi.currentTimeline.currentTime)}),O.currentQueryIndex=0,O.currentQueryTotal=0,O.transformIntoNewTimeline(Ht),Qt&&(O.currentTimeline.mergeTimelineCollectedStyles(Qt),O.currentTimeline.snapshotCurrentStyles()),O.previousNode=k}visitStagger(k,O){const Y=O.parentContext,Ge=O.currentTimeline,ht=k.timings,Ht=Math.abs(ht.duration),Nt=Ht*(O.currentQueryTotal-1);let Qt=Ht*O.currentQueryIndex;switch(ht.duration<0?"reverse":ht.easing){case"reverse":Qt=Nt-Qt;break;case"full":Qt=Y.currentStaggerTime}const Ei=O.currentTimeline;Qt&&Ei.delayNextStep(Qt);const yi=Ei.currentTime;hn(this,k.animation,O),O.previousNode=k,Y.currentStaggerTime=Ge.currentTime-yi+(Ge.startTime-Y.currentTimeline.startTime)}}const dr={};class Co{constructor(k,O,Y,Ge,ht,Ht,Nt,Qt){this._driver=k,this.element=O,this.subInstructions=Y,this._enterClassName=Ge,this._leaveClassName=ht,this.errors=Ht,this.timelines=Nt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=dr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Qt||new Ha(this._driver,O,0),Nt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(k,O){if(!k)return;const Y=k;let Ge=this.options;null!=Y.duration&&(Ge.duration=gi(Y.duration)),null!=Y.delay&&(Ge.delay=gi(Y.delay));const ht=Y.params;if(ht){let Ht=Ge.params;Ht||(Ht=this.options.params={}),Object.keys(ht).forEach(Nt=>{(!O||!Ht.hasOwnProperty(Nt))&&(Ht[Nt]=ta(ht[Nt],Ht,this.errors))})}}_copyOptions(){const k={};if(this.options){const O=this.options.params;if(O){const Y=k.params={};Object.keys(O).forEach(Ge=>{Y[Ge]=O[Ge]})}}return k}createSubContext(k=null,O,Y){const Ge=O||this.element,ht=new Co(this._driver,Ge,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Ge,Y||0));return ht.previousNode=this.previousNode,ht.currentAnimateTimings=this.currentAnimateTimings,ht.options=this._copyOptions(),ht.updateOptions(k),ht.currentQueryIndex=this.currentQueryIndex,ht.currentQueryTotal=this.currentQueryTotal,ht.parentContext=this,this.subContextCount++,ht}transformIntoNewTimeline(k){return this.previousNode=dr,this.currentTimeline=this.currentTimeline.fork(this.element,k),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(k,O,Y){const Ge={duration:O??k.duration,delay:this.currentTimeline.currentTime+(Y??0)+k.delay,easing:""},ht=new Ba(this._driver,k.element,k.keyframes,k.preStyleProps,k.postStyleProps,Ge,k.stretchStartingKeyframe);return this.timelines.push(ht),Ge}incrementTime(k){this.currentTimeline.forwardTime(this.currentTimeline.duration+k)}delayNextStep(k){k>0&&this.currentTimeline.delayNextStep(k)}invokeQuery(k,O,Y,Ge,ht,Ht){let Nt=[];if(Ge&&Nt.push(this.element),k.length>0){k=(k=k.replace(da,"."+this._enterClassName)).replace(Pr,"."+this._leaveClassName);let oi=this._driver.query(this.element,k,1!=Y);0!==Y&&(oi=Y<0?oi.slice(oi.length+Y,oi.length):oi.slice(0,Y)),Nt.push(...oi)}return!ht&&0==Nt.length&&Ht.push(function St(te){return new f.vHH(3014,!1)}()),Nt}}class Ha{constructor(k,O,Y,Ge){this._driver=k,this.element=O,this.startTime=Y,this._elementTimelineStylesLookup=Ge,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(O),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(O,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(k){const O=1===this._keyframes.size&&this._pendingStyles.size;this.duration||O?(this.forwardTime(this.currentTime+k),O&&this.snapshotCurrentStyles()):this.startTime+=k}fork(k,O){return this.applyStylesToKeyframe(),new Ha(this._driver,k,O||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(k){this.applyStylesToKeyframe(),this.duration=k,this._loadKeyframe()}_updateStyle(k,O){this._localTimelineStyles.set(k,O),this._globalTimelineStyles.set(k,O),this._styleSummary.set(k,{time:this.currentTime,value:O})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(k){k&&this._previousKeyframe.set("easing",k);for(let[O,Y]of this._globalTimelineStyles)this._backFill.set(O,Y||xt.l3),this._currentKeyframe.set(O,xt.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(k,O,Y,Ge){O&&this._previousKeyframe.set("easing",O);const ht=Ge&&Ge.params||{},Ht=function $a(te,k){const O=new Map;let Y;return te.forEach(Ge=>{if("*"===Ge){Y=Y||k.keys();for(let ht of Y)O.set(ht,xt.l3)}else ir(Ge,O)}),O}(k,this._globalTimelineStyles);for(let[Nt,Qt]of Ht){const oi=ta(Qt,ht,Y);this._pendingStyles.set(Nt,oi),this._localTimelineStyles.has(Nt)||this._backFill.set(Nt,this._globalTimelineStyles.get(Nt)??xt.l3),this._updateStyle(Nt,oi)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((k,O)=>{this._currentKeyframe.set(O,k)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((k,O)=>{this._currentKeyframe.has(O)||this._currentKeyframe.set(O,k)}))}snapshotCurrentStyles(){for(let[k,O]of this._localTimelineStyles)this._pendingStyles.set(k,O),this._updateStyle(k,O)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const k=[];for(let O in this._currentKeyframe)k.push(O);return k}mergeTimelineCollectedStyles(k){k._styleSummary.forEach((O,Y)=>{const Ge=this._styleSummary.get(Y);(!Ge||O.time>Ge.time)&&this._updateStyle(Y,O.value)})}buildKeyframes(){this.applyStylesToKeyframe();const k=new Set,O=new Set,Y=1===this._keyframes.size&&0===this.duration;let Ge=[];this._keyframes.forEach((Nt,Qt)=>{const oi=ir(Nt,new Map,this._backFill);oi.forEach((Ei,yi)=>{Ei===xt.k1?k.add(yi):Ei===xt.l3&&O.add(yi)}),Y||oi.set("offset",Qt/this.duration),Ge.push(oi)});const ht=k.size?Dn(k.values()):[],Ht=O.size?Dn(O.values()):[];if(Y){const Nt=Ge[0],Qt=new Map(Nt);Nt.set("offset",0),Qt.set("offset",1),Ge=[Nt,Qt]}return La(this.element,Ge,ht,Ht,this.duration,this.startTime,this.easing,!1)}}class Ba extends Ha{constructor(k,O,Y,Ge,ht,Ht,Nt=!1){super(k,O,Ht.delay),this.keyframes=Y,this.preStyleProps=Ge,this.postStyleProps=ht,this._stretchStartingKeyframe=Nt,this.timings={duration:Ht.duration,delay:Ht.delay,easing:Ht.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let k=this.keyframes,{delay:O,duration:Y,easing:Ge}=this.timings;if(this._stretchStartingKeyframe&&O){const ht=[],Ht=Y+O,Nt=O/Ht,Qt=ir(k[0]);Qt.set("offset",0),ht.push(Qt);const oi=ir(k[0]);oi.set("offset",ka(Nt)),ht.push(oi);const Ei=k.length-1;for(let yi=1;yi<=Ei;yi++){let Xi=ir(k[yi]);const en=Xi.get("offset");Xi.set("offset",ka((O+en*Y)/Ht)),ht.push(Xi)}Y=Ht,O=0,Ge="",k=ht}return La(this.element,k,this.preStyleProps,this.postStyleProps,Y,O,Ge,!0)}}function ka(te,k=3){const O=Math.pow(10,k-1);return Math.round(te*O)/O}class ha{}const Na=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Eo extends ha{normalizePropertyName(k,O){return kr(k)}normalizeStyleValue(k,O,Y,Ge){let ht="";const Ht=Y.toString().trim();if(Na.has(O)&&0!==Y&&"0"!==Y)if("number"==typeof Y)ht="px";else{const Nt=Y.match(/^[+-]?[\d\.]+([a-z]*)$/);Nt&&0==Nt[1].length&&Ge.push(function zt(te,k){return new f.vHH(3005,!1)}())}return Ht+ht}}function Xa(te,k,O,Y,Ge,ht,Ht,Nt,Qt,oi,Ei,yi,Xi){return{type:0,element:te,triggerName:k,isRemovalTransition:Ge,fromState:O,fromStyles:ht,toState:Y,toStyles:Ht,timelines:Nt,queriedElements:Qt,preStyleProps:oi,postStyleProps:Ei,totalTime:yi,errors:Xi}}const eo={};class yo{constructor(k,O,Y){this._triggerName=k,this.ast=O,this._stateStyles=Y}match(k,O,Y,Ge){return function To(te,k,O,Y,Ge){return te.some(ht=>ht(k,O,Y,Ge))}(this.ast.matchers,k,O,Y,Ge)}buildStyles(k,O,Y){let Ge=this._stateStyles.get("*");return void 0!==k&&(Ge=this._stateStyles.get(k?.toString())||Ge),Ge?Ge.buildStyles(O,Y):new Map}build(k,O,Y,Ge,ht,Ht,Nt,Qt,oi,Ei){const yi=[],Xi=this.ast.options&&this.ast.options.params||eo,Hi=this.buildStyles(Y,Nt&&Nt.params||eo,yi),Gi=Qt&&Qt.params||eo,fn=this.buildStyles(Ge,Gi,yi),Tn=new Set,Gn=new Map,Mr=new Map,hr="void"===Ge,Oo={params:to(Gi,Xi),delay:this.ast.options?.delay},_a=Ei?[]:ua(k,O,this.ast.animation,ht,Ht,Hi,fn,Oo,oi,yi);let Sr=0;if(_a.forEach(ba=>{Sr=Math.max(ba.duration+ba.delay,Sr)}),yi.length)return Xa(O,this._triggerName,Y,Ge,hr,Hi,fn,[],[],Gn,Mr,Sr,yi);_a.forEach(ba=>{const oa=ba.element,hl=zi(Gn,oa,new Set);ba.preStyleProps.forEach(ho=>hl.add(ho));const uo=zi(Mr,oa,new Set);ba.postStyleProps.forEach(ho=>uo.add(ho)),oa!==O&&Tn.add(oa)});const xa=Dn(Tn.values());return Xa(O,this._triggerName,Y,Ge,hr,Hi,fn,_a,xa,Gn,Mr,Sr)}}function to(te,k){const O=Vn(k);for(const Y in te)te.hasOwnProperty(Y)&&null!=te[Y]&&(O[Y]=te[Y]);return O}class Uo{constructor(k,O,Y){this.styles=k,this.defaultParams=O,this.normalizer=Y}buildStyles(k,O){const Y=new Map,Ge=Vn(this.defaultParams);return Object.keys(k).forEach(ht=>{const Ht=k[ht];null!==Ht&&(Ge[ht]=Ht)}),this.styles.styles.forEach(ht=>{"string"!=typeof ht&&ht.forEach((Ht,Nt)=>{Ht&&(Ht=ta(Ht,Ge,O));const Qt=this.normalizer.normalizePropertyName(Nt,O);Ht=this.normalizer.normalizeStyleValue(Nt,Qt,Ht,O),Y.set(Nt,Ht)})}),Y}}class rr{constructor(k,O,Y){this.name=k,this.ast=O,this._normalizer=Y,this.transitionFactories=[],this.states=new Map,O.states.forEach(Ge=>{this.states.set(Ge.name,new Uo(Ge.style,Ge.options&&Ge.options.params||{},Y))}),wn(this.states,"true","1"),wn(this.states,"false","0"),O.transitions.forEach(Ge=>{this.transitionFactories.push(new yo(k,Ge,this.states))}),this.fallbackTransition=function pa(te,k,O){return new yo(te,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ht,Nt)=>!0],options:null,queryCount:0,depCount:0},k)}(k,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(k,O,Y,Ge){return this.transitionFactories.find(Ht=>Ht.match(k,O,Y,Ge))||null}matchStyles(k,O,Y){return this.fallbackTransition.buildStyles(k,O,Y)}}function wn(te,k,O){te.has(k)?te.has(O)||te.set(O,te.get(k)):te.has(O)&&te.set(k,te.get(O))}const Vo=new ia;class cs{constructor(k,O,Y){this.bodyNode=k,this._driver=O,this._normalizer=Y,this._animations=new Map,this._playersById=new Map,this.players=[]}register(k,O){const Y=[],Ge=[],ht=_i(this._driver,O,Y,Ge);if(Y.length)throw function vi(te){return new f.vHH(3503,!1)}();this._animations.set(k,ht)}_buildPlayer(k,O,Y){const Ge=k.element,ht=er(0,this._normalizer,0,k.keyframes,O,Y);return this._driver.animate(Ge,ht,k.duration,k.delay,k.easing,[],!0)}create(k,O,Y={}){const Ge=[],ht=this._animations.get(k);let Ht;const Nt=new Map;if(ht?(Ht=ua(this._driver,O,ht,dt,Wt,new Map,new Map,Y,Vo,Ge),Ht.forEach(Ei=>{const yi=zi(Nt,Ei.element,new Map);Ei.postStyleProps.forEach(Xi=>yi.set(Xi,null))})):(Ge.push(function Bi(){return new f.vHH(3300,!1)}()),Ht=[]),Ge.length)throw function $i(te){return new f.vHH(3504,!1)}();Nt.forEach((Ei,yi)=>{Ei.forEach((Xi,en)=>{Ei.set(en,this._driver.computeStyle(yi,en,xt.l3))})});const oi=un(Ht.map(Ei=>{const yi=Nt.get(Ei.element);return this._buildPlayer(Ei,new Map,yi)}));return this._playersById.set(k,oi),oi.onDestroy(()=>this.destroy(k)),this.players.push(oi),oi}destroy(k){const O=this._getPlayer(k);O.destroy(),this._playersById.delete(k);const Y=this.players.indexOf(O);Y>=0&&this.players.splice(Y,1)}_getPlayer(k){const O=this._playersById.get(k);if(!O)throw function ki(te){return new f.vHH(3301,!1)}();return O}listen(k,O,Y,Ge){const ht=Br(O,"","","");return ln(this._getPlayer(k),Y,ht,Ge),()=>{}}command(k,O,Y,Ge){if("register"==Y)return void this.register(k,Ge[0]);if("create"==Y)return void this.create(k,O,Ge[0]||{});const ht=this._getPlayer(k);switch(Y){case"play":ht.play();break;case"pause":ht.pause();break;case"reset":ht.reset();break;case"restart":ht.restart();break;case"finish":ht.finish();break;case"init":ht.init();break;case"setPosition":ht.setPosition(parseFloat(Ge[0]));break;case"destroy":this.destroy(k)}}}const io="ng-animate-queued",no="ng-animate-disabled",At=[],jt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ti={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ri="__ng_removed";class wi{constructor(k,O=""){this.namespaceId=O;const Y=k&&k.hasOwnProperty("value");if(this.value=function yn(te){return te??null}(Y?k.value:k),Y){const ht=Vn(k);delete ht.value,this.options=ht}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(k){const O=k.params;if(O){const Y=this.options.params;Object.keys(O).forEach(Ge=>{null==Y[Ge]&&(Y[Ge]=O[Ge])})}}}const Ki="void",an=new wi(Ki);class dn{constructor(k,O,Y){this.id=k,this.hostElement=O,this._engine=Y,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+k,Ln(O,this._hostClassName)}listen(k,O,Y,Ge){if(!this._triggers.has(O))throw function sn(te,k){return new f.vHH(3302,!1)}();if(null==Y||0==Y.length)throw function _n(te){return new f.vHH(3303,!1)}();if(!function Ur(te){return"start"==te||"done"==te}(Y))throw function Li(te,k){return new f.vHH(3400,!1)}();const ht=zi(this._elementListeners,k,[]),Ht={name:O,phase:Y,callback:Ge};ht.push(Ht);const Nt=zi(this._engine.statesByElement,k,new Map);return Nt.has(O)||(Ln(k,je),Ln(k,je+"-"+O),Nt.set(O,an)),()=>{this._engine.afterFlush(()=>{const Qt=ht.indexOf(Ht);Qt>=0&&ht.splice(Qt,1),this._triggers.has(O)||Nt.delete(O)})}}register(k,O){return!this._triggers.has(k)&&(this._triggers.set(k,O),!0)}_getTrigger(k){const O=this._triggers.get(k);if(!O)throw function Un(te){return new f.vHH(3401,!1)}();return O}trigger(k,O,Y,Ge=!0){const ht=this._getTrigger(O),Ht=new In(this.id,O,k);let Nt=this._engine.statesByElement.get(k);Nt||(Ln(k,je),Ln(k,je+"-"+O),this._engine.statesByElement.set(k,Nt=new Map));let Qt=Nt.get(O);const oi=new wi(Y,this.id);if(!(Y&&Y.hasOwnProperty("value"))&&Qt&&oi.absorbOptions(Qt.options),Nt.set(O,oi),Qt||(Qt=an),oi.value!==Ki&&Qt.value===oi.value){if(!function xo(te,k){const O=Object.keys(te),Y=Object.keys(k);if(O.length!=Y.length)return!1;for(let Ge=0;Ge{$r(k,fn),vr(k,Tn)})}return}const Xi=zi(this._engine.playersByElement,k,[]);Xi.forEach(Gi=>{Gi.namespaceId==this.id&&Gi.triggerName==O&&Gi.queued&&Gi.destroy()});let en=ht.matchTransition(Qt.value,oi.value,k,oi.params),Hi=!1;if(!en){if(!Ge)return;en=ht.fallbackTransition,Hi=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:k,triggerName:O,transition:en,fromState:Qt,toState:oi,player:Ht,isFallbackTransition:Hi}),Hi||(Ln(k,io),Ht.onStart(()=>{Nr(k,io)})),Ht.onDone(()=>{let Gi=this.players.indexOf(Ht);Gi>=0&&this.players.splice(Gi,1);const fn=this._engine.playersByElement.get(k);if(fn){let Tn=fn.indexOf(Ht);Tn>=0&&fn.splice(Tn,1)}}),this.players.push(Ht),Xi.push(Ht),Ht}deregister(k){this._triggers.delete(k),this._engine.statesByElement.forEach(O=>O.delete(k)),this._elementListeners.forEach((O,Y)=>{this._elementListeners.set(Y,O.filter(Ge=>Ge.name!=k))})}clearElementCache(k){this._engine.statesByElement.delete(k),this._elementListeners.delete(k);const O=this._engine.playersByElement.get(k);O&&(O.forEach(Y=>Y.destroy()),this._engine.playersByElement.delete(k))}_signalRemovalForInnerTriggers(k,O){const Y=this._engine.driver.query(k,at,!0);Y.forEach(Ge=>{if(Ge[ri])return;const ht=this._engine.fetchNamespacesByElement(Ge);ht.size?ht.forEach(Ht=>Ht.triggerLeaveAnimation(Ge,O,!1,!0)):this.clearElementCache(Ge)}),this._engine.afterFlushAnimationsDone(()=>Y.forEach(Ge=>this.clearElementCache(Ge)))}triggerLeaveAnimation(k,O,Y,Ge){const ht=this._engine.statesByElement.get(k),Ht=new Map;if(ht){const Nt=[];if(ht.forEach((Qt,oi)=>{if(Ht.set(oi,Qt.value),this._triggers.has(oi)){const Ei=this.trigger(k,oi,Ki,Ge);Ei&&Nt.push(Ei)}}),Nt.length)return this._engine.markElementAsRemoved(this.id,k,!0,O,Ht),Y&&un(Nt).onDone(()=>this._engine.processLeaveNode(k)),!0}return!1}prepareLeaveAnimationListeners(k){const O=this._elementListeners.get(k),Y=this._engine.statesByElement.get(k);if(O&&Y){const Ge=new Set;O.forEach(ht=>{const Ht=ht.name;if(Ge.has(Ht))return;Ge.add(Ht);const Qt=this._triggers.get(Ht).fallbackTransition,oi=Y.get(Ht)||an,Ei=new wi(Ki),yi=new In(this.id,Ht,k);this._engine.totalQueuedPlayers++,this._queue.push({element:k,triggerName:Ht,transition:Qt,fromState:oi,toState:Ei,player:yi,isFallbackTransition:!0})})}}removeNode(k,O){const Y=this._engine;if(k.childElementCount&&this._signalRemovalForInnerTriggers(k,O),this.triggerLeaveAnimation(k,O,!0))return;let Ge=!1;if(Y.totalAnimations){const ht=Y.players.length?Y.playersByQueriedElement.get(k):[];if(ht&&ht.length)Ge=!0;else{let Ht=k;for(;Ht=Ht.parentNode;)if(Y.statesByElement.get(Ht)){Ge=!0;break}}}if(this.prepareLeaveAnimationListeners(k),Ge)Y.markElementAsRemoved(this.id,k,!1,O);else{const ht=k[ri];(!ht||ht===jt)&&(Y.afterFlush(()=>this.clearElementCache(k)),Y.destroyInnerAnimations(k),Y._onRemovalComplete(k,O))}}insertNode(k,O){Ln(k,this._hostClassName)}drainQueuedTransitions(k){const O=[];return this._queue.forEach(Y=>{const Ge=Y.player;if(Ge.destroyed)return;const ht=Y.element,Ht=this._elementListeners.get(ht);Ht&&Ht.forEach(Nt=>{if(Nt.name==Y.triggerName){const Qt=Br(ht,Y.triggerName,Y.fromState.value,Y.toState.value);Qt._data=k,ln(Y.player,Nt.phase,Qt,Nt.callback)}}),Ge.markedForDestroy?this._engine.afterFlush(()=>{Ge.destroy()}):O.push(Y)}),this._queue=[],O.sort((Y,Ge)=>{const ht=Y.transition.ast.depCount,Ht=Ge.transition.ast.depCount;return 0==ht||0==Ht?ht-Ht:this._engine.driver.containsElement(Y.element,Ge.element)?1:-1})}destroy(k){this.players.forEach(O=>O.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,k)}elementContainsData(k){let O=!1;return this._elementListeners.has(k)&&(O=!0),O=!!this._queue.find(Y=>Y.element===k)||O,O}}class Wi{constructor(k,O,Y){this.bodyNode=k,this.driver=O,this._normalizer=Y,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(Ge,ht)=>{}}_onRemovalComplete(k,O){this.onRemovalComplete(k,O)}get queuedPlayers(){const k=[];return this._namespaceList.forEach(O=>{O.players.forEach(Y=>{Y.queued&&k.push(Y)})}),k}createNamespace(k,O){const Y=new dn(k,O,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,O)?this._balanceNamespaceList(Y,O):(this.newHostElements.set(O,Y),this.collectEnterElement(O)),this._namespaceLookup[k]=Y}_balanceNamespaceList(k,O){const Y=this._namespaceList,Ge=this.namespacesByHostElement;if(Y.length-1>=0){let Ht=!1,Nt=this.driver.getParentElement(O);for(;Nt;){const Qt=Ge.get(Nt);if(Qt){const oi=Y.indexOf(Qt);Y.splice(oi+1,0,k),Ht=!0;break}Nt=this.driver.getParentElement(Nt)}Ht||Y.unshift(k)}else Y.push(k);return Ge.set(O,k),k}register(k,O){let Y=this._namespaceLookup[k];return Y||(Y=this.createNamespace(k,O)),Y}registerTrigger(k,O,Y){let Ge=this._namespaceLookup[k];Ge&&Ge.register(O,Y)&&this.totalAnimations++}destroy(k,O){if(!k)return;const Y=this._fetchNamespace(k);this.afterFlush(()=>{this.namespacesByHostElement.delete(Y.hostElement),delete this._namespaceLookup[k];const Ge=this._namespaceList.indexOf(Y);Ge>=0&&this._namespaceList.splice(Ge,1)}),this.afterFlushAnimationsDone(()=>Y.destroy(O))}_fetchNamespace(k){return this._namespaceLookup[k]}fetchNamespacesByElement(k){const O=new Set,Y=this.statesByElement.get(k);if(Y)for(let Ge of Y.values())if(Ge.namespaceId){const ht=this._fetchNamespace(Ge.namespaceId);ht&&O.add(ht)}return O}trigger(k,O,Y,Ge){if(yr(O)){const ht=this._fetchNamespace(k);if(ht)return ht.trigger(O,Y,Ge),!0}return!1}insertNode(k,O,Y,Ge){if(!yr(O))return;const ht=O[ri];if(ht&&ht.setForRemoval){ht.setForRemoval=!1,ht.setForMove=!0;const Ht=this.collectedLeaveElements.indexOf(O);Ht>=0&&this.collectedLeaveElements.splice(Ht,1)}if(k){const Ht=this._fetchNamespace(k);Ht&&Ht.insertNode(O,Y)}Ge&&this.collectEnterElement(O)}collectEnterElement(k){this.collectedEnterElements.push(k)}markElementAsDisabled(k,O){O?this.disabledNodes.has(k)||(this.disabledNodes.add(k),Ln(k,no)):this.disabledNodes.has(k)&&(this.disabledNodes.delete(k),Nr(k,no))}removeNode(k,O,Y,Ge){if(yr(O)){const ht=k?this._fetchNamespace(k):null;if(ht?ht.removeNode(O,Ge):this.markElementAsRemoved(k,O,!1,Ge),Y){const Ht=this.namespacesByHostElement.get(O);Ht&&Ht.id!==k&&Ht.removeNode(O,Ge)}}else this._onRemovalComplete(O,Ge)}markElementAsRemoved(k,O,Y,Ge,ht){this.collectedLeaveElements.push(O),O[ri]={namespaceId:k,setForRemoval:Ge,hasAnimation:Y,removedBeforeQueried:!1,previousTriggersValues:ht}}listen(k,O,Y,Ge,ht){return yr(O)?this._fetchNamespace(k).listen(O,Y,Ge,ht):()=>{}}_buildInstruction(k,O,Y,Ge,ht){return k.transition.build(this.driver,k.element,k.fromState.value,k.toState.value,Y,Ge,k.fromState.options,k.toState.options,O,ht)}destroyInnerAnimations(k){let O=this.driver.query(k,at,!0);O.forEach(Y=>this.destroyActiveAnimationsForElement(Y)),0!=this.playersByQueriedElement.size&&(O=this.driver.query(k,Xt,!0),O.forEach(Y=>this.finishActiveQueriedAnimationOnElement(Y)))}destroyActiveAnimationsForElement(k){const O=this.playersByElement.get(k);O&&O.forEach(Y=>{Y.queued?Y.markedForDestroy=!0:Y.destroy()})}finishActiveQueriedAnimationOnElement(k){const O=this.playersByQueriedElement.get(k);O&&O.forEach(Y=>Y.finish())}whenRenderingDone(){return new Promise(k=>{if(this.players.length)return un(this.players).onDone(()=>k());k()})}processLeaveNode(k){const O=k[ri];if(O&&O.setForRemoval){if(k[ri]=jt,O.namespaceId){this.destroyInnerAnimations(k);const Y=this._fetchNamespace(O.namespaceId);Y&&Y.clearElementCache(k)}this._onRemovalComplete(k,O.setForRemoval)}k.classList?.contains(no)&&this.markElementAsDisabled(k,!1),this.driver.query(k,".ng-animate-disabled",!0).forEach(Y=>{this.markElementAsDisabled(Y,!1)})}flush(k=-1){let O=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Y,Ge)=>this._balanceNamespaceList(Y,Ge)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Y=0;YY()),this._flushFns=[],this._whenQuietFns.length){const Y=this._whenQuietFns;this._whenQuietFns=[],O.length?un(O).onDone(()=>{Y.forEach(Ge=>Ge())}):Y.forEach(Ge=>Ge())}}reportError(k){throw function Xn(te){return new f.vHH(3402,!1)}()}_flushAnimations(k,O){const Y=new ia,Ge=[],ht=new Map,Ht=[],Nt=new Map,Qt=new Map,oi=new Map,Ei=new Set;this.disabledNodes.forEach(Ri=>{Ei.add(Ri);const Pi=this.driver.query(Ri,".ng-animate-queued",!0);for(let Ni=0;Ni{const Ni=dt+Gi++;Hi.set(Pi,Ni),Ri.forEach(cn=>Ln(cn,Ni))});const fn=[],Tn=new Set,Gn=new Set;for(let Ri=0;RiTn.add(cn)):Gn.add(Pi))}const Mr=new Map,hr=Wr(Xi,Array.from(Tn));hr.forEach((Ri,Pi)=>{const Ni=Wt+Gi++;Mr.set(Pi,Ni),Ri.forEach(cn=>Ln(cn,Ni))}),k.push(()=>{en.forEach((Ri,Pi)=>{const Ni=Hi.get(Pi);Ri.forEach(cn=>Nr(cn,Ni))}),hr.forEach((Ri,Pi)=>{const Ni=Mr.get(Pi);Ri.forEach(cn=>Nr(cn,Ni))}),fn.forEach(Ri=>{this.processLeaveNode(Ri)})});const Oo=[],_a=[];for(let Ri=this._namespaceList.length-1;Ri>=0;Ri--)this._namespaceList[Ri].drainQueuedTransitions(O).forEach(Ni=>{const cn=Ni.player,or=Ni.element;if(Oo.push(cn),this.collectedEnterElements.length){const sr=or[ri];if(sr&&sr.setForMove){if(sr.previousTriggersValues&&sr.previousTriggersValues.has(Ni.triggerName)){const za=sr.previousTriggersValues.get(Ni.triggerName),Dr=this.statesByElement.get(Ni.element);if(Dr&&Dr.has(Ni.triggerName)){const po=Dr.get(Ni.triggerName);po.value=za,Dr.set(Ni.triggerName,po)}}return void cn.destroy()}}const Ma=!yi||!this.driver.containsElement(yi,or),_r=Mr.get(or),Ga=Hi.get(or),Pn=this._buildInstruction(Ni,Y,Ga,_r,Ma);if(Pn.errors&&Pn.errors.length)return void _a.push(Pn);if(Ma)return cn.onStart(()=>$r(or,Pn.fromStyles)),cn.onDestroy(()=>vr(or,Pn.toStyles)),void Ge.push(cn);if(Ni.isFallbackTransition)return cn.onStart(()=>$r(or,Pn.fromStyles)),cn.onDestroy(()=>vr(or,Pn.toStyles)),void Ge.push(cn);const fl=[];Pn.timelines.forEach(sr=>{sr.stretchStartingKeyframe=!0,this.disabledNodes.has(sr.element)||fl.push(sr)}),Pn.timelines=fl,Y.append(or,Pn.timelines),Ht.push({instruction:Pn,player:cn,element:or}),Pn.queriedElements.forEach(sr=>zi(Nt,sr,[]).push(cn)),Pn.preStyleProps.forEach((sr,za)=>{if(sr.size){let Dr=Qt.get(za);Dr||Qt.set(za,Dr=new Set),sr.forEach((po,ys)=>Dr.add(ys))}}),Pn.postStyleProps.forEach((sr,za)=>{let Dr=oi.get(za);Dr||oi.set(za,Dr=new Set),sr.forEach((po,ys)=>Dr.add(ys))})});if(_a.length){const Ri=[];_a.forEach(Pi=>{Ri.push(function Wn(te,k){return new f.vHH(3505,!1)}())}),Oo.forEach(Pi=>Pi.destroy()),this.reportError(Ri)}const Sr=new Map,xa=new Map;Ht.forEach(Ri=>{const Pi=Ri.element;Y.has(Pi)&&(xa.set(Pi,Pi),this._beforeAnimationBuild(Ri.player.namespaceId,Ri.instruction,Sr))}),Ge.forEach(Ri=>{const Pi=Ri.element;this._getPreviousPlayers(Pi,!1,Ri.namespaceId,Ri.triggerName,null).forEach(cn=>{zi(Sr,Pi,[]).push(cn),cn.destroy()})});const ba=fn.filter(Ri=>Mo(Ri,Qt,oi)),oa=new Map;xr(oa,this.driver,Gn,oi,xt.l3).forEach(Ri=>{Mo(Ri,Qt,oi)&&ba.push(Ri)});const uo=new Map;en.forEach((Ri,Pi)=>{xr(uo,this.driver,new Set(Ri),Qt,xt.k1)}),ba.forEach(Ri=>{const Pi=oa.get(Ri),Ni=uo.get(Ri);oa.set(Ri,new Map([...Array.from(Pi?.entries()??[]),...Array.from(Ni?.entries()??[])]))});const ho=[],uc=[],pl={};Ht.forEach(Ri=>{const{element:Pi,player:Ni,instruction:cn}=Ri;if(Y.has(Pi)){if(Ei.has(Pi))return Ni.onDestroy(()=>vr(Pi,cn.toStyles)),Ni.disabled=!0,Ni.overrideTotalTime(cn.totalTime),void Ge.push(Ni);let or=pl;if(xa.size>1){let _r=Pi;const Ga=[];for(;_r=_r.parentNode;){const Pn=xa.get(_r);if(Pn){or=Pn;break}Ga.push(_r)}Ga.forEach(Pn=>xa.set(Pn,or))}const Ma=this._buildAnimation(Ni.namespaceId,cn,Sr,ht,uo,oa);if(Ni.setRealPlayer(Ma),or===pl)ho.push(Ni);else{const _r=this.playersByElement.get(or);_r&&_r.length&&(Ni.parentPlayer=un(_r)),Ge.push(Ni)}}else $r(Pi,cn.fromStyles),Ni.onDestroy(()=>vr(Pi,cn.toStyles)),uc.push(Ni),Ei.has(Pi)&&Ge.push(Ni)}),uc.forEach(Ri=>{const Pi=ht.get(Ri.element);if(Pi&&Pi.length){const Ni=un(Pi);Ri.setRealPlayer(Ni)}}),Ge.forEach(Ri=>{Ri.parentPlayer?Ri.syncPlayerEvents(Ri.parentPlayer):Ri.destroy()});for(let Ri=0;Ri!Ma.destroyed);or.length?us(this,Pi,or):this.processLeaveNode(Pi)}return fn.length=0,ho.forEach(Ri=>{this.players.push(Ri),Ri.onDone(()=>{Ri.destroy();const Pi=this.players.indexOf(Ri);this.players.splice(Pi,1)}),Ri.play()}),ho}elementContainsData(k,O){let Y=!1;const Ge=O[ri];return Ge&&Ge.setForRemoval&&(Y=!0),this.playersByElement.has(O)&&(Y=!0),this.playersByQueriedElement.has(O)&&(Y=!0),this.statesByElement.has(O)&&(Y=!0),this._fetchNamespace(k).elementContainsData(O)||Y}afterFlush(k){this._flushFns.push(k)}afterFlushAnimationsDone(k){this._whenQuietFns.push(k)}_getPreviousPlayers(k,O,Y,Ge,ht){let Ht=[];if(O){const Nt=this.playersByQueriedElement.get(k);Nt&&(Ht=Nt)}else{const Nt=this.playersByElement.get(k);if(Nt){const Qt=!ht||ht==Ki;Nt.forEach(oi=>{oi.queued||!Qt&&oi.triggerName!=Ge||Ht.push(oi)})}}return(Y||Ge)&&(Ht=Ht.filter(Nt=>!(Y&&Y!=Nt.namespaceId||Ge&&Ge!=Nt.triggerName))),Ht}_beforeAnimationBuild(k,O,Y){const ht=O.element,Ht=O.isRemovalTransition?void 0:k,Nt=O.isRemovalTransition?void 0:O.triggerName;for(const Qt of O.timelines){const oi=Qt.element,Ei=oi!==ht,yi=zi(Y,oi,[]);this._getPreviousPlayers(oi,Ei,Ht,Nt,O.toState).forEach(en=>{const Hi=en.getRealPlayer();Hi.beforeDestroy&&Hi.beforeDestroy(),en.destroy(),yi.push(en)})}$r(ht,O.fromStyles)}_buildAnimation(k,O,Y,Ge,ht,Ht){const Nt=O.triggerName,Qt=O.element,oi=[],Ei=new Set,yi=new Set,Xi=O.timelines.map(Hi=>{const Gi=Hi.element;Ei.add(Gi);const fn=Gi[ri];if(fn&&fn.removedBeforeQueried)return new xt.ZN(Hi.duration,Hi.delay);const Tn=Gi!==Qt,Gn=function ro(te){const k=[];return hs(te,k),k}((Y.get(Gi)||At).map(Sr=>Sr.getRealPlayer())).filter(Sr=>!!Sr.element&&Sr.element===Gi),Mr=ht.get(Gi),hr=Ht.get(Gi),Oo=er(0,this._normalizer,0,Hi.keyframes,Mr,hr),_a=this._buildPlayer(Hi,Oo,Gn);if(Hi.subTimeline&&Ge&&yi.add(Gi),Tn){const Sr=new In(k,Nt,Gi);Sr.setRealPlayer(_a),oi.push(Sr)}return _a});oi.forEach(Hi=>{zi(this.playersByQueriedElement,Hi.element,[]).push(Hi),Hi.onDone(()=>function pn(te,k,O){let Y=te.get(k);if(Y){if(Y.length){const Ge=Y.indexOf(O);Y.splice(Ge,1)}0==Y.length&&te.delete(k)}return Y}(this.playersByQueriedElement,Hi.element,Hi))}),Ei.forEach(Hi=>Ln(Hi,It));const en=un(Xi);return en.onDestroy(()=>{Ei.forEach(Hi=>Nr(Hi,It)),vr(Qt,O.toStyles)}),yi.forEach(Hi=>{zi(Ge,Hi,[]).push(en)}),en}_buildPlayer(k,O,Y){return O.length>0?this.driver.animate(k.element,O,k.duration,k.delay,k.easing,Y):new xt.ZN(k.duration,k.delay)}}class In{constructor(k,O,Y){this.namespaceId=k,this.triggerName=O,this.element=Y,this._player=new xt.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(k){this._containsRealPlayer||(this._player=k,this._queuedCallbacks.forEach((O,Y)=>{O.forEach(Ge=>ln(k,Y,void 0,Ge))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(k.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(k){this.totalTime=k}syncPlayerEvents(k){const O=this._player;O.triggerCallback&&k.onStart(()=>O.triggerCallback("start")),k.onDone(()=>this.finish()),k.onDestroy(()=>this.destroy())}_queueEvent(k,O){zi(this._queuedCallbacks,k,[]).push(O)}onDone(k){this.queued&&this._queueEvent("done",k),this._player.onDone(k)}onStart(k){this.queued&&this._queueEvent("start",k),this._player.onStart(k)}onDestroy(k){this.queued&&this._queueEvent("destroy",k),this._player.onDestroy(k)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(k){this.queued||this._player.setPosition(k)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(k){const O=this._player;O.triggerCallback&&O.triggerCallback(k)}}function yr(te){return te&&1===te.nodeType}function Tr(te,k){const O=te.style.display;return te.style.display=k??"none",O}function xr(te,k,O,Y,Ge){const ht=[];O.forEach(Qt=>ht.push(Tr(Qt)));const Ht=[];Y.forEach((Qt,oi)=>{const Ei=new Map;Qt.forEach(yi=>{const Xi=k.computeStyle(oi,yi,Ge);Ei.set(yi,Xi),(!Xi||0==Xi.length)&&(oi[ri]=ti,Ht.push(oi))}),te.set(oi,Ei)});let Nt=0;return O.forEach(Qt=>Tr(Qt,ht[Nt++])),Ht}function Wr(te,k){const O=new Map;if(te.forEach(Nt=>O.set(Nt,[])),0==k.length)return O;const Y=1,Ge=new Set(k),ht=new Map;function Ht(Nt){if(!Nt)return Y;let Qt=ht.get(Nt);if(Qt)return Qt;const oi=Nt.parentNode;return Qt=O.has(oi)?oi:Ge.has(oi)?Y:Ht(oi),ht.set(Nt,Qt),Qt}return k.forEach(Nt=>{const Qt=Ht(Nt);Qt!==Y&&O.get(Qt).push(Nt)}),O}function Ln(te,k){te.classList?.add(k)}function Nr(te,k){te.classList?.remove(k)}function us(te,k,O){un(O).onDone(()=>te.processLeaveNode(k))}function hs(te,k){for(let O=0;OGe.add(ht)):k.set(te,Y),O.delete(te),!0}class Yr{constructor(k,O,Y){this.bodyNode=k,this._driver=O,this._normalizer=Y,this._triggerCache={},this.onRemovalComplete=(Ge,ht)=>{},this._transitionEngine=new Wi(k,O,Y),this._timelineEngine=new cs(k,O,Y),this._transitionEngine.onRemovalComplete=(Ge,ht)=>this.onRemovalComplete(Ge,ht)}registerTrigger(k,O,Y,Ge,ht){const Ht=k+"-"+Ge;let Nt=this._triggerCache[Ht];if(!Nt){const Qt=[],oi=[],Ei=_i(this._driver,ht,Qt,oi);if(Qt.length)throw function Pt(te,k){return new f.vHH(3404,!1)}();Nt=function No(te,k,O){return new rr(te,k,O)}(Ge,Ei,this._normalizer),this._triggerCache[Ht]=Nt}this._transitionEngine.registerTrigger(O,Ge,Nt)}register(k,O){this._transitionEngine.register(k,O)}destroy(k,O){this._transitionEngine.destroy(k,O)}onInsert(k,O,Y,Ge){this._transitionEngine.insertNode(k,O,Y,Ge)}onRemove(k,O,Y,Ge){this._transitionEngine.removeNode(k,O,Ge||!1,Y)}disableAnimations(k,O){this._transitionEngine.markElementAsDisabled(k,O)}process(k,O,Y,Ge){if("@"==Y.charAt(0)){const[ht,Ht]=Yn(Y);this._timelineEngine.command(ht,O,Ht,Ge)}else this._transitionEngine.trigger(k,O,Y,Ge)}listen(k,O,Y,Ge,ht){if("@"==Y.charAt(0)){const[Ht,Nt]=Yn(Y);return this._timelineEngine.listen(Ht,O,Nt,ht)}return this._transitionEngine.listen(k,O,Y,Ge,ht)}flush(k=-1){this._transitionEngine.flush(k)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ps=(()=>{class te{constructor(O,Y,Ge){this._element=O,this._startStyles=Y,this._endStyles=Ge,this._state=0;let ht=te.initialStylesByElement.get(O);ht||te.initialStylesByElement.set(O,ht=new Map),this._initialStyles=ht}start(){this._state<1&&(this._startStyles&&vr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(vr(this._element,this._initialStyles),this._endStyles&&(vr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(te.initialStylesByElement.delete(this._element),this._startStyles&&($r(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($r(this._element,this._endStyles),this._endStyles=null),vr(this._element,this._initialStyles),this._state=3)}}return te.initialStylesByElement=new WeakMap,te})();function ao(te){let k=null;return te.forEach((O,Y)=>{(function Ys(te){return"display"===te||"position"===te})(Y)&&(k=k||new Map,k.set(Y,O))}),k}class Vr{constructor(k,O,Y,Ge){this.element=k,this.keyframes=O,this.options=Y,this._specialStyles=Ge,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=Y.duration,this._delay=Y.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(k=>k()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const k=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,k,this.options),this._finalKeyframe=k.length?k[k.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(k){const O=[];return k.forEach(Y=>{O.push(Object.fromEntries(Y))}),O}_triggerWebAnimation(k,O,Y){return k.animate(this._convertKeyframesToObject(O),Y)}onStart(k){this._originalOnStartFns.push(k),this._onStartFns.push(k)}onDone(k){this._originalOnDoneFns.push(k),this._onDoneFns.push(k)}onDestroy(k){this._onDestroyFns.push(k)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(k=>k()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(k=>k()),this._onDestroyFns=[])}setPosition(k){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=k*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const k=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Y,Ge)=>{"offset"!==Ge&&k.set(Ge,this._finished?Y:wa(this.element,Ge))}),this.currentSnapshot=k}triggerCallback(k){const O="start"===k?this._onStartFns:this._onDoneFns;O.forEach(Y=>Y()),O.length=0}}class qs{validateStyleProperty(k){return!0}validateAnimatableStyleProperty(k){return!0}matchesElement(k,O){return!1}containsElement(k,O){return nn(k,O)}getParentElement(k){return Dt(k)}query(k,O,Y){return Mn(k,O,Y)}computeStyle(k,O,Y){return window.getComputedStyle(k)[O]}animate(k,O,Y,Ge,ht,Ht=[]){const Qt={duration:Y,delay:Ge,fill:0==Ge?"both":"forwards"};ht&&(Qt.easing=ht);const oi=new Map,Ei=Ht.filter(en=>en instanceof Vr);(function Zr(te,k){return 0===te||0===k})(Y,Ge)&&Ei.forEach(en=>{en.currentSnapshot.forEach((Hi,Gi)=>oi.set(Gi,Hi))});let yi=function Ar(te){return te.length?te[0]instanceof Map?te:te.map(k=>bn(k)):[]}(O).map(en=>ir(en));yi=function Ca(te,k,O){if(O.size&&k.length){let Y=k[0],Ge=[];if(O.forEach((ht,Ht)=>{Y.has(Ht)||Ge.push(Ht),Y.set(Ht,ht)}),Ge.length)for(let ht=1;htHt.set(Nt,wa(te,Nt)))}}return k}(k,yi,oi);const Xi=function Bl(te,k){let O=null,Y=null;return Array.isArray(k)&&k.length?(O=ao(k[0]),k.length>1&&(Y=ao(k[k.length-1]))):k instanceof Map&&(O=ao(k)),O||Y?new ps(te,O,Y):null}(k,yi);return new Vr(k,yi,Qt,Xi)}}let So=(()=>{class te extends xt._j{constructor(O,Y){super(),this._nextAnimationId=0,this._renderer=O.createRenderer(Y.body,{id:"0",encapsulation:f.ifc.None,styles:[],data:{animation:[]}})}build(O){const Y=this._nextAnimationId.toString();this._nextAnimationId++;const Ge=Array.isArray(O)?(0,xt.vP)(O):O;return ya(this._renderer,null,Y,"register",[Ge]),new ar(Y,this._renderer)}}return te.\u0275fac=function(O){return new(O||te)(f.LFG(f.FYo),f.LFG(I.K0))},te.\u0275prov=f.Yz7({token:te,factory:te.\u0275fac}),te})();class ar extends xt.LC{constructor(k,O){super(),this._id=k,this._renderer=O}create(k,O){return new fs(this._id,k,O||{},this._renderer)}}class fs{constructor(k,O,Y,Ge){this.id=k,this.element=O,this._renderer=Ge,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Y)}_listen(k,O){return this._renderer.listen(this.element,`@@${this.id}:${k}`,O)}_command(k,...O){return ya(this._renderer,this.element,this.id,k,O)}onDone(k){this._listen("done",k)}onStart(k){this._listen("start",k)}onDestroy(k){this._listen("destroy",k)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(k){this._command("setPosition",k)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function ya(te,k,O,Y,Ge){return te.setProperty(k,`@@${O}:${Y}`,Ge)}const ms="@.disabled";let Fo=(()=>{class te{constructor(O,Y,Ge){this.delegate=O,this.engine=Y,this._zone=Ge,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Y.onRemovalComplete=(ht,Ht)=>{const Nt=Ht?.parentNode(ht);Nt&&Ht.removeChild(Nt,ht)}}createRenderer(O,Y){const ht=this.delegate.createRenderer(O,Y);if(!(O&&Y&&Y.data&&Y.data.animation)){let Ei=this._rendererCache.get(ht);return Ei||(Ei=new gs("",ht,this.engine,()=>this._rendererCache.delete(ht)),this._rendererCache.set(ht,Ei)),Ei}const Ht=Y.id,Nt=Y.id+"-"+this._currentId;this._currentId++,this.engine.register(Nt,O);const Qt=Ei=>{Array.isArray(Ei)?Ei.forEach(Qt):this.engine.registerTrigger(Ht,Nt,O,Ei.name,Ei)};return Y.data.animation.forEach(Qt),new _s(this,Nt,ht,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(O,Y,Ge){O>=0&&OY(Ge)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ht=>{const[Ht,Nt]=ht;Ht(Nt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Y,Ge]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return te.\u0275fac=function(O){return new(O||te)(f.LFG(f.FYo),f.LFG(Yr),f.LFG(f.R0b))},te.\u0275prov=f.Yz7({token:te,factory:te.\u0275fac}),te})();class gs{constructor(k,O,Y,Ge){this.namespaceId=k,this.delegate=O,this.engine=Y,this._onDestroy=Ge,this.destroyNode=this.delegate.destroyNode?ht=>O.destroyNode(ht):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(k,O){return this.delegate.createElement(k,O)}createComment(k){return this.delegate.createComment(k)}createText(k){return this.delegate.createText(k)}appendChild(k,O){this.delegate.appendChild(k,O),this.engine.onInsert(this.namespaceId,O,k,!1)}insertBefore(k,O,Y,Ge=!0){this.delegate.insertBefore(k,O,Y),this.engine.onInsert(this.namespaceId,O,k,Ge)}removeChild(k,O,Y){this.engine.onRemove(this.namespaceId,O,this.delegate,Y)}selectRootElement(k,O){return this.delegate.selectRootElement(k,O)}parentNode(k){return this.delegate.parentNode(k)}nextSibling(k){return this.delegate.nextSibling(k)}setAttribute(k,O,Y,Ge){this.delegate.setAttribute(k,O,Y,Ge)}removeAttribute(k,O,Y){this.delegate.removeAttribute(k,O,Y)}addClass(k,O){this.delegate.addClass(k,O)}removeClass(k,O){this.delegate.removeClass(k,O)}setStyle(k,O,Y,Ge){this.delegate.setStyle(k,O,Y,Ge)}removeStyle(k,O,Y){this.delegate.removeStyle(k,O,Y)}setProperty(k,O,Y){"@"==O.charAt(0)&&O==ms?this.disableAnimations(k,!!Y):this.delegate.setProperty(k,O,Y)}setValue(k,O){this.delegate.setValue(k,O)}listen(k,O,Y){return this.delegate.listen(k,O,Y)}disableAnimations(k,O){this.engine.disableAnimations(k,O)}}class _s extends gs{constructor(k,O,Y,Ge,ht){super(O,Y,Ge,ht),this.factory=k,this.namespaceId=O}setProperty(k,O,Y){"@"==O.charAt(0)?"."==O.charAt(1)&&O==ms?this.disableAnimations(k,Y=void 0===Y||!!Y):this.engine.process(this.namespaceId,k,O.slice(1),Y):this.delegate.setProperty(k,O,Y)}listen(k,O,Y){if("@"==O.charAt(0)){const Ge=function bs(te){switch(te){case"body":return document.body;case"document":return document;case"window":return window;default:return te}}(k);let ht=O.slice(1),Ht="";return"@"!=ht.charAt(0)&&([ht,Ht]=function jo(te){const k=te.indexOf(".");return[te.substring(0,k),te.slice(k+1)]}(ht)),this.engine.listen(this.namespaceId,Ge,ht,Ht,Nt=>{this.factory.scheduleListenerCallback(Nt._data||-1,Y,Nt)})}return this.delegate.listen(k,O,Y)}}const Do=[{provide:xt._j,useClass:So},{provide:ha,useFactory:function Or(){return new Eo}},{provide:Yr,useClass:(()=>{class te extends Yr{constructor(O,Y,Ge,ht){super(O.body,Y,Ge)}ngOnDestroy(){this.flush()}}return te.\u0275fac=function(O){return new(O||te)(f.LFG(I.K0),f.LFG(vn),f.LFG(ha),f.LFG(f.z2F))},te.\u0275prov=f.Yz7({token:te,factory:te.\u0275fac}),te})()},{provide:f.FYo,useFactory:function kl(te,k,O){return new Fo(te,k,O)},deps:[e.se,Yr,f.R0b]}],ra=[{provide:vn,useFactory:()=>new qs},{provide:f.QbO,useValue:"BrowserAnimations"},...Do],aa=[{provide:vn,useClass:Sn},{provide:f.QbO,useValue:"NoopAnimations"},...Do];let Js=(()=>{class te{static withConfig(O){return{ngModule:te,providers:O.disableAnimations?aa:ra}}}return te.\u0275fac=function(O){return new(O||te)},te.\u0275mod=f.oAB({type:te}),te.\u0275inj=f.cJS({providers:ra,imports:[e.b2]}),te})(),Zo=(()=>{class te{}return te.\u0275fac=function(O){return new(O||te)},te.\u0275mod=f.oAB({type:te}),te.\u0275inj=f.cJS({providers:[M.e8],imports:[I.ez]}),te})();var so=p(81847),Fa=p(4732),ja=p(94856),Za=p(55857),Go=p(37240),zo=p(15592),lo=p(13600),Ro=p(37380),Nl=p(34904),mn=p(85243),Vl=p(68056),Fl=p(24219),jl=p(25828),Zl=p(10369),Gl=p(14336),zl=p(25309),Wl=p(86353),co=p(11042),$s=p(57788),Yl=p(80774),Zn=p(25610),X=p(61639);let z=(()=>{class te{constructor(){this.handlers=new Map,this.cachedComponents=new Set([so.y.id,Fa.G.id,ja.c.id,Vl.z.id,Fl.z.id,Zl.w.id,co.T.id,lo.y.id,zo.u.id,Go.q.id,X.C.id,Za.W.id,Gl.Z.id,Ro.o.id,Nl.f.id,Zn._.id,mn.j.id,jl.t.id,$s.g.id,Yl.F.id,zl.Y.id,Wl.P.id]),this.cacheTimeMs=3e5,this.isUserNavigatingBack=!1}shouldReuseRoute(O,Y){return O.routeConfig===Y.routeConfig}retrieve(O){const Y=this.getKey(O);return this.handlers.has(Y)?this.handlers.get(Y).routeHandle:null}shouldAttach(O){if(!this.isUserNavigatingBack||!O.component)return!1;const Y=this.handlers.get(this.getKey(O));return Y&&this.getCurrentTimestamp()-Y.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();if(document.getElementsByClassName("cdk-overlay-container").length>0)for(;document.getElementsByClassName("cdk-overlay-container")[0].children.length>0;)document.getElementsByClassName("cdk-overlay-container")[0].children[0].remove();this.handlers.set(this.getKey(O),{routeHandle:Y,saveTimeStamp:this.getCurrentTimestamp()})}setLastNavigationType(O){this.isUserNavigatingBack="back"===O}getComponentId(O){return O.id}getKey(O){return O.pathFromRoot.map(Y=>Y.url.map(Ge=>Ge.toString())).join("/")}getCurrentTimestamp(){return+Date.now()}}return te.\u0275fac=function(O){return new(O||te)},te.\u0275prov=f.Yz7({token:te,factory:te.\u0275fac}),te})();const Re=new f.OlP("perun-api-service");let et=(()=>{class te{constructor(O,Y,Ge,ht,Ht){this.http=O,this.storeService=Y,this.authzSevice=Ge,this.titleService=ht,this.utilsService=Ht}initializeColors(O,Y){return new Promise(Ge=>{Y.forEach(ht=>{const Ht=this.storeService.getProperty("theme")[ht.configValue];document.documentElement.style.setProperty(ht.cssVariable,Ht)}),O.forEach(ht=>{const Ht=this.storeService.getProperty("theme")[ht.configValue];document.documentElement.style.setProperty(ht.cssVariable,Ht),this.setEntityTheme(ht.entity,Ht)}),Ge()})}setEntityTheme(O,Y){const Ge=function Ct(te){return[Tt(tinycolor(te).lighten(52),"50"),Tt(tinycolor(te).lighten(37),"100"),Tt(tinycolor(te).lighten(26),"200"),Tt(tinycolor(te).lighten(12),"300"),Tt(tinycolor(te).lighten(6),"400"),Tt(tinycolor(te),"500"),Tt(tinycolor(te).darken(6),"600"),Tt(tinycolor(te).darken(12),"700"),Tt(tinycolor(te).darken(18),"800"),Tt(tinycolor(te).darken(24),"900"),Tt(tinycolor(te).lighten(50).saturate(30),"A100"),Tt(tinycolor(te).lighten(30).saturate(30),"A200"),Tt(tinycolor(te).lighten(10).saturate(15),"A400"),Tt(tinycolor(te).lighten(5).saturate(5),"A700")]}(Y);for(const ht of Ge){const Qt=`--${O}-theme-primary-contrast-${ht.name}`,oi=ht.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${O}-theme-primary-${ht.name}`,`${ht.red},${ht.green},${ht.blue}`),document.documentElement.style.setProperty(Qt,oi)}}loadAppDefaultConfig(){return new Promise(O=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(Y=>{this.storeService.setDefaultConfig(Y),O()})})}loadAppInstanceConfig(){return new Promise(O=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(Y=>{this.storeService.setInstanceConfig(Y);const Ge=document.location.hostname;Y?.brandings?.[Ge]&&this.storeService.setBanding(Ge),O()},()=>{O()})})}getNoCacheHeaders(){return new kt.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(O=>{const Y=document.querySelector("link[rel*='icon']")||document.createElement("link");Y.type="image/x-icon",Y.rel="shortcut icon",Y.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(Y),O()})}setApiUrl(){return new Promise(O=>{let Y=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(Y=Y.replace("oauth","ba")),this.authzSevice.configuration.basePath=Y,this.titleService.setTitle(this.storeService.getProperty("document_title").en),O()})}loadAppsConfig(){return new Promise((O,Y)=>{this.utilsService.getAppsConfig().subscribe(Ge=>{this.storeService.setAppsConfig(Ge),O()},Ge=>Y(Ge))})}}return te.\u0275fac=function(O){return new(O||te)(f.LFG(kt.eN),f.LFG(M.d6),f.LFG(m.Ct),f.LFG(e.Dx),f.LFG(m.FW))},te.\u0275prov=f.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();function Tt(te,k){const O=tinycolor(te),Y=O.toRgb();return{name:k,hex:O.toHexString(),darkContrast:O.isLight(),red:Y.r,green:Y.g,blue:Y.b}}let qt=(()=>{class te{constructor(O,Y){this.data=O,this.location=Y}redirect(){this.location.go("/"),location.reload()}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(B.WI),f.Y36(I.Ye))},te.\u0275cmp=f.Xpm({type:te,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[3,"click"]],template:function(O,Y){1&O&&(f.TgZ(0,"h2",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"p",1),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div",2)(7,"button",3),f.NdJ("click",function(){return Y.redirect()}),f._uU(8),f.ALo(9,"translate"),f.qZA()()),2&O&&(f.xp6(1),f.hij(" ",f.lcZ(2,3,Y.data.title),"\n"),f.xp6(3),f.hij(" ",f.lcZ(5,5,Y.data.message),"\n"),f.xp6(4),f.hij(" ",f.lcZ(9,7,Y.data.action)," "))},dependencies:[B.uh,B.xY,B.H8,T.X$]}),te})(),fi=(()=>{class te{constructor(O,Y){this.dialogRef=O,this.data=Y}refresh(){location.reload()}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(B.so),f.Y36(B.WI))},te.\u0275cmp=f.Xpm({type:te,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","",3,"click"]],template:function(O,Y){1&O&&(f.TgZ(0,"h2",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"p",1),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div",2)(7,"button",3),f.NdJ("click",function(){return Y.refresh()}),f._uU(8),f.ALo(9,"translate"),f.qZA()()),2&O&&(f.xp6(1),f.hij(" ",f.lcZ(2,3,Y.data.title),"\n"),f.xp6(3),f.hij(" ",f.lcZ(5,5,Y.data.message),"\n"),f.xp6(4),f.hij(" ",f.lcZ(9,7,Y.data.action)," "))},dependencies:[B.uh,B.xY,B.H8,Q.lW,T.X$]}),te})();var Ti=p(83905);let Si=(()=>{class te{constructor(O,Y,Ge,ht,Ht,Nt,Qt){this.initAuthService=O,this.appConfigService=Y,this.authzSevice=Ge,this.dialog=ht,this.location=Ht,this.guiAuthResolver=Nt,this.mfaHandlerService=Qt,this.entityColorConfigs=[{entity:"vo",configValue:"vo_color",cssVariable:"--vo-color"},{entity:"group",configValue:"group_color",cssVariable:"--group-color"},{entity:"user",configValue:"user_color",cssVariable:"--user-color"},{entity:"member",configValue:"member_color",cssVariable:"--member-color"},{entity:"facility",configValue:"facility_color",cssVariable:"--facility-color"},{entity:"resource",configValue:"resource_color",cssVariable:"--resource-color"},{entity:"admin",configValue:"admin_color",cssVariable:"--admin-color"},{entity:"service",configValue:"service_color",cssVariable:"--service-color"}],this.colorConfigs=[{configValue:"sidemenu_hover_color",cssVariable:"--side-root-item-hover"},{configValue:"sidemenu_active_color",cssVariable:"--side-root-item-active"},{configValue:"sidemenu_submenu_active_color",cssVariable:"--side-link-active"},{configValue:"sidemenu_submenu_hover_color",cssVariable:"--side-link-hover"},{configValue:"sidemenu_hover_text_color",cssVariable:"--side-root-item-text-hover"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-root-item-text-active"},{configValue:"sidemenu_submenu_active_text_color",cssVariable:"--side-link-text-active"},{configValue:"sidemenu_submenu_hover_text_color",cssVariable:"--side-link-text-hover"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(O=>{if("Invalid path"!==O)throw this.mfaHandlerService.catchNoMfaTokenError(O?.params?.error),console.error(O),this.location.go("/"),location.reload(),O;this.handleErr(O)}).then(O=>O?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().catch(Y=>this.handleErr(Y)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}handleErr(O){const Y=(0,w.kZ)();throw"Invalid path"===O?(Y.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(qt,Y)):401!==O.status&&(Y.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===O.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":O.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(fi,Y)),console.error(O),O}loadPolicies(){return(0,Ti.z)(this.authzSevice.getAllPolicies()).then(O=>this.guiAuthResolver.setPerunPolicies(O))}}return te.\u0275fac=function(O){return new(O||te)(f.LFG(M.v0),f.LFG(et),f.LFG(m.Ct),f.LFG(B.uw),f.LFG(I.Ye),f.LFG(M.x4),f.LFG(M.hy))},te.\u0275prov=f.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),gn=(()=>{class te{}return te.\u0275fac=function(O){return new(O||te)},te.\u0275mod=f.oAB({type:te}),te.\u0275inj=f.cJS({imports:[I.ez,B.Is,Q.ot,T.aw]}),te})();var on=p(40445),qr=p(84080),Hn=p(83353),ur=p(21281),Jn=p(77579),Ta=p(56451),Kn=p(54968),Io=p(69751),ql=p(66406),Xs=p(39646),Qc=p(95698),el=p(54482),As=p(72733),Wo=p(22529),fa=p(82722),Yo=p(28746),$c=p(71345);const Jl=new f.OlP("SMOOTH_SCROLL_OPTIONS");let qo=(()=>{class te{constructor(O,Y,Ge){this._document=O,this._platform=Y,this._onGoingScrolls=new Map,this._defaultOptions={duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1},...Ge}}get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}_scrollElement(O,Y,Ge){O.scrollLeft=Y,O.scrollTop=Ge}_getElement(O,Y){return"string"==typeof O?(Y||this._document).querySelector(O):(0,ur.fI)(O)}_initSmoothScroll(O){return this._onGoingScrolls.has(O)&&this._onGoingScrolls.get(O).next(),this._onGoingScrolls.set(O,new Jn.x).get(O)}_isFinished(O,Y,Ge){return O.currentX!==O.x||O.currentY!==O.y||(Y.next(),Ge(),!1)}_interrupted(O,Y){return(0,Ta.T)((0,Kn.R)(O,"wheel",{passive:!0,capture:!0}),(0,Kn.R)(O,"touchmove",{passive:!0,capture:!0}),Y).pipe((0,Qc.q)(1))}_destroy(O,Y){Y.complete(),this._onGoingScrolls.delete(O)}_step(O){return new Io.y(Y=>{let Ge=(this._now()-O.startTime)/O.duration;Ge=Ge>1?1:Ge;const ht=O.easing(Ge);O.currentX=O.startX+(O.x-O.startX)*ht,O.currentY=O.startY+(O.y-O.startY)*ht,this._scrollElement(O.scrollable,O.currentX,O.currentY),ql.Z.schedule(()=>Y.next(O))})}_applyScrollToOptions(O,Y){if(!Y.duration)return this._scrollElement(O,Y.left,Y.top),Promise.resolve();const Ge=this._initSmoothScroll(O),ht={scrollable:O,startTime:this._now(),startX:O.scrollLeft,startY:O.scrollTop,x:null==Y.left?O.scrollLeft:~~Y.left,y:null==Y.top?O.scrollTop:~~Y.top,duration:Y.duration,easing:$c(Y.easing.x1,Y.easing.y1,Y.easing.x2,Y.easing.y2)};return new Promise(Ht=>{(0,Xs.of)(null).pipe(function vs(te,k=1/0,O){return k=(k||0)<1?1/0:k,(0,el.e)((Y,Ge)=>(0,As.p)(Y,Ge,te,k,void 0,!0,O))}(()=>this._step(ht).pipe((0,Wo.o)(Nt=>this._isFinished(Nt,Ge,Ht)))),(0,fa.R)(this._interrupted(O,Ge)),(0,Yo.x)(()=>this._destroy(O,Ge))).subscribe()})}scrollTo(O,Y){if((0,I.NF)(this._platform)){const Ge=this._getElement(O),ht="rtl"===getComputedStyle(Ge).direction,Ht=(0,Hn._i)(),Nt={...this._defaultOptions,...Y,left:null==Y.left?ht?Y.end:Y.start:Y.left,right:null==Y.right?ht?Y.start:Y.end:Y.right};return null!=Nt.bottom&&(Nt.top=Ge.scrollHeight-Ge.clientHeight-Nt.bottom),ht&&0!==Ht?(null!=Nt.left&&(Nt.right=Ge.scrollWidth-Ge.clientWidth-Nt.left),2===Ht?Nt.left=Nt.right:1===Ht&&(Nt.left=Nt.right?-Nt.right:Nt.right)):null!=Nt.right&&(Nt.left=Ge.scrollWidth-Ge.clientWidth-Nt.right),this._applyScrollToOptions(Ge,Nt)}return Promise.resolve()}scrollToElement(O,Y,Ge={}){const ht=this._getElement(O),Ht=this._getElement(Y,ht),Nt={...Ge,left:Ht.offsetLeft+(Ge.left||0),top:Ht.offsetTop+(Ge.top||0)};return Ht?this.scrollTo(ht,Nt):Promise.resolve()}}return te.\u0275fac=function(O){return new(O||te)(f.LFG(I.K0),f.LFG(f.Lbi),f.LFG(Jl,8))},te.\u0275prov=f.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),Kl=(()=>{class te{}return te.\u0275fac=function(O){return new(O||te)},te.\u0275mod=f.oAB({type:te}),te.\u0275inj=f.cJS({}),te})();var Xc=p(61135),ed=p(50727),Po=p(60515),Fn=p(18505),Jr=p(54004),il=p(63900),nl=p(78372),rl=p(71884);function al(...te){const k=te.length;if(0===k)throw new Error("list of properties cannot be empty.");return(0,Jr.U)(O=>{let Y=O;for(let Ge=0;Ge{te.onselectstart=()=>!1})}function tc(te){return(0,Fn.b)(()=>{te.onselectstart=null})}function ma(){return(0,Fn.b)(te=>te.stopPropagation())}function ic(te,k){return te.clientX>=k.left&&te.clientX<=k.left+k.width&&te.clientY>=k.top&&te.clientY<=k.top+k.height}let nc=(()=>{class te{constructor(O){this.viewPort=O,this.nativeElement=O.nativeElement}get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){return this.contentWrapperElement?.clientHeight||0}get contentWidth(){return this.contentWrapperElement?.clientWidth||0}activatePointerEvents(O,Y){this.hovered=new Io.y(Ge=>{const ht=(0,Kn.R)(this.nativeElement,"mousemove",{passive:!0}),Ht=O?ht:ht.pipe(ma()),Nt=(0,Kn.R)(this.nativeElement,"mouseleave",{passive:!0}).pipe((0,Jr.U)(()=>!1));(0,Ta.T)(Ht,Nt).pipe((0,Fn.b)(Qt=>Ge.next(Qt)),(0,fa.R)(Y)).subscribe()}),this.clicked=new Io.y(Ge=>{const ht=(0,Kn.R)(this.nativeElement,"mousedown",{passive:!0}).pipe((0,Fn.b)(Nt=>Ge.next(Nt))),Ht=(0,Kn.R)(this.nativeElement,"mouseup",{passive:!0}).pipe((0,Fn.b)(()=>Ge.next(!1)));ht.pipe((0,il.w)(()=>Ht),(0,fa.R)(Y)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(O){this.nativeElement.className=`ng-native-scrollbar-hider ng-scroll-viewport ${O}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(O){this.nativeElement.scrollTop=O}scrollXTo(O){this.nativeElement.scrollLeft=O}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(f.SBq))},te.\u0275dir=f.lG2({type:te,selectors:[["","scrollViewport",""]]}),te})(),Fr=(()=>{class te{}return te.\u0275fac=function(O){return new(O||te)},te.\u0275dir=f.lG2({type:te}),te})();const ad=new f.OlP("NG_SCROLLBAR_OPTIONS"),od={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1};let sd=(()=>{class te{constructor(O){this.globalOptions=O?{...od,...O}:od,this.rtlScrollAxisType=(0,Hn._i)()}}return te.\u0275fac=function(O){return new(O||te)(f.LFG(ad,8))},te.\u0275prov=f.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),lh=(()=>{class te{constructor(O,Y,Ge){this.document=O,this.manager=Y,this.platform=Ge,this._scrollbarSize=new Xc.X(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),Ge.isBrowser&&(0,Kn.R)(this.document.defaultView,"resize",{passive:!0}).pipe((0,nl.b)(this.manager.globalOptions.windowResizeDebounce),(0,Jr.U)(()=>this.getNativeScrollbarSize()),(0,rl.x)(),(0,Fn.b)(ht=>this._scrollbarSize.next(ht))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const O=this.document.createElement("div");O.className="ng-scrollbar-measure",O.style.left="0px",O.style.overflow="scroll",O.style.position="fixed",O.style.top="-9999px",this.document.body.appendChild(O);const Y=O.getBoundingClientRect().right;return this.document.body.removeChild(O),Y}}return te.\u0275fac=function(O){return new(O||te)(f.LFG(I.K0),f.LFG(sd),f.LFG(Hn.t4))},te.\u0275prov=f.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),ch=(()=>{class te{constructor(O,Y,Ge){this.renderer=Y,this.hideNativeScrollbar=Ge,this._subscriber=ed.w0.EMPTY,this._subscriber=Ge.scrollbarSize.subscribe(ht=>{this.renderer.setStyle(O.nativeElement,"--native-scrollbar-size",`-${ht}px`,f.JOm.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(f.SBq),f.Y36(f.Qsj),f.Y36(lh))},te.\u0275dir=f.lG2({type:te,selectors:[["","hideNativeScrollbar",""]]}),te})(),ld=(()=>{class te{constructor(O){this.el=O}set ngAttr(O){for(const[Y,Ge]of Object.entries(O))this.el.nativeElement.setAttribute(Y,Ge)}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(f.SBq))},te.\u0275dir=f.lG2({type:te,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}}),te})(),rc=(()=>{class te{constructor(O,Y,Ge){if(this.zone=O,this.platform=Y,this.scrollbar=Ge,this._disabled=!1,this._currentSubscription=null,this.event=new f.vpe,!Ge)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}get debounce(){return this._debounce}set debounce(O){this._debounce=(0,ur.su)(O),this._subscribe()}get disabled(){return this._disabled}set disabled(O){this._disabled=(0,ur.Ig)(O),this._disabled?this._unsubscribe():this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){const O=new Io.y(Y=>{this._resizeObserver=new ResizeObserver(Ge=>Y.next(Ge)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?O.pipe((0,nl.b)(this._debounce)):O).subscribe(this.event)})}}_unsubscribe(){this._resizeObserver?.disconnect(),this._currentSubscription?.unsubscribe()}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(f.R0b),f.Y36(Hn.t4),f.Y36(Fr))},te.\u0275dir=f.lG2({type:te,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}}),te})(),Jo=(()=>{class te{constructor(O,Y,Ge){this.cmp=O,this.trackElement=Y,this.document=Ge}get clicked(){const O=(0,Kn.R)(this.trackElement,"mousedown",{passive:!0}).pipe(ma(),ec(this.document)),Y=(0,Kn.R)(this.document,"mouseup",{passive:!0}).pipe(ma(),tc(this.document),(0,il.w)(()=>Po.E));return(0,Ta.T)(O,Y)}get clientRect(){return this.trackElement.getBoundingClientRect()}onTrackClicked(O,Y,Ge){return(0,Xs.of)(O).pipe(al(this.pageProperty),(0,Jr.U)(ht=>(ht-this.offset-Y/2)/this.size*Ge),(0,Fn.b)(ht=>{this.cmp.scrollTo({...this.mapToScrollToOption(ht),duration:(0,ur.su)(this.cmp.trackClickScrollDuration)})}))}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(Fr),f.Y36(HTMLElement),f.Y36(Document))},te.\u0275dir=f.lG2({type:te}),te})(),ws=(()=>{class te extends Jo{constructor(O,Y,Ge){super(O,Y.nativeElement,Ge),this.cmp=O,this.document=Ge}get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}mapToScrollToOption(O){return{left:O}}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(Fr),f.Y36(f.SBq),f.Y36(I.K0))},te.\u0275dir=f.lG2({type:te,selectors:[["","scrollbarTrackX",""]],features:[f.qOj]}),te})(),Es=(()=>{class te extends Jo{constructor(O,Y,Ge){super(O,Y.nativeElement,Ge),this.cmp=O,this.document=Ge}get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}mapToScrollToOption(O){return{top:O}}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(Fr),f.Y36(f.SBq),f.Y36(I.K0))},te.\u0275dir=f.lG2({type:te,selectors:[["","scrollbarTrackY",""]],features:[f.qOj]}),te})(),ol=(()=>{class te{constructor(O,Y,Ge,ht){this.cmp=O,this.track=Y,this.thumbElement=Ge,this.document=ht,this._dragging=new Jn.x,this.dragging=this._dragging.pipe((0,rl.x)())}get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return(0,Kn.R)(this.thumbElement,"mousedown",{passive:!0}).pipe(ma())}update(){const O=function ga(te,k,O){return Math.max(~~(te/k*te),O)}(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),Y=function cd(te,k,O){return te*O/k}(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);ql.Z.schedule(()=>this.updateStyles(this.handleDirection(Y,this.trackMax),O))}dragged(O){let Y,Ge;const ht=(0,Xs.of)(O).pipe(ec(this.document),(0,Fn.b)(()=>{Y=this.trackMax,Ge=this.viewportScrollMax,this.setDragging(!0)})),Ht=(0,Kn.R)(this.document,"mousemove",{capture:!0,passive:!0}).pipe(ma()),Nt=(0,Kn.R)(this.document,"mouseup",{capture:!0}).pipe(ma(),tc(this.document),(0,Fn.b)(()=>this.setDragging(!1)));return ht.pipe(al(this.pageProperty),(0,Jr.U)(Qt=>Qt-this.dragStartOffset),(0,td.z)(Qt=>Ht.pipe(al(this.clientProperty),(0,Jr.U)(oi=>oi-this.track.offset),(0,Jr.U)(oi=>Ge*(oi-Qt)/Y),(0,Jr.U)(oi=>this.handleDrag(oi,Ge)),(0,Fn.b)(oi=>this.scrollTo(oi)),(0,fa.R)(Nt))))}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(Fr),f.Y36(Jo),f.Y36(HTMLElement),f.Y36(Document))},te.\u0275dir=f.lG2({type:te,outputs:{dragging:"dragging"}}),te})(),ac=(()=>{class te extends ol{constructor(O,Y,Ge,ht,Ht){super(O,Y,Ge.nativeElement,ht),this.cmp=O,this.track=Y,this.element=Ge,this.document=ht,this.dir=Ht}get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}updateStyles(O,Y){this.thumbElement.style.width=`${Y}px`,this.thumbElement.style.transform=`translate3d(${O}px, 0, 0)`}handleDrag(O,Y){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return O-Y;if(2===this.cmp.manager.rtlScrollAxisType)return Y-O}return O}handleDirection(O,Y){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-O;if(0===this.cmp.manager.rtlScrollAxisType)return O-Y}return O}setDragging(O){this.cmp.setDragging({horizontalDragging:O})}scrollTo(O){this.cmp.viewport.scrollXTo(O)}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(Fr),f.Y36(ws),f.Y36(f.SBq),f.Y36(I.K0),f.Y36(on.Is))},te.\u0275dir=f.lG2({type:te,selectors:[["","scrollbarThumbX",""]],features:[f.qOj]}),te})(),oc=(()=>{class te extends ol{constructor(O,Y,Ge,ht){super(O,Y,Ge.nativeElement,ht),this.cmp=O,this.track=Y,this.element=Ge,this.document=ht}get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}updateStyles(O,Y){this.thumbElement.style.height=`${Y}px`,this.thumbElement.style.transform=`translate3d(0px, ${O}px, 0)`}handleDrag(O){return O}handleDirection(O){return O}setDragging(O){this.cmp.setDragging({verticalDragging:O})}scrollTo(O){this.cmp.viewport.scrollYTo(O)}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(Fr),f.Y36(Es),f.Y36(f.SBq),f.Y36(I.K0))},te.\u0275dir=f.lG2({type:te,selectors:[["","scrollbarThumbY",""]],features:[f.qOj]}),te})(),sl=(()=>{class te{constructor(O,Y,Ge,ht,Ht){this.el=O,this.cmp=Y,this.platform=Ge,this.document=ht,this.zone=Ht,this.destroyed=new Jn.x}activatePointerEvents(){let O,Y,Ge;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new Jn.x,this.viewportThumbClicked=new Jn.x,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),O=this.viewportThumbClicked,Y=this.viewportTrackClicked,Ge=this.cmp.viewport.hovered.pipe((0,Jr.U)(ht=>!!ht&&ic(ht,this.el.getBoundingClientRect())),(0,rl.x)(),(0,Fn.b)(ht=>this.document.onselectstart=ht?()=>!1:null)),this.cmp.viewport.clicked.pipe((0,Fn.b)(ht=>{ht?ic(ht,this.thumb.clientRect)?this.viewportThumbClicked.next(ht):ic(ht,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(ht)):this.cmp.setClicked(!1)}),(0,fa.R)(this.destroyed)).subscribe()):(O=this.thumb.clicked,Y=this.track.clicked,Ge=this.hovered),(0,Ta.T)(Ge.pipe((0,Fn.b)(ht=>this.setHovered(ht))),O.pipe((0,il.w)(ht=>this.thumb.dragged(ht))),Y.pipe((0,il.w)(ht=>this.track.onTrackClicked(ht,this.thumb.size,this.viewportScrollSize))))}get hovered(){const O=(0,Kn.R)(this.el,"mouseenter",{passive:!0}).pipe(ma(),(0,Jr.U)(()=>!0)),Y=(0,Kn.R)(this.el,"mouseleave",{passive:!0}).pipe(ma(),(0,Jr.U)(()=>!1));return(0,Ta.T)(O,Y)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe((0,fa.R)(this.destroyed)).subscribe(),(0,Ta.T)(this.cmp.scrolled,this.cmp.updated).pipe((0,Fn.b)(()=>this.thumb?.update()),(0,fa.R)(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(HTMLElement),f.Y36(Fr),f.Y36(Hn.t4),f.Y36(Document),f.Y36(f.R0b))},te.\u0275dir=f.lG2({type:te}),te})(),ll=(()=>{class te extends sl{constructor(O,Y,Ge,ht,Ht){super(O.nativeElement,Y,Ge,ht,Ht),this.cmp=Y,this.platform=Ge,this.document=ht,this.zone=Ht}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}setHovered(O){this.cmp.setHovered({verticalHovered:O})}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(f.SBq),f.Y36(Fr),f.Y36(Hn.t4),f.Y36(I.K0),f.Y36(f.R0b))},te.\u0275cmp=f.Xpm({type:te,selectors:[["scrollbar-y"]],viewQuery:function(O,Y){if(1&O&&(f.Gf(Es,7),f.Gf(oc,7)),2&O){let Ge;f.iGM(Ge=f.CRH())&&(Y.track=Ge.first),f.iGM(Ge=f.CRH())&&(Y.thumb=Ge.first)}},hostVars:2,hostBindings:function(O,Y){2&O&&f.ekj("scrollbar-control",!0)},features:[f.qOj],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0),f._UZ(1,"div",1),f.qZA()),2&O&&(f.Gre("ng-scrollbar-track ",Y.cmp.trackClass,""),f.xp6(1),f.Gre("ng-scrollbar-thumb ",Y.cmp.thumbClass,""))},dependencies:[oc,Es],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%} .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:auto;left:initial} .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:auto;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:auto;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:auto;left:initial;right:0} .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0}),te})(),dd=(()=>{class te extends sl{constructor(O,Y,Ge,ht,Ht){super(O.nativeElement,Y,Ge,ht,Ht),this.cmp=Y,this.platform=Ge,this.document=ht,this.zone=Ht}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}setHovered(O){this.cmp.setHovered({horizontalHovered:O})}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(f.SBq),f.Y36(Fr),f.Y36(Hn.t4),f.Y36(I.K0),f.Y36(f.R0b))},te.\u0275cmp=f.Xpm({type:te,selectors:[["scrollbar-x"]],viewQuery:function(O,Y){if(1&O&&(f.Gf(ws,7),f.Gf(ac,7)),2&O){let Ge;f.iGM(Ge=f.CRH())&&(Y.track=Ge.first),f.iGM(Ge=f.CRH())&&(Y.thumb=Ge.first)}},hostVars:2,hostBindings:function(O,Y){2&O&&f.ekj("scrollbar-control",!0)},features:[f.qOj],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0),f._UZ(1,"div",1),f.qZA()),2&O&&(f.Gre("ng-scrollbar-track ",Y.cmp.trackClass,""),f.xp6(1),f.Gre("ng-scrollbar-thumb ",Y.cmp.thumbClass,""))},dependencies:[ac,ws],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%} .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:auto;bottom:initial} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:auto;top:initial} .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:auto;bottom:initial} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0}),te})(),ud=(()=>{class te{constructor(O,Y,Ge,ht,Ht,Nt){this.el=O,this.zone=Y,this.changeDetectorRef=Ge,this.dir=ht,this.smoothScroll=Ht,this.manager=Nt,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new f.vpe,this.state={},this.destroyed=new Jn.x}get disabled(){return this._disabled}set disabled(O){this._disabled=(0,ur.Ig)(O)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(O){this._sensorDisabled=(0,ur.Ig)(O)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(O){this._pointerEventsDisabled=(0,ur.Ig)(O)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(O){this._viewportPropagateMouseMove=(0,ur.Ig)(O)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(O){this._autoHeightDisabled=(0,ur.Ig)(O)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(O){this._autoWidthDisabled=(0,ur.Ig)(O)}get nativeElement(){return this.el.nativeElement}updateState(){let O=!1,Y=!1,Ge=!1,ht=!1;("all"===this.track||"vertical"===this.track)&&(Ge=this.viewport.scrollHeight>this.viewport.clientHeight,O="always"===this.visibility||Ge),("all"===this.track||"horizontal"===this.track)&&(ht=this.viewport.scrollWidth>this.viewport.clientWidth,Y="always"===this.visibility||ht),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:O,horizontalUsed:Y,isVerticallyScrollable:Ge,isHorizontallyScrollable:ht})}setState(O){this.state={...this.state,...O},this.changeDetectorRef.detectChanges()}getScrolledByDirection(O){let Y;return this.scrolled.pipe((0,Fn.b)(Ge=>Y=Ge),al("target",O),(0,id.G)(),(0,nd.h)(([Ge,ht])=>Ge!==ht),(0,Jr.U)(()=>Y))}setHovered(O){this.zone.run(()=>this.setState({...O}))}setDragging(O){this.zone.run(()=>this.setState({...O}))}setClicked(O){this.zone.run(()=>this.setState({scrollbarClicked:O}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let O=(0,Kn.R)(this.viewport.nativeElement,"scroll",{passive:!0});O=this.scrollAuditTime?O.pipe((0,Cs.e)(this.scrollAuditTime)):O,this.scrolled=O.pipe((0,fa.R)(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(O){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe((0,Fn.b)(()=>this.update()),(0,fa.R)(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(O){return this.smoothScroll.scrollTo(this.viewport.nativeElement,O)}scrollToElement(O,Y){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,O,Y)}updateHeight(){this.nativeElement.style.height="standard"===this.appearance&&this.scrollbarX?`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:`${this.viewport.contentHeight}px`}updateWidth(){this.nativeElement.style.width="standard"===this.appearance&&this.scrollbarY?`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:`${this.viewport.contentWidth}px`}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(f.sBO),f.Y36(on.Is),f.Y36(qo),f.Y36(sd))},te.\u0275cmp=f.Xpm({type:te,selectors:[["ng-scrollbar"]],contentQueries:function(O,Y,Ge){if(1&O&&f.Suo(Ge,nc,7),2&O){let ht;f.iGM(ht=f.CRH())&&(Y.customViewPort=ht.first)}},viewQuery:function(O,Y){if(1&O&&(f.Gf(Ql,5,f.SBq),f.Gf(rd,5,f.SBq),f.Gf(nc,7)),2&O){let Ge;f.iGM(Ge=f.CRH())&&(Y.scrollbarY=Ge.first),f.iGM(Ge=f.CRH())&&(Y.scrollbarX=Ge.first),f.iGM(Ge=f.CRH())&&(Y.defaultViewPort=Ge.first)}},hostVars:2,hostBindings:function(O,Y){2&O&&f.ekj("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[f._Bn([{provide:Fr,useExisting:te}]),f.TTD],ngContentSelectors:sh,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"],["scrollbarX",""],["scrollbarY",""]],template:function(O,Y){1&O&&(f.F$t(),f.TgZ(0,"div",0)(1,"div",1),f.NdJ("resizeSensor",function(){return Y.update()}),f.TgZ(2,"div",2)(3,"div"),f.Hsn(4),f.qZA()()(),f.YNc(5,Xl,3,2,"ng-container",3),f.qZA()),2&O&&(f.Q6J("ngAttr",Y.state),f.xp6(1),f.Q6J("sensorDebounce",Y.sensorDebounce)("sensorDisabled",Y.sensorDisabled),f.xp6(4),f.Q6J("ngIf",!Y.disabled))},dependencies:[I.O5,nc,ch,ld,rc,ll,dd],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none} .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport>.ng-scroll-content{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)} .ng-scroll-content{display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%], .ng-scroll-viewport{position:absolute;left:0;right:0;top:0;bottom:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none} .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none} .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)} .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none} .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default} .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0}),te})(),hd=(()=>{class te{static withConfig(O){return{ngModule:te,providers:[{provide:ad,useValue:O}]}}}return te.\u0275fac=function(O){return new(O||te)},te.\u0275mod=f.oAB({type:te}),te.\u0275inj=f.cJS({imports:[I.ez,on.vT,qr.eL,Hn.ud,Kl]}),te})();var cl=p(51214),pd=p(73228),fd=p(36769),Lr=p(22465);function dl(te,k){if(1&te){const O=f.EpF();f.TgZ(0,"div")(1,"perun-web-apps-notification",2),f.NdJ("closeNotification",function(){const ht=f.CHM(O).index,Ht=f.oxw();return f.KtG(Ht.removeNotification(ht))}),f.qZA()()}if(2&te){const O=k.$implicit;f.Q6J("@flyInOut",void 0),f.xp6(1),f.Q6J("data",O)("newNotification",!0)}}const sc=function(te){return{top:te}};let ul=(()=>{class te{constructor(O,Y){this.notificator=O,this.notificationStorageService=Y,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(Ge=>{this.processNotification(Ge)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(O){this.notifications.splice(O,1)}processNotification(O){this.notifications.push(O),this.notificationStorageService.storeNotification(O)}}return te.\u0275fac=function(O){return new(O||te)(f.Y36(M.V6),f.Y36(M.SZ))},te.\u0275cmp=f.Xpm({type:te,selectors:[["perun-web-apps-notificator"]],hostBindings:function(O,Y){1&O&&f.NdJ("resize",function(ht){return Y.getScreenSize(ht)},!1,f.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(O,Y){1&O&&(f.TgZ(0,"div",0),f.YNc(1,dl,2,3,"div",1),f.qZA()),2&O&&(f.Q6J("ngStyle",f.VKq(2,sc,Y.getNotificatorTop())),f.xp6(1),f.Q6J("ngForOf",Y.notifications))},dependencies:[I.sg,I.PC,Lr.c],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:initial;bottom:0}}"],data:{animation:[fd.Pd]}}),te})();var gr=p(46453);const Ko={provide:kt.TP,useExisting:(0,f.Gpc)(()=>M.yC),multi:!0};function lc(te){return new hi(te,"./assets/i18n/",".json")}function cc(te){const k={basePath:te.getProperty("api_url")};return new m.VK(k)}const md=te=>()=>te.initialize();let dc=(()=>{class te{constructor(O,Y){this.customIconService=O,this.translate=Y,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return te.\u0275fac=function(O){return new(O||te)(f.LFG(M.EB),f.LFG(T.sK))},te.\u0275mod=f.oAB({type:te,bootstrap:[Ot.y]}),te.\u0275inj=f.cJS({providers:[Si,{provide:f.ip1,useFactory:md,multi:!0,deps:[Si]},{provide:m.VK,useFactory:cc,deps:[M.d6]},{provide:A.wN,useClass:z},M.EB,{provide:Re,useClass:M.sM},M.yC,Ko,{provide:cl.Hy,useFactory:()=>localStorage}],imports:[Js,e.b2,kt.JF,si.m,Zo,Rt,ue.Ps,gn,T.aw.forRoot({loader:{provide:T.Zw,useFactory:lc,deps:[kt.eN]}}),m.au,c.ez,ve,hd.withConfig({autoWidthDisabled:!1,visibility:"hover"}),cl.zr.forRoot()]}),te})();f.B6R(Ot.y,function(){return[I.O5,I.PC,A.lC,ue.Hw,pd.V,j.JX,j.TM,j.Rh,Mt.$,ul,gr.Y,Te,ud]},[]),(0,f.G48)(),e.q6().bootstrapModule(dc).catch(te=>console.error(te))},11243:(Xe,ae,p)=>{"use strict";p.d(ae,{r:()=>A});var e=p(36895),f=p(94650);let A=(()=>{class S{}return S.\u0275fac=function(M){return new(M||S)},S.\u0275mod=f.oAB({type:S}),S.\u0275inj=f.cJS({imports:[e.ez]}),S})()},6335:(Xe,ae,p)=>{"use strict";p.d(ae,{Ng:()=>S,Rc:()=>f,pI:()=>A});var e=p(94650);const f="GUI_CONFIG.PREF_PAGE_SIZE",A="GUI_CONFIG.PREF_PAGE_SIZE.";let S=(()=>{class m{getString(w){return localStorage.getItem(w)}getNumber(w){return parseInt(localStorage.getItem(w),10)}setNumber(w,x){localStorage.setItem(w,x.toString())}}return m.\u0275fac=function(w){return new(w||m)},m.\u0275prov=e.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},10036:(Xe,ae,p)=>{"use strict";p.d(ae,{$I:()=>si,$V:()=>s,$t:()=>kt,AA:()=>F,Ad:()=>qe,Af:()=>V,Aj:()=>$e,BV:()=>fe,Bf:()=>t,CE:()=>Mt,CP:()=>S,Cf:()=>Oe,DR:()=>we,FF:()=>Ot,H2:()=>q,HC:()=>N,HE:()=>vt,Hi:()=>ie,Is:()=>pt,It:()=>C,Iz:()=>_,JO:()=>r,Jf:()=>xe,KE:()=>U,M8:()=>Ee,NG:()=>Z,NL:()=>pe,O7:()=>W,O9:()=>lt,RS:()=>se,S7:()=>E,Sb:()=>$,US:()=>d,VR:()=>T,W1:()=>Ye,Wv:()=>be,XH:()=>hi,YF:()=>w,_7:()=>ce,_c:()=>_e,aL:()=>Ne,bf:()=>De,bj:()=>Se,cL:()=>Pe,d7:()=>Ae,dB:()=>A,dI:()=>j,dK:()=>Te,e5:()=>n,ee:()=>Rt,eq:()=>ft,g:()=>oe,gB:()=>ee,gG:()=>c,gc:()=>x,iQ:()=>o,j1:()=>Q,kO:()=>Ie,kZ:()=>Ze,nT:()=>M,oK:()=>u,qV:()=>re,qy:()=>me,rF:()=>Le,rc:()=>he,tY:()=>v,tw:()=>m,uC:()=>Be,uI:()=>xt,uM:()=>B,v1:()=>P,vq:()=>Ke,xt:()=>ue,xx:()=>I,yW:()=>ut,z6:()=>h,zW:()=>ve,zp:()=>l});var e=p(6335),f=p(94650);let A=(()=>{class Je{constructor(tt){this.guiConfigService=tt,this.defaultTableSizes=new Map,this.defaultTableSizes.set(Le,25),this.defaultTableSizes.set(B,25)}getTablePageSize(tt){const rt=this.guiConfigService.getNumber(e.pI+tt);if(!isNaN(rt))return rt;const Ft=this.guiConfigService.getNumber(e.Rc);return isNaN(Ft)?this.defaultTableSizes.get(tt)??10:Ft}setTablePageSize(tt,rt){this.guiConfigService.setNumber(e.pI+tt,rt)}}return Je.\u0275fac=function(tt){return new(tt||Je)(f.LFG(e.Ng))},Je.\u0275prov=f.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})();const S="0",m="1",M="2",w="3",x="4",P="5",F="6",T="7",B="8",I="9",q="10",ue="11",j="12",Q="13",be="14",me="15",fe="16",re="17",v="18",V="19",W="20",ee="21",ie="22",xe="23",Ye="24",Le="25",$e="26",qe="27",Ze="28",Pe="29",se="30",N="31",U="32",$="33",ce="34",De="35",he="36",Oe="37",ft="42",Z="43",lt="44",Ae="45",Ke="46",pe="47",Ie="48",Ne="49",we="50",Be="51",r="52",u="53",_="54",C="55",h="56",o="57",n="58",t="59",l="62",d="63",c="64",s="65",E="66",ve="69",Mt="71",pt="72",Ee="75",oe="76",_e="77",Te="78",ut="79",vt="80",Rt="82",Ot="83",si="84",hi="85",kt="86",xt="87",Se="88"},36769:(Xe,ae,p)=>{"use strict";p.d(ae,{Ji:()=>m,Pd:()=>A,BQ:()=>f,Ly:()=>S,GH:()=>x,Ls:()=>P,SG:()=>w,es:()=>M});var e=p(37340);const f=(0,e.X$)("openClose",[(0,e.SB)("open",(0,e.oB)({overflow:"hidden"})),(0,e.SB)("closed",(0,e.oB)({height:"0px",overflow:"hidden"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),A=(0,e.X$)("flyInOut",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".5s",(0,e.oB)({transform:"translateX(100%)"}))])]),S=(0,e.X$)("rollInOut",[(0,e.eR)(":enter",[(0,e.oB)({height:"0px"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".25s",(0,e.oB)({height:"0px"}))])]),m=(0,e.X$)("routeAnimations",[(0,e.eR)("* => *",[(0,e.oB)({position:"relative"}),(0,e.IO)(":enter",[(0,e.oB)({width:"100%",opacity:0})],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({position:"absolute",width:"100%",opacity:1}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,e.IO)(":enter",[(0,e.oB)({position:"absolute",width:"100%",opacity:0}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),M=(0,e.X$)("tagsOpenClose",[(0,e.SB)("open",(0,e.oB)({})),(0,e.SB)("closed",(0,e.oB)({width:"0px",height:"0px"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),w=(0,e.X$)("switchAnimations",[(0,e.eR)("true => false",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(-100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,e.eR)("false => true",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),x=(0,e.X$)("slideInOutLeft",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(-100%)"}))])]),P=(0,e.X$)("slideInOutRight",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)",position:"fixed"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(100%)"}))])])},37433:(Xe,ae,p)=>{"use strict";p.d(ae,{Mw:()=>it.M,CZ:()=>d.C,Ld:()=>H.L,qG:()=>r.qG,Sx:()=>we.S,y9:()=>u,Nj:()=>Ae.N,ez:()=>he,N7:()=>a});var e=p(36895),f=p(56709),A=p(30671),S=p(89383),m=p(82761),M=p(96308),w=p(98739),x=p(51572),P=p(63189),F=p(46860),T=p(97392),B=p(28255),I=p(4859),q=p(10266),ue=p(59549),j=p(24006),Q=p(284),be=p(77331),me=p(73555),fe=p(3238),re=p(19516),v=p(22465),V=p(64425),W=p(35423),ee=p(99602),ie=p(71948),xe=p(84385),Ye=p(33231),Le=p(67376),$e=p(7274),qe=p(9244),Ze=p(60900),Pe=p(42673),se=p(21029),N=p(94650),U=p(98380),$=p(34447);let ce=(()=>{class ne extends fe.LF{format(We,Mt){return"input"===Mt?`${We.getDate().toString()}.${(We.getMonth()+1).toString()}.${We.getFullYear()}`:We.toDateString()}}return ne.\u0275fac=function(){let ve;return function(Mt){return(ve||(ve=N.n5z(ne)))(Mt||ne)}}(),ne.\u0275prov=N.Yz7({token:ne,factory:ne.\u0275fac}),ne})();const De={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let he=(()=>{class ne{}return ne.\u0275fac=function(We){return new(We||ne)},ne.\u0275mod=N.oAB({type:ne}),ne.\u0275inj=N.cJS({providers:[{provide:fe._A,useClass:ce},{provide:fe.sG,useValue:De}],imports:[e.ez,f.p9,A.p0,j.u5,be.Hi,me._t,S.aw,m.Bz,M.JX,w.TU,x.Cq,P.r,F.A,T.Ps,B.Tx,I.ot,q.AV,ue.lN,j.UX,Q.c,fe.si,re.d4,V.Iq,W.dp,ee.FA,ie.Fk,fe.Ng,xe.LD,Ye.Co,Le.Cl,$e.Is,qe.Je,Ze.C,Pe.g]}),ne})();N.B6R(se.Us,[e.O5,U.w,I.lW,Le.xd,Le.x0,Le.N7,$e.uh,$e.xY,$e.H8,v.c],[S.X$,$.a]),p(53984);var it=p(43532),Ae=(p(38719),p(21963),p(28820),p(63167),p(62109),p(80275),p(53599)),we=(p(25788),p(58956),p(41619),p(61150),p(63312)),r=(p(52314),p(52170));let u=(()=>{class ne{constructor(We){this.router=We}redirectToHome(){this.router.navigate(["/home"],{queryParamsHandling:"merge"})}}return ne.\u0275fac=function(We){return new(We||ne)(N.Y36(m.F0))},ne.\u0275cmp=N.Xpm({type:ne,selectors:[["perun-web-apps-not-authorized-page"]],decls:10,vars:9,consts:[[1,"container-fluid","ps-xl-5","pe-xl-5"],[1,"page-title"],["mat-stroked-button","",1,"mt-2",3,"click"]],template:function(We,Mt){1&We&&(N.TgZ(0,"div",0)(1,"h1",1),N._uU(2),N.ALo(3,"translate"),N.qZA(),N.TgZ(4,"div"),N._uU(5),N.ALo(6,"translate"),N.qZA(),N.TgZ(7,"button",2),N.NdJ("click",function(){return Mt.redirectToHome()}),N._uU(8),N.ALo(9,"translate"),N.qZA()()),2&We&&(N.xp6(2),N.Oqu(N.lcZ(3,3,"GENERAL.NOT_AUTHORIZED_PAGE.TITLE")),N.xp6(3),N.Oqu(N.lcZ(6,5,"GENERAL.NOT_AUTHORIZED_PAGE.DESC")),N.xp6(3),N.hij(" ",N.lcZ(9,7,"GENERAL.NOT_AUTHORIZED_PAGE.REDIRECT")," "))},dependencies:[I.lW,S.X$]}),ne})();p(2541),p(74006);var h=p(80279),o=p(61744),n=p(95017),t=p(96338);function i(ne,ve){if(1&ne){const We=N.EpF();N.TgZ(0,"mat-list-item",3)(1,"div",4)(2,"p",5),N.NdJ("click",function(){const _t=N.CHM(We).$implicit,ye=N.oxw();return N.KtG(ye.showWholeKey(_t))}),N._uU(3),N.qZA(),N.TgZ(4,"button",6),N.ALo(5,"translate"),N.ALo(6,"customTranslate"),N.TgZ(7,"mat-icon"),N._uU(8," file_copy "),N.qZA()(),N.TgZ(9,"button",7),N.NdJ("click",function(){const _t=N.CHM(We).$implicit,ye=N.oxw();return N.KtG(ye.removeKey(_t))}),N.ALo(10,"translate"),N.ALo(11,"customTranslate"),N.TgZ(12,"mat-icon"),N._uU(13," delete "),N.qZA()()()()}if(2&ne){const We=ve.$implicit;N.xp6(3),N.Oqu(We),N.xp6(1),N.s9C("matTooltip",N.lcZ(5,4,N.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.COPY_TOOLTIP"))),N.Q6J("cdkCopyToClipboard",We),N.xp6(5),N.s9C("matTooltip",N.lcZ(10,8,N.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_TOOLTIP")))}}let a=(()=>{class ne{constructor(We,Mt,pt,_t,ye){this.store=We,this.attributesManagerService=Mt,this.dialog=pt,this.translateService=_t,this.entityStorageService=ye,this.userKeys=[],this.userUrn="urn:perun:user:attribute-def:def:sshPublicKey",this.selection=new n.Ov(!1,[]),_t.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(Ee=>this.removeDialogDescription=Ee),_t.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(Ee=>this.removeDialogTitle=Ee),_t.get("ALERTS.NO_ALT_PASSWORDS").subscribe(Ee=>this.alertText=Ee),_t.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(Ee=>this.headerColumnText=Ee)}ngOnInit(){this.userId=window.location.pathname.startsWith("/myProfile")?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(We=>this.removeDialogDescription=We),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(We=>this.removeDialogTitle=We),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(We=>this.alertText=We),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(We=>this.headerColumnText=We)}),this.loading=!0,this.getUserSSH()}addKey(){const We=(0,qe.kZ)();We.width="850px",We.data={attribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(se.FJ,We).afterClosed().subscribe(pt=>{pt&&this.getUserSSH()})}removeKey(We){const Mt=(0,qe.kZ)();Mt.width="600px",Mt.data={values:[We],attribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(se.eK,Mt).afterClosed().subscribe(_t=>{_t&&(this.loading=!0,this.getUserSSH(),this.selection.clear())})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(We=>{this.userKeyAttribute=We,this.userKeys=We.value,this.loading=!1})}showWholeKey(We){const Mt=(0,qe.kZ)();Mt.width="600px",Mt.data={value:We},this.dialog.open(se.iI,Mt)}}return ne.\u0275fac=function(We){return new(We||ne)(N.Y36(h.d6),N.Y36(o.H8),N.Y36($e.uw),N.Y36(S.sK),N.Y36(h.fb))},ne.\u0275cmp=N.Xpm({type:ne,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:14,vars:16,consts:[[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["class","dark-hover-list-item w-auto","matRipple","",4,"ngFor","ngForOf"],["matRipple","",1,"dark-hover-list-item","w-auto"],[1,"d-flex","flex-row"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ms-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ms-2","center-content",3,"matTooltip","click"]],template:function(We,Mt){1&We&&(N.TgZ(0,"h1",0),N._uU(1),N.ALo(2,"translate"),N.ALo(3,"customTranslate"),N.qZA(),N.TgZ(4,"p"),N._uU(5),N.ALo(6,"translate"),N.ALo(7,"customTranslate"),N.qZA(),N.TgZ(8,"button",1),N.NdJ("click",function(){return Mt.addKey()}),N._uU(9),N.ALo(10,"translate"),N.ALo(11,"customTranslate"),N.qZA(),N.TgZ(12,"mat-list"),N.YNc(13,i,14,12,"mat-list-item",2),N.qZA()),2&We&&(N.xp6(1),N.hij(" ",N.lcZ(2,4,N.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_TITLE")),"\n"),N.xp6(4),N.Oqu(N.lcZ(6,8,N.lcZ(7,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_DESCRIPTION"))),N.xp6(4),N.hij(" ",N.lcZ(10,12,N.lcZ(11,14,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),N.xp6(4),N.Q6J("ngForOf",Mt.userKeys))},dependencies:[e.sg,T.Hw,I.lW,I.RK,q.gM,fe.wG,V.i3,t.i$,t.Tg,S.X$,$.a],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}label[_ngcontent-%COMP%]:hover, .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),ne})();p(46453);var d=p(29926),H=(p(91880),p(61880),p(12488),p(7434))},63312:(Xe,ae,p)=>{"use strict";p.d(ae,{S:()=>m,Y:()=>M});var e=p(94650),A=(p(61744),p(89383)),S=p(89593);const m={};let M=(()=>{class w{constructor(P){this.translate=P,this.item=null,this.itemSelected=new e.vpe,this.nameFunction=F=>F===m?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):F.shortname,this.secondaryFunction=F=>F===m?"":F.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+String(F.id),this.searchFunction=F=>F===m?"":F.shortname+String(F.id)}}return w.\u0275fac=function(P){return new(P||w)(e.Y36(A.sK))},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-app-form-item-search-select"]],inputs:{items:"items",item:"item"},outputs:{itemSelected:"itemSelected"},decls:4,vars:15,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","entity","disableAutoSelect","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(P,F){1&P&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(B){return F.itemSelected.emit(B)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&P&&e.Q6J("entities",F.items)("searchFunction",F.searchFunction)("mainTextFunction",F.nameFunction)("secondaryTextFunction",F.secondaryFunction)("entity",F.item)("disableAutoSelect",!0)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[S.i,A.X$]}),w})()},68788:(Xe,ae,p)=>{"use strict";p.d(ae,{x:()=>M});var e=p(94650),f=p(59549),A=p(3238),S=p(84385),m=p(89383);let M=(()=>{class w{constructor(){this.stateChanged=new e.vpe,this.state="pending"}select(){switch(this.state){case"approved":this.stateChanged.emit(["APPROVED"]);break;case"rejected":this.stateChanged.emit(["REJECTED"]);break;case"wfmv":this.stateChanged.emit(["NEW"]);break;case"submitted":this.stateChanged.emit(["VERIFIED"]);break;case"pending":this.stateChanged.emit(["NEW","VERIFIED"]);break;case"all":this.stateChanged.emit(null)}}}return w.\u0275fac=function(P){return new(P||w)},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-application-state-selector"]],outputs:{stateChanged:"stateChanged"},decls:23,vars:22,consts:[[1,"input-width-250","me-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","pending"],["value","wfmv"],["value","submitted"],["value","approved"],["value","rejected"]],template:function(P,F){1&P&&(e.TgZ(0,"mat-form-field",0)(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-select",1),e.NdJ("selectionChange",function(){return F.select()})("valueChange",function(B){return F.state=B}),e.TgZ(5,"mat-option",2),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"mat-option",3),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"mat-option",4),e._uU(12),e.ALo(13,"translate"),e.qZA(),e.TgZ(14,"mat-option",5),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"mat-option",6),e._uU(18),e.ALo(19,"translate"),e.qZA(),e.TgZ(20,"mat-option",7),e._uU(21),e.ALo(22,"translate"),e.qZA()()()),2&P&&(e.xp6(2),e.Oqu(e.lcZ(3,8,"APPLICATIONS_LIST.STATE")),e.xp6(2),e.Q6J("value",F.state),e.xp6(2),e.Oqu(e.lcZ(7,10,"VO_DETAIL.APPLICATION.SELECTION_ALL")),e.xp6(3),e.Oqu(e.lcZ(10,12,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),e.xp6(3),e.Oqu(e.lcZ(13,14,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),e.xp6(3),e.Oqu(e.lcZ(16,16,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),e.xp6(3),e.Oqu(e.lcZ(19,18,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),e.xp6(3),e.Oqu(e.lcZ(22,20,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")))},dependencies:[f.KE,f.hX,A.ey,S.gD,m.X$]}),w})()},38719:(Xe,ae,p)=>{"use strict";p.d(ae,{u:()=>F});var e=p(94650),f=p(9244),A=p(36895),S=p(56709),m=p(24006),M=p(59549),w=p(64597);function x(T,B){if(1&T){const I=e.EpF();e.TgZ(0,"mat-checkbox",2),e.NdJ("change",function(){e.CHM(I);const ue=e.oxw();return e.KtG(ue._sendEventToParent())})("ngModelChange",function(ue){e.CHM(I);const j=e.oxw();return e.KtG(j.attribute.value=ue)}),e.ALo(1,"multiWordDataCy"),e.qZA()}if(2&T){const I=e.oxw();e.Q2q("data-cy","",e.lcZ(1,2,I.attribute.displayName),"-value"),e.Q6J("ngModel",I.attribute.value)}}function P(T,B){if(1&T&&(e.TgZ(0,"mat-label"),e._uU(1),e.qZA()),2&T){const I=e.oxw();e.xp6(1),e.Oqu(I.attribute.value)}}let F=(()=>{class T{constructor(){this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,f.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return T.\u0275fac=function(I){return new(I||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(I,q){1&I&&(e.TgZ(0,"div"),e.YNc(1,x,2,4,"mat-checkbox",0),e.YNc(2,P,2,1,"mat-label",1),e.qZA()),2&I&&(e.xp6(1),e.Q6J("ngIf",!q.readonly),e.xp6(1),e.Q6J("ngIf",q.readonly))},dependencies:[A.O5,S.oG,m.JJ,m.On,M.hX,w.R]}),T})()},21963:(Xe,ae,p)=>{"use strict";p.d(ae,{H:()=>re});var e=p(94650),f=p(29521),A=p(73555),S=p(21029),m=p(9244),M=p(7274),w=p(36895),x=p(77331),P=p(97392),F=p(4859),T=p(10266),B=p(59549),I=p(284);function q(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"mat-icon",14),e.NdJ("mousedown",function(){e.CHM(W);const ie=e.oxw(2);return e.KtG(ie.dragDisabled=!1)}),e._uU(1,"drag_indicator"),e.qZA()}}function ue(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"mat-icon",15),e.NdJ("click",function(){e.CHM(W);const ie=e.oxw().$implicit,xe=e.oxw();return e.KtG(xe.edit(ie))}),e._uU(1,"edit"),e.qZA()}}function j(v,V){1&v&&(e.TgZ(0,"button",16)(1,"mat-icon",17),e._uU(2,"cancel"),e.qZA()())}function Q(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"mat-chip-row",7),e.NdJ("removed",function(){const xe=e.CHM(W).$implicit,Ye=e.oxw();return Ye.remove(xe),e.KtG(Ye._sendEventToParent())}),e.TgZ(1,"div",8),e.NdJ("click",function(){const xe=e.CHM(W).$implicit,Ye=e.oxw();return e.KtG(Ye.readonly&&void 0!==Ye.attribute.displayName&&Ye.showValue(xe,Ye.attribute.displayName))}),e.YNc(2,q,2,0,"mat-icon",9),e.TgZ(3,"span",10),e._uU(4),e.qZA()(),e.TgZ(5,"button",11),e.YNc(6,ue,2,0,"mat-icon",12),e.qZA(),e.YNc(7,j,3,0,"button",13),e.qZA()}if(2&v){const W=V.$implicit,ee=e.oxw();e.Q6J("cdkDragData",W)("removable",ee.removable),e.xp6(1),e.ekj("cursor-pointer",ee.readonly&&void 0!==ee.attribute.displayName),e.xp6(1),e.Q6J("ngIf",ee.removable),e.xp6(2),e.Oqu(W),e.xp6(2),e.Q6J("ngIf",ee.removable),e.xp6(1),e.Q6J("ngIf",ee.removable)}}function be(v,V){1&v&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function me(v,V){1&v&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function fe(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"div",18)(1,"span",19)(2,"button",20),e.NdJ("click",function(){e.CHM(W);const ie=e.oxw();return e.KtG(ie.onShowChange())}),e.YNc(3,be,2,0,"mat-icon",21),e.YNc(4,me,2,0,"mat-icon",21),e.qZA()()()}if(2&v){const W=e.oxw();e.xp6(1),e.Q6J("matTooltip",W.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(2),e.Q6J("ngIf",!W.showMore),e.xp6(1),e.Q6J("ngIf",W.showMore)}}let re=(()=>{class v{constructor(W,ee){this.dialog=W,this.changeDetector=ee,this.readonly=!1,this.sendEventToParent=new e.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[f.K5,f.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!(0,m.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,m.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(W){const ee=W.input,ie=W.value;(ie||"").trim()&&(this.attribute.value.push(ie.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),ee&&(ee.value=""),this.sendEventToParent.emit()}remove(W){const ee=(0,m.kZ)();ee.width="400px",ee.data={name:W},this.dialog.open(S.Wr,ee).afterClosed().subscribe(xe=>{if(xe){const Ye=this.attribute.value.indexOf(W);this.attribute.value.splice(Ye,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(W){this.dragDisabled=!0,(0,A.bA)(this.attribute.value,W.previousIndex,W.currentIndex),this.values=this.attribute.value}edit(W){const ee=this.attribute.value.indexOf(W),ie=(0,m.kZ)();ie.width="600px",ie.data={attribute:this.attribute,index:ee},this.dialog.open(S.r2,ie).afterClosed().subscribe(Ye=>{Ye&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(W,ee){const ie=(0,m.kZ)();ie.width="350px",ie.data={value:W,title:ee},this.dialog.open(S.mk,ie)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return v.\u0275fac=function(W){return new(W||v)(e.Y36(M.uw),e.Y36(e.sBO))},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:7,vars:7,consts:[["cdkDropList","","cdkDropListOrientation","vertical",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],[1,"d-flex","flex-column"],["class","chip-word-break","cdkDrag","",3,"cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["subscriptSizing","dynamic",1,"w-100",3,"hidden"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"],["cdkDrag","",1,"chip-word-break",3,"cdkDragData","removable","removed"],[1,"chip-body",3,"click"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text"],["matChipTrailingIcon",""],["class","edit-delete-icon ms-2",3,"click",4,"ngIf"],["matChipRemove","",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ms-2",3,"click"],["matChipRemove",""],[1,"edit-delete-icon"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ms-auto",3,"click"],[4,"ngIf"]],template:function(W,ee){if(1&W&&(e.TgZ(0,"mat-chip-grid",0,1),e.NdJ("cdkDropListDropped",function(xe){return ee.drop(xe),ee._sendEventToParent()}),e.TgZ(2,"div",2),e.YNc(3,Q,8,8,"mat-chip-row",3),e.qZA(),e.YNc(4,fe,5,4,"div",4),e.TgZ(5,"mat-form-field",5)(6,"input",6),e.NdJ("matChipInputTokenEnd",function(xe){return ee.add(xe)})("change",function(){return ee._sendEventToParent()}),e.qZA()()()),2&W){const ie=e.MAs(1);e.Q6J("cdkDropListDisabled",ee.dragDisabled),e.xp6(3),e.Q6J("ngForOf",ee.values.slice(0,ee.itemsShown)),e.xp6(1),e.Q6J("ngIf",ee.values.length>ee.defaultItemsShown),e.xp6(1),e.Q6J("hidden",ee.readonly),e.xp6(1),e.Q6J("matChipInputFor",ie)("matChipInputSeparatorKeyCodes",ee.separatorKeysCodes)("matChipInputAddOnBlur",ee.addOnBlur)}},dependencies:[w.sg,w.O5,x.RA,x.oH,x.qH,x.z3,x.T,A.Wj,A.Zt,P.Hw,F.RK,T.gM,B.KE,I.Nt],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-body[_ngcontent-%COMP%]{align-items:center;display:flex}.mat-mdc-chip-grid[_ngcontent-%COMP%] .mat-mdc-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px;margin-left:-4px}.mat-mdc-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.chip-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:400px}"]}),v})()},28820:(Xe,ae,p)=>{"use strict";p.d(ae,{$:()=>be});var e=p(21029),f=p(9244),A=p(94650),S=p(7274),m=p(36895),M=p(24006),w=p(97392),x=p(4859),P=p(10266),F=p(59549),T=p(284);function B(me,fe){if(1&me){const re=A.EpF();A.TgZ(0,"button",13),A.NdJ("click",function(){A.CHM(re);const V=A.oxw().index,W=A.oxw();return A.KtG(W.removeValue(V))}),A.TgZ(1,"mat-icon"),A._uU(2," indeterminate_check_box "),A.qZA()()}}function I(me,fe){if(1&me){const re=A.EpF();A.TgZ(0,"div",8)(1,"mat-form-field",9)(2,"input",10),A.NdJ("click",function(){const W=A.CHM(re).index,ee=A.oxw();return A.KtG(ee.readonly&&ee.attribute.displayName&&ee.showValue(ee.keys[W],ee.attribute.displayName))})("ngModelChange",function(V){const ee=A.CHM(re).index,ie=A.oxw();return A.KtG(ie.keys[ee]=V)}),A.qZA()(),A.TgZ(3,"mat-form-field",9)(4,"input",11),A.NdJ("click",function(){const W=A.CHM(re).$implicit,ee=A.oxw();return A.KtG(ee.readonly&&void 0!==ee.attribute.displayName&&ee.showValue(W,ee.attribute.displayName))})("ngModelChange",function(V){const ee=A.CHM(re).index,ie=A.oxw();return A.KtG(ie.values[ee]=V)}),A.qZA()(),A.YNc(5,B,3,0,"button",12),A.qZA()}if(2&me){const re=fe.index,v=A.oxw();A.xp6(1),A.s9C("appearance",v.readonly?"outline":"fill"),A.xp6(1),A.ekj("cursor-pointer",v.readonly&&void 0!==v.attribute.displayName),A.hYB("id","",v.attribute.id,"-key-",re,""),A.MGl("name","key-",re,""),A.Q6J("ngModel",v.keys[re])("readonly",v.readonly),A.xp6(1),A.s9C("appearance",v.readonly?"outline":"fill"),A.xp6(1),A.ekj("cursor-pointer",v.readonly&&void 0!==v.attribute.displayName),A.MGl("name","value-",re,""),A.hYB("id","",v.attribute.id,"-value-",re,""),A.Q6J("readonly",v.readonly)("ngModel",v.values[re]),A.xp6(1),A.Q6J("ngIf",!v.readonly)}}function q(me,fe){1&me&&(A.TgZ(0,"mat-icon"),A._uU(1,"more_horiz"),A.qZA())}function ue(me,fe){1&me&&(A.TgZ(0,"mat-icon"),A._uU(1,"keyboard_arrow_up"),A.qZA())}function j(me,fe){if(1&me){const re=A.EpF();A.TgZ(0,"button",14),A.NdJ("click",function(){A.CHM(re);const V=A.oxw();return A.KtG(V.onShowChange())}),A.YNc(1,q,2,0,"mat-icon",15),A.YNc(2,ue,2,0,"mat-icon",15),A.qZA()}if(2&me){const re=A.oxw();A.xp6(1),A.Q6J("ngIf",!re.showMore),A.xp6(1),A.Q6J("ngIf",re.showMore)}}function Q(me,fe){if(1&me){const re=A.EpF();A.TgZ(0,"button",16),A.NdJ("click",function(){A.CHM(re);const V=A.oxw();return A.KtG(V.addValue())}),A.TgZ(1,"mat-icon"),A._uU(2," add_box "),A.qZA()()}}let be=(()=>{class me{constructor(re){this.dialog=re,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const re=new Map(Object.entries(this.attribute.value));for(const[v,V]of re.entries())this.keys.push(v),this.values.push(V)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,f.Hm)(this.attribute))}customTrackBy(re){return re}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(re){this.keys.splice(re,1),this.values.splice(re,1)}updateAttribute(){const re={};for(let v=0;vv.defaultItemsShown),A.xp6(1),A.Q6J("ngIf",!v.readonly))},dependencies:[m.sg,m.O5,M._Y,M.Fj,M.JJ,M.JL,M.Q7,M.On,M.F,w.Hw,x.RK,P.gM,F.KE,T.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.fixed-height[_ngcontent-%COMP%]{height:35px}"]}),me})()},63167:(Xe,ae,p)=>{"use strict";p.d(ae,{_:()=>P});var e=p(94650),f=p(9244),A=p(21029),S=p(7274),m=p(24006),M=p(59549),w=p(284),x=p(64597);let P=(()=>{class F{constructor(B){this.dialog=B,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,f.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(B,I){const q=(0,f.kZ)();q.width="350px",q.data={value:B,title:I},this.dialog.open(A.mk,q)}}return F.\u0275fac=function(B){return new(B||F)(e.Y36(S.uw))},F.\u0275cmp=e.Xpm({type:F,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[["subscriptSizing","dynamic",1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(B,I){1&B&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return I.readonly&&void 0!==I.value&&I.showValue(I.value,I.attribute.displayName)})("ngModelChange",function(ue){return I.attribute.value=ue})("keydown",function(){return I._sendEventToParent()}),e.ALo(2,"multiWordDataCy"),e.qZA()()),2&B&&(e.s9C("appearance",I.readonly?"outline":"fill"),e.xp6(1),e.ekj("cursor-pointer",I.readonly&&void 0!==I.value),e.Q2q("data-cy","",e.lcZ(2,6,I.attribute.displayName),"-value"),e.Q6J("readonly",I.readonly)("ngModel",I.attribute.value))},dependencies:[m.Fj,m.JJ,m.On,M.KE,w.Nt,x.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),F})()},43532:(Xe,ae,p)=>{"use strict";p.d(ae,{M:()=>fe});var e=p(94650),f=p(28820),A=p(36895),S=p(38719),m=p(21963),M=p(63167),w=p(9244),x=p(21029),P=p(7274),F=p(24006),T=p(59549),B=p(284);let I=(()=>{class re{constructor(V){this.dialog=V,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,w.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(V){const W=(0,w.kZ)();W.width="350px",W.data={value:V.value,title:V.displayName},this.dialog.open(x.mk,W)}}return re.\u0275fac=function(V){return new(V||re)(e.Y36(P.uw))},re.\u0275cmp=e.Xpm({type:re,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[["subscriptSizing","dynamic",1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(V,W){1&V&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return W.readonly&&void 0!==W.attribute.value&&W.showValue(W.attribute)})("ngModelChange",function(ie){return W.attribute.value=ie})("keydown",function(){return W._sendEventToParent()}),e.qZA()()),2&V&&(e.s9C("appearance",W.readonly?"outline":"fill"),e.xp6(1),e.ekj("cursor-pointer",W.readonly&&void 0!==W.attribute.value),e.Q6J("readonly",W.readonly)("ngModel",W.attribute.value))},dependencies:[F.Fj,F.wV,F.JJ,F.On,T.KE,B.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),re})();const q=["map"];function ue(re,v){if(1&re){const V=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-boolean",3),e.NdJ("sendEventToParent",function(){e.CHM(V);const ee=e.oxw();return e.KtG(ee._sendEventToParent2())}),e.qZA()}if(2&re){const V=e.oxw();e.Q6J("attribute",V.attribute)("readonly",V.readonly)}}function j(re,v){if(1&re){const V=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-list",3),e.NdJ("sendEventToParent",function(){e.CHM(V);const ee=e.oxw();return e.KtG(ee._sendEventToParent2())}),e.qZA()}if(2&re){const V=e.oxw();e.Q6J("attribute",V.attribute)("readonly",V.readonly)}}function Q(re,v){if(1&re&&e._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&re){const V=e.oxw();e.Q6J("attribute",V.attribute)("readonly",V.readonly)}}function be(re,v){if(1&re){const V=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-string",3),e.NdJ("sendEventToParent",function(){e.CHM(V);const ee=e.oxw();return e.KtG(ee._sendEventToParent2())}),e.qZA()}if(2&re){const V=e.oxw();e.Q6J("attribute",V.attribute)("readonly",V.readonly)}}function me(re,v){if(1&re){const V=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-integer",3),e.NdJ("sendEventToParent",function(){e.CHM(V);const ee=e.oxw();return e.KtG(ee._sendEventToParent2())}),e.qZA()}if(2&re){const V=e.oxw();e.Q6J("attribute",V.attribute)("readonly",V.readonly)}}let fe=(()=>{class re{constructor(){this.readonly=!1,this.sendEventToParent2=new e.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return re.\u0275fac=function(V){return new(V||re)},re.\u0275cmp=e.Xpm({type:re,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(V,W){if(1&V&&e.Gf(q,5),2&V){let ee;e.iGM(ee=e.CRH())&&(W.mapComponent=ee.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(V,W){1&V&&(e.TgZ(0,"div"),e.YNc(1,ue,1,2,"perun-web-apps-attribute-value-boolean",0),e.YNc(2,j,1,2,"perun-web-apps-attribute-value-list",0),e.TgZ(3,"div",1),e.NdJ("click",function(){return W._sendEventToParent2()}),e.YNc(4,Q,2,2,"perun-web-apps-attribute-value-map",2),e.qZA(),e.YNc(5,be,1,2,"perun-web-apps-attribute-value-string",0),e.YNc(6,me,1,2,"perun-web-apps-attribute-value-integer",0),e.qZA()),2&V&&(e.xp6(1),e.Q6J("ngIf","java.lang.Boolean"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.util.ArrayList"===W.attribute.type),e.xp6(2),e.Q6J("ngIf","java.util.LinkedHashMap"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.String"===W.attribute.type||"java.lang.LargeString"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.Integer"===W.attribute.type))},dependencies:[A.O5,S.u,m.H,f.$,M._,I]}),re})()},53984:(Xe,ae,p)=>{"use strict";p.d(ae,{p:()=>U});var e=p(96308),f=p(30671),A=p(95017),S=p(43532),m=p(9244),M=p(80279),w=p(94650),x=p(36895),P=p(56709),F=p(98380),T=p(10266),B=p(18750),I=p(89383);let q=(()=>{class ${transform(De){return"virt"===De.namespace.split(":")[4]}}return $.\u0275fac=function(De){return new(De||$)},$.\u0275pipe=w.Yjl({name:"isVirtualAttribute",type:$,pure:!0}),$})();var ue=p(64597),j=p(9185),Q=p(8231),be=p(14849);function me($,ce){if(1&$){const De=w.EpF();w.TgZ(0,"th",18)(1,"mat-checkbox",19),w.NdJ("change",function(Oe){w.CHM(De);const it=w.oxw(2);return w.KtG(Oe?it.masterToggle():null)}),w.ALo(2,"translate"),w.ALo(3,"masterCheckboxLabel"),w.qZA()()}if(2&$){const De=w.oxw().ngIf,he=w.oxw();w.xp6(1),w.Q6J("checked",he.selection.hasValue()&&De.all)("indeterminate",he.selection.hasValue()&&!De.all)("aria-label",w.lcZ(2,3,w.lcZ(3,5,De.all)))}}const fe=function($){return{name:$}};function re($,ce){if(1&$){const De=w.EpF();w.TgZ(0,"td",20)(1,"mat-checkbox",21),w.NdJ("click",function(Oe){return Oe.stopPropagation()})("change",function(Oe){const Ce=w.CHM(De).$implicit,ot=w.oxw(2);return w.KtG(Oe?ot.selection.toggle(Ce):null)}),w.ALo(2,"multiWordDataCy"),w.ALo(3,"isVirtualAttribute"),w.ALo(4,"translate"),w.ALo(5,"checkboxLabel"),w.qZA()()}if(2&$){const De=ce.$implicit,he=w.oxw(2);w.xp6(1),w.Q2q("data-cy","",w.lcZ(2,4,De.displayName),"-checkbox"),w.Q6J("checked",he.selection.isSelected(De))("disabled",w.lcZ(3,6,De)||!De.writable)("aria-label",w.xi3(4,8,w.lcZ(5,11,he.selection.isSelected(De)),w.VKq(13,fe,De.displayName)))}}function v($,ce){1&$&&(w.ynx(0,15),w.YNc(1,me,4,7,"th",16),w.YNc(2,re,6,15,"td",17),w.BQk())}function V($,ce){1&$&&(w.TgZ(0,"th",22),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&$&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function W($,ce){if(1&$&&(w.TgZ(0,"td",23),w._uU(1),w.qZA()),2&$){const De=ce.$implicit;w.xp6(1),w.Oqu(De.id)}}function ee($,ce){1&$&&(w.TgZ(0,"th",22),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&$&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function ie($,ce){if(1&$&&(w.TgZ(0,"td",24),w.ALo(1,"multiWordDataCy"),w.TgZ(2,"div",25),w._uU(3),w.qZA()()),2&$){const De=ce.$implicit,he=w.oxw();w.Q2q("data-cy","",w.lcZ(1,3,De.friendlyName),"-friendlyName"),w.xp6(2),w.s9C("matTooltip",he.getAttributeFullName(De)),w.xp6(1),w.hij(" ",De.displayName," ")}}function xe($,ce){1&$&&(w.TgZ(0,"th",26),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&$&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function Ye($,ce){if(1&$){const De=w.EpF();w.TgZ(0,"td",24)(1,"perun-web-apps-attribute-value",27),w.NdJ("sendEventToParent2",function(){const it=w.CHM(De).$implicit,Ce=w.oxw();return w.KtG(Ce.onValueChange(it))}),w.qZA()()}if(2&$){const De=ce.$implicit,he=w.oxw();w.xp6(1),w.Q6J("attribute",De)("readonly",he.readonly||!De.writable)}}function Le($,ce){1&$&&(w.TgZ(0,"th",22),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&$&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function $e($,ce){if(1&$&&(w.TgZ(0,"td",24),w._uU(1),w.qZA()),2&$){const De=ce.$implicit;w.xp6(1),w.Oqu(De.description)}}function qe($,ce){1&$&&w._UZ(0,"tr",28)}function Ze($,ce){if(1&$&&(w._UZ(0,"tr",29),w.ALo(1,"translate")),2&$){const De=ce.$implicit,he=w.oxw();w.s9C("matTooltip",w.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),w.Q6J("matTooltipPosition","before")("matTooltipDisabled",De.writable||he.readonly)}}function Pe($,ce){1&$&&(w.TgZ(0,"perun-web-apps-alert",30),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&$&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function se($,ce){if(1&$&&(w.TgZ(0,"perun-web-apps-alert",30),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&$){const De=w.oxw();w.xp6(1),w.hij(" ",w.lcZ(2,1,De.emptyListText),"\n")}}const N=function($){return{all:$}};let U=(()=>{class ${constructor(De,he){this.authResolver=De,this.tableCheckbox=he,this.attributes=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=m.f7}set matSort(De){this.sort=De,this.setDataSource()}static canBeSelected(De){return!(0,m.Hm)(De)&&De.writable}static getDataForColumn(De,he){switch(he){case"id":return De.id.toString();case"displayName":return De.displayName;case"description":return De.description;case"value":return JSON.stringify(De.value);case"urn":return De.namespace+":"+De.baseFriendlyName;default:return""}}canBeSelected(De){return!(0,m.Hm)(De)&&De.writable}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(De=>"id"!==De)),this.dataSource=new f.by((0,m.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(De){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,$.getDataForColumn),De)}exportDisplayedData(De){const he=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Oe=he+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(he,Oe),this.displayedColumns,$.getDataForColumn),De)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(De=>!this.hiddenColumns.includes(De)),this.dataSource&&(this.dataSource.filterPredicate=(De,he)=>(0,m.Sd)(De,he,this.displayedColumns.concat("urn"),$.getDataForColumn),this.dataSource.sortData=(De,he)=>(0,m.pR)(De,he,$.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,$.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,$.canBeSelected)}updateMapAttributes(){for(const De of this.items.toArray())"java.util.LinkedHashMap"===De.attribute.type&&De.updateMapAttribute()}onValueChange(De){$.canBeSelected(De)&&this.selection.select(De)}getAttributeFullName(De){return`${De.namespace}:${De.friendlyName}`}}return $.\u0275fac=function(De){return new(De||$)(w.Y36(M.x4),w.Y36(M.UA))},$.\u0275cmp=w.Xpm({type:$,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(De,he){if(1&De&&(w.Gf(m.l9,7),w.Gf(e.YE,7),w.Gf(S.M,5)),2&De){let Oe;w.iGM(Oe=w.CRH())&&(he.child=Oe.first),w.iGM(Oe=w.CRH())&&(he.matSort=Oe.first),w.iGM(Oe=w.CRH())&&(he.items=Oe)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[w.TTD],decls:21,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","displayName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(De,he){1&De&&(w.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),w.NdJ("exportDisplayedData",function(it){return he.exportDisplayedData(it)})("exportAllData",function(it){return he.exportAllData(it)}),w.TgZ(2,"table",2),w.YNc(3,v,3,0,"ng-container",3),w.ALo(4,"isAllSelected"),w.ynx(5,4),w.YNc(6,V,3,3,"th",5),w.YNc(7,W,2,1,"td",6),w.BQk(),w.ynx(8,7),w.YNc(9,ee,3,3,"th",5),w.YNc(10,ie,4,5,"td",8),w.BQk(),w.ynx(11,9),w.YNc(12,xe,3,3,"th",10),w.YNc(13,Ye,2,2,"td",8),w.BQk(),w.ynx(14,11),w.YNc(15,Le,3,3,"th",5),w.YNc(16,$e,2,1,"td",8),w.BQk(),w.YNc(17,qe,1,0,"tr",12),w.YNc(18,Ze,2,5,"tr",13),w.qZA()()(),w.YNc(19,Pe,3,3,"perun-web-apps-alert",14),w.YNc(20,se,3,3,"perun-web-apps-alert",14)),2&De&&(w.Q6J("hidden",0===he.dataSource.filteredData.length),w.xp6(1),w.Q6J("tableId",he.tableId)("dataLength",he.dataSource.filteredData.length)("pageSizeOptions",he.pageSizeOptions),w.xp6(1),w.Q6J("dataSource",he.dataSource),w.xp6(1),w.Q6J("ngIf",w.VKq(14,N,w.Dn7(4,10,he.dataSource,he.selection.selected.length,he.canBeSelected))),w.xp6(14),w.Q6J("matHeaderRowDef",he.displayedColumns),w.xp6(1),w.Q6J("matRowDefColumns",he.displayedColumns),w.xp6(1),w.Q6J("ngIf",0===he.dataSource.filteredData.length&&0!==he.dataSource.data.length),w.xp6(1),w.Q6J("ngIf",0===he.dataSource.data.length))},dependencies:[x.O5,P.oG,f.BZ,f.fO,f.as,f.w1,f.Dz,f.nj,f.ge,f.ev,f.XQ,f.Gk,e.YE,e.nU,F.w,T.gM,B.l,S.M,I.X$,q,ue.R,j.I,Q.G,be.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-mdc-row[_ngcontent-%COMP%]{height:auto}.mat-mdc-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),$})()},6967:(Xe,ae,p)=>{"use strict";p.d(ae,{e:()=>q});var e=p(94650),f=p(36895),A=p(82761),S=p(97392),m=p(4859),M=p(10266),w=p(34198),x=p(55660);const P=function(ue,j){return["/organizations",ue,"groups",j]};function F(ue,j){if(1&ue&&(e.TgZ(0,"div",4)(1,"a",5),e.NdJ("auxclick",function(be){return be.preventDefault()}),e._uU(2),e.qZA()()),2&ue){const Q=j.$implicit,be=e.oxw();e.xp6(1),e.ekj("cursor-pointer",!be.disableRouting),e.Q6J("routerLink",be.disableRouting?null:e.WLB(5,P,Q.voId,Q.id))("perunWebAppsMiddleClickRouterLink",be.disableRouting?null:e.WLB(8,P,Q.voId.toString(),Q.id.toString())),e.xp6(1),e.Oqu(be.authzVoNames.get(Q.voId)+" : "+Q.name)}}function T(ue,j){1&ue&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function B(ue,j){1&ue&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function I(ue,j){if(1&ue){const Q=e.EpF();e.TgZ(0,"button",6),e.NdJ("click",function(){e.CHM(Q);const me=e.oxw();return e.KtG(me.onShowChange())}),e.YNc(1,T,2,0,"mat-icon",7),e.YNc(2,B,2,0,"mat-icon",7),e.qZA()}if(2&ue){const Q=e.oxw();e.xp6(1),e.Q6J("ngIf",!Q.showMore),e.xp6(1),e.Q6J("ngIf",Q.showMore)}}let q=(()=>{class ue{constructor(){this.disableRouting=!1,this.defaultItemsShown=3,this.itemsShown=this.defaultItemsShown,this.showMore=!1}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}setItemsShown(){this.itemsShown=this.showMore?this.groups.length:this.defaultItemsShown}}return ue.\u0275fac=function(Q){return new(Q||ue)},ue.\u0275cmp=e.Xpm({type:ue,selectors:[["perun-web-apps-authorized-groups-cell"]],inputs:{groups:"groups",authzVoNames:"authzVoNames",disableRouting:"disableRouting"},decls:5,vars:4,consts:[[1,"mt-1"],["class","mb-1",4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mb-1"],[1,"group-link",3,"routerLink","perunWebAppsMiddleClickRouterLink","auxclick"],["mat-icon-button","",3,"click"],[4,"ngIf"]],template:function(Q,be){1&Q&&(e.TgZ(0,"div",0),e.YNc(1,F,3,11,"div",1),e.qZA(),e.TgZ(2,"div")(3,"span",2),e.YNc(4,I,3,2,"button",3),e.qZA()()),2&Q&&(e.xp6(1),e.Q6J("ngForOf",be.groups.slice(0,be.itemsShown)),e.xp6(2),e.Q6J("matTooltip",be.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(1),e.Q6J("ngIf",be.groups.length>be.defaultItemsShown))},dependencies:[f.sg,f.O5,A.rH,S.Hw,m.RK,M.gM,w.Y,x.Q],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),ue})()},4235:(Xe,ae,p)=>{"use strict";p.d(ae,{W:()=>P});var e=p(80279),f=p(94650),A=p(36895),S=p(97392),m=p(4859),M=p(10266),w=p(89383);const x=function(F){return{color:F}};let P=(()=>{class F{constructor(B,I){this.location=B,this.storeService=I}ngOnInit(){this.backButtonColor=this.storeService.getProperty("theme").back_button_color}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return F.\u0275fac=function(B){return new(B||F)(f.Y36(A.Ye),f.Y36(e.d6))},F.\u0275cmp=f.Xpm({type:F,selectors:[["perun-web-apps-back-button"]],decls:4,vars:6,consts:[["mat-stroked-button","",1,"mb-2","mt-2",3,"ngStyle","matTooltip","click"],[1,"rotate"]],template:function(B,I){1&B&&(f.TgZ(0,"button",0),f.NdJ("click",function(){return I.goBack()}),f.ALo(1,"translate"),f.TgZ(2,"mat-icon",1),f._uU(3,"arrow_right_alt"),f.qZA()()),2&B&&(f.s9C("matTooltip",f.lcZ(1,2,"Back")),f.Q6J("ngStyle",f.VKq(4,x,I.backButtonColor)))},dependencies:[A.PC,S.Hw,m.lW,M.gM,w.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),F})()},91880:(Xe,ae,p)=>{"use strict";p.d(ae,{s:()=>Ae});var e=p(94650),f=p(9244),A=p(95017),S=p(80279),m=p(30671),M=p(96308),w=p(19516),x=p(36895),P=p(29926),F=p(56709),T=p(98380),B=p(97392),I=p(4859),q=p(18750),ue=p(89383),j=p(31359),Q=p(9185),be=p(8231),me=p(14849);let fe=(()=>{class Ke{constructor(Ie){this.authResolver=Ie}transform(Ie,Ne){return this.authResolver.isAuthorized(Ne,[Ie])}}return Ke.\u0275fac=function(Ie){return new(Ie||Ke)(e.Y36(S.x4,16))},Ke.\u0275pipe=e.Yjl({name:"isAuthorized",type:Ke,pure:!0}),Ke})();function re(Ke,pe){if(1&Ke){const Ie=e.EpF();e.TgZ(0,"mat-checkbox",24),e.NdJ("change",function(we){e.CHM(Ie);const Be=e.oxw(2).ngIf,r=e.oxw();return e.KtG(we?r.masterToggle(Be.all):null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&Ke){const Ie=e.oxw(2).ngIf,Ne=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,Ie.all)))("checked",Ne.selection.hasValue()&&Ie.all)("indeterminate",Ne.selection.hasValue()&&!Ie.all)}}function v(Ke,pe){if(1&Ke&&(e.TgZ(0,"th",22),e.YNc(1,re,3,7,"mat-checkbox",23),e.qZA()),2&Ke){const Ie=e.oxw(2);e.xp6(1),e.Q6J("ngIf",Ie.selection.isMultipleSelection())}}const V=function(Ke){return{name:Ke}};function W(Ke,pe){if(1&Ke){const Ie=e.EpF();e.TgZ(0,"td",25)(1,"mat-checkbox",26),e.NdJ("change",function(){const Be=e.CHM(Ie).$implicit,r=e.oxw(2);return e.KtG(r.toggle(Be))})("click",function(we){return we.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.qZA()()}if(2&Ke){const Ie=pe.$implicit,Ne=e.oxw(2);e.xp6(1),e.Q6J("aria-label",e.xi3(2,2,e.lcZ(3,5,Ne.selection.isSelected(Ie)),e.VKq(7,V,Ie.name)))("checked",Ne.selection.isSelected(Ie))}}function ee(Ke,pe){1&Ke&&(e.ynx(0,19),e.YNc(1,v,2,1,"th",20),e.YNc(2,W,4,9,"td",21),e.BQk())}function ie(Ke,pe){1&Ke&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ke&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.BAN_ID_HEADER")," "))}function xe(Ke,pe){if(1&Ke&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&Ke){const Ie=pe.$implicit;e.xp6(1),e.Oqu(Ie.ban.id)}}const Ye=function(Ke){return{target:Ke}};function Le(Ke,pe){if(1&Ke&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ke){const Ie=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.TARGET_ID_HEADER",e.VKq(4,Ye,Ie.target))," ")}}function $e(Ke,pe){if(1&Ke&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&Ke){const Ie=pe.$implicit;e.xp6(1),e.Oqu(Ie.ban.targetId)}}function qe(Ke,pe){if(1&Ke&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ke){const Ie=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.TARGET_NAME_HEADER",e.VKq(4,Ye,Ie.target))," ")}}function Ze(Ke,pe){if(1&Ke&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&Ke){const Ie=pe.$implicit;let Ne;e.xp6(1),e.hij(" ",null!==(Ne=null!==(Ne=null==Ie||null==Ie.vo?null:Ie.vo.name)&&void 0!==Ne?Ne:null==Ie||null==Ie.facility?null:Ie.facility.name)&&void 0!==Ne?Ne:null==Ie||null==Ie.resource?null:Ie.resource.name," ")}}const Pe=function(Ke){return{subject:Ke}};function se(Ke,pe){if(1&Ke&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ke){const Ie=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.SUBJECT_ID_HEADER",e.VKq(4,Pe,Ie.subject))," ")}}function N(Ke,pe){if(1&Ke&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&Ke){const Ie=pe.$implicit;e.xp6(1),e.Oqu(Ie.ban.subjectId)}}function U(Ke,pe){if(1&Ke&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ke){const Ie=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.SUBJECT_NAME_HEADER",e.VKq(4,Pe,Ie.subject))," ")}}function $(Ke,pe){if(1&Ke&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&Ke){const Ie=pe.$implicit;let Ne;e.xp6(1),e.hij(" ",e.lcZ(2,1,null!==(Ne=Ie.user)&&void 0!==Ne?Ne:Ie.member.user)," ")}}function ce(Ke,pe){1&Ke&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ke&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.DESCRIPTION_HEADER")," "))}function De(Ke,pe){if(1&Ke&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&Ke){const Ie=pe.$implicit;e.xp6(1),e.Oqu(Ie.ban.description)}}function he(Ke,pe){1&Ke&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ke&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.EXPIRATION_HEADER")," "))}function Oe(Ke,pe){if(1&Ke&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"date"),e.qZA()),2&Ke){const Ie=pe.$implicit,Ne=e.oxw();e.xp6(1),e.hij(" ",Ie.ban.validityTo===Ne.EXPIRE_NEVER?"never":e.xi3(2,1,Ie.ban.validityTo,"dd-MM-yyyy")," ")}}function it(Ke,pe){1&Ke&&e._UZ(0,"th",30)}function Ce(Ke,pe){if(1&Ke){const Ie=e.EpF();e.TgZ(0,"button",32),e.NdJ("click",function(){e.CHM(Ie);const we=e.oxw().$implicit,Be=e.oxw();return e.KtG(Be.updateBan.emit(we))}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function ot(Ke,pe){if(1&Ke&&(e.TgZ(0,"td",29),e.YNc(1,Ce,3,0,"button",31),e.ALo(2,"isAuthorized"),e.qZA()),2&Ke){const Ie=pe.$implicit,Ne=e.oxw();let we;e.xp6(1),e.Q6J("ngIf",e.xi3(2,1,null!==(we=null!==(we=Ie.vo)&&void 0!==we?we:Ie.resource)&&void 0!==we?we:Ie.facility,Ne.updatePolicy))}}function Ue(Ke,pe){1&Ke&&e._UZ(0,"tr",33)}function ft(Ke,pe){1&Ke&&e._UZ(0,"tr",34)}function Z(Ke,pe){1&Ke&&(e.TgZ(0,"perun-web-apps-alert",35),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ke&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.NO_BANS"),"\n"))}const lt=function(Ke){return{all:Ke}};let Ae=(()=>{class Ke{constructor(Ie,Ne,we){this.tableCheckbox=Ie,this.authResolver=Ne,this.userName=we,this.selection=new A.Ov(!1,[]),this.pageSizeOptions=f.f7,this.columns=["select","banId","targetId","targetName","subjectId","subjectName","description","expiration","edit"],this.updateBan=new e.vpe,this.EXPIRE_NEVER=P.R,this.getDataForColumn=(Be,r)=>{const u=this.isFacilityBan(Be)?Be.facility:this.isResourceBan(Be)?Be.resource:Be.vo,_=this.isFacilityBan(Be)?Be.user:Be.member,C=this.isFacilityBan(Be)?Be.user:Be.member.user;switch(r){case"banId":return String(Be.ban.id);case"targetId":return String(u.id);case"targetName":return u.name;case"subjectId":return String(_.id);case"subjectName":return this.userName.transform(C);case"description":return Be.ban.description;case"expiration":return Number(Be.ban.validityTo)===this.EXPIRE_NEVER?"never":(0,x.p6)(Be.ban.validityTo,"dd-MM-yyy","en");default:return""}}}set bans(Ie){this.dataSource||this.dataSourceInit(Ie),0!==Ie.length&&this.setHeaderLabels(Ie[0]),this.dataSource.data=Ie}set filter(Ie){this.dataSource.filter=Ie}set displayedColumns(Ie){this.authResolver.isPerunAdminOrObserver()||(Ie=Ie.filter(Ne=>!Ne.endsWith("Id"))),this.columns=Ie}exportAllData(Ie){(0,f.O6)((0,f.Xn)(this.dataSource.filteredData,this.columns,this.getDataForColumn),Ie)}exportDisplayedData(Ie){const Ne=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,we=Ne+this.dataSource.paginator.pageSize;(0,f.O6)((0,f.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ne,we),this.columns,this.getDataForColumn),Ie)}toggle(Ie){this.selection.toggle(Ie)}masterToggle(Ie){this.tableCheckbox.masterToggle(Ie,this.selection,this.dataSource.filter,this.dataSource,this.dataSource.sort,this.dataSource.paginator.pageSize,this.dataSource.paginator.pageIndex,!1)}dataSourceInit(Ie){this.dataSource=new m.by(Ie),this.dataSource.sort=this.sort,this.dataSource.paginator=this.tableWrapper.paginator,this.dataSource.filterPredicate=(Ne,we)=>(0,f.Sd)(Ne,we,this.columns,this.getDataForColumn,!0),this.dataSource.sortData=(Ne,we)=>(0,f.pR)(Ne,we,this.getDataForColumn)}isFacilityBan(Ie){return"facility"in Ie}isResourceBan(Ie){return"resource"in Ie}setHeaderLabels(Ie){this.isFacilityBan(Ie)?(this.target="Facility",this.subject="User"):this.isResourceBan(Ie)?(this.target="Resource",this.subject="Member"):(this.target="Organization",this.subject="Member")}}return Ke.\u0275fac=function(Ie){return new(Ie||Ke)(e.Y36(S.UA),e.Y36(S.x4),e.Y36(w.dp))},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["perun-web-apps-ban-on-entity-list"]],viewQuery:function(Ie,Ne){if(1&Ie&&(e.Gf(f.l9,7),e.Gf(M.YE,7)),2&Ie){let we;e.iGM(we=e.CRH())&&(Ne.tableWrapper=we.first),e.iGM(we=e.CRH())&&(Ne.sort=we.first)}},inputs:{selection:"selection",tableId:"tableId",updatePolicy:"updatePolicy",pageSizeOptions:"pageSizeOptions",columns:"columns",bans:"bans",filter:"filter",displayedColumns:"displayedColumns"},outputs:{updateBan:"updateBan"},features:[e._Bn([w.dp])],decls:32,vars:14,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","banId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","targetId"],["matColumnDef","targetName"],["mat-cell","",4,"matCellDef"],["matColumnDef","subjectId"],["matColumnDef","subjectName"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","edit"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(Ie,Ne){1&Ie&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(Be){return Ne.exportDisplayedData(Be)})("exportAllData",function(Be){return Ne.exportAllData(Be)}),e.TgZ(2,"table",2),e.YNc(3,ee,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ie,3,3,"th",5),e.YNc(7,xe,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,Le,3,6,"th",5),e.YNc(10,$e,2,1,"td",6),e.BQk(),e.ynx(11,8),e.YNc(12,qe,3,6,"th",5),e.YNc(13,Ze,2,1,"td",9),e.BQk(),e.ynx(14,10),e.YNc(15,se,3,6,"th",5),e.YNc(16,N,2,1,"td",6),e.BQk(),e.ynx(17,11),e.YNc(18,U,3,6,"th",5),e.YNc(19,$,3,3,"td",9),e.BQk(),e.ynx(20,12),e.YNc(21,ce,3,3,"th",5),e.YNc(22,De,2,1,"td",9),e.BQk(),e.ynx(23,13),e.YNc(24,he,3,3,"th",5),e.YNc(25,Oe,3,4,"td",9),e.BQk(),e.ynx(26,14),e.YNc(27,it,1,0,"th",15),e.YNc(28,ot,3,4,"td",9),e.BQk(),e.YNc(29,Ue,1,0,"tr",16),e.YNc(30,ft,1,0,"tr",17),e.qZA()()(),e.YNc(31,Z,3,3,"perun-web-apps-alert",18)),2&Ie&&(e.Q6J("hidden",0===Ne.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",Ne.dataSource.filteredData.length)("tableId",Ne.tableId)("pageSizeOptions",Ne.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",Ne.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(12,lt,e.xi3(4,9,Ne.dataSource,Ne.selection.selected.length))),e.xp6(26),e.Q6J("matHeaderRowDef",Ne.columns),e.xp6(1),e.Q6J("matRowDefColumns",Ne.columns),e.xp6(1),e.Q6J("ngIf",0===Ne.dataSource.filteredData.length))},dependencies:[x.O5,F.oG,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,M.YE,M.nU,T.w,B.Hw,I.RK,q.l,x.uU,ue.X$,j.d,Q.I,be.G,me.r,fe]}),Ke})()},29926:(Xe,ae,p)=>{"use strict";p.d(ae,{C:()=>F,R:()=>P});var e=p(24006),f=p(36895),A=p(94650),S=p(59549),m=p(284),M=p(99602),w=p(71948),x=p(89383);const P=new Date(324721404e5).valueOf();let F=(()=>{class T{constructor(){this.minDate=new Date,this.validityControl=new e.NI(null),this.descriptionControl=new e.NI("")}set validity(I){this.newValidity=I&&Number(new Date(I))!==P?this.parseDate(I):"never",this.validityControl.setValue("never"!==this.newValidity?this.newValidity:this.parseDate(new Date))}set description(I){this.descriptionControl.setValue(I)}getDescription(){return this.descriptionControl.value}getValidity(){return"never"!==this.newValidity&&this.validityControl.value?this.parseDate(this.validityControl.value):null}parseDate(I){return(0,f.p6)(I,"yyyy-MM-dd","en")}}return T.\u0275fac=function(I){return new(I||T)},T.\u0275cmp=A.Xpm({type:T,selectors:[["perun-web-apps-ban-specification"]],inputs:{validity:"validity",description:"description"},decls:20,vars:18,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer","mt-2",3,"click"],["readonly","","matInput","",1,"disabl",3,"formControl","min","matDatepicker"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["value","never"],[1,"mt-3"],[1,"w-100","mt-2"],["matInput","","rows","5",3,"formControl"]],template:function(I,q){if(1&I){const ue=A.EpF();A.TgZ(0,"div")(1,"mat-radio-group",0),A.NdJ("ngModelChange",function(Q){return q.newValidity=Q}),A.TgZ(2,"mat-radio-button",1)(3,"mat-form-field",2),A.NdJ("click",function(){A.CHM(ue);const Q=A.MAs(10);return A.KtG(Q.open())}),A.TgZ(4,"mat-label"),A._uU(5),A.ALo(6,"translate"),A.qZA(),A._UZ(7,"input",3)(8,"mat-datepicker-toggle",4)(9,"mat-datepicker",5,6),A.qZA()(),A.TgZ(11,"mat-radio-button",7),A._uU(12),A.ALo(13,"translate"),A.qZA()()(),A.TgZ(14,"div",8)(15,"mat-form-field",9)(16,"mat-label"),A._uU(17),A.ALo(18,"translate"),A.qZA(),A._UZ(19,"textarea",10),A.qZA()()}if(2&I){const ue=A.MAs(10);A.xp6(1),A.Q6J("ngModel",q.newValidity),A.xp6(1),A.s9C("value",q.validityControl.value),A.xp6(3),A.hij(" ",A.lcZ(6,12,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.VALIDITY")," "),A.xp6(2),A.Q6J("formControl",q.validityControl)("min",q.minDate)("matDatepicker",ue),A.xp6(1),A.Q6J("for",ue)("disabled",!1),A.xp6(1),A.Q6J("disabled",!1),A.xp6(3),A.hij(" ",A.lcZ(13,14,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.NEVER")," "),A.xp6(5),A.hij(" ",A.lcZ(18,16,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.DESCRIPTION")," "),A.xp6(2),A.Q6J("formControl",q.descriptionControl)}},dependencies:[e.Fj,e.JJ,e.On,S.KE,S.hX,S.R9,e.oH,m.Nt,M.Mq,M.hl,M.nW,w.VQ,w.U0,x.X$]}),T})()},61880:(Xe,ae,p)=>{"use strict";p.d(ae,{z:()=>F});var e=p(7274),f=p(94650),A=p(36895),S=p(4859),m=p(12488),M=p(93057),w=p(89383);function x(T,B){if(1&T){const I=f.EpF();f.TgZ(0,"perun-web-apps-member-overview-membership",4),f.NdJ("statusChanged",function(ue){f.CHM(I);const j=f.oxw();return f.KtG(j.statusChanged=ue)}),f.qZA()}if(2&T){const I=f.oxw();f.Q6J("member",I.member)("voId",I.voId)("openedInDialog",!0)}}function P(T,B){if(1&T){const I=f.EpF();f.TgZ(0,"perun-web-apps-member-overview-groups",4),f.NdJ("statusChanged",function(ue){f.CHM(I);const j=f.oxw();return f.KtG(j.statusChanged=ue)}),f.qZA()}if(2&T){const I=f.oxw();f.Q6J("member",I.member)("voId",I.voId)("openedInDialog",!0)}}let F=(()=>{class T{constructor(I,q){this.dialogRef=I,this.data=q,this.statusChanged=!1}ngOnInit(){this.theme=this.data.groupId?"group-theme":"vo-theme",this.voId=this.data.voId,this.groupId=this.data.groupId,this.member=this.data.member}cancel(){this.statusChanged?this.dialogRef.close():this.dialogRef.close("closedWithoutChange")}}return T.\u0275fac=function(I){return new(I||T)(f.Y36(e.so),f.Y36(e.WI))},T.\u0275cmp=f.Xpm({type:T,selectors:[["perun-web-apps-change-member-status-or-expiration-dialog"]],decls:8,vars:8,consts:[["mat-dialog-content","",1,"dialog-container"],[3,"member","voId","openedInDialog","statusChanged",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],[3,"member","voId","openedInDialog","statusChanged"]],template:function(I,q){1&I&&(f.TgZ(0,"div")(1,"div",0),f.YNc(2,x,1,3,"perun-web-apps-member-overview-membership",1),f.YNc(3,P,1,3,"perun-web-apps-member-overview-groups",1),f.qZA(),f.TgZ(4,"div",2)(5,"button",3),f.NdJ("click",function(){return q.cancel()}),f._uU(6),f.ALo(7,"translate"),f.qZA()()()),2&I&&(f.Tol(q.theme),f.xp6(2),f.Q6J("ngIf",!q.groupId),f.xp6(1),f.Q6J("ngIf",q.groupId),f.xp6(3),f.hij(" ",f.lcZ(7,6,"DIALOGS.CHANGE_STATUS.CANCEL")," "))},dependencies:[A.O5,S.lW,e.xY,e.H8,m.b,M.z,w.X$]}),T})()},12502:(Xe,ae,p)=>{"use strict";p.d(ae,{N:()=>P});var e=p(94650),f=p(36895),A=p(97392),S=p(89383),m=p(34447);function M(F,T){1&F&&(e.TgZ(0,"span")(1,"mat-icon",1),e._uU(2,"priority_high"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.ALo(6,"customTranslate"),e.qZA()()),2&F&&(e.xp6(4),e.hij(" ",e.lcZ(5,1,e.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function w(F,T){1&F&&(e.TgZ(0,"span")(1,"mat-icon",1),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.ALo(6,"customTranslate"),e.qZA()()),2&F&&(e.xp6(4),e.hij(" ",e.lcZ(5,1,e.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function x(F,T){1&F&&(e.TgZ(0,"span")(1,"mat-icon",2),e._uU(2,"check"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.ALo(6,"customTranslate"),e.qZA()()),2&F&&(e.xp6(4),e.hij(" ",e.lcZ(5,1,e.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let P=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275cmp=e.Xpm({type:F,selectors:[["perun-web-apps-consent-status"]],inputs:{consentStatus:"consentStatus"},decls:3,vars:3,consts:[[4,"ngIf"],["color","warn"],["color","accent"]],template:function(B,I){1&B&&(e.YNc(0,M,7,5,"span",0),e.YNc(1,w,7,5,"span",0),e.YNc(2,x,7,5,"span",0)),2&B&&(e.Q6J("ngIf","UNSIGNED"===I.consentStatus),e.xp6(1),e.Q6J("ngIf","REVOKED"===I.consentStatus),e.xp6(1),e.Q6J("ngIf","GRANTED"===I.consentStatus))},dependencies:[f.O5,A.Hw,S.X$,m.a],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),F})()},61150:(Xe,ae,p)=>{"use strict";p.d(ae,{r:()=>B});var e=p(94650),f=p(24006),A=p(80279),S=p(36895),m=p(56709),M=p(59549),w=p(284),x=p(82322),P=p(89383);function F(I,q){if(1&I){const ue=e.EpF();e.TgZ(0,"mat-checkbox",6),e.NdJ("change",function(){e.CHM(ue);const Q=e.oxw();return e.KtG(Q.emitAsSubGroup())})("ngModelChange",function(Q){e.CHM(ue);const be=e.oxw();return e.KtG(be.asSubgroup=Q)}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&I){const ue=e.oxw();e.Q6J("labelPosition","before")("ngModel",ue.asSubgroup),e.xp6(1),e.hij(" ",e.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function T(I,q){if(1&I){const ue=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",7),e.NdJ("groupSelected",function(Q){e.CHM(ue);const be=e.oxw();return e.KtG(be.emitParentGroup(Q))}),e.qZA()}if(2&I){const ue=e.oxw();e.Q6J("disableAutoSelect",!0)("groups",ue.voGroups)}}let B=(()=>{class I{constructor(ue){this.store=ue,this.parentGroup=null,this.voGroups=[],this.nameChanged=new e.vpe,this.descriptionChanged=new e.vpe,this.parentGroupChanged=new e.vpe,this.asSubgroupChanged=new e.vpe,this.asSubgroup=!1,this.invalidNameMessage=this.store.getProperty("group_name_error_message"),this.secondaryRegex=this.store.getProperty("group_name_secondary_regex")}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new f.p4("",[f.kI.required,f.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),f.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new f.p4("",[f.kI.required,f.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(ue=>"members"!==ue.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(ue){this.selectedParent=ue,this.parentGroupChanged.emit(ue)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return I.\u0275fac=function(ue){return new(ue||I)(e.Y36(A.d6))},I.\u0275cmp=e.Xpm({type:I,selectors:[["perun-web-apps-create-group-form"]],inputs:{parentGroup:"parentGroup",voGroups:"voGroups"},outputs:{nameChanged:"nameChanged",descriptionChanged:"descriptionChanged",parentGroupChanged:"parentGroupChanged",asSubgroupChanged:"asSubgroupChanged"},decls:19,vars:16,consts:[[1,"dialog-container"],[3,"keyup"],["matInput","","required","",3,"formControl"],[1,"mt-4",3,"keyup"],[3,"labelPosition","ngModel","change","ngModelChange",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],[3,"labelPosition","ngModel","change","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(ue,j){1&ue&&(e.TgZ(0,"div",0)(1,"mat-form-field",1),e.NdJ("keyup",function(){return j.emitName()}),e.TgZ(2,"mat-label"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e._UZ(5,"input",2),e.TgZ(6,"mat-error"),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"mat-form-field",3),e.NdJ("keyup",function(){return j.emitDescription()}),e.TgZ(10,"mat-label"),e._uU(11),e.ALo(12,"translate"),e.qZA(),e._UZ(13,"textarea",2),e.TgZ(14,"mat-error"),e._uU(15),e.ALo(16,"translate"),e.qZA()(),e.YNc(17,F,3,5,"mat-checkbox",4),e.YNc(18,T,1,2,"perun-web-apps-group-search-select",5),e.qZA()),2&ue&&(e.xp6(3),e.Oqu(e.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),e.xp6(2),e.Q6J("formControl",j.nameControl),e.xp6(2),e.hij(" ",j.invalidNameMessage.length?j.invalidNameMessage:e.lcZ(8,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),e.xp6(4),e.Oqu(e.lcZ(12,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),e.xp6(2),e.Q6J("formControl",j.descriptionControl),e.xp6(2),e.hij(" ",e.lcZ(16,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",j.isNotSubGroup),e.xp6(1),e.Q6J("ngIf",j.asSubgroup))},dependencies:[S.O5,m.oG,f.Fj,f.JJ,f.Q7,f.On,M.KE,M.hX,M.TO,f.oH,w.Nt,x.h,P.X$]}),I})()},39798:(Xe,ae,p)=>{"use strict";p.d(ae,{S:()=>M});var e=p(94650),f=p(24006),A=p(59549),S=p(99602),m=p(89383);let M=(()=>{class w{ngOnInit(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date}}return w.\u0275fac=function(P){return new(P||w)},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},decls:10,vars:9,consts:[["appearance","fill",1,"me-2",3,"click"],[3,"max","min","rangePicker"],["matStartDate","","readonly","",3,"formControl"],["matEndDate","","readonly","",3,"formControl"],["matSuffix","",3,"for"],["picker",""]],template:function(P,F){if(1&P){const T=e.EpF();e.TgZ(0,"mat-form-field",0),e.NdJ("click",function(){e.CHM(T);const I=e.MAs(9);return e.KtG(I.open())}),e.TgZ(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-date-range-input",1),e._UZ(5,"input",2)(6,"input",3),e.qZA(),e._UZ(7,"mat-datepicker-toggle",4)(8,"mat-date-range-picker",null,5),e.qZA()}if(2&P){const T=e.MAs(9);e.xp6(2),e.Oqu(e.lcZ(3,7,"VO_DETAIL.APPLICATION.DATE.LABEL")),e.xp6(2),e.Q6J("max",F.endMaxDate)("min",F.startMinDate)("rangePicker",T),e.xp6(1),e.Q6J("formControl",F.startDate),e.xp6(1),e.Q6J("formControl",F.endDate),e.xp6(1),e.Q6J("for",T)}},dependencies:[f.Fj,f.JJ,A.KE,A.hX,A.R9,f.oH,S.nW,S.wx,S.zY,S.By,S._g,m.X$]}),w})()},64901:(Xe,ae,p)=>{"use strict";p.d(ae,{P:()=>T});var e=p(94650),f=p(54968),A=p(54004),S=p(78372),m=p(71884),M=p(24006),w=p(59549),x=p(284),P=p(89383);const F=["input"];let T=(()=>{class B{constructor(){this.autoFocus=!1,this.control=new M.p4,this.filter=new e.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),(0,f.R)(this.input.nativeElement,"keyup").pipe((0,A.U)(q=>q.target.value),(0,S.b)(500),(0,m.x)()).subscribe(q=>{this.control.invalid||this.filter.emit(q)})}}return B.\u0275fac=function(q){return new(q||B)},B.\u0275cmp=e.Xpm({type:B,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(q,ue){if(1&q&&e.Gf(F,7),2&q){let j;e.iGM(j=e.CRH())&&(ue.input=j.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:8,vars:5,consts:[[1,"filter-field","me-2"],["matInput","","data-cy","filter-input",3,"formControl"],["input",""]],template:function(q,ue){1&q&&(e.TgZ(0,"mat-form-field",0)(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e._UZ(4,"input",1,2),e.TgZ(6,"mat-error"),e._uU(7),e.qZA()()),2&q&&(e.xp6(2),e.Oqu(e.lcZ(3,3,ue.placeholder)),e.xp6(2),e.Q6J("formControl",ue.control),e.xp6(3),e.hij(" ",ue.error," "))},dependencies:[M.Fj,M.JJ,w.KE,w.hX,w.TO,M.oH,x.Nt,P.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),B})()},89593:(Xe,ae,p)=>{"use strict";p.d(ae,{i:()=>V});var e=p(94650),f=p(24006),A=p(4707),S=p(77579),m=p(82722),M=p(36895),w=p(59549),x=p(3238),P=p(84385),F=p(33231),T=p(67376),B=p(97392),I=p(4859),q=p(89383);let ue=(()=>{class W{constructor(){this.deselect=new e.vpe}onClickButton(ie){this.deselect.emit(ie)}}return W.\u0275fac=function(ie){return new(ie||W)},W.\u0275cmp=e.Xpm({type:W,selectors:[["perun-web-apps-deselect-button"]],outputs:{deselect:"deselect"},decls:5,vars:3,consts:[["mat-stroked-button","","data-cy","deselect-button",1,"me-2","button-main",3,"click"]],template:function(ie,xe){1&ie&&(e.TgZ(0,"button",0),e.NdJ("click",function(Le){return xe.onClickButton(Le)}),e.TgZ(1,"mat-icon"),e._uU(2,"filter_list_off"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.qZA()),2&ie&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},dependencies:[B.Hw,I.lW,q.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor!important}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),W})();const j=["scrollViewport"];function Q(W,ee){if(1&W&&(e.TgZ(0,"mat-select-trigger"),e._uU(1),e.qZA()),2&W){const ie=e.oxw();e.xp6(1),e.hij(" ",ie.multipleSelectedText()," ")}}function be(W,ee){if(1&W&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&W){const ie=e.oxw(2);e.Tol(ie.colorByStatus(null==ie.entitiesCtrl?null:ie.entitiesCtrl.value)),e.xp6(1),e.hij(" ",ie.statusTextFunction(null==ie.entitiesCtrl?null:ie.entitiesCtrl.value)?"("+ie.statusTextFunction(null==ie.entitiesCtrl?null:ie.entitiesCtrl.value)+")":""," ")}}function me(W,ee){if(1&W){const ie=e.EpF();e.TgZ(0,"mat-option",10),e.NdJ("onSelectionChange",function(Ye){e.CHM(ie);const Le=e.oxw();return e.KtG(Le.onChange(Ye))}),e._uU(1),e.TgZ(2,"span",11),e._uU(3),e.qZA(),e.YNc(4,be,2,4,"span",12),e.qZA()}if(2&W){const ie=e.oxw();e.Q6J("value",null==ie.entitiesCtrl?null:ie.entitiesCtrl.value),e.xp6(1),e.hij(" ",ie.mainTextFunction(null==ie.entitiesCtrl?null:ie.entitiesCtrl.value)," "),e.xp6(2),e.Oqu(ie.secondaryTextFunction(null==ie.entitiesCtrl?null:ie.entitiesCtrl.value)),e.xp6(1),e.Q6J("ngIf",ie.displayStatus)}}function fe(W,ee){if(1&W&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&W){const ie=e.oxw().$implicit,xe=e.oxw();e.Tol(xe.colorByStatus(ie)),e.xp6(1),e.hij(" ",xe.statusTextFunction(ie)?"("+xe.statusTextFunction(ie)+")":""," ")}}function re(W,ee){if(1&W){const ie=e.EpF();e.TgZ(0,"mat-option",13),e.NdJ("onSelectionChange",function(Ye){e.CHM(ie);const Le=e.oxw();return e.KtG(Le.onChange(Ye))}),e._uU(1),e.TgZ(2,"span",11),e._uU(3),e.qZA(),e.YNc(4,fe,2,4,"span",12),e.qZA()}if(2&W){const ie=ee.$implicit,xe=e.oxw();e.Tol(xe.theme),e.Q6J("value",ie),e.xp6(1),e.hij(" ",xe.mainTextFunction(ie)," "),e.xp6(2),e.Oqu(xe.secondaryTextFunction(ie)),e.xp6(1),e.Q6J("ngIf",xe.displayStatus)}}function v(W,ee){if(1&W){const ie=e.EpF();e.TgZ(0,"perun-web-apps-deselect-button",14),e.NdJ("deselect",function(){e.CHM(ie);const Ye=e.oxw();return e.KtG(Ye.deselectEvent())}),e.qZA()}}let V=(()=>{class W{constructor(ie){this.cd=ie,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.displayStatus=!1,this.multiple=!1,this.theme="",this.required=!1,this.entitySelected=new e.vpe,this.selectClosed=new e.vpe,this.visibleDeselectButton=!1,this.selectedEntities=[],this.entitiesCtrl=new f.p4,this.entityFilterCtrl=new f.p4,this.filteredEntities=new A.t(1),this.entitiesLen=0,this._onDestroy=new S.x,this.mainTextFunction=xe=>JSON.stringify(xe),this.secondaryTextFunction=xe=>"#".concat(String(xe.id),xe.description?" ".concat(xe.description):""),this.statusTextFunction=xe=>xe.status}ngOnInit(){!this.disableAutoSelect&&null===this.entity&&this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(ie=>this.entitiesLen=ie.length),this.entityFilterCtrl.valueChanges.pipe((0,m.R)(this._onDestroy)).subscribe(()=>{this.filterEntities()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(ie){switch(ie.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(ie){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),ie.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}normalize(ie){return ie.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}onChange(ie){if(ie.isUserInput){const xe=ie.source.value;if(this.multiple){if(this.selectedEntities.includes(xe)){const Ye=this.selectedEntities.indexOf(xe);this.selectedEntities.splice(Ye,1)}else this.selectedEntities.push(xe);this.entitiesCtrl.setValue(this.selectedEntities),this.entitySelected.emit(this.selectedEntities)}else this.entitySelected.emit(xe)}this.visibleDeselectButton=0!==this.selectedEntities.length}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}closeChange(){this.selectClosed.emit(!0)}getViewportHeight(){let ie=48*this.entitiesLen;return ie>192&&(ie=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),ie}multipleSelectedText(){const ie=this.entitiesCtrl.value;if(ie&&0!==ie.length)return ie.length===this.entities.length?"ALL":ie.length>1?this.mainTextFunction(ie[0])+` + ${ie.length-1} other(s)`:this.mainTextFunction(ie[0])+" "+this.secondaryTextFunction(ie[0])}filterEntities(){if(!this.entities)return;let ie=this.entityFilterCtrl.value;if(!ie)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();ie=this.normalize(ie),this.filteredEntities.next(this.entities.filter(xe=>this.normalize(this.searchFunction(xe)).includes(ie))),this.cd.detectChanges()}deselectEvent(){this.visibleDeselectButton=!1,this.selectedEntities=[],this.entitiesCtrl.setValue([]),this.entitySelected.emit([]),this.selectClosed.emit(!0)}}return W.\u0275fac=function(ie){return new(ie||W)(e.Y36(e.sBO))},W.\u0275cmp=e.Xpm({type:W,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(ie,xe){if(1&ie&&e.Gf(j,5),2&ie){let Ye;e.iGM(Ye=e.CRH())&&(xe.scrollViewport=Ye.first)}},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",displayStatus:"displayStatus",multiple:"multiple",theme:"theme",required:"required",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected",selectClosed:"selectClosed"},features:[e.TTD],decls:14,vars:18,consts:[[1,"d-flex","flex-row","align-items-center","gap-4"],[1,"w-100","pb-0"],["data-cy","search-select-input",3,"required","formControl","multiple","openedChange","closed"],[4,"ngIf"],["data-cy","find-input",3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value","onSelectionChange",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"class","value","onSelectionChange",4,"cdkVirtualFor","cdkVirtualForOf"],["class","ms-2",3,"deselect",4,"ngIf"],[1,"selected-options-bottom",3,"value","onSelectionChange"],[1,"text-muted"],[3,"class",4,"ngIf"],[3,"value","onSelectionChange"],[1,"ms-2",3,"deselect"]],template:function(ie,xe){1&ie&&(e.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),e._uU(3),e.qZA(),e.TgZ(4,"mat-select",2),e.NdJ("openedChange",function(){return xe.openChange()})("closed",function(){return xe.closeChange()}),e.YNc(5,Q,2,1,"mat-select-trigger",3),e.TgZ(6,"mat-option"),e._UZ(7,"ngx-mat-select-search",4),e.qZA(),e.YNc(8,me,5,4,"mat-option",5),e.TgZ(9,"cdk-virtual-scroll-viewport",6,7),e.YNc(11,re,5,7,"mat-option",8),e.ALo(12,"async"),e.qZA()()(),e.YNc(13,v,1,0,"perun-web-apps-deselect-button",9),e.qZA()),2&ie&&(e.xp6(3),e.Oqu(xe.selectPlaceholder),e.xp6(1),e.Q6J("required",xe.required)("formControl",xe.entitiesCtrl)("multiple",xe.multiple),e.xp6(1),e.Q6J("ngIf",xe.multiple),e.xp6(2),e.s9C("placeholderLabel",xe.findPlaceholder),e.s9C("noEntriesFoundLabel",xe.noEntriesText),e.Q6J("clearSearchInput",!1)("formControl",xe.entityFilterCtrl),e.xp6(1),e.Q6J("ngIf",null==xe.entitiesCtrl?null:xe.entitiesCtrl.value),e.xp6(1),e.Udp("height",xe.getViewportHeight(),"px"),e.Q6J("minBufferPx",240)("maxBufferPx",480),e.xp6(2),e.Q6J("cdkVirtualForOf",e.lcZ(12,16,xe.filteredEntities)),e.xp6(2),e.Q6J("ngIf",xe.visibleDeselectButton))},dependencies:[M.O5,f.JJ,f.Q7,w.KE,w.hX,f.oH,x.ey,P.gD,P.$L,F.nu,T.xd,T.x0,T.N7,ue,M.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}.green[_ngcontent-%COMP%]{color:green}.grey[_ngcontent-%COMP%]{color:gray}.red[_ngcontent-%COMP%]{color:red}.black[_ngcontent-%COMP%]{color:#000}"]}),W})()},74010:(Xe,ae,p)=>{"use strict";p.d(ae,{X:()=>Ie});var e=p(96308),f=p(30671),A=p(9244),S=p(80279),m=p(94650),M=p(36895),w=p(56709),x=p(82761),P=p(98380),F=p(18750),T=p(34198),B=p(55660),I=p(10441),q=p(24006),ue=p(97392),j=p(4859),Q=p(10266);function be(Ne,we){if(1&Ne&&(m.TgZ(0,"div",6),m._uU(1),m.qZA()),2&Ne){const Be=we.$implicit,r=m.oxw();m.xp6(1),m.hij(" ",Be[r.paramName]," ")}}function me(Ne,we){1&Ne&&(m.TgZ(0,"mat-icon"),m._uU(1,"more_horiz"),m.qZA())}function fe(Ne,we){1&Ne&&(m.TgZ(0,"mat-icon"),m._uU(1,"keyboard_arrow_up"),m.qZA())}function re(Ne,we){if(1&Ne){const Be=m.EpF();m.TgZ(0,"button",7),m.NdJ("click",function(){m.CHM(Be);const u=m.oxw();return m.KtG(u.onShowChange())}),m.YNc(1,me,2,0,"mat-icon",8),m.YNc(2,fe,2,0,"mat-icon",8),m.qZA()}if(2&Ne){const Be=m.oxw();m.xp6(1),m.Q6J("ngIf",!Be.showMore),m.xp6(1),m.Q6J("ngIf",Be.showMore)}}let v=(()=>{class Ne{constructor(){this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}ngOnInit(){this.itemsShown=this.defaultItemsShown}ngOnChanges(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}onShowChange(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}return Ne.\u0275fac=function(Be){return new(Be||Ne)},Ne.\u0275cmp=m.Xpm({type:Ne,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[m.TTD],decls:7,vars:4,consts:[[1,"d-flex","w-100"],[1,"w-100"],[1,"me-5"],["class","d-flex mb-1",4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"d-flex","mb-1"],["mat-icon-button","",3,"click"],[4,"ngIf"]],template:function(Be,r){1&Be&&(m.TgZ(0,"form",0)(1,"div",1)(2,"div",2),m.YNc(3,be,2,1,"div",3),m.qZA(),m.TgZ(4,"div")(5,"span",4),m.YNc(6,re,3,2,"button",5),m.qZA()()()()),2&Be&&(m.xp6(3),m.Q6J("ngForOf",r.objects.slice(0,r.itemsShown)),m.xp6(2),m.Q6J("matTooltip",r.showMore?"Show less":"Show more")("matTooltipPosition","above"),m.xp6(1),m.Q6J("ngIf",r.objects.length>r.defaultItemsShown))},dependencies:[M.sg,M.O5,q._Y,q.JL,q.F,ue.Hw,j.RK,Q.gM]}),Ne})();var V=p(6967),W=p(89383),ee=p(53561);let ie=(()=>{class Ne{transform(Be,r,u){return Be.filter(_=>_[u].includes(r)).filter((_,C,h)=>h.findIndex(o=>o[u]===_[u])===C)}}return Ne.\u0275fac=function(Be){return new(Be||Ne)},Ne.\u0275pipe=m.Yjl({name:"filterUniqueObjects",type:Ne,pure:!0}),Ne})();var xe=p(8231);function Ye(Ne,we){1&Ne&&m._UZ(0,"th",22)}const Le=function(Ne){return{name:Ne}};function $e(Ne,we){if(1&Ne){const Be=m.EpF();m.TgZ(0,"td",23)(1,"mat-checkbox",24),m.NdJ("change",function(u){const C=m.CHM(Be).$implicit,h=m.oxw();return m.KtG(u?h.selection.toggle(C):null)})("click",function(u){return u.stopPropagation()}),m.ALo(2,"translate"),m.ALo(3,"checkboxLabel"),m.qZA()()}if(2&Ne){const Be=we.$implicit,r=m.oxw();m.xp6(1),m.Q2q("data-cy","",Be.facility.name,"-checkbox"),m.Q6J("aria-label",m.xi3(2,3,m.lcZ(3,6,r.selection.isSelected(Be)),m.VKq(8,Le,Be.facility.name)))("checked",r.selection.isSelected(Be))}}function qe(Ne,we){1&Ne&&(m.TgZ(0,"th",25),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Ne&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function Ze(Ne,we){if(1&Ne&&(m.TgZ(0,"td",26),m._uU(1),m.qZA()),2&Ne){const Be=we.$implicit;m.xp6(1),m.hij(" ",Be.facility.id," ")}}function Pe(Ne,we){1&Ne&&m._UZ(0,"th",27)}function se(Ne,we){if(1&Ne&&(m.TgZ(0,"td",28),m._UZ(1,"perun-web-apps-recently-viewed-icon",29),m.qZA()),2&Ne){const Be=we.$implicit,r=m.oxw();m.xp6(1),m.Q6J("id",Be.facility.id)("recentIds",r.recentIds)}}function N(Ne,we){1&Ne&&(m.TgZ(0,"th",25),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Ne&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function U(Ne,we){if(1&Ne&&(m.TgZ(0,"td",28),m._uU(1),m.qZA()),2&Ne){const Be=we.$implicit;m.uIk("data-cy",Be.facility.name),m.xp6(1),m.hij(" ",Be.facility.name," ")}}function $(Ne,we){1&Ne&&(m.TgZ(0,"th",27),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Ne&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.AUTHZ_GROUP")," "))}function ce(Ne,we){if(1&Ne){const Be=m.EpF();m.TgZ(0,"td",30),m.NdJ("mouseenter",function(){m.CHM(Be);const u=m.oxw();return m.KtG(u.localDisableRouting=!0)})("mouseleave",function(){m.CHM(Be);const u=m.oxw();return m.KtG(u.localDisableRouting=u.disableRouting)}),m._UZ(1,"perun-web-apps-authorized-groups-cell",31),m.qZA()}if(2&Ne){const Be=we.$implicit,r=m.oxw();m.xp6(1),m.Q6J("groups",r.facilityWithAuthzGroupPairs.get(Be.facility.id))("disableRouting",r.disableRouting)("authzVoNames",r.authzVoNames)}}function De(Ne,we){1&Ne&&(m.TgZ(0,"th",27),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Ne&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function he(Ne,we){if(1&Ne&&(m.TgZ(0,"td",28),m._uU(1),m.qZA()),2&Ne){const Be=we.$implicit;m.xp6(1),m.Oqu(Be.facility.description)}}function Oe(Ne,we){1&Ne&&(m.TgZ(0,"th",27),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Ne&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function it(Ne,we){if(1&Ne&&(m.TgZ(0,"td",28),m._uU(1),m.ALo(2,"technicalOwners"),m.qZA()),2&Ne){const Be=we.$implicit;m.xp6(1),m.Oqu(m.lcZ(2,1,Be.owners))}}function Ce(Ne,we){1&Ne&&(m.TgZ(0,"th",27),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Ne&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function ot(Ne,we){if(1&Ne){const Be=m.EpF();m.TgZ(0,"td",28)(1,"perun-web-apps-object-list-values",32),m.NdJ("mouseenter",function(){m.CHM(Be);const u=m.oxw();return m.KtG(u.localDisableRouting=!0)})("mouseleave",function(){m.CHM(Be);const u=m.oxw();return m.KtG(u.localDisableRouting=!1)}),m.ALo(2,"filterUniqueObjects"),m.qZA()()}if(2&Ne){const Be=we.$implicit,r=m.oxw();m.xp6(1),m.Q6J("objects",m.Dn7(2,2,Be.destinations,r.filterValue,"destination"))("paramName","destination")}}function Ue(Ne,we){1&Ne&&(m.TgZ(0,"th",27),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Ne&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function ft(Ne,we){if(1&Ne){const Be=m.EpF();m.TgZ(0,"td",28)(1,"perun-web-apps-object-list-values",32),m.NdJ("mouseenter",function(){m.CHM(Be);const u=m.oxw();return m.KtG(u.localDisableRouting=!0)})("mouseleave",function(){m.CHM(Be);const u=m.oxw();return m.KtG(u.localDisableRouting=!1)}),m.ALo(2,"filterUniqueObjects"),m.qZA()()}if(2&Ne){const Be=we.$implicit,r=m.oxw();m.xp6(1),m.Q6J("objects",m.Dn7(2,2,Be.hosts,r.filterValue,"hostname"))("paramName","hostname")}}function Z(Ne,we){1&Ne&&m._UZ(0,"tr",33)}const lt=function(Ne){return["/facilities",Ne]};function Ae(Ne,we){if(1&Ne&&m._UZ(0,"tr",34),2&Ne){const Be=we.$implicit,r=m.oxw();m.ekj("cursor-pointer",!r.disableRouting)("disable-outline",r.disableRouting),m.Q6J("perunWebAppsMiddleClickRouterLink",r.disableRouting||r.localDisableRouting?null:m.VKq(6,lt,Be.facility.id))("routerLink",r.disableRouting||r.localDisableRouting?null:m.VKq(8,lt,Be.facility.id))}}function Ke(Ne,we){1&Ne&&(m.TgZ(0,"perun-web-apps-alert",35),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Ne&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function pe(Ne,we){1&Ne&&(m.TgZ(0,"perun-web-apps-alert",35),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Ne&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let Ie=(()=>{class Ne{constructor(Be){this.authResolver=Be,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=A.f7,this.disableRouting=!1,this.getDataForColumnFun=(r,u)=>Ne.getDataForColumn(r,u,this.recentIds)}set matSort(Be){this.sort=Be}static getDataForColumn(Be,r,u){switch(r){case"id":return Be.facility.id.toString();case"name":return Be.facility.name;case"description":return Be.facility.description;case"technicalOwners":return(0,A.te)(Be.owners);case"recent":return u&&u.includes(Be.facility.id)?"#".repeat(u.indexOf(Be.facility.id)):Be.name;case"destinations":return Be.destinations.map(_=>_.destination).join(" ; ");case"hosts":return Be.hosts.map(_=>_.hostname).join(" ; ");default:return Be[r]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Be=>"id"!==Be)),this.setDataSource()}exportAllData(Be){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),Be)}exportDisplayedData(Be){const r=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,u=r+this.dataSource.paginator.pageSize;(0,A.O6)((0,A.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(r,u),this.displayedColumns,this.getDataForColumnFun),Be)}setDataSource(){this.dataSource||(this.dataSource=new f.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Be,r)=>(0,A.Sd)(Be,r,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(Be,r)=>(0,A.pR)(Be,r,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(Be=>this.selection.select(Be))}}return Ne.\u0275fac=function(Be){return new(Be||Ne)(m.Y36(S.x4))},Ne.\u0275cmp=m.Xpm({type:Ne,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(Be,r){if(1&Be&&(m.Gf(A.l9,7),m.Gf(e.YE,7)),2&Be){let u;m.iGM(u=m.CRH())&&(r.child=u.first),m.iGM(u=m.CRH())&&(r.matSort=u.first)}},inputs:{facilities:"facilities",facilityWithAuthzGroupPairs:"facilityWithAuthzGroupPairs",authzVoNames:"authzVoNames",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions",disableRouting:"disableRouting"},features:[m.TTD],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","authzGroup"],["mat-cell","","style","cursor: default",3,"mouseenter","mouseleave",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"id","recentIds"],["mat-cell","",2,"cursor","default",3,"mouseenter","mouseleave"],[3,"groups","disableRouting","authzVoNames"],[3,"objects","paramName","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Be,r){1&Be&&(m.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),m.NdJ("exportDisplayedData",function(_){return r.exportDisplayedData(_)})("exportAllData",function(_){return r.exportAllData(_)}),m.TgZ(2,"table",2),m.ynx(3,3),m.YNc(4,Ye,1,0,"th",4),m.YNc(5,$e,4,10,"td",5),m.BQk(),m.ynx(6,6),m.YNc(7,qe,3,3,"th",7),m.YNc(8,Ze,2,1,"td",8),m.BQk(),m.ynx(9,9),m.YNc(10,Pe,1,0,"th",10),m.YNc(11,se,2,2,"td",11),m.BQk(),m.ynx(12,12),m.YNc(13,N,3,3,"th",7),m.YNc(14,U,2,2,"td",11),m.BQk(),m.ynx(15,13),m.YNc(16,$,3,3,"th",10),m.YNc(17,ce,2,3,"td",14),m.BQk(),m.ynx(18,15),m.YNc(19,De,3,3,"th",10),m.YNc(20,he,2,1,"td",11),m.BQk(),m.ynx(21,16),m.YNc(22,Oe,3,3,"th",10),m.YNc(23,it,3,3,"td",11),m.BQk(),m.ynx(24,17),m.YNc(25,Ce,3,3,"th",10),m.YNc(26,ot,3,6,"td",11),m.BQk(),m.ynx(27,18),m.YNc(28,Ue,3,3,"th",10),m.YNc(29,ft,3,6,"td",11),m.BQk(),m.YNc(30,Z,1,0,"tr",19),m.YNc(31,Ae,1,10,"tr",20),m.qZA()()(),m.YNc(32,Ke,3,3,"perun-web-apps-alert",21),m.YNc(33,pe,3,3,"perun-web-apps-alert",21)),2&Be&&(m.Q6J("hidden",!r.dataSource||0===r.dataSource.filteredData.length||0===r.facilities.length),m.xp6(1),m.Q6J("tableId",r.tableId)("dataLength",r.dataSource.filteredData.length)("pageSizeOptions",r.pageSizeOptions),m.xp6(1),m.Q6J("dataSource",r.dataSource),m.xp6(28),m.Q6J("matHeaderRowDef",r.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",r.displayedColumns),m.xp6(1),m.Q6J("ngIf",0===r.dataSource.filteredData.length&&0!==r.facilities.length),m.xp6(1),m.Q6J("ngIf",0===r.facilities.length))},dependencies:[M.O5,w.oG,f.BZ,f.fO,f.as,f.w1,f.Dz,f.nj,f.ge,f.ev,f.XQ,f.Gk,x.rH,e.YE,e.nU,P.w,F.l,T.Y,I.W,v,B.Q,V.e,W.X$,ee.J,ie,xe.G],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Ne})()},13449:(Xe,ae,p)=>{"use strict";p.d(ae,{i:()=>re});var e=p(94650),f=p(80279),A=p(36895),S=p(97392),m=p(28255),M=p(4859),w=p(10266),x=p(64425),P=p(89383),F=p(29218),T=p(45942),B=p(28764);function I(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.ALo(2,"groupSyncToolTip"),e.TgZ(3,"button",6),e.NdJ("click",function(){e.CHM(W);const ie=e.oxw(2);return e.KtG(ie.onSyncDetail())}),e.ALo(4,"groupSyncIcon"),e.TgZ(5,"mat-icon"),e.ALo(6,"groupSyncIconColor"),e._uU(7),e.ALo(8,"groupSyncIcon"),e.qZA()()()}if(2&v){const W=e.oxw(2);e.Q6J("matTooltipPosition","above")("matTooltip",e.lcZ(1,7,e.lcZ(2,9,W.group))),e.xp6(3),e.Q6J("disabled","sync_disabled"===e.lcZ(4,11,W.group)),e.xp6(2),e.Tol(e.lcZ(6,13,W.group)),e.xp6(2),e.hij(" ",e.lcZ(8,15,W.group)," ")}}function q(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(W);const ie=e.oxw(2);return e.KtG(ie.onMoveGroup())}),e.TgZ(3,"mat-icon"),e._uU(4,"arrow_right_alt"),e.qZA()()()}if(2&v){const W=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",W.disabled)}}function ue(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(W);const ie=e.oxw(2);return e.KtG(ie.onChangeNameDescription())}),e.TgZ(3,"mat-icon"),e._uU(4,"text_format"),e.qZA()()()}if(2&v){const W=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",W.disabled)}}function j(v,V){if(1&v&&(e.TgZ(0,"div",2)(1,"button",3),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4," file_copy "),e.qZA()(),e.YNc(5,I,9,17,"span",4),e.YNc(6,q,5,5,"span",4),e.YNc(7,ue,5,5,"span",4),e.qZA()),2&v){const W=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.Q6J("cdkCopyToClipboard",W.group.name)("matTooltipPosition","above"),e.xp6(4),e.Q6J("ngIf",W.syncAuth),e.xp6(1),e.Q6J("ngIf",W.moveAuth),e.xp6(1),e.Q6J("ngIf",W.editAuth)}}function Q(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const ie=e.oxw(2);return e.KtG(ie.onSyncDetail())}),e.ALo(1,"groupSyncIcon"),e.TgZ(2,"mat-icon"),e.ALo(3,"groupSyncIconColor"),e._uU(4),e.ALo(5,"groupSyncIcon"),e.qZA(),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"groupSyncToolTip"),e.qZA()()}if(2&v){const W=e.oxw(2);e.Q6J("disabled","sync_disabled"===e.lcZ(1,6,W.group)),e.xp6(2),e.Tol(e.lcZ(3,8,W.group)),e.xp6(2),e.hij(" ",e.lcZ(5,10,W.group)," "),e.xp6(3),e.Oqu(e.lcZ(8,12,e.lcZ(9,14,W.group)))}}function be(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const ie=e.oxw(2);return e.KtG(ie.onMoveGroup())}),e.TgZ(1,"mat-icon"),e._uU(2,"arrow_right_alt"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&v){const W=e.oxw(2);e.Q6J("disabled",W.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function me(v,V){if(1&v){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const ie=e.oxw(2);return e.KtG(ie.onChangeNameDescription())}),e.TgZ(1,"mat-icon"),e._uU(2,"text_format"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&v){const W=e.oxw(2);e.Q6J("disabled",W.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function fe(v,V){if(1&v&&(e.TgZ(0,"div")(1,"button",7)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,8)(6,"button",9)(7,"mat-icon"),e._uU(8," file_copy "),e.qZA(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA()(),e.YNc(12,Q,10,16,"button",10),e.YNc(13,be,6,4,"button",10),e.YNc(14,me,6,4,"button",10),e.qZA()()),2&v){const W=e.MAs(5),ee=e.oxw();e.xp6(1),e.Q6J("mat-menu-trigger-for",W),e.xp6(5),e.Q6J("cdkCopyToClipboard",ee.group.name),e.xp6(4),e.Oqu(e.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.xp6(2),e.Q6J("ngIf",ee.syncAuth),e.xp6(1),e.Q6J("ngIf",ee.moveAuth),e.xp6(1),e.Q6J("ngIf",ee.editAuth)}}let re=(()=>{class v{constructor(W){this.authResolver=W,this.disabled=!1,this.moveGroup=new e.vpe,this.syncGroup=new e.vpe,this.changeNameDescription=new e.vpe}ngOnInit(){this.syncAuth=this.authResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group]),this.editAuth=this.authResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.moveAuth=this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.group])||this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.group])}onMoveGroup(){this.moveGroup.emit()}onSyncDetail(){this.syncGroup.emit()}onChangeNameDescription(){this.changeNameDescription.emit()}}return v.\u0275fac=function(W){return new(W||v)(e.Y36(f.x4))},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-group-menu"]],inputs:{group:"group",disabled:"disabled",displayButtons:"displayButtons"},outputs:{moveGroup:"moveGroup",syncGroup:"syncGroup",changeNameDescription:"changeNameDescription"},decls:2,vars:2,consts:[["class","buttons-container",4,"ngIf"],[4,"ngIf"],[1,"buttons-container"],["mat-icon-button","",1,"ms-auto","horiz_right",3,"cdkCopyToClipboard","matTooltipPosition","matTooltip"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click"],["mat-icon-button","",3,"mat-menu-trigger-for"],["groupMenu","matMenu"],["mat-menu-item","",3,"cdkCopyToClipboard"],["mat-menu-item","",3,"disabled","click",4,"ngIf"],["mat-menu-item","",3,"disabled","click"]],template:function(W,ee){1&W&&(e.YNc(0,j,8,8,"div",0),e.YNc(1,fe,15,8,"div",1)),2&W&&(e.Q6J("ngIf",ee.displayButtons),e.xp6(1),e.Q6J("ngIf",!ee.displayButtons))},dependencies:[A.O5,S.Hw,m.VK,m.OP,m.p6,M.RK,w.gM,x.i3,P.X$,F.J,T.r,B.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),v})()},8223:(Xe,ae,p)=>{"use strict";p.d(ae,{x:()=>I});var e=p(94650),f=p(9244),A=p(21029),S=p(7274),m=p(36895),M=p(97392),w=p(10266),x=p(89383);function P(q,ue){if(1&q){const j=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(j);const be=e.oxw();return e.KtG(be.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",4),e._uU(3,"check_circle_outline"),e.qZA()()}if(2&q){const j=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),e.Q2q("data-cy","",j.groupName,"-active")}}function F(q,ue){if(1&q){const j=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(j);const be=e.oxw();return e.KtG(be.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",5),e._uU(3,"block"),e.qZA()()}if(2&q){const j=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),e.Q2q("data-cy","",j.groupName,"-inactive")}}function T(q,ue){if(1&q){const j=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(j);const be=e.oxw();return e.KtG(be.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",6),e._uU(3,"report"),e.qZA()()}if(2&q){const j=e.oxw();e.hYB("matTooltip","",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",j.failureCause,"")}}function B(q,ue){1&q&&(e.TgZ(0,"span",7),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",8),e._uU(3,"autorenew"),e.qZA()()),2&q&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let I=(()=>{class q{constructor(j){this.dialog=j,this.status="",this.groupName="",this.statusChange=new e.vpe}changeStatus(){const j=(0,f.kZ)();j.width="500px",j.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(A.Qu,j).afterClosed().subscribe(be=>{be&&this.statusChange.emit()})}}return q.\u0275fac=function(j){return new(j||q)(e.Y36(S.uw))},q.\u0275cmp=e.Xpm({type:q,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(j,Q){1&j&&(e.TgZ(0,"div",0),e.YNc(1,P,4,4,"span",1),e.YNc(2,F,4,4,"span",1),e.YNc(3,T,4,4,"span",1),e.YNc(4,B,4,3,"span",2),e.qZA()),2&j&&(e.xp6(1),e.Q6J("ngIf","ACTIVE"===Q.status),e.xp6(1),e.Q6J("ngIf","INACTIVE"===Q.status),e.xp6(1),e.Q6J("ngIf","FAILED"===Q.status),e.xp6(1),e.Q6J("ngIf","PROCESSING"===Q.status))},dependencies:[m.O5,M.Hw,w.gM,x.X$]}),q})()},82322:(Xe,ae,p)=>{"use strict";p.d(ae,{h:()=>m});var e=p(94650),f=p(9244),A=p(89593),S=p(89383);let m=(()=>{class M{constructor(){this.disableAutoSelect=!1,this.displayStatus=!1,this.groupSelected=new e.vpe,this.nameFunction=x=>x.name}ngOnInit(){this.groups=this.groups.sort(f.aC)}}return M.\u0275fac=function(x){return new(x||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup",displayStatus:"displayStatus"},outputs:{groupSelected:"groupSelected"},decls:4,vars:15,consts:[[1,"long-input",3,"entities","entity","displayStatus","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(x,P){if(1&x&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(T){return P.groupSelected.emit(T)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&x){let F;e.Q6J("entities",P.groups)("entity",null!==(F=P.firstSelectedGroup)&&void 0!==F?F:null)("displayStatus",P.displayStatus)("disableAutoSelect",P.disableAutoSelect)("mainTextFunction",P.nameFunction)("searchFunction",P.nameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},dependencies:[A.i,S.X$]}),M})()},25788:(Xe,ae,p)=>{"use strict";p.d(ae,{W:()=>_t});var e=p(94650),f=p(21029),A=p(61744),S=p(80279),m=p(9244),M=p(91479),w=p(96308),x=p(30671),P=p(95017),F=p(19516),T=p(7274),B=p(36895),I=p(56709),q=p(82761),ue=p(98380),j=p(97392),Q=p(4859),be=p(10266),me=p(18750),fe=p(13449),re=p(34198),v=p(55660),V=p(10441),W=p(8223),ee=p(6967),ie=p(89383),xe=p(21757);let Ye=(()=>{class ye{transform(oe){return oe.attributes.find(Te=>"groupMembershipExpiration"===Te.baseFriendlyName)?.value??"Never"}}return ye.\u0275fac=function(oe){return new(oe||ye)},ye.\u0275pipe=e.Yjl({name:"groupExpiration",type:ye,pure:!0}),ye})();var Le=p(82514),$e=p(62383),qe=p(9185);let Ze=(()=>{class ye{transform(oe,_e){return(0,m.cT)(oe,_e)}}return ye.\u0275fac=function(oe){return new(oe||ye)},ye.\u0275pipe=e.Yjl({name:"findAttribute",type:ye,pure:!0}),ye})(),Pe=(()=>{class ye{constructor(oe){this.authResolver=oe}transform(oe){return this.authResolver.isThisGroupAdmin(oe.id)||this.authResolver.isThisVoAdmin(oe.voId)}}return ye.\u0275fac=function(oe){return new(oe||ye)(e.Y36(S.x4,16))},ye.\u0275pipe=e.Yjl({name:"canManageGroup",type:ye,pure:!0}),ye})();var se=p(22908);let N=(()=>{class ye{transform(oe,_e,Te){return _e?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":(0,m.bx)(oe)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":oe.sourceGroupId?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP":"members"===oe.name?"":Te?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP":"MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"}}return ye.\u0275fac=function(oe){return new(oe||ye)},ye.\u0275pipe=e.Yjl({name:"groupCheckboxTooltip",type:ye,pure:!0}),ye})();var U=p(8231),$=p(14849);function ce(ye,Ee){if(1&ye){const oe=e.EpF();e.TgZ(0,"mat-checkbox",29),e.NdJ("change",function(Te){e.CHM(oe);const ut=e.oxw(3);return e.KtG(Te?ut.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&ye){const oe=e.oxw(2).ngIf,_e=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,oe.all)))("checked",_e.selection.hasValue()&&oe.all)("indeterminate",_e.selection.hasValue()&&!oe.all)}}function De(ye,Ee){if(1&ye&&(e.TgZ(0,"th",27),e.YNc(1,ce,3,7,"mat-checkbox",28),e.qZA()),2&ye){const oe=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!oe.disableHeadCheckbox&&oe.selection.isMultipleSelection())}}const he=function(ye){return{name:ye}};function Oe(ye,Ee){if(1&ye){const oe=e.EpF();e.TgZ(0,"span",32),e.ALo(1,"translate"),e.ALo(2,"groupCheckboxTooltip"),e.TgZ(3,"mat-checkbox",33),e.NdJ("change",function(Te){e.CHM(oe);const ut=e.oxw().$implicit,vt=e.oxw(2);return e.KtG(Te?vt.itemSelectionToggle(ut):null)})("click",function(Te){return Te.stopPropagation()}),e.ALo(4,"translate"),e.ALo(5,"checkboxLabel"),e.qZA()()}if(2&ye){const oe=Ee.ngIf,_e=e.oxw().$implicit,Te=e.oxw(2);e.Q6J("matTooltip",e.lcZ(1,7,e.Dn7(2,9,_e,!1,Te.canBeSelected(_e))))("matTooltipPosition","above")("matTooltipDisabled",!oe.disable&&Te.canBeSelected(_e)),e.xp6(3),e.Q2q("data-cy","",_e.name,"-checkbox"),e.Q6J("aria-label",e.xi3(4,13,e.lcZ(5,16,Te.selection.isSelected(_e)),e.VKq(18,he,_e.name)))("checked",Te.selection.isSelected(_e))("disabled",oe.disable||!Te.canBeSelected(_e))}}const it=function(ye){return{disable:ye}};function Ce(ye,Ee){if(1&ye){const oe=e.EpF();e.TgZ(0,"td",30),e.NdJ("mouseenter",function(){e.CHM(oe);const Te=e.oxw(2);return e.KtG(Te.disabledRouting=!0)})("mouseleave",function(){e.CHM(oe);const Te=e.oxw(2);return e.KtG(Te.disabledRouting=Te.disableRouting)}),e.ALo(1,"disableGroupSelect"),e.YNc(2,Oe,6,20,"span",31),e.ALo(3,"disableGroupSelect"),e.qZA()}if(2&ye){const oe=Ee.$implicit,_e=e.oxw(2);e.ekj("cursor-default",e.gM2(1,3,oe,_e.disableMembers,_e.disableGroups,_e.groupsToDisableCheckbox)||!_e.canBeSelected(oe)),e.xp6(2),e.Q6J("ngIf",e.VKq(13,it,e.gM2(3,8,oe,_e.disableMembers,_e.disableGroups,_e.groupsToDisableCheckbox)))}}function ot(ye,Ee){1&ye&&(e.ynx(0,24),e.YNc(1,De,2,1,"th",25),e.YNc(2,Ce,4,15,"td",26),e.BQk())}function Ue(ye,Ee){1&ye&&(e.TgZ(0,"th",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function ft(ye,Ee){if(1&ye&&(e.TgZ(0,"td",35),e._uU(1),e.qZA()),2&ye){const oe=Ee.$implicit;e.xp6(1),e.Oqu(oe.id)}}function Z(ye,Ee){1&ye&&e._UZ(0,"th",36)}function lt(ye,Ee){if(1&ye&&(e.TgZ(0,"td",37),e._UZ(1,"perun-web-apps-recently-viewed-icon",38),e.qZA()),2&ye){const oe=Ee.$implicit,_e=e.oxw();e.xp6(1),e.Q6J("recentIds",_e.recentIds)("id",oe.id)}}function Ae(ye,Ee){1&ye&&(e.TgZ(0,"th",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function Ke(ye,Ee){if(1&ye&&(e.TgZ(0,"td",35),e._uU(1),e.qZA()),2&ye){const oe=Ee.$implicit,_e=e.oxw();e.xp6(1),e.hij(" ",_e.voNames.get(oe.voId)," ")}}function pe(ye,Ee){1&ye&&e._UZ(0,"th",36)}function Ie(ye,Ee){1&ye&&(e.TgZ(0,"mat-icon",40),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&ye&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function Ne(ye,Ee){1&ye&&(e.TgZ(0,"mat-icon",40),e.ALo(1,"translate"),e._uU(2,"alt_route"),e.qZA()),2&ye&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function we(ye,Ee){if(1&ye&&(e.TgZ(0,"td",37),e.YNc(1,Ie,3,3,"mat-icon",39),e.YNc(2,Ne,3,3,"mat-icon",39),e.qZA()),2&ye){const oe=Ee.$implicit;e.xp6(1),e.Q6J("ngIf",oe.sourceGroupId&&!oe.moreTypesOfAssignment),e.xp6(1),e.Q6J("ngIf",oe.moreTypesOfAssignment)}}function Be(ye,Ee){1&ye&&(e.TgZ(0,"th",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function r(ye,Ee){if(1&ye&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&ye){const oe=Ee.$implicit;e.uIk("data-cy",oe.name),e.xp6(1),e.hij(" ",oe.name," ")}}function u(ye,Ee){1&ye&&(e.TgZ(0,"th",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.AUTHZ_GROUP")," "))}function _(ye,Ee){if(1&ye){const oe=e.EpF();e.TgZ(0,"td",41),e.NdJ("mouseenter",function(){e.CHM(oe);const Te=e.oxw();return e.KtG(Te.disabledRouting=!0)})("mouseleave",function(){e.CHM(oe);const Te=e.oxw();return e.KtG(Te.disabledRouting=Te.disableRouting)}),e._UZ(1,"perun-web-apps-authorized-groups-cell",42),e.qZA()}if(2&ye){const oe=Ee.$implicit,_e=e.oxw();e.xp6(1),e.Q6J("groups",_e.groupWithAuthzGroupPairs.get(oe.id))("disableRouting",_e.disableRouting)("authzVoNames",_e.authzVoNames)}}function C(ye,Ee){1&ye&&(e.TgZ(0,"th",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function h(ye,Ee){if(1&ye){const oe=e.EpF();e.TgZ(0,"td",43)(1,"perun-web-apps-group-resource-status",44),e.NdJ("mouseenter",function(){e.CHM(oe);const Te=e.oxw();return e.KtG(Te.disabledRouting=!0)})("mouseleave",function(){e.CHM(oe);const Te=e.oxw();return e.KtG(Te.disabledRouting=Te.disableRouting)})("statusChange",function(){e.CHM(oe);const Te=e.oxw();return e.KtG(Te.refreshTable.emit())}),e.qZA()()}if(2&ye){const oe=Ee.$implicit,_e=e.oxw();e.xp6(1),e.Q6J("theme","resource-theme")("groupId",oe.id)("groupName",oe.name)("resourceId",_e.resourceId)("failureCause",oe.failureCause)("status",oe.status)}}function o(ye,Ee){1&ye&&(e.TgZ(0,"th",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function n(ye,Ee){if(1&ye&&(e.TgZ(0,"i",46),e.NdJ("click",function(_e){return _e.stopPropagation()}),e.ALo(1,"groupStatusIconColor"),e.TgZ(2,"span"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA()()),2&ye){const oe=Ee.ngIf;e.Gre("material-icons ",e.lcZ(1,5,oe.status)," cursor-default"),e.s9C("matTooltip",oe.status),e.xp6(3),e.hij(" ",e.lcZ(4,7,oe.status)," ")}}const t=function(ye){return{status:ye}};function i(ye,Ee){if(1&ye&&(e.TgZ(0,"td",37),e.YNc(1,n,5,9,"i",45),e.ALo(2,"findAttribute"),e.qZA()),2&ye){const oe=Ee.$implicit;e.xp6(1),e.Q6J("ngIf",e.VKq(4,t,e.xi3(2,1,oe.attributes,"groupStatus")))}}function a(ye,Ee){1&ye&&(e.TgZ(0,"th",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function l(ye,Ee){if(1&ye&&(e.TgZ(0,"td",43),e._uU(1),e.qZA()),2&ye){const oe=Ee.$implicit;e.xp6(1),e.Oqu(oe.description)}}function d(ye,Ee){1&ye&&(e.TgZ(0,"th",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function c(ye,Ee){if(1&ye){const oe=e.EpF();e.TgZ(0,"button",48),e.NdJ("click",function(){e.CHM(oe);const Te=e.oxw().$implicit,ut=e.oxw();return e.KtG(ut.changeExpiration(Te))})("mouseenter",function(){e.CHM(oe);const Te=e.oxw(2);return e.KtG(Te.disabledRouting=!0)})("mouseleave",function(){e.CHM(oe);const Te=e.oxw(2);return e.KtG(Te.disabledRouting=Te.disableRouting)}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function s(ye,Ee){if(1&ye&&(e.TgZ(0,"td",43),e._uU(1),e.ALo(2,"parseDate"),e.ALo(3,"groupExpiration"),e.YNc(4,c,3,0,"button",47),e.ALo(5,"canManageGroup"),e.qZA()),2&ye){const oe=Ee.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,oe))," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(5,6,oe))}}function E(ye,Ee){1&ye&&e._UZ(0,"th",36)}function H(ye,Ee){if(1&ye){const oe=e.EpF();e.TgZ(0,"td",37)(1,"perun-web-apps-group-menu",49),e.NdJ("mouseenter",function(){e.CHM(oe);const Te=e.oxw();return e.KtG(Te.disabledRouting=!0)})("mouseleave",function(){e.CHM(oe);const Te=e.oxw();return e.KtG(Te.disabledRouting=Te.disableRouting)})("moveGroup",function(){const ut=e.CHM(oe).$implicit,vt=e.oxw();return e.KtG(vt.moveGroup(ut))})("changeNameDescription",function(){const ut=e.CHM(oe).$implicit,vt=e.oxw();return e.KtG(vt.editGroup(ut))})("syncGroup",function(){const ut=e.CHM(oe).$implicit,vt=e.oxw();return e.KtG(vt.openSyncDetail(ut))}),e.qZA()()}if(2&ye){const oe=Ee.$implicit,_e=e.oxw();e.xp6(1),e.Q6J("disabled","members"===oe.name)("displayButtons",_e.displayButtons)("group",oe)}}function ne(ye,Ee){1&ye&&e._UZ(0,"tr",50)}const ve=function(ye,Ee){return["/organizations",ye,"groups",Ee]};function We(ye,Ee){if(1&ye&&e._UZ(0,"tr",51),2&ye){const oe=Ee.$implicit,_e=e.oxw();e.ekj("cursor-pointer",!_e.disableRouting&&!_e.groupsToDisableRouting.has(oe.id))("disable-outline",_e.disableRouting||_e.disabledRouting||_e.groupsToDisableRouting.has(oe.id)),e.Q6J("perunWebAppsMiddleClickRouterLink",_e.disableRouting||_e.disabledRouting||_e.groupsToDisableRouting.has(oe.id)?null:e.WLB(6,ve,oe.voId,oe.id))("routerLink",_e.disableRouting||_e.disabledRouting||_e.groupsToDisableRouting.has(oe.id)?null:e.WLB(9,ve,oe.voId,oe.id))}}function Mt(ye,Ee){if(1&ye&&(e.TgZ(0,"perun-web-apps-alert",52),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye){const oe=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,oe.noGroupsAlert),"\n")}}const pt=function(ye){return{all:ye}};let _t=(()=>{class ye{constructor(oe,_e,Te,ut,vt,Bt){this.dialog=oe,this.authResolver=_e,this.voService=Te,this.tableCheckbox=ut,this.disableGroupSelect=vt,this.groupUtils=Bt,this.theme="group-theme",this.selection=new P.Ov(!0,[]),this.groupsToDisableCheckbox=new Set,this.groupsToDisableRouting=new Set,this.disableRouting=!1,this.pageSizeOptions=m.f7,this.recentIds=[],this.resourceId=null,this.relation=!1,this.noGroupsAlert="SHARED_LIB.UI.ALERTS.NO_GROUPS",this.groupMoved=new e.vpe,this.refreshTable=new e.vpe,this.queryChanged=new e.vpe,this.downloadAll=new e.vpe,this.displayButtons=window.innerWidth>800,this.disabledRouting=!1,this.voNames=new Map,this.columns=["select","id","recent","vo","indirectGroupAssigment","name","status","groupStatus","description","expiration","menu"],this.getDataForColumnFun=(Rt,Ot)=>this.groupUtils.getDataForColumn(Rt,Ot,this.voNames),this.getSortDataForColumnFun=(Rt,Ot)=>this.groupUtils.getSortDataForColumn(Rt,Ot,this.voNames,this.recentIds),this.canBeSelected=Rt=>{const Ot=Rt.attributes?.find(si=>"groupStatusIndirect"===si.friendlyName);return Ot?.value?!Ot.value:!this.disableGroupSelect.transform(Rt,this.disableMembers,this.disableGroups,this.groupsToDisableCheckbox)}}set groups(oe){this.dataSource||this.dataSourceInit(oe);const _e=this.isPaginated(oe);(0,M.o)(this.dataSource)&&_e?(this.dataSource.data=oe.data,this.dataSource.count=oe.totalCount):!(0,M.o)(this.dataSource)&&!_e&&(this.dataSource.data=oe),this.updateVoNames()}set filter(oe){this.dataSource.filter=oe}set displayedColumns(oe){this.authResolver.isPerunAdminOrObserver()||(oe=oe.filter(_e=>"id"!==_e)),this.columns=oe}shouldHideButtons(){this.displayButtons=window.innerWidth>800}isPaginated(oe){return"data"in oe}exportAllData(oe){(0,M.o)(this.dataSource)?this.downloadAll.emit({format:oe,length:this.dataSource.paginator.length}):(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.columns,this.getDataForColumnFun),oe)}exportDisplayedData(oe){if((0,M.o)(this.dataSource))(0,m.O6)((0,m.Xn)(this.dataSource.data,this.columns,this.getDataForColumnFun),oe);else{const _e=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Te=_e+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(_e,Te),this.columns,this.getDataForColumnFun),oe)}}isAllSelected(){return(0,M.o)(this.dataSource)?this.tableCheckbox.isAllSelectedPaginated(this.dataSource,this.selection.selected.length,this.canBeSelected):this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){(0,M.o)(this.dataSource)?this.tableCheckbox.masterTogglePaginated(this.dataSource,this.selection,!this.isAllSelected(),this.canBeSelected):this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.dataSource.filter,this.dataSource,this.dataSource.sort,this.dataSource.paginator.pageSize,this.dataSource.paginator.pageIndex,!0,this.canBeSelected)}moveGroup(oe){this.groupMoved.emit(oe)}openSyncDetail(oe){const _e=(0,m.kZ)();_e.width="450px",_e.data={groupId:oe.id,theme:this.theme},this.dialog.open(f.Bp,_e)}editGroup(oe){const _e=(0,m.kZ)();_e.data={theme:"group-theme",group:oe,dialogType:f.Eg.GROUP},this.dialog.open(f.rd,_e).afterClosed().subscribe(ut=>{ut&&this.refreshTable.emit()})}changeExpiration(oe){const _e=oe.attributes.find(vt=>"groupMembershipExpiration"===vt.baseFriendlyName),Te=(0,m.kZ)();Te.width="400px",Te.data={memberId:this.memberId,groupId:oe.id,expirationAttr:_e,status:(0,m.cT)(oe.attributes,"groupStatus")},this.dialog.open(f.u3,Te).afterClosed().subscribe(vt=>{vt.success&&this.refreshTable.emit()})}itemSelectionToggle(oe){this.selection.toggle(oe)}dataSourceInit(oe){const _e=this.isPaginated(oe);this.dataSource=_e?new M.H(oe.data,oe.totalCount,this.sort,this.tableWrapper.paginator):new x.by(oe),(0,M.o)(this.dataSource)?this.dataSource.pageQuery$.subscribe(Te=>this.queryChanged.emit(Te)):(this.dataSource.sort=this.sort,this.dataSource.paginator=this.tableWrapper.paginator,this.dataSource.filterPredicate=(Te,ut)=>(0,m.Sd)(Te,ut,this.columns,this.getDataForColumnFun,!0),this.dataSource.sortData=(Te,ut)=>(0,m.pR)(Te,ut,this.getSortDataForColumnFun))}updateVoNames(){if(this.columns.includes("vo")){const oe=new Set;this.dataSource.filteredData.forEach(_e=>{!oe.has(_e.voId)&&!this.voNames.has(_e.voId)&&oe.add(_e.voId)}),oe.size>0&&this.voService.getVosByIds([...oe]).subscribe(_e=>{_e.forEach(Te=>{this.voNames.set(Te.id,Te.name)})})}}}return ye.\u0275fac=function(oe){return new(oe||ye)(e.Y36(T.uw),e.Y36(S.x4),e.Y36(A.YF),e.Y36(S.UA),e.Y36(F.yo),e.Y36(S.K1))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(oe,_e){if(1&oe&&(e.Gf(m.l9,7),e.Gf(w.YE,7)),2&oe){let Te;e.iGM(Te=e.CRH())&&(_e.tableWrapper=Te.first),e.iGM(Te=e.CRH())&&(_e.sort=Te.first)}},hostBindings:function(oe,_e){1&oe&&e.NdJ("resize",function(ut){return _e.shouldHideButtons(ut)},!1,e.Jf7)},inputs:{theme:"theme",selection:"selection",groupWithAuthzGroupPairs:"groupWithAuthzGroupPairs",authzVoNames:"authzVoNames",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisableCheckbox:"groupsToDisableCheckbox",groupsToDisableRouting:"groupsToDisableRouting",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId",tableId:"tableId",relation:"relation",noGroupsAlert:"noGroupsAlert",groups:"groups",filter:"filter",displayedColumns:"displayedColumns"},outputs:{groupMoved:"groupMoved",refreshTable:"refreshTable",queryChanged:"queryChanged",downloadAll:"downloadAll"},features:[e._Bn([F.yo])],decls:41,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","indirectGroupAssigment"],["matColumnDef","name"],["matColumnDef","authzGroup"],["mat-cell","","style","cursor: default",3,"mouseenter","mouseleave",4,"matCellDef"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","groupStatus"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",3,"cursor-default","mouseenter","mouseleave",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox",3,"mouseenter","mouseleave"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],["mat-cell","",2,"cursor","default",3,"mouseenter","mouseleave"],[3,"groups","disableRouting","authzVoNames"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","groupName","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"class","matTooltip","click",4,"ngIf"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-icon-button","",3,"click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"click","mouseenter","mouseleave"],[3,"disabled","displayButtons","group","mouseenter","mouseleave","moveGroup","changeNameDescription","syncGroup"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(oe,_e){if(1&oe&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(ut){return _e.exportDisplayedData(ut)})("exportAllData",function(ut){return _e.exportAllData(ut)}),e.TgZ(2,"table",2),e.YNc(3,ot,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,Ue,3,3,"th",5),e.YNc(7,ft,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,Z,1,0,"th",8),e.YNc(10,lt,2,2,"td",9),e.BQk(),e.ynx(11,10),e.YNc(12,Ae,3,3,"th",5),e.YNc(13,Ke,2,1,"td",6),e.BQk(),e.ynx(14,11),e.YNc(15,pe,1,0,"th",8),e.YNc(16,we,3,2,"td",9),e.BQk(),e.ynx(17,12),e.YNc(18,Be,3,3,"th",5),e.YNc(19,r,2,2,"td",9),e.BQk(),e.ynx(20,13),e.YNc(21,u,3,3,"th",8),e.YNc(22,_,2,3,"td",14),e.BQk(),e.ynx(23,15),e.YNc(24,C,3,3,"th",5),e.YNc(25,h,2,6,"td",16),e.BQk(),e.ynx(26,17),e.YNc(27,o,3,3,"th",5),e.YNc(28,i,3,6,"td",9),e.BQk(),e.ynx(29,18),e.YNc(30,a,3,3,"th",5),e.YNc(31,l,2,1,"td",16),e.BQk(),e.ynx(32,19),e.YNc(33,d,3,3,"th",5),e.YNc(34,s,6,8,"td",16),e.BQk(),e.ynx(35,20),e.YNc(36,E,1,0,"th",8),e.YNc(37,H,2,3,"td",9),e.BQk(),e.YNc(38,ne,1,0,"tr",21),e.YNc(39,We,1,12,"tr",22),e.qZA()()(),e.YNc(40,Mt,3,3,"perun-web-apps-alert",23)),2&oe){let Te;e.Q6J("hidden",0===_e.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",null!==(Te=_e.dataSource.count)&&void 0!==Te?Te:_e.dataSource.filteredData.length)("pageSizeOptions",_e.pageSizeOptions)("tableId",_e.tableId),e.xp6(1),e.Q6J("dataSource",_e.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,pt,e.Dn7(4,9,_e.dataSource,_e.selection.selected.length,_e.canBeSelected))),e.xp6(35),e.Q6J("matHeaderRowDef",_e.columns),e.xp6(1),e.Q6J("matRowDefColumns",_e.columns),e.xp6(1),e.Q6J("ngIf",0===_e.dataSource.filteredData.length)}},dependencies:[B.O5,I.oG,x.BZ,x.fO,x.as,x.w1,x.Dz,x.nj,x.ge,x.ev,x.XQ,x.Gk,q.rH,w.YE,w.nU,ue.w,j.Hw,Q.RK,be.gM,me.l,fe.i,re.Y,V.W,W.x,v.Q,ee.e,ie.X$,xe.f,Ye,Le.F,$e.M,qe.I,Ze,Pe,se.y,N,U.G,$.r],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.cursor-default[_ngcontent-%COMP%], .mat-mdc-checkbox-disabled[_ngcontent-%COMP%]{cursor:default}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),ye})()},58956:(Xe,ae,p)=>{"use strict";p.d(ae,{I:()=>qe});var e=p(94650),f=p(35423),A=p(57851),S=p(95017);class m{constructor(Pe){this.id=Pe.id,this.name=Pe.name,this.parentGroupId=Pe.parentGroupId,this.voId=Pe.voId,this.shortName=Pe.shortName,this.description=Pe.description,this.attributes=Pe.attributes,this.beanName=Pe.beanName}addChild(Pe){null==this.children?this.children=[Pe]:this.children.push(Pe)}}var M=p(9244),w=p(21029),x=p(80279),P=p(7274),F=p(36895),T=p(56709),B=p(82761),I=p(98380),q=p(97392),ue=p(4859),j=p(10266),Q=p(67376),be=p(13449),me=p(34198),fe=p(55660),re=p(89383);const v=["scrollViewport"];function V(Ze,Pe){if(1&Ze){const se=e.EpF();e.TgZ(0,"mat-checkbox",19),e.NdJ("change",function(){e.CHM(se);const U=e.oxw().$implicit,$=e.oxw(2);return e.KtG($.itemSelectionToggle(U))}),e.qZA()}if(2&Ze){const se=e.oxw().$implicit,N=e.oxw(2);e.Q2q("data-cy","",se.name,"-checkbox"),e.Q6J("disabled","members"===se.fullName)("checked",N.selection.isSelected(se))("indeterminate",N.descendantsPartiallySelected(se))}}function W(Ze,Pe){if(1&Ze&&(e.TgZ(0,"mat-icon",20),e._uU(1),e.qZA()),2&Ze){const se=e.oxw().$implicit,N=e.oxw(2);e.xp6(1),e.hij(" ",N.treeControl.isExpanded(se)?"expand_more":"chevron_right"," ")}}function ee(Ze,Pe){if(1&Ze&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&Ze){const se=e.oxw().$implicit;e.xp6(1),e.hij(" #",se.id," ")}}const ie=function(Ze,Pe){return["/organizations",Ze,"groups",Pe]};function xe(Ze,Pe){if(1&Ze){const se=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,V,1,4,"mat-checkbox",7),e.TgZ(3,"a",8),e.NdJ("auxclick",function(U){return U.preventDefault()}),e.TgZ(4,"button",9),e.NdJ("mouseenter",function(){e.CHM(se);const U=e.oxw(2);return e.KtG(U.disableRouting=!0)})("mouseleave",function(){e.CHM(se);const U=e.oxw(2);return e.KtG(U.disableRouting=!1)})("click",function(){const $=e.CHM(se).$implicit,ce=e.oxw(2);return e.KtG(ce.treeControl.toggle($))}),e.YNc(5,W,2,1,"mat-icon",10),e.qZA(),e.TgZ(6,"div",11)(7,"span",12),e._uU(8),e.qZA(),e.YNc(9,ee,2,1,"span",13),e.qZA(),e.TgZ(10,"div",14,15)(12,"span",16),e._uU(13),e.qZA()()(),e.TgZ(14,"div",17)(15,"perun-web-apps-group-menu",18),e.NdJ("moveGroup",function(){const $=e.CHM(se).$implicit,ce=e.oxw(2);return e.KtG(ce.onMoveGroup($))})("syncGroup",function(){const $=e.CHM(se).$implicit,ce=e.oxw(2);return e.KtG(ce.onSyncDetail($))})("changeNameDescription",function(){const $=e.CHM(se).$implicit,ce=e.oxw(2);return e.KtG(ce.onChangeNameDescription($))}),e.qZA()()(),e.BQk()}if(2&Ze){const se=Pe.$implicit,N=e.oxw(2);e.xp6(1),e.Udp("padding-left",24*se.level+"px"),e.xp6(1),e.Q6J("ngIf",!N.hideCheckbox),e.xp6(1),e.Q6J("perunWebAppsMiddleClickRouterLink",N.disableRouting?null:e.WLB(16,ie,se.voId.toString(),se.id.toString()))("routerLink",N.disableRouting?null:e.WLB(19,ie,se.voId,se.id)),e.xp6(1),e.Q6J("disabled",!se.expandable),e.uIk("aria-label","toggle "+se.name),e.xp6(1),e.Q6J("ngIf",se.expandable),e.xp6(2),e.uIk("data-cy",se.name),e.xp6(1),e.hij(" ",se.name," "),e.xp6(1),e.Q6J("ngIf",N.authResolver.isPerunAdminOrObserver()),e.xp6(3),e.s9C("matTooltip",se.description),e.xp6(1),e.hij(" ",se.description," "),e.xp6(2),e.Q6J("disabled","members"===se.fullName)("displayButtons",N.displayButtons)("group",se)}}const Ye=function(Ze){return{height:Ze}};function Le(Ze,Pe){if(1&Ze&&(e.TgZ(0,"div",2)(1,"cdk-virtual-scroll-viewport",3,4),e.YNc(3,xe,16,22,"ng-container",5),e.qZA()()),2&Ze){const se=e.oxw();e.xp6(1),e.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",e.VKq(4,Ye,se.getTreeViewHeight())),e.xp6(2),e.Q6J("cdkVirtualForOf",se.dataSource)}}function $e(Ze,Pe){1&Ze&&(e.TgZ(0,"perun-web-apps-alert",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let qe=(()=>{class Ze{constructor(se,N,U){this.cd=se,this.dialog=N,this.authResolver=U,this.theme="group-theme",this.moveGroup=new e.vpe,this.refreshTable=new e.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new S.Ov(!0,[]),this.hideCheckbox=!1,this.displayButtons=window.innerWidth>600,this.treeControl=new A.C2($=>$.level,$=>$.expandable),this.hasChild=($,ce)=>ce.expandable,this.getLevel=$=>$.level,this.transformer=($,ce)=>({expandable:!!$.children&&$.children.length>0,name:$.shortName,fullName:$.name,parentGroupId:$.parentGroupId,level:ce,id:$.id,voId:$.voId,attributes:$.attributes,beanName:$.beanName,description:$.description}),this.treeFlattener=new f.JZ(this.transformer,$=>$.level,$=>$.expandable,$=>$.children),this.dataSource=new f.kc(this.treeControl,this.treeFlattener)}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(se=>se.name?.toLowerCase().includes(this.filterValue.toLowerCase())||se.description?.toLowerCase().includes(this.filterValue.toLowerCase())||se.id.toString().includes(this.filterValue.toLowerCase())||se.uuid.toLowerCase().includes(this.filterValue.toLowerCase()));for(const se of this.filteredGroups)se.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,M.oU)(se.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(se){const N=(0,M.kZ)();N.width="450px",N.data={groupId:se.id,theme:this.theme},this.dialog.open(w.Bp,N)}onChangeNameDescription(se){const N=(0,M.kZ)();N.data={theme:"group-theme",group:se,dialogType:w.Eg.GROUP},this.dialog.open(w.rd,N).afterClosed().subscribe($=>{$&&this.refreshTable.emit()})}createGroupTrees(se){const N=new Map;for(const ce of se)N.set(ce.id,new m(ce));const U=new Set;N.forEach((ce,De,he)=>{const Oe=he.get(ce.parentGroupId);void 0!==Oe&&(Oe.addChild(ce),he.set(ce.parentGroupId,Oe)),null!==ce.parentGroupId&&void 0===Oe&&U.add(ce.id)});const $=[];N.forEach(ce=>{(null===ce.parentGroupId||U.has(ce.id))&&$.push(ce)}),this.dataSource.data=$,this.cd.detectChanges()}getParentNode(se){const N=this.getLevel(se);if(N<1)return null;for(let $=this.treeControl.dataNodes.indexOf(se)-1;$>=0;$--){const ce=this.treeControl.dataNodes[$];if(this.getLevel(ce)this.selection.isSelected(ce));N&&!$&&this.selection.deselect(se)}checkAllParentsSelection(se){let N=this.getParentNode(se);for(;N;)this.checkRootNodeSelection(N),N=this.getParentNode(N);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(se){return this.treeControl.getDescendants(se).some($=>this.selection.isSelected($))&&!this.selection.isSelected(se)}itemSelectionToggle(se){this.selection.toggle(se);const N=this.treeControl.getDescendants(se);this.selection.isSelected(se)?this.selection.select(...N):this.selection.deselect(...N),N.every(U=>this.selection.isSelected(U)),this.checkAllParentsSelection(se)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(se,N)=>se&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,N]):(se,N)=>se&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[N]),!0)}onMoveGroup(se){this.moveGroup.emit(se)}getTreeViewHeight(){let se=0;this.scrollViewport&&(se=this.scrollViewport.getDataLength());let N=48*se;return N>672&&(N=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),String(N)+"px"}}return Ze.\u0275fac=function(se){return new(se||Ze)(e.Y36(e.sBO),e.Y36(P.uw),e.Y36(x.x4))},Ze.\u0275cmp=e.Xpm({type:Ze,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(se,N){if(1&se&&e.Gf(v,5),2&se){let U;e.iGM(U=e.CRH())&&(N.scrollViewport=U.first)}},hostBindings:function(se,N){1&se&&e.NdJ("resize",function($){return N.shouldHideButtons($)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:2,vars:2,consts:[["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"card","mt-2"],["itemSize","48",1,"virtual-scroll-container",3,"minBufferPx","maxBufferPx","ngStyle"],["scrollViewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"node"],["color","primary","class","no-label-margin-bottom ms-4",3,"disabled","checked","indeterminate","change",4,"ngIf"],[1,"group-item-content","text-format",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],["mat-icon-button","",3,"disabled","mouseenter","mouseleave","click"],["class","mat-icon-rtl-mirror",4,"ngIf"],[1,"w-50"],[1,"me-2"],["class","text-muted",4,"ngIf"],[1,"w-50","text-muted","description-text"],["rootDescription",""],["matTooltipPosition","before",3,"matTooltip"],[1,"group-buttons"],[3,"disabled","displayButtons","group","moveGroup","syncGroup","changeNameDescription"],["color","primary",1,"no-label-margin-bottom","ms-4",3,"disabled","checked","indeterminate","change"],[1,"mat-icon-rtl-mirror"],[1,"text-muted"],["alert_type","warn"]],template:function(se,N){1&se&&(e.YNc(0,Le,4,6,"div",0),e.YNc(1,$e,3,3,"perun-web-apps-alert",1)),2&se&&(e.Q6J("ngIf",0!==N.filteredGroups.length),e.xp6(1),e.Q6J("ngIf",0===N.filteredGroups.length))},dependencies:[F.O5,F.PC,T.oG,B.rH,I.w,q.Hw,ue.RK,j.gM,Q.xd,Q.x0,Q.N7,be.i,me.Y,fe.Q,re.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.group-item-content[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;overflow:hidden;word-wrap:break-word;cursor:pointer}mat-tree-node[_ngcontent-%COMP%]{cursor:pointer}.description-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.virtual-scroll-container[_ngcontent-%COMP%]{overflow:auto}cdk-tree-node[_ngcontent-%COMP%]{display:block}.node[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;word-wrap:break-word}.node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),Ze})()},52314:(Xe,ae,p)=>{"use strict";p.d(ae,{X:()=>ue});var e=p(80279),f=p(94650),A=p(36895),S=p(97392),m=p(28255),M=p(4859),w=p(10266),x=p(89383),P=p(31359);const F=function(j){return{color:j}};function T(j,Q){if(1&j&&(f.TgZ(0,"button",9),f.ALo(1,"translate"),f.TgZ(2,"mat-icon",10),f._uU(3," apps "),f.qZA()()),2&j){const be=f.oxw(),me=f.MAs(3);f.Q6J("matMenuTriggerFor",me)("matTooltip",f.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),f.xp6(2),f.Q6J("ngStyle",f.VKq(5,F,be.iconColor))}}function B(j,Q){if(1&j&&(f.TgZ(0,"span",11),f._uU(1),f.ALo(2,"userFullName"),f.qZA()),2&j){const be=f.oxw();f.Q6J("ngStyle",f.VKq(4,F,be.textColor)),f.xp6(1),f.hij(" ",f.lcZ(2,2,be.user)," ")}}function I(j,Q){if(1&j){const be=f.EpF();f.TgZ(0,"button",12),f.NdJ("click",function(){f.CHM(be);const fe=f.oxw();return f.KtG(fe.onLogOut())}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&j&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"NAV.LOGOUT")," "))}const q=function(j){return{color:j,"font-size":"24px"}};let ue=(()=>{class j{constructor(be){this.authService=be}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return j.\u0275fac=function(be){return new(be||j)(f.Y36(e.e8))},j.\u0275cmp=f.Xpm({type:j,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:8,consts:[[1,"align-elements"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[1,"mb-1","me-3",3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(be,me){if(1&be&&(f.TgZ(0,"div",0),f.YNc(1,T,4,7,"button",1),f.TgZ(2,"mat-menu",null,2)(4,"button",3),f.NdJ("click",function(){return me.redirectToUrl()})("auxclick",function(){return me.redirectToUrl()}),f.TgZ(5,"span"),f._uU(6),f.qZA()()(),f.TgZ(7,"button",4)(8,"mat-icon",5),f._uU(9," person "),f.qZA(),f.YNc(10,B,3,6,"span",6),f.qZA(),f.TgZ(11,"mat-menu",null,7),f.YNc(13,I,3,3,"button",8),f.qZA()()),2&be){const fe=f.MAs(12);f.xp6(1),f.Q6J("ngIf",me.url),f.xp6(5),f.Oqu(me.label),f.xp6(1),f.Q6J("matMenuTriggerFor",fe),f.xp6(1),f.Q6J("ngStyle",f.VKq(6,q,me.iconColor)),f.xp6(2),f.Q6J("ngIf",null!==me.user),f.xp6(3),f.Q6J("ngIf",me.logoutEnabled)}},dependencies:[A.O5,A.PC,S.Hw,m.VK,m.OP,m.p6,M.lW,M.RK,w.gM,x.X$,P.d],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}"]}),j})()},7434:(Xe,ae,p)=>{"use strict";p.d(ae,{L:()=>F});var e=p(94650),f=p(24006),A=p(36895),S=p(59549),m=p(284),M=p(22308),w=p(89383);function x(T,B){if(1&T&&e._UZ(0,"input",3),2&T){const I=e.oxw();e.Q6J("formControl",I.formControl)}}function P(T,B){if(1&T&&e._UZ(0,"input",4),2&T){const I=e.oxw();e.Q6J("formControl",I.formControl)}}let F=(()=>{class T{constructor(){this.filter=new e.vpe,this.autoFocus=!1,this.formControl=new f.p4}ngOnInit(){this.formControl.valueChanges.subscribe(I=>{let q=I.trim();q=q.toLowerCase(),this.filter.emit(q)})}}return T.\u0275fac=function(I){return new(I||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","me-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl"],["matInput","","data-cy","unfocused-filter",3,"formControl"]],template:function(I,q){1&I&&(e.TgZ(0,"mat-form-field",0)(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,x,1,1,"input",1),e.YNc(5,P,1,1,"input",2),e.qZA()),2&I&&(e.xp6(2),e.Oqu(e.lcZ(3,3,q.placeholder)),e.xp6(2),e.Q6J("ngIf",q.autoFocus),e.xp6(1),e.Q6J("ngIf",!q.autoFocus))},dependencies:[A.O5,f.Fj,f.JJ,S.KE,S.hX,f.oH,m.Nt,M.h,w.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),T})()},93057:(Xe,ae,p)=>{"use strict";p.d(ae,{z:()=>U});var e=p(94650),f=p(61744),A=p(9244),S=p(64080),m=p(30671),M=p(80279),w=p(21029),x=p(89383),P=p(7274),F=p(36895),T=p(51572),B=p(98380),I=p(97392),q=p(4859),ue=p(73546),j=p(82322),Q=p(21757),be=p(82514),me=p(62383),fe=p(49206);function re($,ce){1&$&&(e.TgZ(0,"mat-card-header")(1,"mat-card-title")(2,"h1",6),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&$&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")))}function v($,ce){1&$&&(e.TgZ(0,"h1",7),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&$&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP"),"\n"))}function V($,ce){if(1&$){const De=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(Oe){e.CHM(De);const it=e.oxw();return e.KtG(it.groupIsSelected(Oe))}),e.qZA()}if(2&$){const De=e.oxw();e.Q6J("firstSelectedGroup",De.selectedGroup)("groups",De.groups)}}function W($,ce){1&$&&e._UZ(0,"mat-spinner",9)}function ee($,ce){1&$&&(e.TgZ(0,"perun-web-apps-alert",10),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&$&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function ie($,ce){1&$&&e._UZ(0,"th",18)}function xe($,ce){if(1&$&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&$){const De=ce.$implicit;e.xp6(1),e.hij("",De,":")}}function Ye($,ce){1&$&&e._UZ(0,"th",18)}function Le($,ce){if(1&$){const De=e.EpF();e.TgZ(0,"button",25),e.NdJ("click",function(){e.CHM(De);const Oe=e.oxw(4);return e.KtG(Oe.changeStatus())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function $e($,ce){if(1&$&&(e.TgZ(0,"div",22)(1,"i"),e.ALo(2,"groupStatusIconColor"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA(),e.TgZ(5,"b",23),e._uU(6),e.ALo(7,"transformMemberStatus"),e.qZA(),e.YNc(8,Le,3,0,"button",24),e.qZA()),2&$){const De=e.oxw(3);e.xp6(1),e.Gre("material-icons vert-center me-1 ",e.lcZ(2,6,De.selectedMember.groupStatus),""),e.xp6(2),e.hij(" ",e.lcZ(4,8,De.selectedMember.groupStatus)," "),e.xp6(3),e.hij(" ",e.lcZ(7,10,De.selectedMember.groupStatus)," "),e.xp6(2),e.Q6J("ngIf",De.authResolver.isThisVoAdmin(De.voId)||De.authResolver.isThisGroupAdmin(De.selectedGroup.id))}}function qe($,ce){if(1&$){const De=e.EpF();e.TgZ(0,"button",25),e.NdJ("click",function(){e.CHM(De);const Oe=e.oxw(4);return e.KtG(Oe.changeExpiration())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function Ze($,ce){if(1&$&&(e.TgZ(0,"div",22)(1,"i",2),e._uU(2),e.ALo(3,"parseDate"),e.qZA(),e.YNc(4,qe,3,0,"button",24),e.qZA()),2&$){const De=e.oxw(3);e.xp6(2),e.hij(" ",e.lcZ(3,2,De.expiration)," "),e.xp6(2),e.Q6J("ngIf",De.authResolver.isThisVoAdmin(De.voId)||De.authResolver.isThisGroupAdmin(De.selectedGroup.id))}}function Pe($,ce){if(1&$&&(e.TgZ(0,"td",20),e.YNc(1,$e,9,12,"div",21),e.YNc(2,Ze,5,4,"div",21),e.qZA()),2&$){const De=ce.$implicit;e.xp6(1),e.Q6J("ngIf","Status"===De),e.xp6(1),e.Q6J("ngIf","Expiration"===De)}}function se($,ce){1&$&&e._UZ(0,"tr",26)}function N($,ce){if(1&$&&(e.TgZ(0,"div")(1,"table",11),e.ynx(2,12),e.YNc(3,ie,1,0,"th",13),e.YNc(4,xe,2,1,"td",14),e.BQk(),e.ynx(5,15),e.YNc(6,Ye,1,0,"th",13),e.YNc(7,Pe,3,2,"td",16),e.BQk(),e.YNc(8,se,1,0,"tr",17),e.qZA()()),2&$){const De=e.oxw();e.xp6(1),e.Tol(De.openedInDialog?"me-auto":"ms-auto me-auto"),e.Q6J("dataSource",De.groupMembershipDataSource),e.xp6(7),e.Q6J("matRowDefColumns",De.displayedColumns)}}let U=(()=>{class ${constructor(De,he,Oe,it){this.groupsManager=De,this.authResolver=he,this.translate=Oe,this.dialog=it,this.openedInDialog=!1,this.statusChanged=new e.vpe,this.noGroups=!1,this.groupMembershipDataSource=new m.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new m.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(De=>{if(this.groups=De,0===this.groups.length)return void(this.noGroups=!0);const he=this.findInitiallySelectedGroupId();this.groupIsSelected(he),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,A.vL)("groups"),this.recentIds){const De=this.groups.find(he=>he.id===this.recentIds[0]);if(De)return De}return this.groups[0]}groupIsSelected(De){this.loading=!0,this.selectedGroup=De,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[S.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(he=>{this.selectedMember=he[0],this.expirationAtt=this.selectedMember.memberAttributes.find(Oe=>"groupMembershipExpiration"===Oe.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new m.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new m.by(["Status"]),this.loading=!1})}changeExpiration(){const De=(0,A.kZ)();De.width="400px",De.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,backButton:this.openedInDialog},this.dialog.open(w.u3,De).afterClosed().subscribe(Oe=>{Oe.success&&(this.groupIsSelected(this.selectedGroup),this.dialog.closeAll())})}changeStatus(){const De=(0,A.kZ)();De.width="600px",De.data={member:this.selectedMember,voId:this.voId,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,backButton:this.openedInDialog},this.dialog.open(w.pf,De).afterClosed().subscribe(Oe=>{Oe&&(this.selectedMember=Oe,this.groupIsSelected(this.selectedGroup),this.dialog.closeAll(),this.statusChanged.emit(!0))})}}return $.\u0275fac=function(De){return new(De||$)(e.Y36(f.ff),e.Y36(M.x4),e.Y36(x.sK),e.Y36(P.uw))},$.\u0275cmp=e.Xpm({type:$,selectors:[["perun-web-apps-member-overview-groups"]],inputs:{voId:"voId",member:"member",openedInDialog:"openedInDialog"},outputs:{statusChanged:"statusChanged"},features:[e.TTD],decls:7,vars:6,consts:[[4,"ngIf"],["mat-dialog-title","",4,"ngIf"],[1,"column-center"],[3,"firstSelectedGroup","groups","groupSelected",4,"ngIf"],["class","me-auto ms-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"page-subtitle"],["mat-dialog-title",""],[3,"firstSelectedGroup","groups","groupSelected"],[1,"me-auto","ms-auto"],["alert_type","warn"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","fw-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"fw-bold"],["mat-cell","",1,"column-center"],["class","d-flex align-items-center",4,"ngIf"],[1,"d-flex","align-items-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-row",""]],template:function(De,he){1&De&&(e.YNc(0,re,5,3,"mat-card-header",0),e.YNc(1,v,3,3,"h1",1),e.TgZ(2,"mat-card-content",2),e.YNc(3,V,1,2,"perun-web-apps-group-search-select",3),e.YNc(4,W,1,0,"mat-spinner",4),e.YNc(5,ee,3,3,"perun-web-apps-alert",5),e.YNc(6,N,9,4,"div",0),e.qZA()),2&De&&(e.Q6J("ngIf",!he.openedInDialog),e.xp6(1),e.Q6J("ngIf",he.openedInDialog),e.xp6(2),e.Q6J("ngIf",!he.initLoading&&!he.openedInDialog),e.xp6(1),e.Q6J("ngIf",(he.loading||he.initLoading)&&!he.noGroups),e.xp6(1),e.Q6J("ngIf",he.noGroups),e.xp6(1),e.Q6J("ngIf",!he.loading))},dependencies:[F.O5,m.BZ,m.fO,m.w1,m.Dz,m.nj,m.ge,m.ev,m.Gk,T.Ou,B.w,I.Hw,q.RK,P.uh,ue.dn,ue.dk,ue.n5,j.h,x.X$,Q.f,be.F,me.M,fe.r],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),$})()},12488:(Xe,ae,p)=>{"use strict";p.d(ae,{b:()=>Pe});var e=p(94650),f=p(61744),A=p(9244),S=p(21029),m=p(30671),M=p(80279),w=p(64080),x=p(7274),P=p(89383),F=p(36895),T=p(51572),B=p(97392),I=p(4859),q=p(73546),ue=p(69773),j=p(21757),Q=p(38993),be=p(62383),me=p(49206);function fe(se,N){1&se&&(e.TgZ(0,"mat-card-header")(1,"mat-card-title")(2,"h1",3),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&se&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "))}function re(se,N){1&se&&(e.TgZ(0,"h1",4),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP"),"\n"))}function v(se,N){1&se&&e._UZ(0,"mat-spinner",5)}function V(se,N){1&se&&e._UZ(0,"th",13)}function W(se,N){if(1&se&&(e.TgZ(0,"td",14),e._uU(1),e.qZA()),2&se){const U=N.$implicit;e.xp6(1),e.hij("",U,":")}}function ee(se,N){1&se&&e._UZ(0,"th",13)}function ie(se,N){if(1&se){const U=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(U);const ce=e.oxw(4);return e.KtG(ce.changeStatus())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function xe(se,N){if(1&se&&(e.TgZ(0,"div",17)(1,"i"),e.ALo(2,"memberStatusIconColor"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA(),e.TgZ(5,"b",18),e._uU(6),e.ALo(7,"transformMemberStatus"),e.qZA(),e.YNc(8,ie,3,0,"button",19),e.ALo(9,"memberStatusDisabled"),e.qZA()),2&se){const U=e.oxw(3);e.xp6(1),e.Gre("material-icons vert-center me-1 ",e.lcZ(2,6,U.member),""),e.xp6(2),e.hij(" ",e.lcZ(4,8,U.member.status)," "),e.xp6(3),e.hij(" ",e.lcZ(7,10,U.member.status)," "),e.xp6(2),e.Q6J("ngIf",U.authResolver.isThisVoAdmin(U.voId)&&!e.lcZ(9,12,U.member))}}function Ye(se,N){if(1&se){const U=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(U);const ce=e.oxw(4);return e.KtG(ce.changeVoExpiration())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function Le(se,N){if(1&se&&(e.TgZ(0,"div",17)(1,"i",21),e._uU(2),e.ALo(3,"parseDate"),e.qZA(),e.YNc(4,Ye,3,0,"button",19),e.ALo(5,"memberStatusDisabled"),e.qZA()),2&se){const U=e.oxw(3);e.xp6(2),e.hij(" ",e.lcZ(3,2,U.voExpiration)," "),e.xp6(2),e.Q6J("ngIf",U.authResolver.isThisVoAdmin(U.voId)&&!e.lcZ(5,4,U.member))}}function $e(se,N){if(1&se&&(e.TgZ(0,"td",15),e.YNc(1,xe,10,14,"div",16),e.YNc(2,Le,6,6,"div",16),e.qZA()),2&se){const U=N.$implicit;e.xp6(1),e.Q6J("ngIf","Status"===U),e.xp6(1),e.Q6J("ngIf","Expiration"===U)}}function qe(se,N){1&se&&e._UZ(0,"tr",22)}function Ze(se,N){if(1&se&&(e.TgZ(0,"div")(1,"table",6),e.ynx(2,7),e.YNc(3,V,1,0,"th",8),e.YNc(4,W,2,1,"td",9),e.BQk(),e.ynx(5,10),e.YNc(6,ee,1,0,"th",8),e.YNc(7,$e,3,2,"td",11),e.BQk(),e.YNc(8,qe,1,0,"tr",12),e.qZA()()),2&se){const U=e.oxw();e.xp6(1),e.Tol(U.openedInDialog?"me-auto":"ms-auto me-auto"),e.Q6J("dataSource",U.voMembershipDataSource),e.xp6(7),e.Q6J("matRowDefColumns",U.displayedColumns)}}let Pe=(()=>{class se{constructor(U,$,ce,De,he,Oe){this.dialog=U,this.authResolver=$,this.apiRequest=ce,this.attributesManager=De,this.translate=he,this.notificator=Oe,this.openedInDialog=!1,this.statusChanged=new e.vpe,this.voMembershipDataSource=new m.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new m.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const U=(0,A.kZ)();U.width="600px",U.data={member:this.member,voId:this.voId,backButton:this.openedInDialog,expirationAttr:this.voExpirationAtt},this.dialog.open(S.pf,U).afterClosed().subscribe(ce=>{ce&&(this.member=ce,this.dialog.closeAll(),this.refreshVoExpiration())})}changeVoExpiration(){const U=(0,A.kZ)();U.width="400px",U.data={voId:this.voId,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,backButton:this.openedInDialog},this.dialog.open(S.kZ,U).afterClosed().subscribe(ce=>{ce.success&&(ce.member&&(this.member=ce.member),this.refreshVoExpiration(),this.dialog.closeAll())})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,w.r.MEMBER_DEF_EXPIRATION).subscribe({next:U=>{this.voExpirationAtt=U,this.voExpiration=U.value?U.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},error:U=>{"PrivilegeException"!==U.name?this.notificator.showError(U.name):this.voMembershipDataSource=new m.by(["Status"]),this.loading=!1}})}}return se.\u0275fac=function(U){return new(U||se)(e.Y36(x.uw),e.Y36(M.x4),e.Y36(M.F5),e.Y36(f.H8),e.Y36(P.sK),e.Y36(M.V6))},se.\u0275cmp=e.Xpm({type:se,selectors:[["perun-web-apps-member-overview-membership"]],inputs:{member:"member",voId:"voId",openedInDialog:"openedInDialog"},outputs:{statusChanged:"statusChanged"},features:[e.TTD],decls:5,vars:4,consts:[[4,"ngIf"],["mat-dialog-title","",4,"ngIf"],["class","me-auto ms-auto",4,"ngIf"],[1,"page-subtitle"],["mat-dialog-title",""],[1,"me-auto","ms-auto"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","fw-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"fw-bold"],["mat-cell","",1,"column-center"],["class","d-flex align-items-center",4,"ngIf"],[1,"d-flex","align-items-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"column-center"],["mat-row",""]],template:function(U,$){1&U&&(e.YNc(0,fe,5,3,"mat-card-header",0),e.YNc(1,re,3,3,"h1",1),e.TgZ(2,"mat-card-content"),e.YNc(3,v,1,0,"mat-spinner",2),e.YNc(4,Ze,9,4,"div",0),e.qZA()),2&U&&(e.Q6J("ngIf",!$.openedInDialog),e.xp6(1),e.Q6J("ngIf",$.openedInDialog),e.xp6(2),e.Q6J("ngIf",$.loading),e.xp6(1),e.Q6J("ngIf",!$.loading))},dependencies:[F.O5,m.BZ,m.fO,m.w1,m.Dz,m.nj,m.ge,m.ev,m.Gk,T.Ou,B.Hw,I.RK,x.uh,q.dn,q.dk,q.n5,P.X$,ue.u,j.f,Q.n,be.M,me.r],styles:[".vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),se})()},4811:(Xe,ae,p)=>{"use strict";p.d(ae,{m:()=>n});var e=p(94650),f=p(21029),A=p(80279),S=p(9244),m=p(96308),M=p(56451),w=p(18505),x=p(61880),P=p(7274),F=p(10036),T=p(36895),B=p(56709),I=p(30671),q=p(82761),ue=p(98380),j=p(97392),Q=p(10266),be=p(18750),me=p(34198),fe=p(55660),re=p(89383),v=p(31359),V=p(69773),W=p(21757),ee=p(12856),ie=p(20919),xe=p(5865),Ye=p(82514),Le=p(96974),$e=p(38993),qe=p(86349),Ze=p(9185),Pe=p(8231),se=p(14849);function N(t,i){if(1&t){const a=e.EpF();e.TgZ(0,"mat-checkbox",24),e.NdJ("change",function(d){e.CHM(a);const c=e.oxw(3);return e.KtG(d?c.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&t){const a=e.oxw(2).ngIf,l=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,a.all)))("checked",l.selection.hasValue()&&a.all)("indeterminate",l.selection.hasValue()&&!a.all)}}function U(t,i){if(1&t&&(e.TgZ(0,"th",22),e.YNc(1,N,3,7,"mat-checkbox",23),e.qZA()),2&t){const a=e.oxw(2);e.xp6(1),e.Q6J("ngIf",a.selection.isMultipleSelection())}}const $=function(t){return{name:t}};function ce(t,i){if(1&t){const a=e.EpF();e.TgZ(0,"td",25)(1,"mat-checkbox",26),e.NdJ("change",function(d){const s=e.CHM(a).$implicit,E=e.oxw(2);return e.KtG(d?E.selection.toggle(s):null)})("click",function(d){return d.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.ALo(4,"userFullName"),e.ALo(5,"lowercase"),e.ALo(6,"memberStatusDisabled"),e.ALo(7,"memberCheckboxLabel"),e.qZA()()}if(2&t){const a=i.$implicit,l=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",e.lcZ(5,12,a.user.firstName),"-checkbox"),e.Q6J("aria-label",e.xi3(2,5,e.lcZ(3,8,l.selection.isSelected(a)),e.VKq(20,$,e.lcZ(4,10,a.user))))("checked",l.selection.isSelected(a))("disabled",e.xi3(6,14,a,l.groupId))("matTooltip",e.xi3(7,17,a,l.groupId))}}function De(t,i){1&t&&(e.ynx(0,19),e.YNc(1,U,2,1,"th",20),e.YNc(2,ce,8,22,"td",21),e.BQk())}function he(t,i){1&t&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function Oe(t,i){if(1&t&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&t){const a=i.$implicit;e.xp6(1),e.Oqu(a.id)}}function it(t,i){1&t&&e._UZ(0,"th",27)}function Ce(t,i){if(1&t){const a=e.EpF();e.TgZ(0,"mat-icon",31),e.NdJ("click",function(d){e.CHM(a);const c=e.oxw().$implicit,s=e.oxw();return e.KtG(s.viewMemberGroupTree(d,c))}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&t&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function ot(t,i){if(1&t&&(e.TgZ(0,"td",29),e.YNc(1,Ce,3,3,"mat-icon",30),e.qZA()),2&t){const a=i.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==a.membershipType)}}function Ue(t,i){1&t&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function ft(t,i){if(1&t&&(e.TgZ(0,"td",29),e.ALo(1,"lowercase"),e._uU(2),e.ALo(3,"userFullName"),e.qZA()),2&t){const a=i.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,a.user.firstName),"-firstName-td"),e.xp6(2),e.hij(" ",e.lcZ(3,4,a.user)," ")}}function Z(t,i){1&t&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function lt(t,i){if(1&t){const a=e.EpF();e.TgZ(0,"td",29)(1,"i",32),e.NdJ("click",function(d){const s=e.CHM(a).$implicit,E=e.oxw();return e.KtG(E.openMembershipDialog(d,s))}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&t){const a=i.$implicit,l=e.oxw();e.xp6(1),e.Gre("material-icons ",e.lcZ(2,7,a),""),e.ekj("cursor-default",!l.expireVoAuth),e.s9C("matTooltip",e.xi3(3,9,a,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,12,a.status)," ")}}function Ae(t,i){1&t&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function Ke(t,i){if(1&t){const a=e.EpF();e.TgZ(0,"td",29)(1,"i",32),e.NdJ("click",function(d){const s=e.CHM(a).$implicit,E=e.oxw();return e.KtG(E.openMembershipDialog(d,s,E.groupId))}),e.ALo(2,"groupStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&t){const a=i.$implicit,l=e.oxw();e.xp6(1),e.Gre("material-icons ",e.Dn7(2,7,a.groupStatus,"INDIRECT"===a.membershipType,l.isMembersGroup),""),e.ekj("cursor-default",!l.expireGroupAuth),e.s9C("matTooltip",e.Dn7(3,11,a,!0,l.isMembersGroup)),e.xp6(4),e.hij(" ",e.lcZ(6,15,a.groupStatus)," ")}}function pe(t,i){1&t&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function Ie(t,i){if(1&t&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&t){const a=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,a))}}function Ne(t,i){1&t&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function we(t,i){if(1&t&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&t){const a=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,a))}}function Be(t,i){1&t&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function r(t,i){if(1&t&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&t){const a=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,a))}}function u(t,i){1&t&&e._UZ(0,"tr",34)}const _=function(t,i){return["/organizations",t,"members",i]};function C(t,i){if(1&t&&e._UZ(0,"tr",35),2&t){const a=i.$implicit,l=e.oxw();e.ekj("cursor-pointer",l.dataSource.routeAuth)("italic_font","INDIRECT"===a.membershipType)("disable-outline",l.disableRouting||!l.dataSource.routeAuth),e.Q6J("perunWebAppsMiddleClickRouterLink",l.disableRouting||!l.dataSource.routeAuth?null:e.WLB(8,_,a.voId,a.id))("routerLink",l.disableRouting||!l.dataSource.routeAuth?null:e.WLB(11,_,a.voId,a.id))}}function h(t,i){1&t&&(e.TgZ(0,"perun-web-apps-alert",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}const o=function(t){return{all:t}};let n=(()=>{class t{constructor(a,l,d,c,s,E){this.dialog=a,this.authResolver=l,this.tableCheckbox=d,this.tableConfigService=c,this.dynamicPaginatingService=s,this.entityStorage=E,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.disableRouting=!1,this.loading$=new e.vpe,this.pageSizeOptions=S.f7,this.canBeSelected=H=>!(0,S.im)(H)}static getExportDataForColumn(a,l){switch(l){case"id":return a.id.toString();case"fullName":return a.user?(0,S.bD)(a.user):"";case"status":return a.status;case"groupStatus":return a.groupStatus;case"organization":return(0,S.Gw)(a);case"email":return(0,S.g$)(a);case"logins":return(0,S.lt)(a);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,M.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,w.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.expireGroupAuth=this.authResolver.isAuthorized("setMemberGroupStatus_Member_Group_MemberGroupStatus_policy",[this.entityStorage.getEntity()]),this.expireVoAuth=this.authResolver.isAuthorized("setStatus_Member_Status_policy",[this.entityStorage.getEntity()]),this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(a=>"id"!==a)),this.dataSource=new A.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.tableConfigService.getTablePageSize(this.tableId),"NAME",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses),this.loading$.emit(this.dataSource.loading$)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadMembersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(a=>{this.canBeSelected(a)&&this.selection.select(a)})}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().filter(d=>this.canBeSelected(d)).length}openMembershipDialog(a,l,d){a.stopPropagation();const c=(0,S.zr)(l);if(d){if(!this.expireGroupAuth||this.isMembersGroup||"INDIRECT"===c)return}else if(!this.expireVoAuth||"UNALTERABLE"===c)return;const s=(0,S.kZ)();s.minWidth="280px",s.data={member:l,voId:this.voId,groupId:d},this.dialog.open(x.z,s).afterClosed().subscribe(H=>{H||this.loadMembersPage()})}loadMembersPage(){const a="asc"===this.sort.direction?"ASCENDING":"DESCENDING",l=this.getSortColumn(this.sort.active);this.dataSource.loadMembers(this.voId,this.attrNames,a,this.child.paginator.pageIndex,this.child.paginator.pageSize,l,this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}exportDisplayedData(a){(0,S.O6)((0,S.Xn)(this.dataSource.getData(),this.displayedColumns,t.getExportDataForColumn),a)}exportAllData(a){const l="asc"===this.sort.direction?"ASCENDING":"DESCENDING",d=this.getSortColumn(this.sort.active),c=(0,S.kZ)();c.width="300px";const s=this.dialog.open(f.QQ,c);this.dataSource.getAllMembers(this.voId,this.attrNames,l,this.child.paginator.length,d,this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses).subscribe(E=>{s.close(),(0,S.O6)((0,S.Xn)(E,this.displayedColumns,t.getExportDataForColumn),a)})}viewMemberGroupTree(a,l){a.stopPropagation();const d=(0,S.kZ)();d.width="800px",d.data={member:l,groupId:this.groupId},this.dialog.open(f.jd,d)}getSortColumn(a){switch(a){case"fullName":return"NAME";case"organization":return"ORGANIZATION";case"email":return"EMAIL";case"status":return"STATUS";case"groupStatus":return"GROUP_STATUS";default:return"ID"}}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(P.uw),e.Y36(A.x4),e.Y36(A.UA),e.Y36(F.dB),e.Y36(A.ly),e.Y36(A.fb))},t.\u0275cmp=e.Xpm({type:t,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(a,l){if(1&a&&(e.Gf(S.l9,7),e.Gf(m.YE,5)),2&a){let d;e.iGM(d=e.CRH())&&(l.child=d.first),e.iGM(d=e.CRH())&&(l.sort=d.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable",isMembersGroup:"isMembersGroup",disableRouting:"disableRouting"},outputs:{loading$:"loading$"},features:[e.TTD],decls:32,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","italic_font","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click",4,"ngIf"],[3,"matTooltip","click"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(a,l){1&a&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(c){return l.exportDisplayedData(c)})("exportAllData",function(c){return l.exportAllData(c)}),e.TgZ(2,"table",2),e.YNc(3,De,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,he,3,3,"th",5),e.YNc(7,Oe,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,it,1,0,"th",5),e.YNc(10,ot,2,1,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,Ue,3,3,"th",5),e.YNc(13,ft,4,6,"td",8),e.BQk(),e.ynx(14,10),e.YNc(15,Z,3,3,"th",5),e.YNc(16,lt,7,14,"td",8),e.BQk(),e.ynx(17,11),e.YNc(18,Ae,3,3,"th",5),e.YNc(19,Ke,7,17,"td",8),e.BQk(),e.ynx(20,12),e.YNc(21,pe,3,3,"th",5),e.YNc(22,Ie,3,3,"td",8),e.BQk(),e.ynx(23,13),e.YNc(24,Ne,3,3,"th",5),e.YNc(25,we,3,3,"td",8),e.BQk(),e.ynx(26,14),e.YNc(27,Be,3,3,"th",15),e.YNc(28,r,3,3,"td",8),e.BQk(),e.YNc(29,u,1,0,"tr",16),e.YNc(30,C,1,14,"tr",17),e.qZA()()(),e.YNc(31,h,3,3,"perun-web-apps-alert",18)),2&a&&(e.Q6J("hidden",0===l.dataSource.allObjectCount),e.xp6(1),e.Q6J("tableId",l.tableId)("dataLength",l.dataSource.allObjectCount)("pageSizeOptions",l.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",l.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,o,e.Dn7(4,9,l.dataSource,l.selection.selected.length,l.canBeSelected))),e.xp6(26),e.Q6J("matHeaderRowDef",l.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",l.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===l.dataSource.allObjectCount))},dependencies:[T.O5,B.oG,I.BZ,I.fO,I.as,I.w1,I.Dz,I.nj,I.ge,I.ev,I.XQ,I.Gk,q.rH,m.YE,m.nU,ue.w,j.Hw,Q.gM,be.l,me.Y,fe.Q,T.i8,re.X$,v.d,V.u,W.f,ee.i,ie.D,xe.p,Ye.F,Le.M,$e.n,qe.A,Ze.I,Pe.G,se.r],styles:[".italic_font{font-style:italic}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.status-tooltip{white-space:pre-line}\n"],encapsulation:2}),t})()},38383:(Xe,ae,p)=>{"use strict";p.d(ae,{O:()=>c});var e=p(94650),f=p(96308),A=p(30671),S=p(95017),m=p(9244),M=p(21029),w=p(80279),x=p(7274),P=p(82761),F=p(36895),T=p(56709),B=p(98380),I=p(97392),q=p(10266),ue=p(18750),j=p(34198),Q=p(55660),be=p(12502),me=p(89383),fe=p(31359),re=p(69773),v=p(21757),V=p(12856),W=p(20919),ee=p(5865),ie=p(82514),xe=p(96974),Ye=p(9185),Le=p(8231),$e=p(14849);function qe(s,E){if(1&s){const H=e.EpF();e.TgZ(0,"mat-checkbox",30),e.NdJ("change",function(ve){e.CHM(H);const We=e.oxw(3);return e.KtG(ve?We.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&s){const H=e.oxw(2).ngIf,ne=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,H.all)))("checked",ne.selection.hasValue()&&H.all)("indeterminate",ne.selection.hasValue()&&!H.all)}}function Ze(s,E){if(1&s&&(e.TgZ(0,"th",28),e.YNc(1,qe,3,7,"mat-checkbox",29),e.qZA()),2&s){const H=e.oxw(2);e.xp6(1),e.Q6J("ngIf",H.selection.isMultipleSelection())}}const Pe=function(s){return{name:s}};function se(s,E){if(1&s){const H=e.EpF();e.TgZ(0,"td",31)(1,"mat-checkbox",32),e.NdJ("change",function(ve){const Mt=e.CHM(H).$implicit,pt=e.oxw(2);return e.KtG(ve?pt.selection.toggle(Mt):null)})("click",function(ve){return ve.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.ALo(4,"userFullName"),e.ALo(5,"translate"),e.qZA()()}if(2&s){const H=E.$implicit,ne=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",H.user.firstName,"-checkbox"),e.Q6J("aria-label",e.xi3(2,5,e.lcZ(3,8,ne.selection.isSelected(H)),e.VKq(14,Pe,e.lcZ(4,10,H))))("checked",ne.selection.isSelected(H))("disabled",ne.allowCheckboxDisabled&&"DIRECT"!==H.membershipType)("matTooltip",ne.allowCheckboxDisabled&&"DIRECT"!==H.membershipType?e.lcZ(5,12,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function N(s,E){1&s&&(e.ynx(0,25),e.YNc(1,Ze,2,1,"th",26),e.YNc(2,se,6,16,"td",27),e.BQk())}function U(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function $(s,E){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&s){const H=E.$implicit;e.xp6(1),e.Oqu(H.id)}}function ce(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.VO_ID")," "))}function De(s,E){if(1&s&&(e.TgZ(0,"td",35),e._uU(1),e.qZA()),2&s){const H=E.$implicit;e.xp6(1),e.Oqu(H.voId)}}function he(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.USER_ID")," "))}function Oe(s,E){if(1&s&&(e.TgZ(0,"td",35),e._uU(1),e.qZA()),2&s){const H=E.$implicit;e.xp6(1),e.Oqu(H.userId)}}function it(s,E){1&s&&e._UZ(0,"th",33)}function Ce(s,E){if(1&s){const H=e.EpF();e.TgZ(0,"mat-icon",37),e.NdJ("click",function(){e.CHM(H);const ve=e.oxw().$implicit,We=e.oxw();return e.KtG(We.viewMemberGroupTree(ve))})("mouseenter",function(){e.CHM(H);const ve=e.oxw(2);return e.KtG(ve.disableRouting=!0)})("mouseleave",function(){e.CHM(H);const ve=e.oxw(2);return e.KtG(ve.disableRouting=ve.disabledRouting)}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&s&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function ot(s,E){if(1&s&&(e.TgZ(0,"td",35),e.YNc(1,Ce,3,3,"mat-icon",36),e.qZA()),2&s){const H=E.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==H.membershipType)}}function Ue(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function ft(s,E){if(1&s&&(e.TgZ(0,"td",35),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&s){const H=E.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,H.user))}}function Z(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function lt(s,E){if(1&s){const H=e.EpF();e.TgZ(0,"td",35)(1,"i",38),e.NdJ("click",function(ve){const Mt=e.CHM(H).$implicit,pt=e.oxw();return e.KtG(pt.changeStatus(ve,Mt))}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&s){const H=E.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,H),""),e.s9C("matTooltip",e.xi3(3,7,H,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,10,H.status)," ")}}function Ae(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function Ke(s,E){if(1&s){const H=e.EpF();e.TgZ(0,"td",35)(1,"i",38),e.NdJ("click",function(ve){const Mt=e.CHM(H).$implicit,pt=e.oxw();return e.KtG(pt.changeStatus(ve,Mt))}),e.ALo(2,"groupStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&s){const H=E.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,H.groupStatus),""),e.s9C("matTooltip",e.xi3(3,7,H,!0)),e.xp6(4),e.hij(" ",e.lcZ(6,10,H.groupStatus)," ")}}function pe(s,E){1&s&&(e.TgZ(0,"th",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function Ie(s,E){1&s&&(e.TgZ(0,"mat-icon"),e._uU(1,"check_circle_outline"),e.qZA())}function Ne(s,E){if(1&s&&(e.TgZ(0,"td",40),e.YNc(1,Ie,2,0,"mat-icon",41),e.qZA()),2&s){const H=E.$implicit;e.xp6(1),e.Q6J("ngIf",H.sponsored)}}function we(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function Be(s,E){if(1&s&&(e.TgZ(0,"td",35),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&s){const H=E.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,H))}}function r(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function u(s,E){if(1&s&&(e.TgZ(0,"td",35),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&s){const H=E.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,H))}}function _(s,E){1&s&&(e.TgZ(0,"th",42),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function C(s,E){if(1&s&&(e.TgZ(0,"td",35),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&s){const H=E.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,H))}}function h(s,E){1&s&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CONSENTS.STATUS")," "))}function o(s,E){if(1&s&&(e.TgZ(0,"td",35),e._UZ(1,"perun-web-apps-consent-status",43),e.qZA()),2&s){const H=E.$implicit;e.xp6(1),e.Q6J("consentStatus",H.consent)}}function n(s,E){1&s&&e._UZ(0,"tr",44)}const t=function(s,E){return["/organizations",s,"members",E]};function i(s,E){if(1&s&&e._UZ(0,"tr",45),2&s){const H=E.$implicit,ne=e.oxw();e.ekj("cursor-pointer",!ne.disabledRouting)("disable-outline",ne.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",ne.disableRouting?null:e.WLB(6,t,H.voId,H.id))("routerLink",ne.disableRouting?null:e.WLB(9,t,H.voId,H.id))}}function a(s,E){1&s&&(e.TgZ(0,"perun-web-apps-alert",46),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function l(s,E){1&s&&(e.TgZ(0,"perun-web-apps-alert",46),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}const d=function(s){return{all:s}};let c=(()=>{class s{constructor(H,ne,ve,We,Mt){this.dialog=H,this.authResolver=ne,this.tableCheckbox=ve,this.route=We,this.translateService=Mt,this.members=[],this.selection=new S.Ov,this.displayedColumns=["checkbox","id","voId","userId","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableStatusChange=!1,this.disableExpirationChange=!1,this.allowCheckboxDisabled=!0,this.disableRouting=!1,this.filter="",this.updateTable=new e.vpe,this.pageSizeOptions=m.f7,this.getExportDataForColumnFun=(pt,_t)=>this.getExportDataForColumn(pt,_t,this.showGroupStatuses),this.getSortDataForColumnFun=(pt,_t)=>s.getSortDataForColumn(pt,_t,this.showGroupStatuses),this.canBeSelected=pt=>"DIRECT"===pt.membershipType}set matSort(H){this.sort=H}static getFilterDataForColumn(H,ne){switch(ne){case"fullName":return H.user?(0,m.bD)(H.user):"";case"email":return(0,m.g$)(H);case"logins":return(0,m.lt)(H);default:return""}}static getSortDataForColumn(H,ne,ve){switch(ne){case"id":return H.id.toString();case"fullName":return H.user?H.user.lastName?H.user.lastName:H.user.firstName??"":"";case"status":return ve?H.groupStatus:H.status;case"organization":return(0,m.Gw)(H);case"email":return(0,m.g$)(H);case"consentStatus":return H.consent;default:return""}}getExportDataForColumn(H,ne,ve){switch(ne){case"id":return H.id.toString();case"fullName":return H.user?(0,m.bD)(H.user):"";case"status":return ve?H.groupStatus:H.status;case"organization":return(0,m.Gw)(H);case"email":return(0,m.g$)(H);case"logins":return(0,m.lt)(H);case"consentStatus":return this.translateService.instant(`CONSENTS.STATUS_${H.consent}`);default:return""}}exportDisplayedData(H){const ne=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,ve=ne+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ne,ve),this.displayedColumns,this.getExportDataForColumnFun),H)}exportAllData(H){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),H)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(H,ne)=>(0,m.Sd)(H,ne,this.displayedColumns,s.getFilterDataForColumn),this.dataSource.sortData=(H,ne)=>(0,m.pR)(H,ne,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(H=>"id"!==H))}ngOnChanges(){this.setDataSource(),this.disabledRouting=this.disableRouting,this.route.parent?.params.subscribe(H=>{H.groupId&&(this.groupId=Number(H.groupId))})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}changeStatus(H,ne){if(H.stopPropagation(),!this.disableStatusChange){const ve=(0,m.kZ)();ve.width="500px",ve.data={member:ne,disableChangeExpiration:this.disableExpirationChange},this.dialog.open(M.pf,ve).afterClosed().subscribe(Mt=>{Mt&&this.updateTable.emit(!0)})}}viewMemberGroupTree(H){const ne=(0,m.kZ)();ne.width="800px",ne.data={member:H,groupId:this.groupId},this.dialog.open(M.jd,ne)}}return s.\u0275fac=function(H){return new(H||s)(e.Y36(x.uw),e.Y36(w.x4),e.Y36(w.UA),e.Y36(P.gz),e.Y36(w.Te))},s.\u0275cmp=e.Xpm({type:s,selectors:[["perun-web-apps-members-list"]],viewQuery:function(H,ne){if(1&H&&(e.Gf(m.l9,7),e.Gf(f.YE,7)),2&H){let ve;e.iGM(ve=e.CRH())&&(ne.child=ve.first),e.iGM(ve=e.CRH())&&(ne.matSort=ve.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",disableStatusChange:"disableStatusChange",disableExpirationChange:"disableExpirationChange",allowCheckboxDisabled:"allowCheckboxDisabled",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[e.TTD],decls:45,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["matColumnDef","type"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","sponsored"],["class","center new-line","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","consentStatus"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],[3,"matTooltip","click","mouseenter","mouseleave"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell","",1,"center","new-line"],["mat-cell","",1,"center"],[4,"ngIf"],["mat-header-cell",""],[3,"consentStatus"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(H,ne){1&H&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(We){return ne.exportDisplayedData(We)})("exportAllData",function(We){return ne.exportAllData(We)}),e.TgZ(2,"table",2),e.YNc(3,N,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,U,3,3,"th",5),e.YNc(7,$,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,ce,3,3,"th",5),e.YNc(10,De,2,1,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,he,3,3,"th",5),e.YNc(13,Oe,2,1,"td",8),e.BQk(),e.ynx(14,10),e.YNc(15,it,1,0,"th",5),e.YNc(16,ot,2,1,"td",8),e.BQk(),e.ynx(17,11),e.YNc(18,Ue,3,3,"th",5),e.YNc(19,ft,3,3,"td",8),e.BQk(),e.ynx(20,12),e.YNc(21,Z,3,3,"th",5),e.YNc(22,lt,7,12,"td",8),e.BQk(),e.ynx(23,13),e.YNc(24,Ae,3,3,"th",5),e.YNc(25,Ke,7,12,"td",8),e.BQk(),e.ynx(26,14),e.YNc(27,pe,3,3,"th",15),e.YNc(28,Ne,2,1,"td",16),e.BQk(),e.ynx(29,17),e.YNc(30,we,3,3,"th",5),e.YNc(31,Be,3,3,"td",8),e.BQk(),e.ynx(32,18),e.YNc(33,r,3,3,"th",5),e.YNc(34,u,3,3,"td",8),e.BQk(),e.ynx(35,19),e.YNc(36,_,3,3,"th",20),e.YNc(37,C,3,3,"td",8),e.BQk(),e.ynx(38,21),e.YNc(39,h,3,3,"th",5),e.YNc(40,o,2,1,"td",8),e.BQk(),e.YNc(41,n,1,0,"tr",22),e.YNc(42,i,1,12,"tr",23),e.qZA()()(),e.YNc(43,a,3,3,"perun-web-apps-alert",24),e.YNc(44,l,3,3,"perun-web-apps-alert",24)),2&H&&(e.Q6J("hidden",!ne.members||0===ne.members.length||!ne.dataSource||0===ne.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",ne.dataSource.filteredData.length)("tableId",ne.tableId)("pageSizeOptions",ne.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",ne.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,d,e.Dn7(4,10,ne.dataSource,ne.selection.selected.length,ne.canBeSelected))),e.xp6(38),e.Q6J("matHeaderRowDef",ne.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",ne.displayedColumns),e.xp6(1),e.Q6J("ngIf",ne.members&&0!==ne.members.length&&0===ne.dataSource.filteredData.length),e.xp6(1),e.Q6J("ngIf",!ne.members||0===ne.members.length))},dependencies:[F.O5,T.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,P.rH,f.YE,f.nU,B.w,I.Hw,q.gM,ue.l,j.Y,be.N,Q.Q,me.X$,fe.d,re.u,v.f,V.i,W.D,ee.p,ie.F,xe.M,Ye.I,Le.G,$e.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .status-tooltip{white-space:pre-line}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.center[_ngcontent-%COMP%]{text-align:center}.new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),s})()},22465:(Xe,ae,p)=>{"use strict";p.d(ae,{c:()=>T});var e=p(94650),f=p(80279),A=p(9244),S=p(21029),m=p(7274),M=p(36895),w=p(97392),x=p(89383);function P(B,I){if(1&B&&(e.TgZ(0,"div",5)(1,"mat-icon"),e._uU(2),e.qZA()()),2&B){const q=e.oxw();e.xp6(2),e.Oqu(q.data.icon)}}function F(B,I){if(1&B&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&B){const q=e.oxw();e.xp6(1),e.hij(" ",q.showTimestamp()," ")}}let T=(()=>{class B{constructor(q,ue){this.dialog=q,this.notificationStorageService=ue,this.newNotification=!1,this.closeNotification=new e.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const q=(0,A.kZ)();q.width="550px",q.data=this.data,q.autoFocus=!1,this.dialog.open(S.FM,q).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,A.ys)(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[q,ue]=this.data.timeStamp.split(":");return ue.length<2?q+":0"+ue:this.data.timeStamp}}return B.\u0275fac=function(q){return new(q||B)(e.Y36(m.uw),e.Y36(f.SZ))},B.\u0275cmp=e.Xpm({type:B,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ms-auto me-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ms-auto","me-5","mt-auto","mb-auto"]],template:function(q,ue){1&q&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("click",function(){return ue.alreadyClosed||ue.waiting?"":ue.closeSelf()}),e.YNc(2,P,3,1,"div",1),e.TgZ(3,"div",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,F,2,1,"div",3),e.TgZ(7,"div",4),e.NdJ("click",function(){return ue.waiting=!0,ue.doAction()}),e._uU(8),e.qZA()()()),2&q&&(e.Gre("notification ",ue.inDialog?"":"mat-elevation-z7",""),e.ekj("error","error"===ue.data.type)("success","success"===ue.data.type),e.xp6(2),e.Q6J("ngIf",null!==ue.data.icon),e.xp6(2),e.hij(" ",e.lcZ(5,12,ue.data.title)," "),e.xp6(2),e.Q6J("ngIf",ue.inDialog),e.xp6(1),e.Q6J("hidden",ue.alreadyPressed),e.xp6(1),e.hij(" ",ue.data.actionText," "))},dependencies:[M.O5,w.Hw,x.X$],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),B})()},53599:(Xe,ae,p)=>{"use strict";p.d(ae,{N:()=>xe});var e=p(94650),f=p(61744),A=p(80279),S=p(30671),m=p(9244),M=p(21029),w=p(40034),x=p(7274),P=p(82761),F=p(36895),T=p(96308),B=p(98380),I=p(4859),q=p(89383),ue=p(34447);function j(Ye,Le){1&Ye&&(e.TgZ(0,"perun-web-apps-alert"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&Ye&&(e.xp6(1),e.Oqu(e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function Q(Ye,Le){1&Ye&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&Ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function be(Ye,Le){if(1&Ye&&(e.TgZ(0,"td",17),e._uU(1),e.qZA()),2&Ye){const $e=Le.$implicit;e.xp6(1),e.Oqu($e.friendlyNameParameter)}}function me(Ye,Le){1&Ye&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&Ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function fe(Ye,Le){if(1&Ye&&(e.TgZ(0,"td",18),e._uU(1),e.qZA()),2&Ye){const $e=Le.$implicit;e.xp6(1),e.Oqu($e.value)}}function re(Ye,Le){1&Ye&&e._UZ(0,"th",16)}function v(Ye,Le){if(1&Ye){const $e=e.EpF();e.TgZ(0,"td",19)(1,"button",20),e.NdJ("click",function(){const Pe=e.CHM($e).$implicit,se=e.oxw();return e.KtG(se.resetPassword(Pe.friendlyNameParameter))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&Ye){const $e=Le.$implicit,qe=e.oxw();e.xp6(1),e.Q6J("disabled",!qe.logins.includes($e)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function V(Ye,Le){1&Ye&&e._UZ(0,"th",16)}function W(Ye,Le){if(1&Ye){const $e=e.EpF();e.TgZ(0,"td",19)(1,"button",21),e.NdJ("click",function(){const Pe=e.CHM($e).$implicit,se=e.oxw();return e.KtG(se.changePassword(Pe))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&Ye){const $e=Le.$implicit,qe=e.oxw();e.xp6(1),e.Q6J("disabled",!qe.logins.includes($e)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function ee(Ye,Le){1&Ye&&e._UZ(0,"tr",22)}function ie(Ye,Le){1&Ye&&e._UZ(0,"tr",23)}let xe=(()=>{class Ye{constructor($e,qe,Ze,Pe,se,N,U){this.attributesManagerService=$e,this.store=qe,this.dialog=Ze,this.route=Pe,this.router=se,this.otherApplicationService=N,this.entityStorageService=U,this.authenticationPage=!1,this.filteredNamespaces=new e.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.getProperty("password_namespace_attributes").map($e=>{const qe=$e.split(":");return qe[qe.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe($e=>{if(this.logins=$e.filter(qe=>this.nameSpaces.includes(qe.friendlyNameParameter)),this.filteredNamespaces.emit($e.map(qe=>qe.friendlyNameParameter)),this.dataSource=new S.by($e),!this.authenticationPage){const Ze=this.route.snapshot.queryParamMap.get("namespace");if(Ze){const Pe=this.logins.find(se=>se.friendlyNameParameter===Ze);Pe&&this.changePassword(Pe)}}})}resetPassword($e){window.open(this.otherApplicationService.getUrlForOtherApplication(w.p.PwdReset,$e),"_blank")}changePassword($e){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:$e.friendlyNameParameter},queryParamsHandling:"merge"});const qe=(0,m.kZ)();qe.width="600px",qe.data={login:String($e.value),namespace:$e.friendlyName.split(":")[1]},this.dialog.open(M.xF,qe).afterClosed().subscribe(Pe=>{void 0===Pe?this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"}):window.history.back()})}}return Ye.\u0275fac=function($e){return new($e||Ye)(e.Y36(f.H8),e.Y36(A.d6),e.Y36(x.uw),e.Y36(P.gz),e.Y36(P.F0),e.Y36(A.jq),e.Y36(A.fb))},Ye.\u0275cmp=e.Xpm({type:Ye,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function($e,qe){1&$e&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA(),e.YNc(4,j,4,5,"perun-web-apps-alert",1),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),e.ynx(9,6),e.YNc(10,Q,4,5,"th",7),e.YNc(11,be,2,1,"td",8),e.BQk(),e.ynx(12,9),e.YNc(13,me,4,5,"th",7),e.YNc(14,fe,2,1,"td",10),e.BQk(),e.ynx(15,11),e.YNc(16,re,1,0,"th",7),e.YNc(17,v,5,6,"td",12),e.BQk(),e.ynx(18,13),e.YNc(19,V,1,0,"th",7),e.YNc(20,W,5,6,"td",12),e.BQk(),e.YNc(21,ee,1,0,"tr",14),e.YNc(22,ie,1,0,"tr",15),e.qZA()()()()),2&$e&&(e.xp6(1),e.hij(" ",qe.authenticationPage?"":e.lcZ(2,5,e.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),e.xp6(3),e.Q6J("ngIf",!qe.logins.length&&!qe.authenticationPage),e.xp6(4),e.Q6J("dataSource",qe.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",qe.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",qe.displayedColumns))},dependencies:[F.O5,S.BZ,S.fO,S.as,S.w1,S.Dz,S.nj,S.ge,S.ev,S.XQ,S.Gk,T.YE,B.w,I.lW,q.X$,ue.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),Ye})()},41619:(Xe,ae,p)=>{"use strict";p.d(ae,{$:()=>Pe});var e=p(80279),f=p(61744),A=p(94650),S=p(7274),m=p(89383),M=p(36895),w=p(24006),x=p(4859),P=p(59549),F=p(284);function T(se,N){1&se&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&se&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let B=(()=>{class se{constructor(U,$,ce,De,he){this.dialogRef=U,this.translate=$,this.notificator=ce,this.rtMessages=De,this.storeService=he,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(U=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(U.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",p(4147).i8)}close(){this.dialogRef.close()}}return se.\u0275fac=function(U){return new(U||se)(A.Y36(S.so),A.Y36(m.sK),A.Y36(e.V6),A.Y36(f.Hr),A.Y36(e.d6))},se.\u0275cmp=A.Xpm({type:se,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ms-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ms-2",3,"disabled","click"]],template:function(U,$){if(1&U&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),A._uU(6),A.ALo(7,"translate"),A.qZA(),A.TgZ(8,"input",2,3),A.NdJ("ngModelChange",function(De){return $.subject=De}),A.qZA(),A.YNc(10,T,3,3,"mat-error",4),A.qZA(),A.TgZ(11,"mat-form-field")(12,"mat-label"),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"textarea",5),A.NdJ("ngModelChange",function(De){return $.message=De}),A.ALo(16,"translate"),A._uU(17," "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.ALo(20,"translate"),A.qZA()()(),A.TgZ(21,"div",6)(22,"div",7)(23,"button",8),A.NdJ("click",function(){return $.close()}),A._uU(24),A.ALo(25,"translate"),A.qZA(),A.TgZ(26,"button",9),A.NdJ("click",function(){return $.sendBugReport()}),A._uU(27),A.ALo(28,"translate"),A.qZA()()()),2&U){const ce=A.MAs(9);A.xp6(1),A.Oqu(A.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),A.xp6(5),A.Oqu(A.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),A.xp6(2),A.Q6J("ngModel",$.subject),A.xp6(2),A.Q6J("ngIf",ce.invalid),A.xp6(3),A.Oqu(A.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),A.xp6(2),A.s9C("placeholder",A.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),A.Q6J("ngModel",$.message),A.xp6(4),A.Oqu(A.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),A.xp6(5),A.hij(" ",A.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),A.xp6(2),A.Q6J("disabled",ce.invalid),A.xp6(1),A.hij(" ",A.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[M.O5,w.Fj,w.JJ,w.Q7,w.On,x.lW,P.KE,P.hX,P.bx,P.TO,F.Nt,S.uh,S.xY,S.H8,m.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),se})();var I=p(9244);let q=(()=>{class se{transform(U,$,ce){return U[`${ce}_${$}`]}}return se.\u0275fac=function(U){return new(U||se)},se.\u0275pipe=A.Yjl({name:"localisedText",type:se,pure:!0}),se})(),ue=(()=>{class se{transform(U,$){return U["link_"+$]||U.link_en}}return se.\u0275fac=function(U){return new(U||se)},se.\u0275pipe=A.Yjl({name:"localisedLink",type:se,pure:!0}),se})(),j=(()=>{class se{transform(U){return U.includes("/")?U:"/assets/config/"+U}}return se.\u0275fac=function(U){return new(U||se)},se.\u0275pipe=A.Yjl({name:"footerLogoPath",type:se,pure:!0}),se})();function Q(se,N){if(1&se&&(A.TgZ(0,"a",13),A.ALo(1,"localisedLink"),A._UZ(2,"img",14),A.ALo(3,"footerLogoPath"),A.qZA()),2&se){const U=A.oxw().$implicit,$=A.oxw(3);A.Q6J("href",A.xi3(1,2,U,$.language),A.LSH),A.xp6(2),A.s9C("src",A.lcZ(3,5,U.logo),A.LSH)}}function be(se,N){if(1&se&&(A.TgZ(0,"span"),A._UZ(1,"img",14),A.ALo(2,"footerLogoPath"),A.qZA()),2&se){const U=A.oxw().$implicit;A.xp6(1),A.s9C("src",A.lcZ(2,1,U.logo),A.LSH)}}function me(se,N){if(1&se&&(A.TgZ(0,"div"),A.YNc(1,Q,4,7,"a",11),A.ALo(2,"localisedLink"),A.YNc(3,be,3,3,"span",12),A.ALo(4,"localisedLink"),A.qZA()),2&se){const U=N.$implicit,$=A.oxw(3);A.xp6(1),A.Q6J("ngIf",A.xi3(2,2,U,$.language)),A.xp6(2),A.Q6J("ngIf",!A.xi3(4,5,U,$.language))}}const fe=function(se){return{"min-height":se}};function re(se,N){if(1&se&&(A.TgZ(0,"div",10),A.YNc(1,me,5,8,"div",5),A.qZA()),2&se){const U=A.oxw().$implicit,$=A.oxw();A.Q6J("ngStyle",A.VKq(2,fe,$.columnContentHeight+"px")),A.xp6(1),A.Q6J("ngForOf",U.elements)}}const v=function(se){return{color:se}};function V(se,N){if(1&se&&(A.TgZ(0,"i",20),A._uU(1),A.qZA()),2&se){const U=A.oxw().$implicit,$=A.oxw(3);A.Q6J("ngStyle",A.VKq(2,v,$.linksTextColor)),A.xp6(1),A.hij(" ",U.icon," ")}}function W(se,N){if(1&se){const U=A.EpF();A.TgZ(0,"span",21),A.NdJ("click",function(){A.CHM(U);const ce=A.oxw().$implicit,De=A.oxw(3);return A.KtG(De.openDialog(ce.dialog))}),A._uU(1),A.ALo(2,"localisedText"),A.qZA()}if(2&se){const U=A.oxw().$implicit,$=A.oxw(3);A.Q6J("ngStyle",A.VKq(6,v,$.linksTextColor)),A.xp6(1),A.hij("",A.Dn7(2,2,U,$.language,"label")," ")}}function ee(se,N){if(1&se&&(A.TgZ(0,"a",22),A.ALo(1,"localisedLink"),A._uU(2),A.ALo(3,"localisedText"),A.qZA()),2&se){const U=A.oxw().$implicit,$=A.oxw(3);A.Q6J("href",A.xi3(1,3,U,$.language),A.LSH)("ngStyle",A.VKq(10,v,$.linksTextColor)),A.xp6(2),A.Oqu(A.Dn7(3,6,U,$.language,"label"))}}function ie(se,N){if(1&se&&(A.TgZ(0,"span",10),A._uU(1),A.ALo(2,"localisedText"),A.qZA()),2&se){const U=A.oxw().$implicit,$=A.oxw(3);A.Q6J("ngStyle",A.VKq(6,v,$.linksTextColor)),A.xp6(1),A.Oqu(A.Dn7(2,2,U,$.language,"label"))}}function xe(se,N){if(1&se&&(A.TgZ(0,"div",16),A.YNc(1,V,2,4,"i",17),A.YNc(2,W,3,8,"span",18),A.YNc(3,ee,4,12,"a",19),A.ALo(4,"localisedLink"),A.YNc(5,ie,3,8,"span",9),A.ALo(6,"localisedLink"),A.qZA()),2&se){const U=N.$implicit,$=A.oxw(3);A.xp6(1),A.Q6J("ngIf",U.icon),A.xp6(1),A.Q6J("ngIf",U.dialog),A.xp6(1),A.Q6J("ngIf",A.xi3(4,4,U,$.language)&&!U.dialog),A.xp6(2),A.Q6J("ngIf",!A.xi3(6,7,U,$.language)&&!U.dialog)}}const Ye=function(se){return{height:se}};function Le(se,N){if(1&se&&(A.TgZ(0,"div",10),A.YNc(1,xe,7,10,"div",15),A.qZA()),2&se){const U=A.oxw().$implicit,$=A.oxw();A.Q6J("ngStyle",A.VKq(2,Ye,$.columnContentHeight+"px")),A.xp6(1),A.Q6J("ngForOf",U.elements)}}function $e(se,N){if(1&se&&(A.TgZ(0,"div",7)(1,"h6",8),A._uU(2),A.ALo(3,"localisedText"),A.qZA(),A.YNc(4,re,2,4,"div",9),A.YNc(5,Le,2,4,"div",9),A.qZA()),2&se){const U=N.$implicit,$=A.oxw();A.ekj("my-auto",$.containsLogos),A.xp6(1),A.Q6J("ngStyle",A.VKq(10,v,$.headersTextColor)),A.xp6(1),A.hij(" ",A.Dn7(3,6,U,$.language,"title")," "),A.xp6(2),A.Q6J("ngIf",U.logos),A.xp6(1),A.Q6J("ngIf",U.elements&&!U.logos)}}function qe(se,N){if(1&se&&(A.TgZ(0,"span")(1,"a",6),A._uU(2),A.qZA()()),2&se){const U=N.$implicit,$=N.index,ce=A.oxw();A.xp6(1),A.Q6J("href",U.url,A.LSH)("ngStyle",A.VKq(3,v,ce.copyrightTextColor)),A.xp6(1),A.Oqu($?", "+U.name:U.name)}}const Ze=function(se){return{background:se}};let Pe=(()=>{class se{constructor(U,$,ce,De){this.storeService=U,this.translateService=$,this.utilsService=ce,this.dialog=De,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="N/A",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(U=>{this.language=U.lang}),this.version=p(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=p(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(U=>{const $=U.match("\\bVersion:\\s*([^,\\s]+)");null!==$&&(this.backendVersion=$[1])}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const U of this.footerColumns)U.logos?this.containsLogos=!0:25*U.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*U.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(U){const $=(0,I.kZ)();"reportIssue"===U&&($.width="550px",this.dialog.open(B,$))}}return se.\u0275fac=function(U){return new(U||se)(A.Y36(e.d6),A.Y36(m.sK),A.Y36(f.FW),A.Y36(S.uw))},se.\u0275cmp=A.Xpm({type:se,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"fw-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom me-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","me-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(U,$){1&U&&(A.TgZ(0,"footer",0)(1,"div",1),A.YNc(2,$e,6,12,"div",2),A.qZA(),A._UZ(3,"hr",3),A.TgZ(4,"div",4),A._uU(5),A.YNc(6,qe,3,5,"span",5),A._uU(7,", web application: "),A.TgZ(8,"a",6),A._uU(9),A.qZA(),A._uU(10,", server: "),A.TgZ(11,"a",6),A._uU(12),A.qZA()()()),2&U&&(A.Q6J("ngStyle",A.VKq(11,Ze,$.bgColor)),A.xp6(2),A.Q6J("ngForOf",$.footerColumns),A.xp6(2),A.Q6J("ngStyle",A.VKq(13,v,$.copyrightTextColor)),A.xp6(1),A.hij(" \xa9 ",$.currentYear," Copyright: "),A.xp6(1),A.Q6J("ngForOf",$.copyrightItems),A.xp6(2),A.Q6J("href",$.githubRepository,A.LSH)("ngStyle",A.VKq(15,v,$.copyrightTextColor)),A.xp6(1),A.Oqu($.guiVersion),A.xp6(2),A.Q6J("href",$.githubBackendRepository,A.LSH)("ngStyle",A.VKq(17,v,$.copyrightTextColor)),A.xp6(1),A.Oqu($.backendVersion))},dependencies:[M.sg,M.O5,M.PC,q,ue,j],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),se})()},46453:(Xe,ae,p)=>{"use strict";p.d(ae,{Y:()=>xe});var e=p(94650),f=p(80279),A=p(9244),S=p(21029),m=p(40034),M=p(11481),w=p(89383),x=p(7274),P=p(82761),F=p(36895),T=p(97392),B=p(28255),I=p(4859),q=p(10266),ue=p(83683),j=p(42673),Q=p(52314),be=p(55660);const me=function(Ye){return{color:Ye}};function fe(Ye,Le){if(1&Ye){const $e=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM($e);const Ze=e.oxw();return e.KtG(Ze.onToggleSidenav())}),e.TgZ(1,"mat-icon"),e._uU(2,"menu"),e.qZA()()}if(2&Ye){const $e=e.oxw();e.Q6J("ngStyle",e.VKq(1,me,$e.iconColor))}}function re(Ye,Le){if(1&Ye){const $e=e.EpF();e.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),e._uU(3," language "),e.qZA()(),e.TgZ(4,"mat-menu",null,13)(6,"button",14),e.NdJ("click",function(){e.CHM($e);const Ze=e.oxw();return e.KtG(Ze.changeLanguage())}),e._uU(7),e.ALo(8,"translate"),e.qZA()()()}if(2&Ye){const $e=e.MAs(5),qe=e.oxw();e.Q6J("ngStyle",e.VKq(6,me,qe.textColor)),e.xp6(1),e.Q6J("matMenuTriggerFor",$e),e.xp6(1),e.Q6J("ngStyle",e.VKq(8,me,qe.iconColor)),e.xp6(5),e.hij(" ",e.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function v(Ye,Le){if(1&Ye){const $e=e.EpF();e.TgZ(0,"button",15),e.NdJ("click",function(){e.CHM($e);const Ze=e.oxw();return e.KtG(Ze.showNotificationHistory())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",16),e._uU(3),e.qZA()()}if(2&Ye){const $e=e.oxw();e.Q6J("matTooltip",e.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),e.xp6(2),e.s9C("matBadge",$e.getNewNotificationsCount()>5?"5+":$e.getNewNotificationsCount()),e.Q6J("ngStyle",e.VKq(7,me,$e.iconColor))("matBadgeHidden",0===$e.getNewNotificationsCount()),e.xp6(1),e.hij(" ",$e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function V(Ye,Le){if(1&Ye&&e._UZ(0,"perun-web-apps-header-menu",17),2&Ye){const $e=e.oxw();e.Q6J("url",$e.otherAppUrl)("label",$e.otherAppLabel)("user",$e.principal.user)("logoutEnabled",$e.logoutEnabled)("iconColor",$e.iconColor)("textColor",$e.textColor)}}const W=function(Ye){return{background:Ye}},ee=function(){return[]},ie=function(){return["/"]};let xe=(()=>{class Ye{constructor($e,qe,Ze,Pe,se,N,U){this.storeService=$e,this.sanitizer=qe,this.translateService=Ze,this.otherApplicationService=Pe,this.notificationStorageService=se,this.dialog=N,this.route=U,this.sidenavToggle=new e.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe($e=>{this.label=this.storeService.getProperty("en"===$e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel($e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel($e="en"){return this.storeService.getProperty(this.otherApp===m.p.Profile?"profile_label_en":"en"===$e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===m.p.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const $e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes($e)&&(this.activeLink=!0)}(this.otherApp!==m.p.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const $e=(0,A.kZ)();$e.width="520px",this.dialog.open(S.Us,$e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return Ye.\u0275fac=function($e){return new($e||Ye)(e.Y36(f.d6),e.Y36(M.H7),e.Y36(w.sK),e.Y36(f.jq),e.Y36(f.SZ),e.Y36(x.uw),e.Y36(P.gz))},Ye.\u0275cmp=e.Xpm({type:Ye,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["class","d-flex align-items-center",3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[1,"d-flex","align-items-center",3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function($e,qe){1&$e&&(e.TgZ(0,"mat-toolbar",0)(1,"div",1),e.YNc(2,fe,3,3,"button",2),e._UZ(3,"a",3),e.TgZ(4,"p",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5),e.YNc(7,re,9,10,"div",6),e.YNc(8,v,4,9,"button",7),e.YNc(9,V,1,6,"perun-web-apps-header-menu",8),e.qZA()()),2&$e&&(e.Q6J("ngStyle",e.VKq(11,W,qe.bgColor)),e.xp6(2),e.Q6J("ngIf",qe.showToggle),e.xp6(1),e.Q6J("innerHTML",qe.logo,e.oJD)("routerLink",qe.disableLogo?e.DdM(13,ee):e.DdM(14,ie))("queryParams",qe.route.snapshot.queryParams),e.xp6(1),e.Q6J("ngStyle",e.VKq(15,me,qe.textColor)),e.xp6(1),e.hij(" ",qe.label," "),e.xp6(1),e.Q6J("ngStyle",e.VKq(17,me,qe.navTextColor)),e.xp6(1),e.Q6J("ngIf",qe.showLanguageMenu),e.xp6(1),e.Q6J("ngIf",qe.showNotifications),e.xp6(1),e.Q6J("ngIf",qe.showHeaderMenu))},dependencies:[F.O5,F.PC,P.rH,T.Hw,B.VK,B.OP,B.p6,I.lW,I.RK,q.gM,ue.Ye,j.k,Q.X,be.Q,w.X$],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),Ye})()},10441:(Xe,ae,p)=>{"use strict";p.d(ae,{W:()=>w});var e=p(94650),f=p(36895),A=p(97392),S=p(10266),m=p(89383);function M(x,P){1&x&&(e.TgZ(0,"mat-icon",1),e.ALo(1,"translate"),e._uU(2," visibility\n"),e.qZA()),2&x&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let w=(()=>{class x{constructor(){this.recentIds=[]}}return x.\u0275fac=function(F){return new(F||x)},x.\u0275cmp=e.Xpm({type:x,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(F,T){1&F&&e.YNc(0,M,3,3,"mat-icon",0),2&F&&e.Q6J("ngIf",T.recentIds.indexOf(T.id)>-1)},dependencies:[f.O5,A.Hw,S.gM,m.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),x})()},96214:(Xe,ae,p)=>{"use strict";p.d(ae,{t:()=>M});var e=p(94650),f=p(97392),A=p(4859),S=p(10266),m=p(89383);let M=(()=>{class w{constructor(){this.refresh=new e.vpe}onClickbutton(P){this.refresh.emit(P)}}return w.\u0275fac=function(P){return new(P||w)},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"me-2",3,"disabled","matTooltip","click"],[1,"ms-auto","perun-icon","d-inline-flex","align-items-center",3,"svgIcon"]],template:function(P,F){1&P&&(e.TgZ(0,"button",0),e.NdJ("click",function(B){return F.onClickbutton(B)}),e.ALo(1,"translate"),e._UZ(2,"mat-icon",1),e.qZA()),2&P&&(e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),e.Q6J("disabled",F.disabled),e.xp6(2),e.s9C("svgIcon",F.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[f.Hw,A.lW,S.gM,m.X$],styles:[".perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor!important}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),w})()},45703:(Xe,ae,p)=>{"use strict";p.d(ae,{L:()=>m});var e=p(94650),f=p(9244),A=p(89593),S=p(89383);let m=(()=>{class M{constructor(){this.resource=null,this.displayStatus=!0,this.disableAutoSelect=!1,this.required=!1,this.resourceSelected=new e.vpe,this.nameFunction=x=>x.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(f.aC)}}return M.\u0275fac=function(x){return new(x||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resource:"resource",resources:"resources",displayStatus:"displayStatus",disableAutoSelect:"disableAutoSelect",required:"required"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:17,consts:[[3,"entity","entities","required","disableAutoSelect","displayStatus","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(x,P){1&x&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(T){return P.resourceSelected.emit(T)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&x&&e.Q6J("entity",P.resource)("entities",P.resources)("required",P.required)("disableAutoSelect",P.disableAutoSelect)("displayStatus",P.displayStatus)("searchFunction",P.nameFunction)("mainTextFunction",P.nameFunction)("secondaryTextFunction",P.secondaryFunction)("selectPlaceholder",e.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",e.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",e.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},dependencies:[A.i,S.X$]}),M})()},62109:(Xe,ae,p)=>{"use strict";p.d(ae,{C:()=>o});var e=p(94650),f=p(96308),A=p(30671),S=p(95017),m=p(9244),M=p(80279),w=p(36895),x=p(56709),P=p(82761),F=p(98380),T=p(97392),B=p(10266),I=p(18750),q=p(34198),ue=p(55660),j=p(10441),Q=p(8223),be=p(6967),me=p(89383);let fe=(()=>{class n{transform(i){if(null==i)return null;let l="";return i.forEach(function(d){l=l.concat(d.tagName)}),l}}return n.\u0275fac=function(i){return new(i||n)},n.\u0275pipe=e.Yjl({name:"resourceTagsToString",type:n,pure:!0}),n})();var re=p(82895),v=p(9185),V=p(8231),W=p(14849);function ee(n,t){if(1&n){const i=e.EpF();e.TgZ(0,"mat-checkbox",29),e.NdJ("change",function(l){e.CHM(i);const d=e.oxw(3);return e.KtG(l?d.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&n){const i=e.oxw(2).ngIf,a=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,i.all)))("checked",a.selection.hasValue()&&i.all)("indeterminate",a.selection.hasValue()&&!i.all)}}function ie(n,t){if(1&n&&(e.TgZ(0,"th",27),e.YNc(1,ee,3,7,"mat-checkbox",28),e.qZA()),2&n){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",i.selection.isMultipleSelection())}}const xe=function(n){return{name:n}};function Ye(n,t){if(1&n){const i=e.EpF();e.TgZ(0,"td",30)(1,"span",31),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",32),e.NdJ("change",function(l){const c=e.CHM(i).$implicit,s=e.oxw(2);return e.KtG(l?s.itemSelectionToggle(c):null)})("click",function(l){return l.stopPropagation()}),e.ALo(4,"translate"),e.ALo(5,"checkboxLabel"),e.qZA()()()}if(2&n){const i=t.$implicit,a=e.oxw(2);e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!a.disableSelect(i)),e.xp6(2),e.Q2q("data-cy","",i.name,"-checkbox"),e.Q6J("aria-label",e.xi3(4,9,e.lcZ(5,12,a.selection.isSelected(i)),e.VKq(14,xe,i.name)))("checked",a.selection.isSelected(i))("disabled",a.disableSelect(i))}}function Le(n,t){1&n&&(e.ynx(0,24),e.YNc(1,ie,2,1,"th",25),e.YNc(2,Ye,6,16,"td",26),e.BQk())}function $e(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function qe(n,t){if(1&n&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.Oqu(i.id)}}function Ze(n,t){1&n&&e._UZ(0,"th",35)}function Pe(n,t){if(1&n&&(e.TgZ(0,"td",36),e._UZ(1,"perun-web-apps-recently-viewed-icon",37),e.qZA()),2&n){const i=t.$implicit,a=e.oxw();e.xp6(1),e.Q6J("recentIds",a.recentIds)("id",i.id)}}function se(n,t){1&n&&e._UZ(0,"th",35)}function N(n,t){1&n&&(e.TgZ(0,"mat-icon",39),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&n&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function U(n,t){if(1&n&&(e.TgZ(0,"td",36),e.YNc(1,N,3,3,"mat-icon",38),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.Q6J("ngIf",i.sourceGroupId)}}function $(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function ce(n,t){if(1&n&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&n){const i=t.$implicit;e.uIk("data-cy",i.name),e.xp6(1),e.hij(" ",i.name," ")}}function De(n,t){1&n&&(e.TgZ(0,"th",35),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.AUTHZ_GROUP")," "))}function he(n,t){if(1&n){const i=e.EpF();e.TgZ(0,"td",40),e.NdJ("mouseenter",function(){e.CHM(i);const l=e.oxw();return e.KtG(l.disabledRouting=!0)})("mouseleave",function(){e.CHM(i);const l=e.oxw();return e.KtG(l.disabledRouting=l.disableRouting)}),e._UZ(1,"perun-web-apps-authorized-groups-cell",41),e.qZA()}if(2&n){const i=t.$implicit,a=e.oxw();e.xp6(1),e.Q6J("groups",a.resourceWithAuthzGroupPairs.get(i.id))("disableRouting",a.disableRouting)("authzVoNames",a.authzVoNames)}}function Oe(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function it(n,t){if(1&n&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.Oqu(i.vo.name)}}function Ce(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function ot(n,t){if(1&n&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.Oqu(i.voId)}}function Ue(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function ft(n,t){if(1&n){const i=e.EpF();e.TgZ(0,"td",36)(1,"perun-web-apps-group-resource-status",42),e.NdJ("mouseenter",function(){e.CHM(i);const l=e.oxw();return e.KtG(l.disabledRouting=!0)})("mouseleave",function(){e.CHM(i);const l=e.oxw();return e.KtG(l.disabledRouting=l.disableRouting)})("statusChange",function(){e.CHM(i);const l=e.oxw();return e.KtG(l.refreshTable.emit())}),e.qZA()()}if(2&n){const i=t.$implicit,a=e.oxw();e.xp6(1),e.Q6J("theme","group-theme")("resourceId",i.id)("groupId",a.groupId)("failureCause",i.failureCause)("status",i.status)}}function Z(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function lt(n,t){if(1&n&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.Oqu(i.facility.name)}}function Ae(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function Ke(n,t){if(1&n&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.Oqu(i.facilityId)}}function pe(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function Ie(n,t){if(1&n&&(e.TgZ(0,"td",36),e._uU(1),e.ALo(2,"resourceTagsToString"),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,i.resourceTags)," ")}}function Ne(n,t){1&n&&(e.TgZ(0,"th",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function we(n,t){if(1&n&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&n){const i=t.$implicit;e.xp6(1),e.Oqu(i.description)}}function Be(n,t){1&n&&e._UZ(0,"tr",43)}const r=function(n){return[n]};function u(n,t){if(1&n&&(e._UZ(0,"tr",44),e.ALo(1,"getResourceRoute"),e.ALo(2,"getResourceRoute")),2&n){const i=t.$implicit,a=e.oxw();e.ekj("cursor-pointer",!a.disableRouting)("disable-outline",a.disabledRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",a.disabledRouting||a.disableRouting?null:e.VKq(12,r,e.xi3(1,6,i,a.routingVo)))("routerLink",a.disabledRouting||a.disableRouting?null:e.xi3(2,9,i,a.routingVo))}}function _(n,t){1&n&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function C(n,t){1&n&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}const h=function(n){return{all:n}};let o=(()=>{class n{constructor(i,a){this.guiAuthResolver=i,this.tableCheckbox=a,this.resources=[],this.selection=new S.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=m.f7,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new e.vpe,this.allSelected=new e.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(l,d)=>n.getDataForColumn(l,d,this.recentIds),this.canBeSelected=l=>!this.disableSelect(l)}set matSort(i){this.sort=i}static getDataForColumn(i,a,l){switch(a){case"id":return i.id.toString();case"vo":return i.vo.name;case"name":return i.name;case"facility":return i.facility.name;case"description":return i.description;case"recent":return l&&l.includes(i.id)?"#".repeat(l.indexOf(i.id)):i.name;case"tags":{if(!i.resourceTags)return i[a];let c="";return i.resourceTags.forEach(function(s){c=c.concat(s.tagName)}),c}case"status":return i.status;case"uuid":return i.uuid;default:return i[a]}}ngOnChanges(){this.disabledRouting=this.disableRouting,this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(i=>"id"!==i)),this.setDataSource(),this.setAuth()}exportAllData(i){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),i)}exportDisplayedData(i){const a=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,l=a+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(a,l),this.displayedColumns,this.getDataForColumnFun),i)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(i,a)=>(0,m.Sd)(i,a,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(i,a)=>(0,m.pR)(i,a,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const i=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected);return this.allSelected.emit(i),i}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}setAuth(){const i=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((a,l)=>a&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",i.concat([l])),!0),this.addAuth=this.selection.selected.reduce((a,l)=>a&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",i.concat([l])),!0)}itemSelectionToggle(i){this.selection.toggle(i),this.setAuth()}disableSelect(i){return this.resourcesToDisableCheckbox.has(i.id)}}return n.\u0275fac=function(i){return new(i||n)(e.Y36(M.x4),e.Y36(M.UA))},n.\u0275cmp=e.Xpm({type:n,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(i,a){if(1&i&&(e.Gf(m.l9,7),e.Gf(f.YE,7)),2&i){let l;e.iGM(l=e.CRH())&&(a.child=l.first),e.iGM(l=e.CRH())&&(a.matSort=l.first)}},inputs:{resources:"resources",resourceWithAuthzGroupPairs:"resourceWithAuthzGroupPairs",authzVoNames:"authzVoNames",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[e.TTD],decls:45,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","authzGroup"],["mat-cell","","style","cursor: default",3,"mouseenter","mouseleave",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],["mat-cell","",2,"cursor","default",3,"mouseenter","mouseleave"],[3,"groups","disableRouting","authzVoNames"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(i,a){1&i&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(d){return a.exportDisplayedData(d)})("exportAllData",function(d){return a.exportAllData(d)}),e.TgZ(2,"table",2),e.YNc(3,Le,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,$e,3,3,"th",5),e.YNc(7,qe,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,Ze,1,0,"th",8),e.YNc(10,Pe,2,2,"td",9),e.BQk(),e.ynx(11,10),e.YNc(12,se,1,0,"th",8),e.YNc(13,U,2,1,"td",9),e.BQk(),e.ynx(14,11),e.YNc(15,$,3,3,"th",5),e.YNc(16,ce,2,2,"td",9),e.BQk(),e.ynx(17,12),e.YNc(18,De,3,3,"th",8),e.YNc(19,he,2,3,"td",13),e.BQk(),e.ynx(20,14),e.YNc(21,Oe,3,3,"th",5),e.YNc(22,it,2,1,"td",9),e.BQk(),e.ynx(23,15),e.YNc(24,Ce,3,3,"th",5),e.YNc(25,ot,2,1,"td",9),e.BQk(),e.ynx(26,16),e.YNc(27,Ue,3,3,"th",5),e.YNc(28,ft,2,5,"td",9),e.BQk(),e.ynx(29,17),e.YNc(30,Z,3,3,"th",5),e.YNc(31,lt,2,1,"td",9),e.BQk(),e.ynx(32,18),e.YNc(33,Ae,3,3,"th",5),e.YNc(34,Ke,2,1,"td",9),e.BQk(),e.ynx(35,19),e.YNc(36,pe,3,3,"th",5),e.YNc(37,Ie,3,3,"td",9),e.BQk(),e.ynx(38,20),e.YNc(39,Ne,3,3,"th",5),e.YNc(40,we,2,1,"td",9),e.BQk(),e.YNc(41,Be,1,0,"tr",21),e.YNc(42,u,3,14,"tr",22),e.qZA()()(),e.YNc(43,_,3,3,"perun-web-apps-alert",23),e.YNc(44,C,3,3,"perun-web-apps-alert",23)),2&i&&(e.Q6J("hidden",0===a.dataSource.filteredData.length||0===a.resources.length),e.xp6(1),e.Q6J("dataLength",a.dataSource.filteredData.length)("tableId",a.tableId)("pageSizeOptions",a.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",a.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,h,e.Dn7(4,10,a.dataSource,a.selection.selected.length,a.canBeSelected))),e.xp6(38),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===a.dataSource.filteredData.length&&0!==a.resources.length),e.xp6(1),e.Q6J("ngIf",0===a.resources.length))},dependencies:[w.O5,x.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,P.rH,f.YE,f.nU,F.w,T.Hw,B.gM,I.l,q.Y,j.W,Q.x,ue.Q,be.e,me.X$,fe,re.r,v.I,V.G,W.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-mdc-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),n})()},52170:(Xe,ae,p)=>{"use strict";p.d(ae,{$x:()=>M,qG:()=>m});var e=p(94650),f=p(89383),A=p(89593);class S{constructor(x,P){this.value=P,this.displayName=x}}var m=(()=>{return(w=m||(m={}))[w.SOURCE=0]="SOURCE",w[w.DESTINATION=1]="DESTINATION",w[w.FEDERATION=2]="FEDERATION",m;var w})();let M=(()=>{class w{constructor(P){this.translateService=P,this.attributes=[],this.asGroup=!1,this.itemSelected=new e.vpe,this.items=[],this.nameFunction=F=>F.displayName,this.shortNameFunction=()=>null,this.searchFunction=F=>F.displayName}static getDefinition(P){const F=P.namespace.split(":");return null===F[4]?"null":F[4]}ngOnInit(){this.type===m.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}createSelectionItems(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(P=>{const F=new S(P,"");this.items.push(F),this.item=F});for(const P of this.attributes){const F=new S(P.friendlyName+" ("+P.entity+" / "+w.getDefinition(P)+")",P.namespace+":"+P.friendlyName);F.value===this.selectedAttribute&&(this.item=F),("user"===P.entity.toLowerCase()||"member"===P.entity.toLowerCase()||"vo"===P.entity.toLowerCase()&&this.type===m.SOURCE||"group"===P.entity.toLowerCase()&&this.asGroup&&this.type===m.SOURCE)&&this.items.push(F)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(P=>{this.items.push(new S(P,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(F=>{this.items.push(new S(F,"custom")),this.items.push(new S("Display name","displayName")),this.items.push(new S("Common name","cn")),this.items.push(new S("Mail","mail")),this.items.push(new S("Organization","o")),this.items.push(new S("Level of Assurance (LoA)","loa")),this.items.push(new S("First name","givenName")),this.items.push(new S("Surname","sn")),this.items.push(new S("EPPN","eppn")),this.items.push(new S("IdP Category","md_entityCategory")),this.items.push(new S("IdP Affiliation","affiliation")),this.items.push(new S("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.items.push(new S("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.items.push(new S("schacHomeOrganization","schacHomeOrganization")),this.items.push(new S("Login","uid")),this.items.push(new S("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){for(const P of this.items)if(P.value===this.selectedAttribute)return void(this.item=P);this.item=this.items[1],this.item.value=this.selectedAttribute}sortAttributes(P){P.sort((F,T)=>""===F.value?-1:""===T.value?1:F.displayName.localeCompare(T.displayName))}}return w.\u0275fac=function(P){return new(P||w)(e.Y36(f.sK))},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-selection-item-search-select"]],inputs:{attributes:"attributes",selectedAttribute:"selectedAttribute",type:"type",asGroup:"asGroup"},outputs:{itemSelected:"itemSelected"},decls:4,vars:14,consts:[[3,"entities","entity","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(P,F){1&P&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(B){return F.itemSelected.emit(B)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&P&&e.Q6J("entities",F.items)("entity",F.item)("searchFunction",F.searchFunction)("mainTextFunction",F.nameFunction)("secondaryTextFunction",F.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[A.i,f.X$]}),w})()},30540:(Xe,ae,p)=>{"use strict";p.d(ae,{J:()=>S});var e=p(94650),f=p(89593),A=p(89383);let S=(()=>{class m{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new e.vpe,this.nameFunction=w=>w.name,this.secondaryFunction=()=>"",this.searchFunction=w=>w.name}}return m.\u0275fac=function(w){return new(w||m)},m.\u0275cmp=e.Xpm({type:m,selectors:[["perun-web-apps-service-search-select"]],inputs:{service:"service",services:"services",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{serviceSelected:"serviceSelected"},decls:4,vars:17,consts:[[3,"entity","entities","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(w,x){1&w&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(F){return x.serviceSelected.emit(F)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&w&&e.Q6J("entity",x.service)("entities",x.services)("multiple",x.multiple)("disableAutoSelect",x.disableAutoSelect)("searchFunction",x.searchFunction)("mainTextFunction",x.nameFunction)("secondaryTextFunction",x.secondaryFunction)("selectPlaceholder",e.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.SELECT_SERVICE"))("findPlaceholder",e.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.FIND_SERVICE"))("noEntriesText",e.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.NO_SERVICE_FOUND"))("theme",x.theme)},dependencies:[f.i,A.X$]}),m})()},2541:(Xe,ae,p)=>{"use strict";p.d(ae,{m:()=>V});var e=p(80279),f=p(61744),A=p(21029),S=p(9244),m=p(94650),M=p(7274),w=p(36895),x=p(51572),P=p(98380),F=p(4859),T=p(37084),B=p(7434),I=p(89383),q=p(34447);function ue(W,ee){1&W&&m._UZ(0,"mat-spinner",8)}function j(W,ee){1&W&&(m.TgZ(0,"perun-web-apps-alert",9),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"customTranslate"),m.qZA()),2&W&&(m.xp6(1),m.Oqu(m.lcZ(2,1,m.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))))}function Q(W,ee){if(1&W){const ie=m.EpF();m.TgZ(0,"div")(1,"p")(2,"strong"),m._uU(3),m.ALo(4,"translate"),m.ALo(5,"customTranslate"),m.qZA(),m._uU(6),m.qZA(),m.TgZ(7,"p",10),m._uU(8),m.ALo(9,"translate"),m.ALo(10,"customTranslate"),m.qZA(),m.TgZ(11,"button",11),m.NdJ("click",function(){m.CHM(ie);const Ye=m.oxw().$implicit,Le=m.oxw(3).$implicit,$e=m.oxw();return m.KtG($e.requestChangeQuota(Le,Ye))}),m._uU(12),m.ALo(13,"translate"),m.ALo(14,"customTranslate"),m.qZA()()}if(2&W){const ie=m.oxw(5);m.xp6(3),m.Oqu(m.lcZ(4,4,m.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA"))),m.xp6(3),m.hij(" ",ie.quotasMarkup," "),m.xp6(2),m.hij(" ",m.lcZ(9,8,m.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA_INFO"))," "),m.xp6(4),m.hij(" ",m.lcZ(13,12,m.lcZ(14,14,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.CHANGE"))," ")}}function be(W,ee){1&W&&(m.TgZ(0,"p"),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"customTranslate"),m.qZA()),2&W&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,m.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))," "))}function me(W,ee){if(1&W){const ie=m.EpF();m.TgZ(0,"mat-expansion-panel",3),m.NdJ("opened",function(){const Le=m.CHM(ie).$implicit,$e=m.oxw(4);return m.KtG($e.getResAttributes(Le.id))}),m.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),m._uU(3),m.qZA()(),m.YNc(4,Q,15,16,"div",7),m.YNc(5,be,4,5,"p",7),m.qZA()}if(2&W){const ie=ee.$implicit,xe=m.oxw(4);m.xp6(3),m.hij(" ",ie.name," "),m.xp6(1),m.Q6J("ngIf",xe.defaultQuota),m.xp6(1),m.Q6J("ngIf",!xe.defaultQuota)}}function fe(W,ee){if(1&W&&(m.TgZ(0,"mat-accordion"),m.YNc(1,me,6,3,"mat-expansion-panel",2),m.qZA()),2&W){const ie=m.oxw(3);m.xp6(1),m.Q6J("ngForOf",ie.resources)}}function re(W,ee){if(1&W&&(m.YNc(0,ue,1,0,"mat-spinner",5),m.YNc(1,j,4,5,"perun-web-apps-alert",6),m.YNc(2,fe,2,1,"mat-accordion",7)),2&W){const ie=m.oxw(2);m.Q6J("ngIf",ie.loading),m.xp6(1),m.Q6J("ngIf",0===ie.resources.length&&!ie.loading),m.xp6(1),m.Q6J("ngIf",ie.resources.length&&!ie.loading)}}function v(W,ee){if(1&W){const ie=m.EpF();m.TgZ(0,"mat-expansion-panel",3),m.NdJ("opened",function(){const Le=m.CHM(ie).$implicit,$e=m.oxw();return m.KtG($e.getMembersResources(Le))}),m.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),m._uU(3),m.qZA()(),m.YNc(4,re,3,3,"ng-template",4),m.qZA()}if(2&W){const ie=ee.$implicit;m.xp6(3),m.hij(" ",ie.name," ")}}let V=(()=>{class W{constructor(ie,xe,Ye,Le,$e,qe,Ze){this.store=ie,this.usersManagerService=xe,this.membersService=Ye,this.resourcesManagerService=Le,this.attributesManagerService=$e,this.dialog=qe,this.entityStorageService=Ze,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(ie=>{this.vos=ie,this.filteredVos=ie})}getMembersResources(ie){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(ie.id,this.user.id).subscribe(xe=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(xe.id).subscribe(Ye=>{let Le=Ye.length;Le||(this.loading=!1),Ye.forEach($e=>{this.attributesManagerService.getResourceAttributes($e.id).subscribe(qe=>{Le--,qe.find(Ze=>"defaultDataQuotas"===Ze.friendlyName)&&this.resources.push($e),this.loading=0!==Le})})})})}getResAttributes(ie){this.attributesManagerService.getResourceAttributes(ie).subscribe(xe=>{let Ye=xe.find(Le=>"dataQuotas"===Le.friendlyName);if(Ye?.value){const Le=Object.entries(Ye.value).map($e=>String($e[1]));this.currentQuota=Le[0]}else this.currentQuota="";if(Ye=xe.find(Le=>"defaultDataQuotas"===Le.friendlyName),Ye?.value){const Le=Object.entries(Ye.value).map($e=>String($e[1]));this.defaultQuota=Le[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(ie,xe){const Ye=(0,S.kZ)();Ye.width="400px",Ye.data={vo:ie,resource:xe,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(A.h4,Ye)}applyFilter(ie){this.filteredVos=this.vos.filter(xe=>xe.name.toLowerCase().includes(ie.toLowerCase()))}parseMarkup(){let ie="";ie+=this.currentQuota,ie+=` (default: ${this.defaultQuota})`,ie=ie.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=ie}}return W.\u0275fac=function(ie){return new(ie||W)(m.Y36(e.d6),m.Y36(f.Fv),m.Y36(f.uq),m.Y36(f.xk),m.Y36(f.H8),m.Y36(M.uw),m.Y36(e.fb))},W.\u0275cmp=m.Xpm({type:W,selectors:[["perun-web-apps-data-quotas"]],inputs:{user:"user"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ms-auto me-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ms-auto","me-auto"],["alert_type","warn"],[1,"color-gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(ie,xe){1&ie&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"customTranslate"),m.qZA(),m.TgZ(4,"perun-web-apps-immediate-filter",1),m.NdJ("filter",function(Le){return xe.applyFilter(Le)}),m.ALo(5,"translate"),m.ALo(6,"customTranslate"),m.qZA(),m.TgZ(7,"mat-accordion"),m.YNc(8,v,5,1,"mat-expansion-panel",2),m.qZA()),2&ie&&(m.xp6(1),m.hij(" ",m.lcZ(2,3,m.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.TITLE")),"\n"),m.xp6(3),m.Q6J("placeholder",m.lcZ(5,7,m.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.FILTER"))),m.xp6(4),m.Q6J("ngForOf",xe.filteredVos))},dependencies:[w.sg,w.O5,x.Ou,P.w,F.lW,T.pp,T.ib,T.yz,T.yK,T.HS,B.L,I.X$,q.a],styles:[".color-gray[_ngcontent-%COMP%]{color:gray}"]}),W})()},74006:(Xe,ae,p)=>{"use strict";p.d(ae,{E:()=>fe});var e=p(61744),f=p(80279),A=p(9244),S=p(94650),m=p(82761),M=p(89383),w=p(36895),x=p(56709),P=p(51572),F=p(98380),T=p(37084),B=p(7434),I=p(34447);function q(re,v){1&re&&S._UZ(0,"mat-spinner",8)}function ue(re,v){1&re&&(S.TgZ(0,"perun-web-apps-alert",9),S._uU(1),S.ALo(2,"translate"),S.ALo(3,"customTranslate"),S.qZA()),2&re&&(S.xp6(1),S.Oqu(S.lcZ(2,1,S.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function j(re,v){if(1&re){const V=S.EpF();S.TgZ(0,"mat-expansion-panel",3),S.NdJ("closed",function(){S.CHM(V);const ee=S.oxw(4);return S.KtG(ee.deselectResource())})("afterExpand",function(){const ie=S.CHM(V).$implicit,xe=S.oxw(4);return S.KtG(xe.changeSelectedResource(ie))}),S.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),S._uU(3),S.qZA()(),S.TgZ(4,"div",10)(5,"mat-checkbox",11),S.NdJ("change",function(){S.CHM(V);const ee=S.oxw(4);return S.KtG(ee.setOptOut())}),S._uU(6),S.ALo(7,"translate"),S.ALo(8,"customTranslate"),S.qZA()()()}if(2&re){const V=v.$implicit,W=S.oxw(4);S.Q6J("expanded",V.name===W.selectedResource),S.xp6(3),S.hij(" ",V.name," "),S.xp6(2),S.Q6J("checked",W.optOutAttribute&&null!==W.optOutAttribute.value),S.xp6(1),S.hij(" ",S.lcZ(7,4,S.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))," ")}}function Q(re,v){if(1&re&&(S.TgZ(0,"mat-accordion"),S.YNc(1,j,9,8,"mat-expansion-panel",2),S.qZA()),2&re){const V=S.oxw(3);S.xp6(1),S.Q6J("ngForOf",V.resources)}}function be(re,v){if(1&re&&(S.YNc(0,q,1,0,"mat-spinner",5),S.YNc(1,ue,4,5,"perun-web-apps-alert",6),S.YNc(2,Q,2,1,"mat-accordion",7)),2&re){const V=S.oxw(2);S.Q6J("ngIf",V.loading),S.xp6(1),S.Q6J("ngIf",0===V.resources.length&&!V.loading),S.xp6(1),S.Q6J("ngIf",V.resources.length&&!V.loading)}}function me(re,v){if(1&re){const V=S.EpF();S.TgZ(0,"mat-expansion-panel",3),S.NdJ("closed",function(){S.CHM(V);const ee=S.oxw();return S.KtG(ee.deselectVo())})("afterExpand",function(){const ie=S.CHM(V).$implicit,xe=S.oxw();return S.KtG(xe.changeSelectedVo(ie))}),S.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),S._uU(3),S.qZA()(),S.YNc(4,be,3,3,"ng-template",4),S.qZA()}if(2&re){const V=v.$implicit,W=S.oxw();S.Q6J("expanded",V.shortName===W.selectedVo),S.xp6(3),S.hij(" ",V.name," ")}}let fe=(()=>{class re{constructor(V,W,ee,ie,xe,Ye,Le,$e,qe){this.store=V,this.usersManagerService=W,this.membersService=ee,this.resourcesManagerService=ie,this.attributesManagerService=xe,this.route=Ye,this.router=Le,this.notificator=$e,this.translate=qe,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0,queryParamsHandling:"merge"})}ngOnInit(){this.route.queryParams.subscribe(V=>{this.selectedVo=String(V.vo),this.selectedResource=String(V.resource),this.changeOptOut=String(V.action),this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(W=>{if(this.vos=W.sort(A.aC),this.filteredVos=W,void 0!==this.selectedResource){const ee=this.vos.find(ie=>ie.shortName===this.selectedVo);ee&&this.getMailingLists(ee)}else if(void 0!==this.selectedVo){const ee=this.vos.find(ie=>ie.shortName===this.selectedVo);ee&&(this.getMailingLists(ee),this.changeSelectedVo(ee))}})}).unsubscribe()}changeSelectedResource(V){this.selectedResource!==V.name&&this.getOptOutAttribute(V),this.isService||(this.changeOptOut&&("subscribe"===this.changeOptOut?this.subscribe():"unsubscribe"===this.changeOptOut&&this.unsubscribe(),this.changeOptOut=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource,action:null},queryParamsHandling:"merge"}))}changeSelectedVo(V){this.selectedVo!==V.shortName&&(this.getMailingLists(V),this.selectedResource=null),this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}getMailingLists(V){this.selectedVo=V.shortName,this.loading=!0,this.resources=[],this.membersService.getMemberByUser(V.id,this.user.id).subscribe(W=>{this.resourcesManagerService.getMailingServiceRichResourcesWithMember(W.id).subscribe(ee=>{let ie=ee.length;ie||(this.loading=!1),ee.forEach(xe=>{this.attributesManagerService.getRequiredAttributesMemberResource(W.id,xe.id).subscribe(Ye=>{this.attributesManagerService.getResourceAttributeByName(xe.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(Le=>{ie--;const $e=Ye.find(qe=>"optOutMailingList"===qe.friendlyName);$e&&"true"!==Le?.value&&(this.optOuts.push({resource:xe.id,member:W.id,attribute:$e}),this.resources.push(xe),this.selectedResource===xe.name&&(this.getOptOutAttribute(xe),this.changeSelectedResource(xe))),this.loading=0!==ie})})})}),this.resources.sort(A.aC)})}getOptOutAttribute(V){this.selectedResource=V.name,this.index=this.resources.indexOf(V),this.optOutAttribute=this.optOuts[this.index].attribute}unsubscribe(){const V=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value="true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.UNSUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=V})}subscribe(){const V=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value=null,this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.SUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=V})}setOptOut(){this.optOutAttribute.value?this.subscribe():this.unsubscribe()}applyFilter(V){this.filteredVos=this.vos.filter(W=>W.name.toLowerCase().includes(V.toLowerCase()))}deselectVo(){this.loading=!0,this.selectedVo=null,this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return re.\u0275fac=function(V){return new(V||re)(S.Y36(f.d6),S.Y36(e.Fv),S.Y36(e.uq),S.Y36(e.xk),S.Y36(e.H8),S.Y36(m.gz),S.Y36(m.F0),S.Y36(f.V6),S.Y36(M.sK))},re.\u0275cmp=S.Xpm({type:re,selectors:[["perun-web-apps-mailing-lists"]],inputs:{user:"user",isService:"isService"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"expanded","closed","afterExpand",4,"ngFor","ngForOf"],[3,"expanded","closed","afterExpand"],["matExpansionPanelContent",""],["class","ms-auto me-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ms-auto","me-auto"],["alert_type","warn"],[1,"row"],[3,"checked","change"]],template:function(V,W){1&V&&(S.TgZ(0,"h1",0),S._uU(1),S.ALo(2,"translate"),S.ALo(3,"customTranslate"),S.qZA(),S.TgZ(4,"perun-web-apps-immediate-filter",1),S.NdJ("filter",function(ie){return W.applyFilter(ie)}),S.ALo(5,"translate"),S.ALo(6,"customTranslate"),S.qZA(),S.TgZ(7,"mat-accordion"),S.YNc(8,me,5,2,"mat-expansion-panel",2),S.qZA()),2&V&&(S.xp6(1),S.hij(" ",S.lcZ(2,3,S.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.TITLE")),"\n"),S.xp6(3),S.Q6J("placeholder",S.lcZ(5,7,S.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.FILTER"))),S.xp6(4),S.Q6J("ngForOf",W.filteredVos))},dependencies:[w.sg,w.O5,x.oG,P.Ou,F.w,T.pp,T.ib,T.yz,T.yK,T.HS,B.L,M.X$,I.a]}),re})()},80275:(Xe,ae,p)=>{"use strict";p.d(ae,{j:()=>$});var e=p(95017),f=p(96308),A=p(30671),S=p(80279),m=p(9244),M=p(94650),w=p(82761),x=p(36895),P=p(56709),F=p(98380),T=p(10266),B=p(18750),I=p(34198),q=p(55660),ue=p(89383);let j=(()=>{class ce{transform(he){return he.find(it=>"mail"===it.friendlyName)?.value??""}}return ce.\u0275fac=function(he){return new(he||ce)},ce.\u0275pipe=M.Yjl({name:"getMailFromAttributes",type:ce,pure:!0}),ce})();var Q=p(34447),be=p(8231);function me(ce,De){1&ce&&M._UZ(0,"th",18)}const fe=function(ce){return{name:ce}};function re(ce,De){if(1&ce){const he=M.EpF();M.TgZ(0,"td",19)(1,"span",20),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.TgZ(4,"mat-checkbox",21),M.NdJ("change",function(it){const ot=M.CHM(he).$implicit,Ue=M.oxw();return M.KtG(it?Ue.selection.toggle(ot):null)})("click",function(it){return it.stopPropagation()}),M.ALo(5,"translate"),M.ALo(6,"checkboxLabel"),M.qZA()()()}if(2&ce){const he=De.$implicit,Oe=M.oxw();M.xp6(1),M.s9C("matTooltip",M.lcZ(2,6,M.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),M.Q6J("matTooltipPosition","above")("matTooltipDisabled",!he.userExtSource.persistent),M.xp6(3),M.Q6J("aria-label",M.xi3(5,10,M.lcZ(6,13,Oe.selection.isSelected(he)),M.VKq(15,fe,he.userExtSource.extSource.name)))("checked",Oe.selection.isSelected(he))("disabled",he.userExtSource.persistent)}}function v(ce,De){1&ce&&(M.TgZ(0,"th",22),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&ce&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,M.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function V(ce,De){if(1&ce&&(M.TgZ(0,"td",23),M._uU(1),M.qZA()),2&ce){const he=De.$implicit;M.xp6(1),M.hij(" ",he.userExtSource.id," ")}}function W(ce,De){1&ce&&(M.TgZ(0,"th",24),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&ce&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,M.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function ee(ce,De){if(1&ce&&(M.TgZ(0,"td",23),M._uU(1),M.ALo(2,"getMailFromAttributes"),M.qZA()),2&ce){const he=De.$implicit;M.xp6(1),M.hij(" ",M.lcZ(2,1,he.attributes)," ")}}function ie(ce,De){if(1&ce&&(M.TgZ(0,"th",22),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&ce){const he=M.oxw();M.xp6(1),M.hij(" ",M.lcZ(2,1,M.lcZ(3,3,he.extSourceNameHeader?he.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function xe(ce,De){if(1&ce&&(M.TgZ(0,"td",23),M._uU(1),M.qZA()),2&ce){const he=De.$implicit;M.xp6(1),M.hij(" ",he.userExtSource.extSource.name," ")}}function Ye(ce,De){if(1&ce&&(M.TgZ(0,"th",22),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&ce){const he=M.oxw();M.xp6(1),M.hij(" ",M.lcZ(2,1,M.lcZ(3,3,he.loginHeader?he.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function Le(ce,De){if(1&ce&&(M.TgZ(0,"td",23),M._uU(1),M.qZA()),2&ce){const he=De.$implicit;M.xp6(1),M.hij(" ",he.userExtSource.login," ")}}function $e(ce,De){1&ce&&(M.TgZ(0,"th",22),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&ce&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,M.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function qe(ce,De){if(1&ce&&(M.TgZ(0,"td",25),M._uU(1),M.ALo(2,"date"),M.qZA()),2&ce){const he=De.$implicit;M.xp6(1),M.hij(" ",M.xi3(2,1,he.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function Ze(ce,De){1&ce&&M._UZ(0,"tr",26)}const Pe=function(ce,De){return["/admin","users",ce,"identities",De]};function se(ce,De){if(1&ce&&M._UZ(0,"tr",27),2&ce){const he=De.$implicit,Oe=M.oxw();M.ekj("cursor-pointer",!Oe.disableRouting)("disable-outline",Oe.disableRouting),M.Q6J("perunWebAppsMiddleClickRouterLink",Oe.disableRouting?null:M.WLB(6,Pe,Oe.userId.toString(),he.userExtSource.id.toString()))("routerLink",Oe.disableRouting?null:M.WLB(9,Pe,Oe.userId,he.userExtSource.id))}}function N(ce,De){1&ce&&(M.TgZ(0,"perun-web-apps-alert",28),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&ce&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function U(ce,De){1&ce&&(M.TgZ(0,"perun-web-apps-alert",28),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&ce&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,M.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let $=(()=>{class ce{constructor(he,Oe){this.route=he,this.authResolver=Oe,this.selection=new e.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=m.f7}set matSort(he){this.sort=he,this.setDataSource()}static getDataForColumn(he,Oe){switch(Oe){case"id":return he.userExtSource.id.toString();case"mail":{const it=he.attributes.find(Ce=>"mail"===Ce.friendlyName);return it?it.value:"N/A"}case"extSourceName":return he.userExtSource.extSource.name;case"login":return he.userExtSource.login;case"lastAccess":return he.userExtSource.lastAccess.split(".")[0];default:return he[Oe]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(he=>{this.userId=Number(he.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(he=>"id"!==he)),this.dataSource=new A.by(this.userExtSources),this.setDataSource()}exportAllData(he){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,ce.getDataForColumn),he)}exportDisplayedData(he){const Oe=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,it=Oe+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Oe,it),this.displayedColumns,ce.getDataForColumn),he)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(he,Oe)=>(0,m.Sd)(he,Oe,this.displayedColumns,ce.getDataForColumn),this.dataSource.sortData=(he,Oe)=>(0,m.pR)(he,Oe,ce.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}}return ce.\u0275fac=function(he){return new(he||ce)(M.Y36(w.gz),M.Y36(S.x4))},ce.\u0275cmp=M.Xpm({type:ce,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(he,Oe){if(1&he&&(M.Gf(m.l9,7),M.Gf(f.YE,7)),2&he){let it;M.iGM(it=M.CRH())&&(Oe.child=it.first),M.iGM(it=M.CRH())&&(Oe.matSort=it.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[M.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"ps-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(he,Oe){1&he&&(M.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),M.NdJ("exportDisplayedData",function(Ce){return Oe.exportDisplayedData(Ce)})("exportAllData",function(Ce){return Oe.exportAllData(Ce)}),M.TgZ(2,"table",2),M.ynx(3,3),M.YNc(4,me,1,0,"th",4),M.YNc(5,re,7,17,"td",5),M.BQk(),M.ynx(6,6),M.YNc(7,v,4,5,"th",7),M.YNc(8,V,2,1,"td",8),M.BQk(),M.ynx(9,9),M.YNc(10,W,4,5,"th",10),M.YNc(11,ee,3,3,"td",8),M.BQk(),M.ynx(12,11),M.YNc(13,ie,4,5,"th",7),M.YNc(14,xe,2,1,"td",8),M.BQk(),M.ynx(15,12),M.YNc(16,Ye,4,5,"th",7),M.YNc(17,Le,2,1,"td",8),M.BQk(),M.ynx(18,13),M.YNc(19,$e,4,5,"th",7),M.YNc(20,qe,3,4,"td",14),M.BQk(),M.YNc(21,Ze,1,0,"tr",15),M.YNc(22,se,1,12,"tr",16),M.qZA()()(),M.YNc(23,N,3,3,"perun-web-apps-alert",17),M.YNc(24,U,4,5,"perun-web-apps-alert",17)),2&he&&(M.Q6J("hidden",0===Oe.userExtSources.length||0===Oe.dataSource.filteredData.length),M.xp6(1),M.Q6J("tableId",Oe.tableId)("dataLength",Oe.dataSource.filteredData.length)("pageSizeOptions",Oe.pageSizeOptions),M.xp6(1),M.Q6J("dataSource",Oe.dataSource),M.xp6(19),M.Q6J("matHeaderRowDef",Oe.displayedColumns),M.xp6(1),M.Q6J("matRowDefColumns",Oe.displayedColumns),M.xp6(1),M.Q6J("ngIf",0===Oe.dataSource.filteredData.length&&0!==Oe.userExtSources.length),M.xp6(1),M.Q6J("ngIf",0===Oe.userExtSources.length))},dependencies:[x.O5,P.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,w.rH,f.YE,f.nU,F.w,T.gM,B.l,I.Y,q.Q,x.uU,ue.X$,j,Q.a,be.G],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),ce})()},74250:(Xe,ae,p)=>{"use strict";p.d(ae,{S:()=>m});var e=p(94650),f=p(9244),A=p(89593),S=p(89383);let m=(()=>{class M{constructor(){this.disableAutoSelect=!1,this.userSelected=new e.vpe,this.userFullNameFunction=f.bD}ngOnInit(){this.users=this.users.sort(f.fx)}}return M.\u0275fac=function(x){return new(x||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(x,P){1&x&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(T){return P.userSelected.emit(T)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&x&&e.Q6J("entities",P.users)("disableAutoSelect",P.disableAutoSelect)("searchFunction",P.userFullNameFunction)("mainTextFunction",P.userFullNameFunction)("selectPlaceholder",e.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",e.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",e.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},dependencies:[A.i,S.X$]}),M})()},88561:(Xe,ae,p)=>{"use strict";p.d(ae,{M:()=>C});var e=p(94650),f=p(61744),A=p(95017),S=p(9244),m=p(96308),M=p(80279),w=p(56451),x=p(18505),P=p(21029),F=p(19516),T=p(10036),B=p(7274),I=p(89383),q=p(36895),ue=p(56709),j=p(30671),Q=p(82761),be=p(98380),me=p(97392),fe=p(10266),re=p(18750),v=p(34198),V=p(55660),W=p(12502),ee=p(31359),ie=p(16119),xe=p(7598),Ye=p(9954),Le=p(9185),$e=p(8231),qe=p(14849),Ze=p(10293);function Pe(h,o){if(1&h){const n=e.EpF();e.TgZ(0,"mat-checkbox",23),e.NdJ("change",function(i){e.CHM(n);const a=e.oxw(3);return e.KtG(i?a.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&h){const n=e.oxw(2).ngIf,t=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,n.all)))("checked",t.selection.hasValue()&&n.all)("indeterminate",t.selection.hasValue()&&!n.all)}}function se(h,o){if(1&h&&(e.TgZ(0,"th",21),e.YNc(1,Pe,3,7,"mat-checkbox",22),e.qZA()),2&h){const n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",n.selection.isMultipleSelection())}}const N=function(h){return{name:h}};function U(h,o){if(1&h){const n=e.EpF();e.TgZ(0,"td",24)(1,"mat-checkbox",25),e.NdJ("change",function(i){const l=e.CHM(n).$implicit,d=e.oxw(2);return e.KtG(i?d.selection.toggle(l):null)})("click",function(i){return i.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.ALo(4,"userFullName"),e.qZA()()}if(2&h){const n=o.$implicit,t=e.oxw(2);e.xp6(1),e.Q6J("aria-label",e.xi3(2,2,e.lcZ(3,5,t.selection.isSelected(n)),e.VKq(9,N,e.lcZ(4,7,n))))("checked",t.selection.isSelected(n))}}function $(h,o){1&h&&(e.ynx(0,18),e.YNc(1,se,2,1,"th",19),e.YNc(2,U,5,11,"td",20),e.BQk())}function ce(h,o){1&h&&e._UZ(0,"th",26)}function De(h,o){1&h&&(e.TgZ(0,"mat-icon",30),e.ALo(1,"translate"),e._uU(2," account_circle "),e.qZA()),2&h&&e.s9C("matTooltip",e.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function he(h,o){if(1&h&&(e._UZ(0,"mat-icon",31),e.ALo(1,"translate")),2&h){const n=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,2,"MANAGERS_LIST.SERVICE")),e.Q6J("svgIcon",n.svgIcon)}}function Oe(h,o){if(1&h&&(e.TgZ(0,"td",27),e.YNc(1,De,3,3,"mat-icon",28),e.YNc(2,he,2,4,"mat-icon",29),e.qZA()),2&h){const n=o.$implicit;e.xp6(1),e.Q6J("ngIf",!n.serviceUser),e.xp6(1),e.Q6J("ngIf",n.serviceUser)}}function it(h,o){1&h&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function Ce(h,o){if(1&h&&(e.TgZ(0,"td",27),e._uU(1),e.qZA()),2&h){const n=o.$implicit;e.xp6(1),e.hij(" ",n.id," ")}}function ot(h,o){1&h&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function Ue(h,o){if(1&h&&(e.TgZ(0,"td",33),e.ALo(1,"lowercase"),e._uU(2),e.ALo(3,"userFullName"),e.qZA()),2&h){const n=o.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,n.firstName),"-td"),e.xp6(2),e.hij(" ",e.lcZ(3,4,n)," ")}}function ft(h,o){1&h&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function Z(h,o){if(1&h&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"userVo"),e.qZA()),2&h){const n=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,n))}}function lt(h,o){1&h&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function Ae(h,o){if(1&h&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"userEmail"),e.qZA()),2&h){const n=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,n))}}function Ke(h,o){1&h&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function pe(h,o){if(1&h&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"userLogins"),e.qZA()),2&h){const n=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,n))}}function Ie(h,o){1&h&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CONSENTS.STATUS")," "))}function Ne(h,o){if(1&h&&(e.TgZ(0,"td",33),e._UZ(1,"perun-web-apps-consent-status",34),e.ALo(2,"consentStatusIcon"),e.qZA()),2&h){const n=o.$implicit,t=e.oxw();e.xp6(1),e.Q6J("consentStatus",e.xi3(2,1,n.id,t.consents))}}function we(h,o){1&h&&e._UZ(0,"tr",35)}const Be=function(h){return["/admin/users",h]};function r(h,o){if(1&h&&e._UZ(0,"tr",36),2&h){const n=o.$implicit,t=e.oxw();e.ekj("cursor-pointer",!t.disableRouting),e.Q6J("routerLink",t.disableRouting?null:e.VKq(4,Be,n.id))("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:e.VKq(6,Be,n.id))}}function u(h,o){1&h&&(e.TgZ(0,"perun-web-apps-alert",37),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.Q6J("alert_type","warn"),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}const _=function(h){return{all:h}};let C=(()=>{class h{constructor(n,t,i,a,l,d,c,s){this.authResolver=n,this.consentService=t,this.tableCheckbox=i,this.tableConfigService=a,this.dynamicPaginatingService=l,this.dialog=d,this.consentPipe=c,this.translate=s,this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.loading$=new e.vpe,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=S.f7}static getExportDataForColumn(n,t){switch(t){case"id":return n.id.toString();case"user":return n.serviceUser?"service-user":"user";case"name":return n?(0,S.bD)(n):"";case"organization":return(0,S.OV)(n);case"email":return(0,S.kN)(n);case"logins":return(0,S.lt)(n);case"consentStatus":return n.consent;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,w.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,x.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(n=>"id"!==n)),this.dataSource=new M.Hy(this.dynamicPaginatingService,this.authResolver),this.loadConsents(),this.dataSource.loadUsers(this.attrNames,this.tableConfigService.getTablePageSize(this.tableId),0,"ASCENDING","NAME",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses),this.loading$.emit(this.dataSource.loading$)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadUsersPage(),this.loadConsents())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(n=>this.selection.select(n))}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().length}loadUsersPage(){this.dataSource.loadUsers(this.attrNames,this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING","name"===this.sort.active?"NAME":"ID",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses)}loadConsents(){this.displayedColumns.includes("consentStatus")&&this.consentService.getConsentHubByFacility(this.facilityId).subscribe(n=>this.consentService.getConsentsForConsentHub(n.id).subscribe(t=>this.consents=t))}exportDisplayedData(n){(0,S.O6)((0,S.Xn)(this.getConsentsForUsers(this.dataSource.getData()),this.displayedColumns,h.getExportDataForColumn),n)}exportAllData(n){const t="asc"===this.sort.direction?"ASCENDING":"DESCENDING",i="name"===this.sort.active?"NAME":"ID",a=(0,S.kZ)();a.width="300px";const l=this.dialog.open(P.QQ,a);this.dataSource.getAllUsers(this.attrNames,t,this.child.paginator.length,i,this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses).subscribe(d=>{l.close(),(0,S.O6)((0,S.Xn)(this.getConsentsForUsers(d),this.displayedColumns,h.getExportDataForColumn),n)})}getConsentsForUsers(n){const t=[];return this.displayedColumns.includes("consentStatus")?(n.forEach(i=>{const a=i;a.consent=this.translate.instant("CONSENTS.STATUS_"+this.consentPipe.transform(i.id,this.consents)),t.push(a)}),t):n}}return h.\u0275fac=function(n){return new(n||h)(e.Y36(M.x4),e.Y36(f.WY),e.Y36(M.UA),e.Y36(T.dB),e.Y36(M.ly),e.Y36(B.uw),e.Y36(F.m2),e.Y36(I.sK))},h.\u0275cmp=e.Xpm({type:h,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(n,t){if(1&n&&(e.Gf(S.l9,7),e.Gf(m.YE,5)),2&n){let i;e.iGM(i=e.CRH())&&(t.child=i.first),e.iGM(i=e.CRH())&&(t.sort=i.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",attrNames:"attrNames",withoutVo:"withoutVo",updateTable:"updateTable",facilityId:"facilityId",voId:"voId",resourceId:"resourceId",serviceId:"serviceId",onlyAllowed:"onlyAllowed",consentStatuses:"consentStatuses"},outputs:{loading$:"loading$"},features:[e._Bn([F.m2]),e.TTD],decls:29,vars:14,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","consentStatus"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"matTooltip","svgIcon",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"matTooltip","svgIcon"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(n,t){1&n&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(a){return t.exportDisplayedData(a)})("exportAllData",function(a){return t.exportAllData(a)}),e.TgZ(2,"table",2),e.YNc(3,$,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ce,1,0,"th",5),e.YNc(7,Oe,3,2,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,it,3,3,"th",8),e.YNc(10,Ce,2,1,"td",6),e.BQk(),e.ynx(11,9),e.YNc(12,ot,3,3,"th",8),e.YNc(13,Ue,4,6,"td",10),e.BQk(),e.ynx(14,11),e.YNc(15,ft,3,3,"th",5),e.YNc(16,Z,3,3,"td",10),e.BQk(),e.ynx(17,12),e.YNc(18,lt,3,3,"th",5),e.YNc(19,Ae,3,3,"td",10),e.BQk(),e.ynx(20,13),e.YNc(21,Ke,3,3,"th",5),e.YNc(22,pe,3,3,"td",10),e.BQk(),e.ynx(23,14),e.YNc(24,Ie,3,3,"th",5),e.YNc(25,Ne,3,4,"td",10),e.BQk(),e.YNc(26,we,1,0,"tr",15),e.YNc(27,r,1,8,"tr",16),e.qZA()()(),e.YNc(28,u,3,4,"perun-web-apps-alert",17)),2&n&&(e.Q6J("hidden",0===t.dataSource.allObjectCount),e.xp6(1),e.Q6J("tableId",t.tableId)("dataLength",t.dataSource.allObjectCount)("pageSizeOptions",t.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",t.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(12,_,e.xi3(4,9,t.dataSource,t.selection.selected.length))),e.xp6(23),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===t.dataSource.allObjectCount))},dependencies:[q.O5,ue.oG,j.BZ,j.fO,j.as,j.w1,j.Dz,j.nj,j.ge,j.ev,j.XQ,j.Gk,Q.rH,m.YE,m.nU,be.w,me.Hw,fe.gM,re.l,v.Y,W.N,V.Q,q.i8,I.X$,ee.d,ie.S,xe.g,Ye.Z,Le.I,$e.G,qe.r,Ze.m],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),h})()},62707:(Xe,ae,p)=>{"use strict";p.d(ae,{M:()=>m});var e=p(94650),f=p(9244),A=p(89593),S=p(89383);let m=(()=>{class M{constructor(){this.disableAutoSelect=!1,this.voSelected=new e.vpe,this.nameFunction=x=>x.name,this.shortNameFunction=x=>x.shortName,this.searchFunction=x=>x.name+x.shortName+String(x.id)}ngOnChanges(){this.vos.sort(f.aC),!this.vo&&!this.disableAutoSelect&&(this.vo=this.vos[0])}}return M.\u0275fac=function(x){return new(x||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos",disableAutoSelect:"disableAutoSelect"},outputs:{voSelected:"voSelected"},features:[e.TTD],decls:4,vars:15,consts:[[3,"entity","entities","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(x,P){1&x&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(T){return P.voSelected.emit(T)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&x&&e.Q6J("entity",P.vo)("entities",P.vos)("disableAutoSelect",P.disableAutoSelect)("searchFunction",P.searchFunction)("mainTextFunction",P.nameFunction)("secondaryTextFunction",P.shortNameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},dependencies:[A.i,S.X$]}),M})()},87831:(Xe,ae,p)=>{"use strict";p.d(ae,{Z:()=>De});var e=p(96308),f=p(30671),A=p(9244),S=p(80279),m=p(94650),M=p(36895),w=p(56709),x=p(82761),P=p(98380),F=p(97392),T=p(18750),B=p(34198),I=p(55660),q=p(10441),ue=p(6967),j=p(89383),Q=p(8231);function be(he,Oe){1&he&&m._UZ(0,"th",21)}const me=function(he){return{name:he}};function fe(he,Oe){if(1&he){const it=m.EpF();m.TgZ(0,"td",22)(1,"mat-checkbox",23),m.NdJ("change",function(ot){const ft=m.CHM(it).$implicit,Z=m.oxw();return m.KtG(ot?Z.selection.toggle(ft):null)})("click",function(ot){return ot.stopPropagation()}),m.ALo(2,"translate"),m.ALo(3,"checkboxLabel"),m.qZA()()}if(2&he){const it=Oe.$implicit,Ce=m.oxw();let ot;m.xp6(1),m.Q6J("aria-label",m.xi3(2,2,m.lcZ(3,5,Ce.selection.isSelected(it)),m.VKq(7,me,null!==(ot=it.name)&&void 0!==ot?ot:it.vo.name)))("checked",Ce.selection.isSelected(it))}}function re(he,Oe){1&he&&(m.TgZ(0,"th",24),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&he&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function v(he,Oe){if(1&he&&(m.TgZ(0,"td",25),m._uU(1),m.qZA()),2&he){const it=Oe.$implicit;let Ce;m.xp6(1),m.Oqu(null!==(Ce=it.id)&&void 0!==Ce?Ce:it.vo.id)}}function V(he,Oe){1&he&&m._UZ(0,"th",26)}function W(he,Oe){if(1&he&&(m.TgZ(0,"td",27),m._UZ(1,"perun-web-apps-recently-viewed-icon",28),m.qZA()),2&he){const it=Oe.$implicit,Ce=m.oxw();let ot;m.xp6(1),m.Q6J("recentIds",Ce.recentIds)("id",null!==(ot=it.id)&&void 0!==ot?ot:it.vo.id)}}function ee(he,Oe){1&he&&m._UZ(0,"th",26)}function ie(he,Oe){1&he&&m._UZ(0,"mat-icon",30),2&he&&m.Q6J("svgIcon","perun-hierarchical-vo")}function xe(he,Oe){if(1&he&&(m.TgZ(0,"td",27),m.YNc(1,ie,1,1,"mat-icon",29),m.qZA()),2&he){const it=Oe.$implicit;m.xp6(1),m.Q6J("ngIf",0!==(null==it||null==it.memberVos?null:it.memberVos.length))}}function Ye(he,Oe){1&he&&(m.TgZ(0,"th",24),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&he&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function Le(he,Oe){if(1&he&&(m.TgZ(0,"td",27),m._uU(1),m.qZA()),2&he){const it=Oe.$implicit;let Ce,ot;m.uIk("data-cy",null!==(Ce=it.shortName)&&void 0!==Ce?Ce:it.vo.shortName),m.xp6(1),m.hij(" ",null!==(ot=it.shortName)&&void 0!==ot?ot:it.vo.shortName," ")}}function $e(he,Oe){1&he&&(m.TgZ(0,"th",24),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&he&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function qe(he,Oe){if(1&he&&(m.TgZ(0,"td",27),m._uU(1),m.qZA()),2&he){const it=Oe.$implicit;let Ce;m.xp6(1),m.Oqu(null!==(Ce=it.name)&&void 0!==Ce?Ce:it.vo.name)}}function Ze(he,Oe){1&he&&(m.TgZ(0,"th",26),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&he&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.AUTHZ_GROUP")," "))}function Pe(he,Oe){if(1&he){const it=m.EpF();m.TgZ(0,"td",31),m.NdJ("mouseenter",function(){m.CHM(it);const ot=m.oxw();return m.KtG(ot.disabledRouting=!0)})("mouseleave",function(){m.CHM(it);const ot=m.oxw();return m.KtG(ot.disabledRouting=ot.disableRouting)}),m._UZ(1,"perun-web-apps-authorized-groups-cell",32),m.qZA()}if(2&he){const it=Oe.$implicit,Ce=m.oxw();m.xp6(1),m.Q6J("groups",Ce.voWithAuthzGroupPairs.get(it.id))("disableRouting",Ce.disableRouting)("authzVoNames",Ce.authzVoNames)}}function se(he,Oe){1&he&&m._UZ(0,"tr",33)}const N=function(he){return["/organizations",he]};function U(he,Oe){if(1&he&&m._UZ(0,"tr",34),2&he){const it=Oe.$implicit,Ce=m.oxw();let ot,Ue;m.ekj("disable-outline",Ce.disableRouting)("cursor-pointer",!Ce.disableRouting),m.Q6J("perunWebAppsMiddleClickRouterLink",Ce.disableRouting||Ce.disabledRouting?null:m.VKq(6,N,null!==(ot=it.id)&&void 0!==ot?ot:it.vo.id))("routerLink",Ce.disableRouting||Ce.disabledRouting?null:m.VKq(8,N,null!==(Ue=it.id)&&void 0!==Ue?Ue:it.vo.id))}}function $(he,Oe){1&he&&(m.TgZ(0,"perun-web-apps-alert",35),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&he&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ce(he,Oe){1&he&&(m.TgZ(0,"perun-web-apps-alert",36),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&he&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let De=(()=>{class he{constructor(it){this.authResolver=it,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=A.f7,this.disabledRouting=!1,this.getDataForColumnFun=(Ce,ot)=>he.getDataForColumn(Ce,ot,this.recentIds)}set matSort(it){this.sort=it}static getDataForColumn(it,Ce,ot){switch(he.isEnrichedVo(it)&&(it=it.vo),Ce){case"id":return it.id.toString();case"shortName":return it.shortName;case"name":return it.name;case"recent":return ot&&ot.includes(it.id)?"#".repeat(ot.indexOf(it.id)):it.name;default:return it[Ce]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(it=>"id"!==it)),this.setDataSource()}exportAllData(it){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),it)}exportDisplayedData(it){const Ce=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,ot=Ce+this.dataSource.paginator.pageSize;(0,A.O6)((0,A.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ce,ot),this.displayedColumns,this.getDataForColumnFun),it)}setDataSource(){this.dataSource||(this.dataSource=new f.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(it,Ce)=>(0,A.Sd)(it,Ce,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(it,Ce)=>(0,A.pR)(it,Ce,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}}return he.isEnrichedVo=Oe=>void 0!==Oe.vo,he.\u0275fac=function(it){return new(it||he)(m.Y36(S.x4))},he.\u0275cmp=m.Xpm({type:he,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(it,Ce){if(1&it&&(m.Gf(A.l9,7),m.Gf(e.YE,7)),2&it){let ot;m.iGM(ot=m.CRH())&&(Ce.child=ot.first),m.iGM(ot=m.CRH())&&(Ce.matSort=ot.first)}},inputs:{vos:"vos",voWithAuthzGroupPairs:"voWithAuthzGroupPairs",authzVoNames:"authzVoNames",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[m.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","hierarchy"],["matColumnDef","shortName"],["matColumnDef","name"],["matColumnDef","authzGroup"],["mat-cell","","style","cursor: default",3,"mouseenter","mouseleave",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn","data-cy","no-filter-result",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],[3,"svgIcon",4,"ngIf"],[3,"svgIcon"],["mat-cell","",2,"cursor","default",3,"mouseenter","mouseleave"],[3,"groups","disableRouting","authzVoNames"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(it,Ce){1&it&&(m.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),m.NdJ("exportDisplayedData",function(Ue){return Ce.exportDisplayedData(Ue)})("exportAllData",function(Ue){return Ce.exportAllData(Ue)}),m.TgZ(2,"table",2),m.ynx(3,3),m.YNc(4,be,1,0,"th",4),m.YNc(5,fe,4,9,"td",5),m.BQk(),m.ynx(6,6),m.YNc(7,re,3,3,"th",7),m.YNc(8,v,2,1,"td",8),m.BQk(),m.ynx(9,9),m.YNc(10,V,1,0,"th",10),m.YNc(11,W,2,2,"td",11),m.BQk(),m.ynx(12,12),m.YNc(13,ee,1,0,"th",10),m.YNc(14,xe,2,1,"td",11),m.BQk(),m.ynx(15,13),m.YNc(16,Ye,3,3,"th",7),m.YNc(17,Le,2,2,"td",11),m.BQk(),m.ynx(18,14),m.YNc(19,$e,3,3,"th",7),m.YNc(20,qe,2,1,"td",11),m.BQk(),m.ynx(21,15),m.YNc(22,Ze,3,3,"th",10),m.YNc(23,Pe,2,3,"td",16),m.BQk(),m.YNc(24,se,1,0,"tr",17),m.YNc(25,U,1,10,"tr",18),m.qZA()()(),m.YNc(26,$,3,3,"perun-web-apps-alert",19),m.YNc(27,ce,3,3,"perun-web-apps-alert",20)),2&it&&(m.Q6J("hidden",0===Ce.dataSource.filteredData.length||0===Ce.vos.length),m.xp6(1),m.Q6J("dataLength",Ce.dataSource.filteredData.length)("tableId",Ce.tableId)("pageSizeOptions",Ce.pageSizeOptions),m.xp6(1),m.Q6J("dataSource",Ce.dataSource),m.xp6(22),m.Q6J("matHeaderRowDef",Ce.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",Ce.displayedColumns),m.xp6(1),m.Q6J("ngIf",0===Ce.dataSource.filteredData.length&&0!==Ce.vos.length),m.xp6(1),m.Q6J("ngIf",0===Ce.vos.length))},dependencies:[M.O5,w.oG,f.BZ,f.fO,f.as,f.w1,f.Dz,f.nj,f.ge,f.ev,f.XQ,f.Gk,x.rH,e.YE,e.nU,P.w,F.Hw,T.l,B.Y,q.W,I.Q,ue.e,j.X$,Q.G],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),he})()},21029:(Xe,ae,p)=>{"use strict";p.d(ae,{FJ:()=>ct,GI:()=>tr,Wr:()=>ye,r2:()=>_t,gr:()=>Te,u3:()=>ui,Qu:()=>zi,pf:()=>$,xF:()=>sn,hd:()=>Wn,kZ:()=>Un,wA:()=>pt,rd:()=>lt,Eg:()=>Z,QQ:()=>Nn,Bp:()=>r,qD:()=>Ai,jd:()=>ci,FM:()=>n,jD:()=>V,eK:()=>br,Lc:()=>E,h4:()=>Dt,Us:()=>Kr,iI:()=>Sn,mk:()=>H,Ts:()=>Se});var e=p(36895),f=p(89383),A=p(30671),S=p(7274),m=p(4859),M=p(59549),w=p(24006),x=p(284),P=p(51572),F=p(71948),T=p(99602),B=p(64425),I=p(97392),q=p(19516),ue=p(63189),j=p(46860),Q=p(82761),be=p(35423),me=p(84385),fe=p(28499),re=p(60900),v=p(94650);let V=(()=>{class dt{}return dt.\u0275fac=function(je){return new(je||dt)},dt.\u0275mod=v.oAB({type:dt}),dt.\u0275inj=v.cJS({imports:[e.ez,f.aw,A.p0,S.Is,m.ot,M.lN,w.u5,x.c,P.Cq,F.Fk,T.FA,w.UX,B.Iq,I.Ps,q.d4,ue.r,j.A,Q.Bz,be.dp,me.LD,fe.E3,re.C]}),dt})();var W=p(61744),ee=p(80279),ie=p(97403),xe=p(73358),Ye=p(3238),Le=p(75162),$e=p(20551);function qe(dt,Wt){1&dt&&v._UZ(0,"perun-web-apps-loading-dialog")}function Ze(dt,Wt){if(1&dt&&(v.TgZ(0,"mat-option",18),v._uU(1),v.ALo(2,"memberStatus"),v.qZA()),2&dt){const je=Wt.$implicit;v.Q6J("value",je),v.xp6(1),v.hij(" ",v.lcZ(2,2,je)," ")}}function Pe(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"mat-select",16),v.NdJ("selectionChange",function(It){v.CHM(je);const Xt=v.oxw(2);return v.KtG(Xt.changeStatus(It))}),v.YNc(1,Ze,3,4,"mat-option",17),v.qZA()}if(2&dt){const je=v.oxw(2);v.xp6(1),v.Q6J("ngForOf",je.statuses)}}function se(dt,Wt){if(1&dt&&(v._UZ(0,"input",5),v.ALo(1,"memberStatus")),2&dt){const je=v.oxw(2);v.Q6J("readonly",!0)("value",v.lcZ(1,2,je.statuses[0]))}}function N(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"perun-web-apps-expiration-select",19),v.NdJ("datePicker",function(It){v.CHM(je);const Xt=v.oxw(2);return v.KtG(Xt.setExpiration(It))}),v.qZA()}if(2&dt){const je=v.oxw(2);v.Q6J("allowNever","VALID"===je.newStatus)("expiration",je.expiration)("maxDate",je.maxDate)("minDate",je.minDate)}}function U(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"div")(1,"h1",2),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),v._uU(7),v.ALo(8,"translate"),v.qZA(),v._UZ(9,"input",5),v.ALo(10,"memberStatus"),v.qZA(),v.TgZ(11,"div",6),v._uU(12),v.qZA(),v.TgZ(13,"mat-form-field",7)(14,"mat-label"),v._uU(15),v.ALo(16,"translate"),v.qZA(),v.YNc(17,Pe,2,1,"mat-select",8),v.YNc(18,se,2,4,"input",9),v.qZA(),v.TgZ(19,"div",10),v._UZ(20,"i",11),v.qZA(),v.YNc(21,N,1,4,"perun-web-apps-expiration-select",12),v.qZA(),v.TgZ(22,"div",13)(23,"button",14),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.cancel())}),v._uU(24),v.ALo(25,"translate"),v.qZA(),v.TgZ(26,"button",15),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.submit())}),v._uU(27),v.ALo(28,"translate"),v.qZA()()()}if(2&dt){const je=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,13,"DIALOGS.CHANGE_STATUS.TITLE")),v.xp6(5),v.Oqu(v.lcZ(8,15,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")),v.xp6(2),v.Q6J("readonly",!0)("value",v.lcZ(10,17,je.currentStatus)),v.xp6(3),v.Oqu(je.currentStatusDescription),v.xp6(3),v.Oqu(v.lcZ(16,19,"DIALOGS.CHANGE_STATUS.NEW_STATUS")),v.xp6(2),v.Q6J("ngIf",je.statuses.length>1),v.xp6(1),v.Q6J("ngIf",1===je.statuses.length),v.xp6(2),v.Q6J("innerHTML",je.changeDescription,v.oJD),v.xp6(1),v.Q6J("ngIf",je.expirationRequired),v.xp6(3),v.hij(" ",v.lcZ(25,21,"DIALOGS.CHANGE_STATUS.CANCEL")," "),v.xp6(2),v.Q6J("disabled",je.loading||!je.newStatus||je.expirationRequired&&!je.expiration),v.xp6(1),v.hij(" ",v.lcZ(28,23,"DIALOGS.CHANGE_STATUS.CHANGE_STATUS")," ")}}let $=(()=>{class dt{constructor(je,at,It,Xt,gi,Zi,Ui){this.dialogRef=je,this.data=at,this.memberManager=It,this.groupsManager=Xt,this.attributeService=gi,this.notificatorService=Zi,this.translate=Ui,this.loading=!1,this.statuses=["VALID","INVALID","EXPIRED","DISABLED"],this.maxDate=new Date,this.minDate=new Date,this.descriptionTranslations=new Map([["VALID","DIALOGS.CHANGE_STATUS.VALID_DESCRIPTION"],["INVALID","DIALOGS.CHANGE_STATUS.INVALID_DESCRIPTION"],["EXPIRED","DIALOGS.CHANGE_STATUS.EXPIRED_DESCRIPTION"],["DISABLED","DIALOGS.CHANGE_STATUS.DISABLED_DESCRIPTION"],["VALIDINVALID","DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_INVALID"],["VALIDEXPIRED","DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_EXPIRED"],["VALIDDISABLED","DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_DISABLED"],["NOVALIDVALID","DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_VALID"],["NOVALIDINVALID","DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_INVALID"],["NOVALIDEXPIRED","DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_EXPIRED"],["NOVALIDDISABLED","DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_DISABLED"]])}ngOnInit(){this.data.groupId?(this.theme="group-theme",this.currentStatus=this.data.member.groupStatus,this.statuses=["VALID","EXPIRED"]):(this.theme="vo-theme",this.currentStatus=this.data.member.status,"INVALID"===this.currentStatus&&(this.statuses=["VALID","EXPIRED"])),this.statuses=this.statuses.filter(je=>je!==this.currentStatus),1===this.statuses.length&&(this.newStatus=this.statuses[0],this.changeStatusMessage()),this.resetExpiration(),this.setDateBounds(),this.currentStatusDescription=this.translate.instant(this.descriptionTranslations.get(this.currentStatus))}changeStatus(je){this.newStatus=je.value,this.setDateBounds(),this.resetExpiration(),this.changeStatusMessage()}setExpiration(je){this.expiration="never"===je?"never":(0,e.p6)(je,"yyyy-MM-dd","en-GB")}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.expirationAttr.value="never"===this.expiration?null:this.expiration,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.newStatus).subscribe({next:je=>{this.attributeService.setMemberGroupAttributes({member:this.data.member.id,group:this.data.groupId,attributes:[this.data.expirationAttr]}).subscribe({next:()=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(at=>{this.notificatorService.showSuccess(at),this.dialogRef.close(je)})},error:()=>this.loading=!1})},error:()=>this.loading=!1}):this.memberManager.setStatus(this.data.member.id,this.newStatus).subscribe({next:je=>{this.attributeService.setMemberAttributes({member:this.data.member.id,attributes:[this.data.expirationAttr]}).subscribe({next:()=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(at=>{this.notificatorService.showSuccess(at),this.dialogRef.close(je)})},error:()=>this.loading=!1})},error:()=>this.loading=!1})}changeStatusMessage(){let je=this.currentStatus;"VALID"!==this.currentStatus&&(je="NOVALID"),this.changeDescription=this.translate.instant(this.descriptionTranslations.get(je+this.newStatus))}setDateBounds(){"VALID"===this.newStatus?(this.minDate=new Date,this.maxDate=null):"EXPIRED"===this.newStatus&&(this.minDate=null,this.maxDate=new Date)}resetExpiration(){this.expirationRequired="VALID"===this.newStatus||"EXPIRED"===this.newStatus,this.expiration="EXPIRED"===this.newStatus?(0,e.p6)(new Date,"yyyy-MM-dd","en-GB"):"never"}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.uq),v.Y36(W.ff),v.Y36(W.H8),v.Y36(ee.V6),v.Y36(ee.Te))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-change-member-status-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","",3,"readonly","value"],[1,"text-muted"],[1,"w-100","mt-2"],[3,"selectionChange",4,"ngIf"],["matInput","",3,"readonly","value",4,"ngIf"],[1,"text-muted","new-line","mb-3"],[3,"innerHTML"],[3,"allowNever","expiration","maxDate","minDate","datePicker",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto","me-2",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],[3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[3,"allowNever","expiration","maxDate","minDate","datePicker"]],template:function(je,at){if(1&je&&(v.YNc(0,qe,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div"),v.YNc(3,U,29,25,"div",1),v.qZA()),2&je){const It=v.MAs(1);v.xp6(2),v.Gre("",at.theme," position-relative"),v.xp6(1),v.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",It)}},dependencies:[e.sg,e.O5,S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,x.Nt,ie.b,xe.e,me.gD,Ye.ey,Le.c,f.X$,$e.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),dt})();var ce=p(39349);function De(dt,Wt){1&dt&&v._UZ(0,"perun-web-apps-loading-dialog")}function he(dt,Wt){1&dt&&(v.TgZ(0,"h1",10),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function Oe(dt,Wt){1&dt&&(v.TgZ(0,"h1",10),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function it(dt,Wt){1&dt&&(v.TgZ(0,"h1",10),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function Ce(dt,Wt){1&dt&&(v.TgZ(0,"h1",10),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function ot(dt,Wt){if(1&dt&&(v.TgZ(0,"mat-form-field")(1,"mat-label"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v._UZ(4,"input",11),v.qZA()),2&dt){const je=v.oxw(2);v.xp6(2),v.hij("",v.lcZ(3,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),v.xp6(2),v.Q6J("value",je.shortName)}}function Ue(dt,Wt){if(1&dt&&(v.TgZ(0,"mat-form-field",12)(1,"mat-label"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v._UZ(4,"textarea",13),v.qZA()),2&dt){const je=v.oxw(2);v.xp6(2),v.hij(" ",v.lcZ(3,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),": "),v.xp6(2),v.Q6J("formControl",je.descriptionCtrl)}}function ft(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"div"),v.YNc(1,he,3,3,"h1",2),v.YNc(2,Oe,3,3,"h1",2),v.YNc(3,it,3,3,"h1",2),v.YNc(4,Ce,3,3,"h1",2),v.TgZ(5,"div",3),v.YNc(6,ot,5,4,"mat-form-field",4),v.TgZ(7,"mat-form-field")(8,"mat-label"),v._uU(9),v.ALo(10,"translate"),v.qZA(),v._UZ(11,"input",5),v.TgZ(12,"mat-error"),v._uU(13),v.ALo(14,"translate"),v.qZA()(),v.YNc(15,Ue,5,4,"mat-form-field",6),v.qZA(),v.TgZ(16,"div",7)(17,"button",8),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.cancel())}),v._uU(18),v.ALo(19,"translate"),v.qZA(),v.TgZ(20,"button",9),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.submit())}),v._uU(21),v.ALo(22,"translate"),v.qZA()()()}if(2&dt){const je=v.oxw();v.xp6(1),v.Q6J("ngIf",0===je.dialogType),v.xp6(1),v.Q6J("ngIf",1===je.dialogType),v.xp6(1),v.Q6J("ngIf",2===je.dialogType),v.xp6(1),v.Q6J("ngIf",3===je.dialogType),v.xp6(2),v.Q6J("ngIf",2===je.dialogType),v.xp6(3),v.hij("",v.lcZ(10,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),v.xp6(2),v.Q6J("formControl",je.nameCtrl),v.xp6(2),v.hij(" ",je.invalidNameMessage.length?je.invalidNameMessage:v.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),v.xp6(2),v.Q6J("ngIf",2!==je.dialogType),v.xp6(3),v.hij(" ",v.lcZ(19,16,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),v.xp6(2),v.Q6J("disabled",je.loading||je.nameCtrl.invalid||je.descriptionCtrl.invalid),v.xp6(1),v.hij(" ",v.lcZ(22,18,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," ")}}var Z=(()=>{return(dt=Z||(Z={}))[dt.FACILITY=0]="FACILITY",dt[dt.RESOURCE=1]="RESOURCE",dt[dt.VO=2]="VO",dt[dt.GROUP=3]="GROUP",Z;var dt})();let lt=(()=>{class dt{constructor(je,at,It,Xt,gi,Zi,Ui,qi,Vn){this.dialogRef=je,this.data=at,this.notificator=It,this.translateService=Xt,this.facilitiesManager=gi,this.resourcesManager=Zi,this.groupsManager=Ui,this.vosManager=qi,this.store=Vn,this.invalidNameMessage=this.data.dialogType===Z.GROUP?this.store.getProperty("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===Z.GROUP?this.store.getProperty("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case Z.FACILITY:this.nameCtrl=new w.p4(this.data.facility.name,[w.kI.required,w.kI.pattern(".*[\\S]+.*"),w.kI.maxLength(129)]),this.descriptionCtrl=new w.p4(this.data.facility.description);break;case Z.RESOURCE:this.nameCtrl=new w.p4(this.data.resource.name,[w.kI.required,w.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new w.p4(this.data.resource.description);break;case Z.GROUP:{const je=this.data.group.name.split(":");this.nameCtrl=new w.p4(je[je.length-1],[w.kI.required,w.kI.pattern(".*[\\S]+.*"),w.kI.pattern(this.secondaryRegex),w.kI.maxLength(129)]),this.descriptionCtrl=new w.p4(this.data.group.description);break}case Z.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new w.p4(this.data.vo.name,[w.kI.required,w.kI.pattern(".*[\\S]+.*"),w.kI.maxLength(129)]),this.descriptionCtrl=new w.p4}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case Z.FACILITY:this.editFacility();break;case Z.RESOURCE:this.editResource();break;case Z.GROUP:this.editGroup();break;case Z.VO:this.editVo()}}editResource(){this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe(je=>{this.notificator.showSuccess(je),this.dialogRef.close(!0)})},()=>this.loading=!1)}editFacility(){this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe(je=>{this.notificator.showSuccess(je),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(je=>{const at=je;at.name=this.nameCtrl.value,at.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:at}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(It=>{this.notificator.showSuccess(It),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}editVo(){this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe(je=>{this.notificator.showSuccess(je),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(ee.V6),v.Y36(f.sK),v.Y36(W.IQ),v.Y36(W.xk),v.Y36(W.ff),v.Y36(W.YF),v.Y36(ee.d6))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-edit-facility-resource-group-vo-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title","",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],["mat-dialog-title",""],["disabled","","matInput","","required","",3,"value"],[1,"mt-3"],["cdkTextareaAutosize","","matInput","",1,"overflow-hidden",3,"formControl"]],template:function(je,at){if(1&je&&(v.YNc(0,De,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div"),v.YNc(3,ft,23,20,"div",1),v.qZA()),2&je){const It=v.MAs(1);v.xp6(2),v.Gre("",at.theme," position-relative"),v.xp6(1),v.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",It)}},dependencies:[e.O5,S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,M.TO,w.Fj,w.JJ,w.Q7,x.Nt,ce.IC,w.oH,ie.b,xe.e,f.X$]}),dt})();var Ae=p(64080),Ke=p(9244);function pe(dt,Wt){1&dt&&v._UZ(0,"perun-web-apps-loading-dialog")}const Ie=function(dt){return{interval:dt}};function Ne(dt,Wt){if(1&dt&&(v.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),v._uU(3),v.ALo(4,"translate"),v.qZA(),v._UZ(5,"input",9),v.qZA(),v.TgZ(6,"mat-form-field")(7,"mat-label"),v._uU(8),v.ALo(9,"translate"),v.qZA(),v._UZ(10,"input",9),v.ALo(11,"translate"),v.qZA(),v.TgZ(12,"mat-form-field")(13,"mat-label"),v._uU(14),v.ALo(15,"translate"),v.qZA(),v._UZ(16,"input",9),v.qZA(),v.TgZ(17,"mat-form-field")(18,"mat-label"),v._uU(19),v.ALo(20,"translate"),v.qZA(),v._UZ(21,"input",9),v.ALo(22,"translate"),v.qZA(),v.TgZ(23,"mat-form-field")(24,"mat-label"),v._uU(25),v.ALo(26,"translate"),v.qZA(),v._UZ(27,"input",9),v.ALo(28,"translate"),v.qZA()()),2&dt){const je=v.oxw(2);v.xp6(3),v.Oqu(v.lcZ(4,10,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")),v.xp6(2),v.Q6J("value",je.group.name),v.xp6(3),v.Oqu(v.lcZ(9,12,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")),v.xp6(2),v.Q6J("value",v.lcZ(11,14,je.syncType)),v.xp6(4),v.Oqu(v.lcZ(15,16,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")),v.xp6(2),v.Q6J("value",je.syncState),v.xp6(3),v.Oqu(v.lcZ(20,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")),v.xp6(2),v.Q6J("value",v.lcZ(22,20,je.syncTime)),v.xp6(4),v.Oqu(v.lcZ(26,22,"DIALOGS.GROUP_SYNC_DETAIL.SYNC_INTERVAL")),v.xp6(2),v.Q6J("value",v.xi3(28,24,"DIALOGS.GROUP_SYNC_DETAIL.SYNC_INTERVAL_MINUTES",v.VKq(27,Ie,je.syncInterval)))}}function we(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){v.CHM(je);const It=v.oxw(2);return v.KtG(It.onForce())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&dt){const je=v.oxw(2);v.Q6J("disabled",je.loading),v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}function Be(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"div")(1,"h1",2),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Ne,29,29,"div",3),v.TgZ(5,"div",4)(6,"div",5)(7,"button",6),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.onCancel())}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.YNc(10,we,3,4,"button",7),v.qZA()()()}if(2&dt){const je=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,4,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),v.xp6(2),v.Q6J("ngIf",je.group),v.xp6(4),v.hij(" ",v.lcZ(9,6,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "),v.xp6(2),v.Q6J("ngIf","BASIC"===je.type||"STRUCTURED"===je.type)}}let r=(()=>{class dt{constructor(je,at,It,Xt){this.dialogRef=je,this.data=at,this.groupService=It,this.notificator=Xt,this.loading=!0,this.syncInterval="",this.syncState="",this.syncTime="",this.syncType=""}ngOnInit(){this.theme=this.data.theme,this.loadGroup()}onCancel(){this.dialogRef.close(null)}onForce(){this.loading=!0,"BASIC"===this.type?this.groupService.forceGroupSynchronization(this.group.id).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},error:()=>this.loading=!1}):this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},error:()=>this.loading=!1})}refresh(){this.loadGroup()}loadGroup(){this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[Ae.r.GROUP_SYNC_ENABLED,Ae.r.GROUP_LAST_SYNC_STATE,Ae.r.GROUP_LAST_SYNC_TIMESTAMP,Ae.r.GROUP_STRUCTURE_SYNC_ENABLED,Ae.r.GROUP_LAST_STRUCTURE_SYNC_STATE,Ae.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,Ae.r.GROUP_SYNC_INTERVAL]).subscribe(je=>{this.group=je;const at=(0,Ke.IL)(this.group.attributes,Ae.r.GROUP_SYNC_ENABLED).value,It=(0,Ke.IL)(this.group.attributes,Ae.r.GROUP_LAST_SYNC_STATE).value,Xt=(0,Ke.IL)(this.group.attributes,Ae.r.GROUP_LAST_SYNC_TIMESTAMP).value,gi=(0,Ke.IL)(this.group.attributes,Ae.r.GROUP_STRUCTURE_SYNC_ENABLED).value,Zi=(0,Ke.IL)(this.group.attributes,Ae.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,Ui=(0,Ke.IL)(this.group.attributes,Ae.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,qi=(0,Ke.IL)(this.group.attributes,Ae.r.GROUP_SYNC_INTERVAL).value;this.syncInterval=null===qi?"N/A":(5*+qi).toString(),null!==at&&"true"===at&&(this.type="BASIC",this.syncType="DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC",this.syncState=""!==It?It:"OK",this.syncTime=(0,e.p6)(Xt,"YYYY-MM-dd H:mm:ss","en")),null!==gi&&gi&&(this.type="STRUCTURED",this.syncType="DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC",this.syncState=""!==Zi?Zi:"OK",this.syncTime=(0,e.p6)(Ui,"YYYY-MM-dd H:mm:ss","en")),this.loading=!1})}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.ff),v.Y36(ee.V6))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-group-sync-detail-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ms-auto"],["mat-flat-button","",1,"ms-2",3,"click"],["class","ms-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],["matInput","","readonly","",3,"value"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(je,at){if(1&je&&(v.YNc(0,pe,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div"),v.YNc(3,Be,11,8,"div",1),v.qZA()),2&je){const It=v.MAs(1);v.xp6(2),v.Gre("",at.theme," position-relative"),v.xp6(1),v.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",It)}},dependencies:[e.O5,S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,x.Nt,ie.b,xe.e,f.X$]}),dt})();function u(dt,Wt){1&dt&&v._UZ(0,"perun-web-apps-loading-dialog")}function _(dt,Wt){1&dt&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function C(dt,Wt){1&dt&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function h(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"div")(1,"h1",3),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",4)(5,"mat-form-field")(6,"mat-label"),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.TgZ(9,"input",5,6),v.NdJ("ngModelChange",function(It){v.CHM(je);const Xt=v.oxw();return v.KtG(Xt.subject=It)}),v.qZA(),v.YNc(11,_,3,3,"mat-error",7),v.qZA(),v.TgZ(12,"mat-form-field")(13,"mat-label"),v._uU(14),v.ALo(15,"translate"),v.qZA(),v.TgZ(16,"textarea",8,9),v.NdJ("ngModelChange",function(It){v.CHM(je);const Xt=v.oxw();return v.KtG(Xt.message=It)}),v.ALo(18,"translate"),v._uU(19," "),v.qZA(),v.YNc(20,C,3,3,"mat-error",7),v.qZA()(),v.TgZ(21,"div",10)(22,"div",11)(23,"button",12),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.dialogRef.close())}),v._uU(24),v.ALo(25,"translate"),v.qZA(),v.TgZ(26,"button",13),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.sendBugReport())}),v._uU(27),v.ALo(28,"translate"),v.qZA()()()()}if(2&dt){const je=v.MAs(10),at=v.MAs(17),It=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),v.xp6(5),v.Oqu(v.lcZ(8,13,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),v.xp6(2),v.Q6J("ngModel",It.subject),v.xp6(2),v.Q6J("ngIf",je.invalid),v.xp6(3),v.Oqu(v.lcZ(15,15,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),v.xp6(2),v.s9C("placeholder",v.lcZ(18,17,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),v.Q6J("ngModel",It.message),v.xp6(4),v.Q6J("ngIf",at.invalid),v.xp6(4),v.hij(" ",v.lcZ(25,19,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),v.xp6(2),v.Q6J("disabled",""===It.message||""===It.subject||It.loading),v.xp6(1),v.hij(" ",v.lcZ(28,21,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," ")}}let o=(()=>{class dt{constructor(je,at,It,Xt,gi,Zi){this.dialogRef=je,this.translate=at,this.notificator=It,this.rtMessages=Xt,this.data=gi,this.storeService=Zi,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(je=>{this.dialogRef.afterClosed().subscribe(()=>{const at="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),je.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(at)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const je=this.storeService.getProperty("config");let at=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(at=at.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),at=at.concat(this.data.error.message,"\n","Perun instance: ",je,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const It=/"password":".+?"/;let Xt=JSON.stringify(this.data.error.payload);Xt=Xt.replace(It,'"password":"####"'),at=at.concat("Payload:\n"+Xt+"\n\n")}return at=at.concat("Sent from new Perun Gui, version: ",p(4147).i8),at.split("\n").join("\n ")}parseMethod(je){return je&&this.methodRegexp.exec(je)[1]}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(f.sK),v.Y36(ee.V6),v.Y36(W.Hr),v.Y36(S.WI),v.Y36(ee.d6))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-bug-report-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"],["mat-dialog-actions",""],[1,"ms-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(je,at){if(1&je&&(v.YNc(0,u,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div",1),v.YNc(3,h,29,23,"div",2),v.qZA()),2&je){const It=v.MAs(1);v.xp6(3),v.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",It)}},dependencies:[e.O5,S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,M.TO,w.Fj,w.JJ,w.Q7,w.On,x.Nt,ie.b,xe.e,f.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),dt})(),n=(()=>{class dt{constructor(je,at,It){this.dialogRef=je,this.dialog=at,this.data=It}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const je=(0,Ke.kZ)();je.width="550px",je.data={error:this.data.error},je.autoFocus=!1,this.dialog.open(o,je)}),this.dialogRef.close()}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.uw),v.Y36(S.WI))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ms-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ms-2",3,"click"]],template:function(je,at){1&je&&(v.TgZ(0,"h1",0),v._uU(1),v.qZA(),v.TgZ(2,"div",1),v._uU(3),v.qZA(),v.TgZ(4,"div",2)(5,"div",3)(6,"button",4),v.NdJ("click",function(){return at.onBugReportClick()}),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.TgZ(9,"button",5),v.NdJ("click",function(){return at.onCloseClick()}),v._uU(10),v.ALo(11,"translate"),v.qZA()()()),2&je&&(v.xp6(1),v.Oqu(at.data.title),v.xp6(2),v.hij(" ",at.data.description,"\n"),v.xp6(3),v.Q6J("hidden","error"!==at.data.type),v.xp6(1),v.hij(" ",v.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),v.xp6(3),v.hij(" ",v.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[S.uh,S.xY,S.H8,m.lW,f.X$]}),dt})();var t=p(34447);function i(dt,Wt){1&dt&&v._UZ(0,"perun-web-apps-loading-dialog")}function a(dt,Wt){1&dt&&v._UZ(0,"th",14)}function l(dt,Wt){if(1&dt&&(v.TgZ(0,"td",15),v._uU(1),v.qZA()),2&dt){const je=Wt.$implicit;v.xp6(1),v.hij(" ",je.userExtSource.extSource.name," ")}}function d(dt,Wt){1&dt&&v._UZ(0,"tr",16)}function c(dt,Wt){1&dt&&v._UZ(0,"tr",17)}function s(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"div")(1,"h1",2),v._uU(2),v.ALo(3,"translate"),v.ALo(4,"customTranslate"),v.qZA(),v.TgZ(5,"div",3)(6,"p"),v._uU(7),v.ALo(8,"translate"),v.ALo(9,"customTranslate"),v.qZA(),v.TgZ(10,"div",4),v._uU(11),v.ALo(12,"translate"),v.ALo(13,"customTranslate"),v.qZA(),v.TgZ(14,"table",5),v.ynx(15,6),v.YNc(16,a,1,0,"th",7),v.YNc(17,l,2,1,"td",8),v.BQk(),v.YNc(18,d,1,0,"tr",9),v.YNc(19,c,1,0,"tr",10),v.qZA()(),v.TgZ(20,"div",11)(21,"button",12),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.onCancel())}),v._uU(22),v.ALo(23,"translate"),v.ALo(24,"customTranslate"),v.qZA(),v.TgZ(25,"button",13),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.onSubmit())}),v._uU(26),v.ALo(27,"translate"),v.ALo(28,"customTranslate"),v.qZA()()()}if(2&dt){const je=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,8,v.lcZ(4,10,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))," "),v.xp6(5),v.hij(" ",v.lcZ(8,12,v.lcZ(9,14,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),v.xp6(4),v.hij(" ",v.lcZ(12,16,v.lcZ(13,18,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),v.xp6(3),v.Q6J("dataSource",je.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",je.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",je.displayedColumns),v.xp6(3),v.hij(" ",v.lcZ(23,20,v.lcZ(24,22,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),v.xp6(4),v.hij(" ",v.lcZ(27,24,v.lcZ(28,26,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let E=(()=>{class dt{constructor(je,at,It,Xt,gi){this.dialogRef=je,this.data=at,this.usersManagerService=It,this.translate=Xt,this.notificator=gi,this.force=!1,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const je=this.data.extSources.map(at=>at.userExtSource.id);this.usersManagerService.removeUserExtSources(this.data.userId,je,this.force).subscribe({next:()=>{this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.Fv),v.Y36(ee.Te),v.Y36(ee.V6))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"fw-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","warn","mat-flat-button","",1,"ms-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(je,at){if(1&je&&(v.YNc(0,i,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div"),v.YNc(3,s,29,28,"div",1),v.qZA()),2&je){const It=v.MAs(1);v.xp6(2),v.Gre("",at.theme," position-relative"),v.xp6(1),v.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",It)}},dependencies:[A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,S.uh,S.xY,S.H8,m.lW,ie.b,xe.e,f.X$,t.a]}),dt})(),H=(()=>{class dt{constructor(je,at){this.dialogRef=je,this.data=at}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"cdkCopyToClipboard"]],template:function(je,at){1&je&&(v.TgZ(0,"h1",0),v._uU(1),v.qZA(),v.TgZ(2,"div",1)(3,"textarea",2),v._uU(4),v.qZA()(),v.TgZ(5,"div",3)(6,"button",4),v.NdJ("click",function(){return at.onCancel()}),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.TgZ(9,"button",5),v._uU(10),v.ALo(11,"translate"),v.qZA()()),2&je&&(v.xp6(1),v.Oqu(at.title),v.xp6(3),v.Oqu(at.value),v.xp6(3),v.hij(" ",v.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),v.xp6(2),v.Q6J("cdkCopyToClipboard",at.value),v.xp6(1),v.hij(" ",v.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[S.uh,S.xY,S.H8,m.lW,x.Nt,ce.IC,B.i3,f.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),dt})();function ne(dt,Wt){1&dt&&v._UZ(0,"th",12)}function ve(dt,Wt){if(1&dt&&(v.TgZ(0,"td",13),v._uU(1),v.qZA()),2&dt){const je=Wt.$implicit;v.xp6(1),v.Oqu(je.displayName)}}function We(dt,Wt){1&dt&&v._UZ(0,"tr",14)}function Mt(dt,Wt){1&dt&&v._UZ(0,"tr",15)}let pt=(()=>{class dt{constructor(je,at,It,Xt,gi){this.dialogRef=je,this.data=at,this.notificator=It,this.translate=Xt,this.attributesManager=gi,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new A.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){switch(this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"facility":"user"===this.data.secondEntity?this.attributesManager.setFacilityUserAttributes({facility:this.data.entityId,user:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"resource":switch(this.data.secondEntity){case"member":this.attributesManager.setMemberResourceAttributes({resource:this.data.entityId,member:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setResourceGroupAttributes({resource:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess())}}}onSuccess(){this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe(je=>{this.notificator.showSuccess(je),this.dialogRef.close(!0)})}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(ee.V6),v.Y36(f.sK),v.Y36(W.H8))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-edit-attribute-dialog"]],decls:23,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"fw-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","fw-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"fw-bolder"],["mat-row",""]],template:function(je,at){1&je&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"div"),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"div",2),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"table",3),v.ynx(11,4),v.YNc(12,ne,1,0,"th",5),v.YNc(13,ve,2,1,"td",6),v.BQk(),v.YNc(14,We,1,0,"tr",7),v.YNc(15,Mt,1,0,"tr",8),v.qZA()(),v.TgZ(16,"div",9)(17,"button",10),v.NdJ("click",function(){return at.onCancel()}),v._uU(18),v.ALo(19,"translate"),v.qZA(),v.TgZ(20,"button",11),v.NdJ("click",function(){return at.onSubmit()}),v._uU(21),v.ALo(22,"translate"),v.qZA()()),2&je&&(v.xp6(1),v.Oqu(v.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),v.xp6(4),v.hij(" ",v.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),v.xp6(3),v.hij(" ",v.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),v.xp6(2),v.Q6J("dataSource",at.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",at.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",at.displayedColumns),v.xp6(3),v.hij(" ",v.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),v.xp6(3),v.hij(" ",v.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},dependencies:[A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,S.uh,S.xY,S.H8,m.lW,f.X$]}),dt})(),_t=(()=>{class dt{constructor(je,at){this.dialogRef=je,this.data=at,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"click"]],template:function(je,at){1&je&&(v.TgZ(0,"h5",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),v._uU(6),v.ALo(7,"translate"),v.qZA(),v.TgZ(8,"textarea",2),v.NdJ("ngModelChange",function(Xt){return at.attributeValue=Xt}),v.qZA()()(),v.TgZ(9,"div",3)(10,"button",4),v.NdJ("click",function(){return at.cancel()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.TgZ(13,"button",5),v.NdJ("click",function(){return at.submit()}),v._uU(14),v.ALo(15,"translate"),v.qZA()()),2&je&&(v.xp6(1),v.hij(" ",v.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),v.xp6(5),v.hij(" ",v.lcZ(7,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.VALUE_LABEL")," "),v.xp6(2),v.Q6J("ngModel",at.attributeValue),v.xp6(3),v.hij(" ",v.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),v.xp6(3),v.hij(" ",v.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,w.Fj,w.JJ,w.On,x.Nt,ce.IC,f.X$]}),dt})(),ye=(()=>{class dt{constructor(je,at){this.dialogRef=je,this.data=at}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","fw-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ms-auto",3,"click"],["mat-flat-button","","color","warn",1,"ms-2",3,"click"]],template:function(je,at){1&je&&(v.TgZ(0,"h5",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"div"),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"div",2),v._uU(8),v.qZA()(),v.TgZ(9,"div",3)(10,"button",4),v.NdJ("click",function(){return at.cancel()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.TgZ(13,"button",5),v.NdJ("click",function(){return at.submit()}),v._uU(14),v.ALo(15,"translate"),v.qZA()()),2&je&&(v.xp6(1),v.hij(" ",v.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),v.xp6(4),v.hij(" ",v.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),v.xp6(3),v.hij(" ",at.data.name," "),v.xp6(3),v.hij(" ",v.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),v.xp6(3),v.hij(" ",v.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[S.uh,S.xY,S.H8,m.lW,f.X$]}),dt})();var Ee=p(98380);function oe(dt,Wt){if(1&dt&&(v.TgZ(0,"perun-web-apps-alert",9),v._uU(1),v.qZA()),2&dt){const je=v.oxw();v.xp6(1),v.Oqu(je.pendingEmailsMessage)}}function _e(dt,Wt){1&dt&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA()),2&dt&&(v.xp6(1),v.Oqu(v.lcZ(2,1,v.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let Te=(()=>{class dt{constructor(je,at,It,Xt,gi,Zi){this.dialogRef=je,this.data=at,this.translate=It,this.notificator=Xt,this.usersManagerService=gi,this.authService=Zi,this.pendingMails=[],It.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(Ui=>this.successMessage=Ui),It.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(Ui=>this.pendingEmailsMessageStart=Ui),It.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(Ui=>this.pendingEmailsMessageEnd=Ui)}ngOnInit(){this.emailControl=new w.p4(null,[w.kI.required,w.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(je=>{this.pendingMails=je.filter((It,Xt,gi)=>Xt===gi.indexOf(It));let at="";this.pendingMails.forEach(It=>at+=`${It===this.pendingMails[0]?"":", "}${It}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+at+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const at=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",at[0]+"//"+at[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(f.sK),v.Y36(ee.V6),v.Y36(W.Fv),v.Y36(ee.e8))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-change-email-dialog"]],decls:22,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],["alert_type","warn"]],template:function(je,at){1&je&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA(),v.TgZ(4,"div",1),v.YNc(5,oe,2,1,"perun-web-apps-alert",2),v.TgZ(6,"mat-form-field",3)(7,"mat-label"),v._uU(8),v.ALo(9,"translate"),v.ALo(10,"customTranslate"),v.qZA(),v._UZ(11,"input",4),v.YNc(12,_e,4,5,"mat-error",5),v.qZA()(),v.TgZ(13,"div",6)(14,"button",7),v.NdJ("click",function(){return at.onCancel()}),v._uU(15),v.ALo(16,"translate"),v.ALo(17,"customTranslate"),v.qZA(),v.TgZ(18,"button",8),v.NdJ("click",function(){return at.onSubmit()}),v._uU(19),v.ALo(20,"translate"),v.ALo(21,"customTranslate"),v.qZA()()),2&je&&(v.xp6(1),v.Oqu(v.lcZ(2,8,v.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),v.xp6(4),v.Q6J("ngIf",at.pendingMails.length),v.xp6(3),v.Oqu(v.lcZ(9,12,v.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),v.xp6(3),v.Q6J("formControl",at.emailControl),v.xp6(1),v.Q6J("ngIf",at.emailControl.invalid),v.xp6(3),v.hij(" ",v.lcZ(16,16,v.lcZ(17,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),v.xp6(3),v.Q6J("disabled",!at.emailControl.valid),v.xp6(1),v.hij(" ",v.lcZ(20,20,v.lcZ(21,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[e.O5,S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,M.TO,w.Fj,w.JJ,w.Q7,x.Nt,w.oH,Ee.w,f.X$,t.a]}),dt})();function ut(dt,Wt){1&dt&&(v.TgZ(0,"div",9),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function vt(dt,Wt){1&dt&&v._UZ(0,"th",16)}function Bt(dt,Wt){if(1&dt&&(v.TgZ(0,"td",17),v._uU(1),v.qZA()),2&dt){const je=Wt.$implicit;v.xp6(1),v.Oqu(je)}}function Rt(dt,Wt){1&dt&&v._UZ(0,"tr",18)}function Ot(dt,Wt){1&dt&&v._UZ(0,"tr",19)}function si(dt,Wt){if(1&dt&&(v.TgZ(0,"table",10),v.ynx(1,11),v.YNc(2,vt,1,0,"th",12),v.YNc(3,Bt,2,1,"td",13),v.BQk(),v.YNc(4,Rt,1,0,"tr",14),v.YNc(5,Ot,1,0,"tr",15),v.qZA()),2&dt){const je=v.oxw();v.Q6J("dataSource",je.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",je.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",je.displayedColumns)}}function hi(dt,Wt){if(1&dt&&(v.TgZ(0,"perun-web-apps-alert",20),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt){const je=v.oxw();v.Q6J("alert_type","warn"),v.xp6(1),v.hij(" ",v.lcZ(2,2,je.data.alert)," ")}}function kt(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"button",21),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.onSubmit())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," "))}function xt(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"button",22),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.onSubmit())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))}let Se=(()=>{class dt{constructor(je,at){this.dialogRef=je,this.data=at,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:17,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","fw-bold",4,"ngIf"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],[3,"alert_type",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["mat-flat-button","","class","ms-2","color","warn",3,"click",4,"ngIf"],["mat-flat-button","","class","ms-2","color","accent",3,"click",4,"ngIf"],[1,"fw-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ms-2",3,"click"],["mat-flat-button","","color","accent",1,"ms-2",3,"click"]],template:function(je,at){1&je&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",1)(5,"p"),v._uU(6),v.ALo(7,"translate"),v.qZA(),v.YNc(8,ut,3,3,"div",2),v.YNc(9,si,6,3,"table",3),v.YNc(10,hi,3,4,"perun-web-apps-alert",4),v.qZA(),v.TgZ(11,"div",5)(12,"button",6),v.NdJ("click",function(){return at.onCancel()}),v._uU(13),v.ALo(14,"translate"),v.qZA(),v.YNc(15,kt,3,3,"button",7),v.YNc(16,xt,3,3,"button",8),v.qZA()()),2&je&&(v.Tol(at.theme),v.xp6(2),v.Oqu(v.lcZ(3,11,at.data.title)),v.xp6(4),v.hij(" ",v.lcZ(7,13,at.data.description)," "),v.xp6(2),v.Q6J("ngIf",at.data.showAsk),v.xp6(1),v.Q6J("ngIf",at.data.items.length),v.xp6(1),v.Q6J("ngIf",at.data.alert),v.xp6(3),v.hij(" ",v.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),v.xp6(2),v.Q6J("ngIf","remove"===at.data.type),v.xp6(1),v.Q6J("ngIf","confirmation"===at.data.type))},dependencies:[e.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,S.uh,S.xY,S.H8,m.lW,Ee.w,f.X$]}),dt})();var Je=p(57851);let le=(()=>{class dt{transform(je){const at=je.split(":");return at[at.length-1]}}return dt.\u0275fac=function(je){return new(je||dt)},dt.\u0275pipe=v.Yjl({name:"parseGroupName",type:dt,pure:!0}),dt})();function tt(dt,Wt){1&dt&&v._UZ(0,"perun-web-apps-loading-dialog")}function rt(dt,Wt){1&dt&&(v.TgZ(0,"perun-web-apps-alert"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Ft(dt,Wt){1&dt&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function wt(dt,Wt){1&dt&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const zt=function(dt){return{"min-width":dt}};function ii(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"mat-tree-node",16)(1,"li",17)(2,"div",18),v.NdJ("click",function(){const Xt=v.CHM(je).$implicit,gi=v.oxw(4);return v.KtG(gi.navigate(Xt.id,Xt.include))}),v._UZ(3,"button",19),v.TgZ(4,"div",20)(5,"span"),v._uU(6),v.ALo(7,"parseGroupName"),v.qZA(),v.YNc(8,Ft,3,3,"span",21),v.YNc(9,wt,3,3,"span",21),v.qZA(),v.TgZ(10,"span",22),v._uU(11),v.qZA()()()()}if(2&dt){const je=Wt.$implicit,at=v.oxw(4);v.xp6(2),v.ekj("cursor-pointer",je.direct||je.include)("act-disabled",!je.direct&&!je.include),v.xp6(2),v.Q6J("ngStyle",v.VKq(11,zt,at.getMinWidth(je.level))),v.xp6(2),v.Oqu(v.lcZ(7,9,je.name)),v.xp6(2),v.Q6J("ngIf",je.direct),v.xp6(1),v.Q6J("ngIf",je.include),v.xp6(2),v.Oqu(je.description)}}function xi(dt,Wt){1&dt&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function mt(dt,Wt){1&dt&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Vt(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"mat-nested-tree-node")(1,"li")(2,"div",17)(3,"button",24)(4,"mat-icon",25),v._uU(5),v.qZA()(),v.TgZ(6,"div",18),v.NdJ("click",function(){const Xt=v.CHM(je).$implicit,gi=v.oxw(4);return v.KtG(gi.navigate(Xt.id,Xt.include))}),v.TgZ(7,"div",20)(8,"span"),v._uU(9),v.ALo(10,"parseGroupName"),v.qZA(),v.YNc(11,xi,3,3,"span",21),v.YNc(12,mt,3,3,"span",21),v.qZA(),v.TgZ(13,"span",22),v._uU(14),v.qZA()()(),v.TgZ(15,"ul"),v.GkF(16,26),v.qZA()()()}if(2&dt){const je=Wt.$implicit,at=v.oxw(4);v.xp6(3),v.uIk("aria-label","Toggle "+je.name),v.xp6(2),v.hij(" ",at.treeControl.isExpanded(je)?"expand_more":"chevron_right"," "),v.xp6(1),v.ekj("cursor-pointer",je.direct||je.include)("act-disabled",!je.direct&&!je.include),v.xp6(1),v.Q6J("ngStyle",v.VKq(15,zt,at.getMinWidth(je.level))),v.xp6(2),v.Oqu(v.lcZ(10,13,je.name)),v.xp6(2),v.Q6J("ngIf",je.direct),v.xp6(1),v.Q6J("ngIf",je.include),v.xp6(2),v.Oqu(je.description),v.xp6(1),v.ekj("example-tree-invisible",!at.treeControl.isExpanded(je))}}function gt(dt,Wt){if(1&dt&&(v.TgZ(0,"mat-tree",13),v.YNc(1,ii,12,13,"mat-tree-node",14),v.YNc(2,Vt,17,17,"mat-nested-tree-node",15),v.qZA()),2&dt){const je=v.oxw(3);v.Q6J("dataSource",je.dataSource)("treeControl",je.treeControl),v.xp6(2),v.Q6J("matTreeNodeDefWhen",je.hasChild)}}function Ut(dt,Wt){if(1&dt&&(v.TgZ(0,"div",8)(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"mat-form-field",9)(5,"mat-label"),v._uU(6),v.ALo(7,"translate"),v.qZA(),v._UZ(8,"input",10),v.qZA(),v.YNc(9,rt,3,3,"perun-web-apps-alert",11),v.YNc(10,gt,3,3,"mat-tree",12),v.qZA()),2&dt){const je=v.oxw(2);v.xp6(2),v.Oqu(v.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),v.xp6(4),v.hij(" ",v.lcZ(7,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")," "),v.xp6(2),v.Q6J("formControl",je.formControl),v.xp6(1),v.Q6J("ngIf",!je.dataSource.data.length),v.xp6(1),v.Q6J("ngIf",je.dataSource.data.length)}}const Kt=function(dt){return{name:dt}};function ni(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"div")(1,"h1",3),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Ut,11,9,"div",4),v.TgZ(5,"div",5)(6,"div",6)(7,"button",7),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.onCancel())}),v._uU(8),v.ALo(9,"translate"),v.qZA()()()()}if(2&dt){const je=v.oxw();v.xp6(2),v.hij(" ",v.xi3(3,3,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",v.VKq(8,Kt,je.userName))," "),v.xp6(2),v.Q6J("ngIf",je.dataSource),v.xp6(4),v.hij(" ",v.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," ")}}let ci=(()=>{class dt{constructor(je,at,It){this.dialogRef=je,this.data=at,this.groupsManagerService=It,this.treeControl=new Je.VY(Xt=>Xt.children),this.dataSource=new be.WX,this.formControl=new w.p4(""),this.userName="",this.groupTree=[],this.paths=[],this.hasChild=(Xt,gi)=>!!gi.children&&gi.children.length>0}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(je=>{this.paths=je,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(je=>{const at=je.trim().toLowerCase(),It=this.paths.filter(Xt=>Xt.filter(gi=>gi.name.includes(at)).length);this.createGroupTree(It),this.dataSource.data=this.groupTree}),this.userName=(0,Ke.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(je,at=!1){window.open(`/organizations/${this.data.member.voId}/groups/${je}${at?"/settings/relations":""}`,"_blank")}getMinWidth(je){return String(400-40*je)+"px"}recursiveSearch(je,at,It){for(const gi of je)if(gi.name===at[It].name)return at.length===It+1?(gi.direct=!0,je):(gi.children=at[++It].name.includes(at[It-1].name)?this.recursiveSearch(gi.children,at,It):[{name:at[It].name,id:at[It-1].id,description:at[It].description,direct:!1,include:!0,level:It,children:[]}].concat(gi.children),je);return je.push({name:at[It].name,id:at[It].id,description:at[It].description,direct:!1,include:!1,level:It,children:[]}),this.recursiveSearch(je,at,It)}createGroupTree(je){this.groupTree=[],je.forEach(at=>{this.groupTree=this.recursiveSearch(this.groupTree,at,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.ff))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-member-tree-view-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"group-theme","position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","","class","me-0",4,"ngIf"],["mat-dialog-actions",""],[1,"ms-auto"],["mat-flat-button","",3,"click"],["mat-dialog-content","",1,"me-0"],[1,"filter-field","ms-2"],["matInput","",3,"formControl"],[4,"ngIf"],["class","example-tree",3,"dataSource","treeControl",4,"ngIf"],[1,"example-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],[1,"row","flex-nowrap",3,"click"],["mat-icon-button",""],[1,"mt-auto","mb-auto",3,"ngStyle"],["class","text-muted ms-2",4,"ngIf"],[1,"text-muted","ms-3"],[1,"text-muted","ms-2"],["mat-icon-button","","matTreeNodeToggle",""],[1,"me-3"],["matTreeNodeOutlet",""]],template:function(je,at){if(1&je&&(v.YNc(0,tt,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div",1),v.YNc(3,ni,10,10,"div",2),v.qZA()),2&je){const It=v.MAs(1);v.xp6(3),v.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",It)}},dependencies:[e.O5,e.PC,S.uh,S.xY,S.H8,m.lW,m.RK,M.KE,M.hX,w.Fj,w.JJ,x.Nt,w.oH,I.Hw,Ee.w,ie.b,xe.e,be.GZ,be.fQ,be.eu,be.gi,be.uo,be.Ar,f.X$,le],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.act-disabled[_ngcontent-%COMP%]{pointer-events:none}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),dt})(),Ai=(()=>{class dt{constructor(je,at){this.dialogRef=je,this.router=at}onClose(){this.router.navigate([],{queryParamsHandling:"preserve"}),this.dialogRef.close()}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(Q.F0))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"]],template:function(je,at){1&je&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),v._uU(5),v.ALo(6,"translate"),v.qZA()(),v.TgZ(7,"div",3)(8,"button",4),v.NdJ("click",function(){return at.onClose()}),v._uU(9),v.ALo(10,"translate"),v.qZA()()),2&je&&(v.xp6(1),v.hij(" ",v.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),v.xp6(4),v.Oqu(v.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),v.xp6(4),v.hij(" ",v.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[S.uh,S.xY,S.H8,m.lW,Ee.w,f.X$]}),dt})();var Di=p(62383);function St(dt,Wt){1&dt&&(v.TgZ(0,"mat-radio-button",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function Gt(dt,Wt){1&dt&&(v.TgZ(0,"mat-radio-button",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function J(dt,Wt){1&dt&&(v.TgZ(0,"perun-web-apps-alert",19),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let He=(()=>{class dt{constructor(je){this.dialogRef=je,this.canExtendMembership=!1,this.expirationChanged=new v.vpe,this.statusChange=new v.vpe,this.expirationControl=new w.p4(null)}ngOnInit(){const je=new Date;this.currentDate=(0,e.p6)(new Date(je.getFullYear(),je.getMonth(),je.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate(je){return(0,e.p6)(je,"yyyy-MM-dd","en_US")}onChange(){"EXPIRED"===this.status&&("never"===this.newExpiration||this.parseDate(this.expirationControl.value)>this.currentDate)&&this.statusChange.emit(!0),this.expirationChanged.emit(this.newExpiration)}onCancel(){this.dialogRef.close({success:!1})}setExpiration(){this.newExpiration=(0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode",status:"status",backButton:"backButton"},outputs:{expirationChanged:"expirationChanged",statusChange:"statusChange"},decls:39,vars:39,consts:[[1,"member-theme"],["mat-dialog-content",""],[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer",3,"click"],["readonly","","matInput","",1,"disable",3,"min","max","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["class","bottom-padding","value","voRules",4,"ngIf"],["class","bottom-padding","value","groupRules",4,"ngIf"],["value","never"],[1,"cursor-pointer"],["alert_type","info",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"],["value","voRules",1,"bottom-padding"],["value","groupRules",1,"bottom-padding"],["alert_type","info"]],template:function(je,at){if(1&je){const It=v.EpF();v.TgZ(0,"div",0)(1,"div",1)(2,"p")(3,"strong"),v._uU(4),v.ALo(5,"translate"),v.qZA(),v._uU(6),v.ALo(7,"parseDate"),v.qZA(),v.TgZ(8,"p")(9,"strong"),v._uU(10),v.ALo(11,"translate"),v.qZA(),v._uU(12),v.ALo(13,"parseDate"),v.qZA(),v.TgZ(14,"mat-radio-group",2),v.NdJ("ngModelChange",function(gi){return at.newExpiration=gi}),v.TgZ(15,"mat-radio-button",3)(16,"mat-form-field",4),v.NdJ("click",function(){v.CHM(It);const gi=v.MAs(23);return v.KtG(gi.open())}),v.TgZ(17,"mat-label"),v._uU(18),v.ALo(19,"translate"),v.qZA(),v.TgZ(20,"input",5),v.NdJ("dateChange",function(){return at.setExpiration()}),v.qZA(),v._UZ(21,"mat-datepicker-toggle",6)(22,"mat-datepicker",7,8),v.qZA()(),v.YNc(24,St,3,3,"mat-radio-button",9),v.YNc(25,Gt,3,3,"mat-radio-button",10),v.TgZ(26,"mat-radio-button",11)(27,"span",12),v._uU(28),v.ALo(29,"translate"),v.qZA()()(),v.YNc(30,J,3,3,"perun-web-apps-alert",13),v.qZA(),v.TgZ(31,"div",14)(32,"button",15),v.NdJ("click",function(){return at.onCancel()}),v._uU(33),v.ALo(34,"translate"),v.ALo(35,"translate"),v.qZA(),v.TgZ(36,"button",16),v.NdJ("click",function(){return at.onChange()}),v._uU(37),v.ALo(38,"translate"),v.qZA()()()}if(2&je){const It=v.MAs(23);v.xp6(4),v.Oqu(v.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),v.xp6(2),v.hij(" ",v.lcZ(7,23,at.currentExpiration)," "),v.xp6(4),v.Oqu(v.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),v.xp6(2),v.hij(" ",at.newExpiration?v.lcZ(13,27,at.newExpiration):"never"," "),v.xp6(2),v.Q6J("ngModel",at.newExpiration),v.xp6(1),v.s9C("value",at.expirationControl.value),v.xp6(3),v.Oqu(v.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),v.xp6(2),v.Q6J("min",at.minDate)("max",at.maxDate)("formControl",at.expirationControl)("matDatepicker",It),v.xp6(1),v.Q6J("for",It)("disabled",!1),v.xp6(1),v.Q6J("disabled",!1),v.xp6(2),v.Q6J("ngIf",at.canExtendMembership&&"vo"===at.mode),v.xp6(1),v.Q6J("ngIf",at.canExtendMembership&&"group"===at.mode),v.xp6(3),v.hij(" ",v.lcZ(29,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),v.xp6(2),v.Q6J("ngIf","EXPIRED"===at.status&&("never"===at.newExpiration||at.parseDate(at.expirationControl.value)>at.currentDate)),v.xp6(3),v.hij(" ",at.backButton?v.lcZ(34,33,"DIALOGS.CHANGE_EXPIRATION.BACK"):v.lcZ(35,35,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),v.xp6(3),v.Q6J("disabled",at.expirationControl.invalid),v.xp6(1),v.hij(" ",v.lcZ(38,37,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},dependencies:[e.O5,S.xY,S.H8,m.lW,M.KE,M.hX,M.R9,w.Fj,w.JJ,w.On,x.Nt,F.VQ,F.U0,T.Mq,T.hl,T.nW,w.oH,Ee.w,f.X$,Di.M],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bottom-padding[_ngcontent-%COMP%]{padding-bottom:20px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),dt})();function bt(dt,Wt){1&dt&&v._UZ(0,"perun-web-apps-loading-dialog")}function Pt(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"div")(1,"h1",3),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-change-expiration-dialog",4),v.NdJ("statusChange",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.changeStatus=!0)})("expirationChanged",function(It){v.CHM(je);const Xt=v.oxw();return v.KtG(Xt.onExpirationChanged(It))}),v.qZA()()}if(2&dt){const je=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("minDate",je.minDate)("maxDate",je.maxDate)("currentExpiration",je.currentExpiration)("newExpiration",je.newExpiration)("canExtendMembership",je.canExtendMembership)("mode","group")("status",je.status)("backButton",je.backButton)}}let ui=(()=>{class dt{constructor(je,at,It,Xt,gi,Zi,Ui){this.dialogRef=je,this.data=at,this.attributesManagerService=It,this.memberManager=Xt,this.groupManager=gi,this.translate=Zi,this.notificator=Ui,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,Zi.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(qi=>this.successMessage=qi)}ngOnInit(){this.status=this.data.status,this.backButton=this.data.backButton,this.loading=!0;const je=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(je.getFullYear(),je.getMonth(),je.getDate()):this.minDate=new Date(je.getFullYear(),je.getMonth(),je.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,Ae.r.GROUP_DEF_EXPIRATION_RULES).subscribe({next:at=>{null!==at.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe({next:It=>{this.canExtendMembership=!!It,this.loading=!1},error:()=>this.loading=!1}):this.loading=!1},error:()=>this.loading=!1}):this.loading=!1}onExpirationChanged(je){this.loading=!0,"groupRules"===je?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},error:()=>this.loading=!1}):(this.expirationAttr.value="never"===je?null:je,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe({next:()=>{this.changeStatus&&"EXPIRED"===this.status?this.groupManager.setGroupsMemberStatus(this.data.memberId,this.data.groupId,"VALID").subscribe({next:at=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(It=>{this.notificator.showSuccess(It),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:at})})},error:()=>this.loading=!1}):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},error:()=>this.loading=!1}))}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.H8),v.Y36(W.uq),v.Y36(W.ff),v.Y36(f.sK),v.Y36(ee.V6))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-change-group-expiration-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"member-theme","position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged"]],template:function(je,at){if(1&je&&(v.YNc(0,bt,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div",1),v.YNc(3,Pt,5,11,"div",2),v.qZA()),2&je){const It=v.MAs(1);v.xp6(3),v.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",It)}},dependencies:[S.uh,ie.b,xe.e,He,f.X$]}),dt})();var vi=p(13469);function Bi(dt,Wt){1&dt&&v._UZ(0,"perun-web-apps-loading-dialog")}function $i(dt,Wt){1&dt&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY"),""))}function ki(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"div")(1,"h1",3),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",4)(5,"form",5)(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),v._uU(9),v.ALo(10,"translate"),v.qZA(),v._UZ(11,"input",8),v.TgZ(12,"mat-icon",9),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.showOldPassword=!It.showOldPassword)}),v._uU(13),v.qZA(),v.YNc(14,$i,3,3,"mat-error",10),v.qZA(),v._UZ(15,"perun-web-apps-password-form",11),v.qZA()()(),v.TgZ(16,"div",12)(17,"div",13)(18,"button",14),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.close())}),v._uU(19),v.ALo(20,"translate"),v.qZA(),v.TgZ(21,"button",15),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.changePassword())}),v._uU(22),v.ALo(23,"translate"),v.qZA()()()()}if(2&dt){const je=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")," "),v.xp6(3),v.Q6J("formGroup",je.formGroup),v.xp6(4),v.hij(" ",v.lcZ(10,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")," "),v.xp6(2),v.Q6J("type",je.showOldPassword?"text":"password"),v.xp6(2),v.hij(" ",je.showOldPassword?"visibility_off":"visibility"," "),v.xp6(1),v.Q6J("ngIf",je.oldPwd.hasError("required")),v.xp6(1),v.Q6J("formGroup",je.formGroup)("namespace",je.data.namespace),v.xp6(4),v.hij(" ",v.lcZ(20,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),v.xp6(2),v.Q6J("disabled",je.formGroup.invalid||je.formGroup.pending||je.loading),v.xp6(1),v.hij(" ",v.lcZ(23,17,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let sn=(()=>{class dt{constructor(je,at,It,Xt,gi,Zi,Ui){this.dialogRef=je,this.data=at,this._formBuilder=It,this.usersManagerService=Xt,this.apiRequestConfiguration=gi,this.notificator=Zi,this.translate=Ui,this.showOldPassword=!1,Ui.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(qi=>this.successMessage=qi)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",w.kI.required],passwordCtrl:["",w.kI.required,[(0,fe.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:Ke.dN.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(w.QS),v.Y36(W.Fv),v.Y36(ee.F5),v.Y36(ee.V6),v.Y36(f.sK))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-change-password-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"user-theme","position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"formGroup"],[1,"display-flex"],["subscriptSizing","dynamic"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],["mat-dialog-actions",""],[1,"ms-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"disabled","click"]],template:function(je,at){if(1&je&&(v.YNc(0,Bi,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div",1),v.YNc(3,ki,24,19,"div",2),v.qZA()),2&je){const It=v.MAs(1);v.xp6(3),v.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",It)}},dependencies:[e.O5,S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,M.TO,M.R9,w._Y,w.Fj,w.JJ,w.JL,w.Q7,x.Nt,w.sg,w.u,I.Hw,ie.b,xe.e,vi.G,f.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),dt})();function _n(dt,Wt){1&dt&&v._UZ(0,"perun-web-apps-loading-dialog")}function Li(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"div")(1,"h1",3),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-change-expiration-dialog",4),v.NdJ("statusChange",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.changeStatus=!0)})("expirationChanged",function(It){v.CHM(je);const Xt=v.oxw();return v.KtG(Xt.onExpirationChanged(It))}),v.qZA()()}if(2&dt){const je=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("minDate",je.minDate)("maxDate",je.maxDate)("currentExpiration",je.currentExpiration)("newExpiration",je.newExpiration)("canExtendMembership",je.canExtendMembership)("mode","vo")("status",je.status)("backButton",je.backButton)}}let Un=(()=>{class dt{constructor(je,at,It,Xt,gi,Zi){this.dialogRef=je,this.data=at,this.attributesManagerService=It,this.memberManager=Xt,this.translate=gi,this.notificator=Zi,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,gi.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(Ui=>this.successMessage=Ui)}ngOnInit(){this.status=this.data.status,this.backButton=this.data.backButton,this.loading=!0;const je=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(je.getFullYear(),je.getMonth(),je.getDate()):this.minDate=new Date(je.getFullYear(),je.getMonth(),je.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,Ae.r.VO_DEF_EXPIRATION_RULES).subscribe({next:at=>{null!==at.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe({next:It=>{this.canExtendMembership=!!It,this.loading=!1},error:()=>this.loading=!1}):this.loading=!1},error:()=>this.loading=!1}):this.loading=!1}onExpirationChanged(je){this.loading=!0,"voRules"===je?this.memberManager.extendMembership(this.data.memberId).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},error:()=>this.loading=!1}):(this.expirationAttr.value="never"===je?null:je,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe({next:()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe({next:at=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(It=>{this.notificator.showSuccess(It),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:at})})},error:()=>this.loading=!1}):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},error:()=>this.loading=!1}))}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.H8),v.Y36(W.uq),v.Y36(f.sK),v.Y36(ee.V6))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-change-vo-expiration-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"member-theme","position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged"]],template:function(je,at){if(1&je&&(v.YNc(0,_n,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div",1),v.YNc(3,Li,5,11,"div",2),v.qZA()),2&je){const It=v.MAs(1);v.xp6(3),v.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",It)}},dependencies:[S.uh,ie.b,xe.e,He,f.X$]}),dt})();function Xn(dt,Wt){1&dt&&v._UZ(0,"perun-web-apps-loading-dialog")}function lr(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"div")(1,"h1",3),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-change-expiration-dialog",4),v.NdJ("expirationChanged",function(It){v.CHM(je);const Xt=v.oxw();return v.KtG(Xt.onExpirationChanged(It))}),v.qZA()()}if(2&dt){const je=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,5,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("minDate",je.minDate)("currentExpiration",je.currentExpiration)("newExpiration",je.newExpiration)("mode","sponsor")}}let Wn=(()=>{class dt{constructor(je,at,It,Xt,gi,Zi,Ui){this.dialogRef=je,this.data=at,this.attributesManagerService=It,this.memberManager=Xt,this.groupManager=gi,this.translate=Zi,this.notificator=Ui,this.loading=!1,Zi.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(qi=>this.successMessage=qi)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const je=new Date;this.minDate=new Date(je.getFullYear(),je.getMonth(),je.getDate()),this.loading=!1}onExpirationChanged(je){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===je?null:je).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.H8),v.Y36(W.uq),v.Y36(W.ff),v.Y36(f.sK),v.Y36(ee.V6))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-change-sponsorship-expiration-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"member-theme","position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged"]],template:function(je,at){if(1&je&&(v.YNc(0,Xn,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div",1),v.YNc(3,lr,5,7,"div",2),v.qZA()),2&je){const It=v.MAs(1);v.xp6(3),v.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",It)}},dependencies:[S.uh,ie.b,xe.e,He,f.X$]}),dt})();function rn(dt,Wt){1&dt&&v._UZ(0,"perun-web-apps-loading-dialog")}function Bn(dt,Wt){if(1&dt&&(v.TgZ(0,"p",11),v._uU(1),v.TgZ(2,"span",12),v._uU(3),v.qZA(),v._uU(4),v.TgZ(5,"span",12),v._uU(6),v.qZA()()),2&dt){const je=v.oxw(2);v.xp6(1),v.hij(" ",je.group.name," "),v.xp6(2),v.hij("#",je.group.id,""),v.xp6(1),v.hij(" - ",je.resource.name," "),v.xp6(2),v.hij("#",je.resource.id,"")}}function xn(dt,Wt){1&dt&&(v.TgZ(0,"span",13),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function un(dt,Wt){1&dt&&(v.TgZ(0,"span",13),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function er(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"mat-radio-group",14),v.NdJ("ngModelChange",function(It){v.CHM(je);const Xt=v.oxw(2);return v.KtG(Xt.asyncValidation=It)}),v.TgZ(1,"span",15),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"mat-radio-button",16),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"mat-radio-button",16),v._uU(8),v.ALo(9,"translate"),v.qZA()()}if(2&dt){const je=v.oxw(2);v.Q6J("ngModel",je.asyncValidation),v.xp6(2),v.hij(" ",v.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),v.xp6(2),v.Q6J("value",!1),v.xp6(1),v.hij(" ",v.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),v.xp6(2),v.Q6J("value",!0),v.xp6(1),v.hij(" ",v.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function ln(dt,Wt){1&dt&&(v.TgZ(0,"span",13),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function tn(dt,Wt){1&dt&&(v.TgZ(0,"span",13),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function Br(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"div")(1,"h1",2),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",3),v.YNc(5,Bn,7,4,"p",4),v.TgZ(6,"p")(7,"strong",5),v._uU(8),v.ALo(9,"translate"),v.qZA(),v._uU(10),v.qZA(),v.TgZ(11,"p")(12,"strong",5),v._uU(13),v.ALo(14,"translate"),v.qZA(),v._uU(15),v.qZA(),v.YNc(16,xn,3,3,"span",6),v.YNc(17,un,3,3,"span",6),v.YNc(18,er,10,12,"mat-radio-group",7),v.YNc(19,ln,3,3,"span",6),v.YNc(20,tn,3,3,"span",6),v.qZA(),v.TgZ(21,"div",8)(22,"button",9),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.onCancel())}),v._uU(23),v.ALo(24,"translate"),v.qZA(),v.TgZ(25,"button",10),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.onSubmit())}),v._uU(26),v.ALo(27,"translate"),v.qZA()()()}if(2&dt){const je=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,14,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),v.xp6(3),v.Q6J("ngIf",je.group&&je.resource),v.xp6(3),v.hij(" ",v.lcZ(9,16,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),v.xp6(2),v.hij(" ",je.status," "),v.xp6(3),v.hij(" ",v.lcZ(14,18,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),v.xp6(2),v.hij(" ",je.getReversedStatus()," "),v.xp6(1),v.Q6J("ngIf","INACTIVE"===je.status||"FAILED"===je.status),v.xp6(1),v.Q6J("ngIf","ACTIVE"===je.status),v.xp6(1),v.Q6J("ngIf","INACTIVE"===je.status||"FAILED"===je.status),v.xp6(1),v.Q6J("ngIf",("INACTIVE"===je.status||"FAILED"===je.status)&&!1===je.asyncValidation),v.xp6(1),v.Q6J("ngIf",("INACTIVE"===je.status||"FAILED"===je.status)&&!0===je.asyncValidation),v.xp6(3),v.hij(" ",v.lcZ(24,20,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),v.xp6(2),v.Q6J("disabled",je.loading),v.xp6(1),v.hij(" ",v.lcZ(27,22,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===je.status?"DEACTIVATE":"ACTIVATE"))," ")}}let zi=(()=>{class dt{constructor(je,at,It,Xt){this.dialogRef=je,this.data=at,this.resourceService=It,this.groupService=Xt,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(je=>{this.resource=je,this.groupService.getGroupById(this.data.groupId).subscribe(at=>{this.group=at,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.xk),v.Y36(W.ff))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:4,vars:5,consts:[["spinner",""],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],["class","mb-4",4,"ngIf"],[1,"me-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto","me-2",3,"click"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"],[1,"mb-4"],[1,"text-muted","id-font"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"fw-bold"],[3,"value"]],template:function(je,at){if(1&je&&(v.YNc(0,rn,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div"),v.YNc(3,Br,28,24,"div",1),v.qZA()),2&je){const It=v.MAs(1);v.xp6(2),v.Gre("",at.theme," position-relative"),v.xp6(1),v.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",It)}},dependencies:[e.O5,S.uh,S.xY,S.H8,m.lW,w.JJ,w.On,F.VQ,F.U0,ie.b,xe.e,f.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),dt})();var Yn=p(90995);let tr=(()=>{class dt{constructor(je,at,It,Xt,gi){this.dialogRef=je,this.data=at,this.notificator=It,this.usersService=Xt,this.translate=gi,this.force=!1,this.displayedColumns=["name"],this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by([this.data.user]),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.VO_RELATION"))}onCancel(){this.dialogRef.close(!1)}anonymizeUser(){this.loading=!0,this.usersService.anonymizeUser(this.data.user.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ANONYMIZE_USER.SUCCESS_NOTIFICATION")),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(je){this.force=je.force,je.deleted?this.anonymizeUser():this.onCancel()}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(ee.V6),v.Y36(W.Fv),v.Y36(f.sK))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-anonymize-user-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","loading","anonymize","deleted"]],template:function(je,at){1&je&&(v.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),v.NdJ("deleted",function(Xt){return at.onSubmit(Xt)}),v.qZA()()),2&je&&(v.Tol(at.theme),v.xp6(1),v.Q6J("entityNames",at.dataSource)("entityType","user")("relations",at.relations)("loading",at.loading)("anonymize",!0))},dependencies:[Yn.e]}),dt})(),Nn=(()=>{class dt{constructor(je){this.dialogRef=je}close(){this.dialogRef.close()}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-export-data-dialog"]],decls:6,vars:4,consts:[[1,"loading-container"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"me-auto","ms-auto",3,"diameter"]],template:function(je,at){1&je&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",2),v._UZ(5,"mat-spinner",3),v.qZA()()),2&je&&(v.xp6(2),v.hij(" ",v.lcZ(3,2,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_LOADING")," "),v.xp6(3),v.Q6J("diameter",50))},dependencies:[S.uh,S.xY,P.Ou,f.X$],styles:[".loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}"]}),dt})();function On(dt,Wt){if(1&dt&&(v.TgZ(0,"mat-option",13),v._uU(1),v.qZA()),2&dt){const je=Wt.$implicit,at=v.oxw();v.Q6J("value",at.selectedUnit),v.xp6(1),v.hij(" ",je," ")}}let Dt=(()=>{class dt{constructor(je,at,It,Xt,gi){this.dialogRef=je,this.data=at,this.rtMessagesService=It,this.notificator=Xt,this.translate=gi,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",gi.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(Zi=>this.successMessage=Zi)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new w.p4(null,[w.kI.required]),this.newValueControl=new w.p4(null,[w.kI.required,w.kI.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const It=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new q.dp).transform(this.data.user)} (user ID: ${this.data.user.id})\u21b5 VO: ${this.data.vo.shortName} / ${this.data.vo.name} (vo ID: ${this.data.vo.id})\u21b5 Resource: ${this.data.resource.name} (resource ID: ${this.data.resource.id})\u21b5 Data quota\u21b5 Requested quota: ${this.newValueControl.value}\u21b5 Reason: ${this.reasonControl.value}\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI`;this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",It).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.Hr),v.Y36(ee.V6),v.Y36(f.sK))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-request-change-data-quota-dialog"]],decls:45,vars:42,consts:[["mat-dialog-title","",1,"mb-3"],[1,"user-theme"],["mat-dialog-content",""],[1,"column-size"],[1,"flex-row","flex-self-center"],["matInput","","required","","type","number",3,"formControl"],[1,"select-width","mt-auto","mb-auto","ms-2",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"form-width"],["matInput","","required","","rows","4",3,"formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["mat-flat-button","","color","accent",1,"ms-2",3,"disabled","click"],[3,"value"]],template:function(je,at){1&je&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA(),v.TgZ(4,"div",1)(5,"div",2)(6,"div")(7,"p",3),v._uU(8),v.ALo(9,"translate"),v.ALo(10,"customTranslate"),v.qZA(),v.TgZ(11,"p"),v._uU(12),v.qZA()(),v.TgZ(13,"div")(14,"p",3),v._uU(15),v.ALo(16,"translate"),v.ALo(17,"customTranslate"),v.qZA(),v.TgZ(18,"p"),v._uU(19),v.qZA()(),v.TgZ(20,"div",4)(21,"mat-form-field")(22,"mat-label"),v._uU(23),v.ALo(24,"translate"),v.ALo(25,"customTranslate"),v.qZA(),v._UZ(26,"input",5),v.qZA(),v.TgZ(27,"mat-select",6),v.NdJ("valueChange",function(Xt){return at.selectedUnit=Xt}),v.YNc(28,On,2,2,"mat-option",7),v.qZA()(),v.TgZ(29,"div")(30,"mat-form-field",8)(31,"mat-label"),v._uU(32),v.ALo(33,"translate"),v.ALo(34,"customTranslate"),v.qZA(),v._UZ(35,"textarea",9),v.qZA()()(),v.TgZ(36,"div",10)(37,"button",11),v.NdJ("click",function(){return at.onCancel()}),v._uU(38),v.ALo(39,"translate"),v.ALo(40,"customTranslate"),v.qZA(),v.TgZ(41,"button",12),v.NdJ("click",function(){return at.onSubmit()}),v._uU(42),v.ALo(43,"translate"),v.ALo(44,"customTranslate"),v.qZA()()()),2&je&&(v.xp6(1),v.hij(" ",v.lcZ(2,14,v.lcZ(3,16,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),v.xp6(7),v.hij(" ",v.lcZ(9,18,v.lcZ(10,20,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),v.xp6(4),v.Oqu(at.resource),v.xp6(3),v.hij(" ",v.lcZ(16,22,v.lcZ(17,24,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),v.xp6(4),v.Oqu(at.currentQuota),v.xp6(4),v.hij(" ",v.lcZ(24,26,v.lcZ(25,28,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))," "),v.xp6(3),v.Q6J("formControl",at.newValueControl),v.xp6(1),v.Q6J("value",at.selectedUnit),v.xp6(1),v.Q6J("ngForOf",at.units),v.xp6(4),v.hij(" ",v.lcZ(33,30,v.lcZ(34,32,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REASON"))," "),v.xp6(3),v.Q6J("formControl",at.reasonControl),v.xp6(3),v.hij(" ",v.lcZ(39,34,v.lcZ(40,36,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),v.xp6(3),v.Q6J("disabled",at.reasonControl.invalid),v.xp6(1),v.hij(" ",v.lcZ(43,38,v.lcZ(44,40,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},dependencies:[e.sg,S.uh,S.xY,S.H8,m.lW,M.KE,M.hX,w.Fj,w.wV,w.JJ,w.Q7,x.Nt,w.oH,me.gD,Ye.ey,f.X$,t.a],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.form-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}.label-width[_ngcontent-%COMP%]{width:100%}.select-width[_ngcontent-%COMP%]{width:4rem}.flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-self-center[_ngcontent-%COMP%]{align-self:center}"]}),dt})();function ai(dt,Wt){1&dt&&(v.TgZ(0,"mat-error",8),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA()),2&dt&&(v.xp6(1),v.Oqu(v.lcZ(2,1,v.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class ct{constructor(Wt,je,at){this.dialogRef=Wt,this.data=je,this.attributesManagerService=at}ngOnInit(){this.sshControl=new w.p4(null,[w.kI.required,w.kI.pattern(ct.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const Wt=this.data.attribute?.value??[],je=this.sshControl.value;Wt.includes(je)||Wt.push(je),this.data.attribute.value=Wt,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{Wt.pop()})}}function Zt(dt,Wt){1&dt&&v._UZ(0,"perun-web-apps-loading-dialog")}function Jt(dt,Wt){1&dt&&v._UZ(0,"th",16)}function pi(dt,Wt){if(1&dt&&(v.TgZ(0,"td",17),v._uU(1),v.qZA()),2&dt){const je=Wt.$implicit;v.xp6(1),v.Oqu(je)}}function Mi(dt,Wt){1&dt&&v._UZ(0,"tr",18)}function Oi(dt,Wt){1&dt&&v._UZ(0,"tr",19)}function nn(dt,Wt){if(1&dt&&(v.TgZ(0,"table",10),v.ynx(1,11),v.YNc(2,Jt,1,0,"th",12),v.YNc(3,pi,2,1,"td",13),v.BQk(),v.YNc(4,Mi,1,0,"tr",14),v.YNc(5,Oi,1,0,"tr",15),v.qZA()),2&dt){const je=v.oxw(2);v.Q6J("dataSource",je.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",je.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",je.displayedColumns)}}function Mn(dt,Wt){if(1&dt){const je=v.EpF();v.TgZ(0,"div")(1,"h1",3),v._uU(2),v.qZA(),v.TgZ(3,"div",4)(4,"p"),v._uU(5),v.qZA(),v.TgZ(6,"div",5),v._uU(7),v.ALo(8,"translate"),v.ALo(9,"customTranslate"),v.qZA(),v.YNc(10,nn,6,3,"table",6),v.qZA(),v.TgZ(11,"div",7)(12,"button",8),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.onCancel())}),v._uU(13),v.ALo(14,"translate"),v.ALo(15,"customTranslate"),v.qZA(),v.TgZ(16,"button",9),v.NdJ("click",function(){v.CHM(je);const It=v.oxw();return v.KtG(It.onSubmit())}),v._uU(17),v.ALo(18,"translate"),v.ALo(19,"customTranslate"),v.qZA()()()}if(2&dt){const je=v.oxw();v.xp6(2),v.Oqu(je.title),v.xp6(3),v.hij(" ",je.description," "),v.xp6(2),v.hij(" ",v.lcZ(8,6,v.lcZ(9,8,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),v.xp6(3),v.Q6J("ngIf",je.dataSource.data.length),v.xp6(3),v.hij(" ",v.lcZ(14,10,v.lcZ(15,12,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),v.xp6(4),v.hij(" ",v.lcZ(18,14,v.lcZ(19,16,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}ct.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],ct.sshKeyPattern="^("+ct.allowedSshKeys.join("|")+").+$",ct.\u0275fac=function(Wt){return new(Wt||ct)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.H8))},ct.\u0275cmp=v.Xpm({type:ct,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:21,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["subscriptSizing","dynamic",1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["mat-flat-button","","color","accent",1,"ms-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(Wt,je){1&Wt&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA(),v.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"mat-label"),v._uU(7),v.ALo(8,"translate"),v.ALo(9,"customTranslate"),v.qZA(),v._UZ(10,"textarea",3),v.YNc(11,ai,4,5,"mat-error",4),v.qZA()(),v.TgZ(12,"div",5)(13,"button",6),v.NdJ("click",function(){return je.onCancel()}),v._uU(14),v.ALo(15,"translate"),v.ALo(16,"customTranslate"),v.qZA(),v.TgZ(17,"button",7),v.NdJ("click",function(){return je.onSubmit()}),v._uU(18),v.ALo(19,"translate"),v.ALo(20,"customTranslate"),v.qZA()()),2&Wt&&(v.xp6(1),v.Oqu(v.lcZ(2,7,v.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),v.xp6(6),v.Oqu(v.lcZ(8,11,v.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),v.xp6(3),v.Q6J("formControl",je.sshControl),v.xp6(1),v.Q6J("ngIf",je.sshControl.invalid&&je.sshControl.dirty),v.xp6(3),v.hij(" ",v.lcZ(15,15,v.lcZ(16,17,"DIALOGS.ADD_SSH.CANCEL"))," "),v.xp6(3),v.Q6J("disabled",je.sshControl.invalid),v.xp6(1),v.hij(" ",v.lcZ(19,19,v.lcZ(20,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[e.O5,w.Fj,w.JJ,w.Q7,m.lW,M.KE,M.hX,M.TO,w.oH,x.Nt,ce.IC,S.uh,S.xY,S.H8,f.X$,t.a],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}\n"],encapsulation:2});let br=(()=>{class dt{constructor(je,at,It){this.dialogRef=je,this.data=at,this.attributesManagerService=It,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new A.by(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let je=this.data.attribute?.value??[];void 0!==this.data.valueIndex?je.splice(this.data.valueIndex,1):je=je.filter(at=>!this.data.values.find(It=>It===at)),this.data.attribute.value=je}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI),v.Y36(W.H8))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-remove-string-value-dialog"]],decls:4,vars:2,consts:[["spinner",""],[1,"user-theme","position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"fw-bold"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["mat-flat-button","","color","warn",1,"ms-2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(je,at){if(1&je&&(v.YNc(0,Zt,1,0,"ng-template",null,0,v.W1O),v.TgZ(2,"div",1),v.YNc(3,Mn,20,18,"div",2),v.qZA()),2&je){const It=v.MAs(1);v.xp6(3),v.Q6J("perunWebAppsLoader",at.loading)("perunWebAppsLoaderIndicator",It)}},dependencies:[e.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,ie.b,xe.e,m.lW,S.uh,S.xY,S.H8,f.X$,t.a]}),dt})(),Sn=(()=>{class dt{constructor(je,at){this.dialogRef=je,this.data=at}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(S.WI))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-show-ssh-dialog"]],decls:8,vars:6,consts:[["mat-dialog-content","",1,"user-theme"],["matInput","","cdkTextareaAutosize","","readonly","",1,"w-100","display-fix"],["mat-flat-button","","color","warn",1,"ms-auto",3,"click"]],template:function(je,at){1&je&&(v.TgZ(0,"div",0)(1,"textarea",1),v._uU(2),v.qZA()(),v.TgZ(3,"mat-dialog-actions")(4,"button",2),v.NdJ("click",function(){return at.onClose()}),v._uU(5),v.ALo(6,"translate"),v.ALo(7,"customTranslate"),v.qZA()()),2&je&&(v.xp6(2),v.Oqu(at.sshKey),v.xp6(3),v.hij(" ",v.lcZ(6,2,v.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},dependencies:[m.lW,x.Nt,ce.IC,S.xY,S.H8,f.X$,t.a],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),dt})();function vn(dt,Wt){if(1&dt&&(v.TgZ(0,"div",10),v._UZ(1,"perun-web-apps-notification",11),v.qZA()),2&dt){const je=Wt.$implicit;v.xp6(1),v.Q6J("data",je)("inDialog",!0)}}function cr(dt,Wt){if(1&dt&&(v.TgZ(0,"div",7)(1,"cdk-virtual-scroll-viewport",8),v.YNc(2,vn,2,2,"div",9),v.qZA()()),2&dt){const je=v.oxw();v.xp6(2),v.Q6J("cdkVirtualForOf",je.notifications)}}function fr(dt,Wt){1&dt&&(v.TgZ(0,"perun-web-apps-alert",12),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA()),2&dt&&(v.xp6(1),v.Oqu(v.lcZ(2,1,v.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}let Kr=(()=>{class dt{constructor(je,at){this.dialogRef=je,this.notificationStorageService=at}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return dt.\u0275fac=function(je){return new(je||dt)(v.Y36(S.so),v.Y36(ee.SZ))},dt.\u0275cmp=v.Xpm({type:dt,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:16,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["mat-flat-button","",1,"ms-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(je,at){1&je&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA(),v.TgZ(4,"div",1),v.YNc(5,cr,3,1,"div",2),v.YNc(6,fr,4,5,"perun-web-apps-alert",3),v.qZA(),v.TgZ(7,"div",4)(8,"button",5),v.NdJ("click",function(){return at.onClear()}),v._uU(9),v.ALo(10,"translate"),v.ALo(11,"customTranslate"),v.qZA(),v.TgZ(12,"button",6),v.NdJ("click",function(){return at.onCancel()}),v._uU(13),v.ALo(14,"translate"),v.ALo(15,"customTranslate"),v.qZA()()),2&je&&(v.xp6(1),v.Oqu(v.lcZ(2,5,v.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),v.xp6(4),v.Q6J("ngIf",0!==at.notifications.length),v.xp6(1),v.Q6J("ngIf",0===at.notifications.length),v.xp6(3),v.hij(" ",v.lcZ(10,9,v.lcZ(11,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),v.xp6(4),v.hij(" ",v.lcZ(14,13,v.lcZ(15,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),dt})()},90995:(Xe,ae,p)=>{"use strict";p.d(ae,{e:()=>U});var e=p(94650),f=p(24006),A=p(30671),S=p(36895),m=p(7274),M=p(4859),w=p(59549),x=p(284),P=p(97392),F=p(98380),T=p(97403),B=p(73358),I=p(96338),q=p(89383),ue=p(31359);let j=(()=>{class ${constructor(De){this.translate=De}transform(De){return this.translate.instant(De?"DIALOGS.DELETE_ENTITY.TYPE_ANONYMIZE":"DIALOGS.DELETE_ENTITY.TYPE_DELETE")}}return $.\u0275fac=function(De){return new(De||$)(e.Y36(q.sK,16))},$.\u0275pipe=e.Yjl({name:"deleteDialogType",type:$,pure:!0}),$})();function Q($,ce){1&$&&e._UZ(0,"perun-web-apps-loading-dialog")}const be=function($){return{action:$}};function me($,ce){if(1&$&&(e.TgZ(0,"div",17),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.ALo(4,"translate"),e.TgZ(5,"span",18),e._uU(6),e.ALo(7,"translate"),e.qZA(),e._uU(8),e.ALo(9,"translate"),e.qZA()),2&$){const De=e.oxw(3);e.xp6(1),e.lnq(" ",e.xi3(2,6,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(17,be,e.lcZ(3,9,De.anonymize)))," ",e.lcZ(4,11,"DIALOGS.DELETE_ENTITY.ONLY")," ",De.entityType," "),e.xp6(5),e.Oqu(e.lcZ(7,13,"DIALOGS.DELETE_ENTITY.OR")),e.xp6(2),e.AsE(" ",De.entityType," ",e.lcZ(9,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function fe($,ce){if(1&$&&(e.TgZ(0,"div",17),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.qZA()),2&$){const De=e.oxw(3);e.xp6(1),e.AsE(" ",e.xi3(2,2,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(7,be,e.lcZ(3,5,De.anonymize)))," ",De.entityType," ? ")}}function re($,ce){1&$&&e._UZ(0,"th",19)}function v($,ce){if(1&$&&(e.TgZ(0,"td",20),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&$){const De=ce.$implicit,he=e.oxw(3);e.xp6(1),e.hij(" ",he.anonymize?e.lcZ(2,1,De):De.name," ")}}function V($,ce){1&$&&e._UZ(0,"tr",21)}function W($,ce){1&$&&e._UZ(0,"tr",22)}function ee($,ce){if(1&$){const De=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(De);const Oe=e.oxw(3);return e.KtG(Oe.force=!0)}),e.TgZ(1,"mat-icon"),e._uU(2,"warning"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"titlecase"),e.ALo(6,"deleteDialogType"),e.ALo(7,"translate"),e.qZA()}if(2&$){const De=e.oxw(3);e.xp6(3),e.AsE(" ",e.xi3(4,2,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(11,be,e.lcZ(5,5,e.lcZ(6,7,De.anonymize))))," ",e.lcZ(7,9,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}const ie=function(){return["name"]};function xe($,ce){if(1&$){const De=e.EpF();e.TgZ(0,"div")(1,"h1",4),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.qZA(),e.TgZ(6,"div",5),e.YNc(7,me,10,19,"div",6),e.YNc(8,fe,4,9,"div",6),e.TgZ(9,"table",7),e.ynx(10,8),e.YNc(11,re,1,0,"th",9),e.YNc(12,v,3,3,"td",10),e.BQk(),e.YNc(13,V,1,0,"tr",11),e.YNc(14,W,1,0,"tr",12),e.qZA()(),e.TgZ(15,"div",13)(16,"button",14),e.NdJ("click",function(){e.CHM(De);const Oe=e.oxw(2);return e.KtG(Oe.onCancel())}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"button",15),e.NdJ("click",function(){e.CHM(De);const Oe=e.oxw(2);return e.KtG(Oe.onDelete())}),e._uU(20),e.ALo(21,"translate"),e.ALo(22,"titlecase"),e.ALo(23,"deleteDialogType"),e.qZA(),e.YNc(24,ee,8,13,"button",16),e.qZA()()}if(2&$){const De=e.oxw(2);e.xp6(2),e.AsE(" ",e.xi3(3,10,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(26,be,e.lcZ(4,13,e.lcZ(5,15,De.anonymize))))," ",De.entityType," "),e.xp6(5),e.Q6J("ngIf",!De.disableForce),e.xp6(1),e.Q6J("ngIf",De.disableForce),e.xp6(1),e.Q6J("dataSource",De.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(28,ie)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(29,ie)),e.xp6(3),e.hij(" ",e.lcZ(18,17,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.xi3(21,19,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(30,be,e.lcZ(22,22,e.lcZ(23,24,De.anonymize))))," "),e.xp6(4),e.Q6J("ngIf",!De.disableForce)}}function Ye($,ce){if(1&$&&(e.TgZ(0,"mat-list-item")(1,"span")(2,"mat-icon",28),e._uU(3,"fiber_manual_record"),e.qZA(),e._uU(4),e.qZA()()),2&$){const De=ce.$implicit;e.xp6(4),e.hij(" ",De," ")}}function Le($,ce){if(1&$&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&$){const De=e.oxw(3);e.xp6(1),e.hij(" ",De.anotherMessage," ")}}function $e($,ce){1&$&&e._UZ(0,"th",19)}function qe($,ce){if(1&$&&(e.TgZ(0,"td",20),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&$){const De=ce.$implicit,he=e.oxw(3);e.xp6(1),e.hij(" ",he.anonymize?e.lcZ(2,1,De):De.name," ")}}function Ze($,ce){1&$&&e._UZ(0,"tr",21)}function Pe($,ce){1&$&&e._UZ(0,"tr",22)}function se($,ce){if(1&$){const De=e.EpF();e.TgZ(0,"div")(1,"h1",4),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",5)(8,"div",17),e._uU(9),e.ALo(10,"translate"),e.TgZ(11,"mat-list"),e.YNc(12,Ye,5,1,"mat-list-item",24),e.qZA(),e.YNc(13,Le,2,1,"div",3),e.TgZ(14,"perun-web-apps-alert",25),e._uU(15),e.ALo(16,"translate"),e.ALo(17,"deleteDialogType"),e.qZA(),e.TgZ(18,"table",7),e.ynx(19,8),e.YNc(20,$e,1,0,"th",9),e.YNc(21,qe,3,3,"td",10),e.BQk(),e.YNc(22,Ze,1,0,"tr",11),e.YNc(23,Pe,1,0,"tr",12),e.qZA()(),e.TgZ(24,"mat-form-field")(25,"mat-label"),e._uU(26),e.ALo(27,"translate"),e.ALo(28,"uppercase"),e.ALo(29,"deleteDialogType"),e.qZA(),e._UZ(30,"input",26),e.qZA()(),e.TgZ(31,"div",13)(32,"button",14),e.NdJ("click",function(){e.CHM(De);const Oe=e.oxw(2);return e.KtG(Oe.onCancel())}),e._uU(33),e.ALo(34,"translate"),e.qZA(),e.TgZ(35,"button",27),e.NdJ("click",function(){e.CHM(De);const Oe=e.oxw(2);return e.KtG(Oe.onDelete())}),e.TgZ(36,"mat-icon"),e._uU(37,"warning"),e.qZA(),e._uU(38),e.ALo(39,"translate"),e.ALo(40,"titlecase"),e.ALo(41,"deleteDialogType"),e.ALo(42,"translate"),e.qZA()()()}if(2&$){const De=e.oxw(2);e.xp6(2),e.lnq(" ",e.xi3(3,17,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(51,be,e.lcZ(4,20,e.lcZ(5,22,De.anonymize))))," ",De.entityType," ",e.lcZ(6,24,"DIALOGS.DELETE_ENTITY.RELATIONS")," "),e.xp6(7),e.hij(" ",e.lcZ(10,26,"DIALOGS.DELETE_ENTITY.WARN"),": "),e.xp6(3),e.Q6J("ngForOf",De.relations),e.xp6(1),e.Q6J("ngIf",De.anotherMessage),e.xp6(2),e.AsE(" ",e.xi3(16,28,"DIALOGS.DELETE_ENTITY.ASK",e.VKq(53,be,e.lcZ(17,31,De.anonymize)))," ",De.entityType," ? "),e.xp6(3),e.Q6J("dataSource",De.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(55,ie)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(56,ie)),e.xp6(3),e.hij(" ",e.xi3(27,33,"DIALOGS.DELETE_ENTITY.CONTROL",e.VKq(57,be,e.lcZ(28,36,e.lcZ(29,38,De.anonymize))))," "),e.xp6(4),e.Q6J("formControl",De.deleteControl),e.xp6(3),e.hij(" ",e.lcZ(34,40,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(2),e.Q6J("disabled",De.deleteControl.invalid),e.xp6(3),e.AsE(" ",e.xi3(39,42,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(59,be,e.lcZ(40,45,e.lcZ(41,47,De.anonymize))))," ",e.lcZ(42,49,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}function N($,ce){if(1&$&&(e.TgZ(0,"div"),e.YNc(1,xe,25,32,"div",3),e.YNc(2,se,43,61,"div",3),e.qZA()),2&$){const De=e.oxw();e.xp6(1),e.Q6J("ngIf",!De.force),e.xp6(1),e.Q6J("ngIf",De.force)}}let U=(()=>{class ${constructor(){this.entityNames=new A.by,this.relations=[],this.disableForce=!1,this.loading=!1,this.anonymize=!1,this.deleted=new e.vpe,this.force=!1}ngOnInit(){this.deleteReg=this.anonymize?/^ANONYMIZE$/:/^DELETE$/,this.deleteControl=new f.p4("",[f.kI.required,f.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return $.\u0275fac=function(De){return new(De||$)},$.\u0275cmp=e.Xpm({type:$,selectors:[["perun-web-apps-delete-entity-dialog"]],inputs:{title:"title",entityNames:"entityNames",entityType:"entityType",relations:"relations",anotherMessage:"anotherMessage",disableForce:"disableForce",loading:"loading",anonymize:"anonymize"},outputs:{deleted:"deleted"},decls:4,vars:2,consts:[["spinner",""],[1,"position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["class","mb-4",4,"ngIf"],["mat-table","",1,"w-100","table-margin",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["data-cy","delete-button-dialog","color","warn","mat-flat-button","",1,"ms-2",3,"click"],["class","ms-2","data-cy","force-delete","color","warn","mat-flat-button","",3,"click",4,"ngIf"],[1,"mb-4"],[1,"fw-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["data-cy","force-delete","color","warn","mat-flat-button","",1,"ms-2",3,"click"],[4,"ngFor","ngForOf"],["alert_type","warn"],["data-cy","force-delete-control","matInput","",3,"formControl"],["data-cy","force-delete-button","color","warn","mat-flat-button","",1,"ms-2",3,"disabled","click"],[1,"dot-icon"]],template:function(De,he){if(1&De&&(e.YNc(0,Q,1,0,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1),e.YNc(3,N,3,2,"div",2),e.qZA()),2&De){const Oe=e.MAs(1);e.xp6(3),e.Q6J("perunWebAppsLoader",he.loading)("perunWebAppsLoaderIndicator",Oe)}},dependencies:[S.sg,S.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,m.uh,m.xY,m.H8,M.lW,w.KE,w.hX,f.Fj,f.JJ,x.Nt,f.oH,P.Hw,F.w,T.b,B.e,I.i$,I.Tg,S.gd,S.rS,q.X$,ue.d,j],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),$})()},75162:(Xe,ae,p)=>{"use strict";p.d(ae,{c:()=>F});var e=p(94650),f=p(24006),A=p(36895),S=p(59549),m=p(284),M=p(71948),w=p(99602),x=p(89383);function P(T,B){1&T&&(e.TgZ(0,"mat-radio-button",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "))}let F=(()=>{class T{constructor(){this.expiration="never",this.allowNever=!0,this.minDate=null,this.maxDate=null,this.datePicker=new e.vpe,this.expirationControl=new f.NI(null)}ngOnInit(){this.expirationControl.setValue((0,A.p6)(this.maxDate?this.maxDate:this.minDate,"yyyy-MM-dd","en-GB"))}ngOnChanges(){const I=new Date(this.expirationControl.value);let q=I;Ithis.maxDate&&(q=this.maxDate),this.expirationControl.setValue((0,A.p6)(q,"yyyy-MM-dd","en-GB"))}setExpiration(I){this.expiration=(0,A.p6)(I.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,A.p6)(I.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return T.\u0275fac=function(I){return new(I||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-expiration-select"]],inputs:{expiration:"expiration",allowNever:"allowNever",minDate:"minDate",maxDate:"maxDate"},outputs:{datePicker:"datePicker"},features:[e.TTD],decls:11,vars:13,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange","change"],["value","never",4,"ngIf"],[3,"value"],["color","primary",1,"cursor-pointer","me-3",3,"click"],["readonly","","matInput","",1,"disable",3,"min","max","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["value","never"]],template:function(I,q){if(1&I){const ue=e.EpF();e.TgZ(0,"mat-radio-group",0),e.NdJ("ngModelChange",function(Q){return q.expiration=Q})("change",function(){return q.emitDate()}),e.YNc(1,P,3,3,"mat-radio-button",1),e.TgZ(2,"mat-radio-button",2)(3,"mat-form-field",3),e.NdJ("click",function(){e.CHM(ue);const Q=e.MAs(10);return e.KtG(Q.open())}),e.TgZ(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"input",4),e.NdJ("dateChange",function(Q){return q.setExpiration(Q)}),e.qZA(),e._UZ(8,"mat-datepicker-toggle",5)(9,"mat-datepicker",6,7),e.qZA()()()}if(2&I){const ue=e.MAs(10);e.Q6J("ngModel",q.expiration),e.xp6(1),e.Q6J("ngIf",q.allowNever),e.xp6(1),e.s9C("value",q.expirationControl.value),e.xp6(3),e.Oqu(e.lcZ(6,11,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),e.xp6(2),e.Q6J("min",q.minDate)("max",q.maxDate)("formControl",q.expirationControl)("matDatepicker",ue),e.xp6(1),e.Q6J("for",ue)("disabled",!1),e.xp6(1),e.Q6J("disabled",!1)}},dependencies:[A.O5,S.KE,S.hX,S.R9,f.Fj,f.JJ,f.On,m.Nt,M.VQ,M.U0,w.Mq,w.hl,w.nW,f.oH,x.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),T})()},22308:(Xe,ae,p)=>{"use strict";p.d(ae,{h:()=>f});var e=p(94650);let f=(()=>{class A{constructor(m){this.elementRef=m}ngOnInit(){this.elementRef.nativeElement.focus()}}return A.\u0275fac=function(m){return new(m||A)(e.Y36(e.SBq))},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsAutoFocus",""]]}),A})()},73358:(Xe,ae,p)=>{"use strict";p.d(ae,{e:()=>f});var e=p(94650);let f=(()=>{class A{constructor(m,M){this.viewContainerRef=m,this.template=M,this.loading=!1,this.loadingIndicatorRef=null}ngOnInit(){this.viewContainerRef.createEmbeddedView(this.template)}ngOnChanges(){this.loading&&(this.loadingIndicatorRef=this.viewContainerRef.createEmbeddedView(this.loadingIndicator)),!this.loading&&this.loadingIndicatorRef&&this.loadingIndicatorRef.destroy()}}return A.\u0275fac=function(m){return new(m||A)(e.Y36(e.s_b),e.Y36(e.Rgc))},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsLoader",""]],inputs:{loading:["perunWebAppsLoader","loading"],loadingIndicator:["perunWebAppsLoaderIndicator","loadingIndicator"]},standalone:!0,features:[e.TTD]}),A})()},34198:(Xe,ae,p)=>{"use strict";p.d(ae,{Y:()=>f});var e=p(94650);let f=(()=>{class A{onClick(m){if(1===m.button&&null!=this.perunWebAppsMiddleClickRouterLink){const M=this.perunWebAppsMiddleClickRouterLink.join("/"),w=location.search;window.open(M+w)}}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(m,M){1&m&&e.NdJ("mouseup",function(x){return M.onClick(x)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),A})()},55660:(Xe,ae,p)=>{"use strict";p.d(ae,{Q:()=>A});var e=p(82761),f=p(94650);let A=(()=>{class S extends e.rH{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const M=Object.assign({},this.queryParams);delete M.applicationFormItems,this.queryParams=M}}}return S.\u0275fac=function(){let m;return function(w){return(m||(m=f.n5z(S)))(w||S)}}(),S.\u0275dir=f.lG2({type:S,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[f.qOj,f.TTD]}),S})()},40034:(Xe,ae,p)=>{"use strict";p.d(ae,{p:()=>e});var e=(()=>{return(f=e||(e={})).Admin="admin",f.Profile="profile",f.PwdReset="pwdReset",f.Consolidator="consolidator",f.Linker="linker",e;var f})()},91479:(Xe,ae,p)=>{"use strict";p.d(ae,{H:()=>w,o:()=>M});var e=p(61135),f=p(39841),A=p(39646),S=p(68675),m=p(63900);function M(x){return"_count"in x}class w{constructor(P,F,T,B){this.pageQuery$=new e.X({}),this.updateSubscription=null,this.data$=new e.X([]),this._filter=new e.X(""),this.data$.next(P),this._count=F,this._sort=T,this._paginator=B,this.update()}get data(){return this.data$.value}set data(P){this.data$.next(P)}get filteredData(){return this.data$.value}get count(){return this._count}set count(P){this._count=P}get sort(){return this._sort}set sort(P){this._sort=P,this.update()}get paginator(){return this._paginator}set paginator(P){this._paginator=P,this.update()}set filter(P){this._filter.next(P)}connect(){return this.data$.asObservable()}disconnect(){this.data$.complete(),this.updateSubscription?.unsubscribe()}sortData(P,F){return this.sort=F,P}update(){const P=this._sort.sortChange.pipe((0,S.O)({active:"NAME",direction:this._sort.direction})),F=this._paginator.page.pipe((0,S.O)({pageSize:5,pageIndex:this._paginator.pageIndex,length:this._paginator.length})),T=(0,f.a)([P,F,this._filter]).pipe((0,m.w)(([B,I,q])=>(0,A.of)({order:"asc"===B.direction?"ASCENDING":"DESCENDING",sortColumn:B.active.toUpperCase(),pageSize:I.pageSize,offset:I.pageIndex*I.pageSize,searchString:q})));this.updateSubscription?.unsubscribe(),this.updateSubscription=T.subscribe(B=>{this.pageQuery$.next(B)})}}},45323:(Xe,ae,p)=>{"use strict";p.d(ae,{u:()=>e});var e=(()=>{return(f=e||(e={})).PERUNADMIN="PERUNADMIN",f.PERUNOBSERVER="PERUNOBSERVER",f.VOADMIN="VOADMIN",f.GROUPADMIN="GROUPADMIN",f.GROUPOBSERVER="GROUPOBSERVER",f.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",f.SELF="SELF",f.FACILITYADMIN="FACILITYADMIN",f.FACILITIYOBSERVER="FACILITYOBSERVER",f.RESOURCEADMIN="RESOURCEADMIN",f.RESOURCESELFSERVICE="RESOURCESELFSERVICE",f.REGISTRAR="REGISTRAR",f.ENGINE="ENGINE",f.RPC="RPC",f.NOTIFICATIONS="NOTIFICATIONS",f.SERVICEUSER="SERVICEUSER",f.SPONSOR="SPONSOR",f.VOOBSERVER="VOOBSERVER",f.TOPGROUPCREATOR="TOPGROUPCREATOR",f.SECURITYADMIN="SECURITYADMIN",f.CABINETADMIN="CABINETADMIN",f.UNKNOWNROLENAME="UNKNOWNROLENAME",f.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",f.UNKNOWN="UNKNOWN",f.MEMBERSHIP="MEMBERSHIP",e;var f})()},28499:(Xe,ae,p)=>{"use strict";p.d(ae,{E3:()=>T,yT:()=>B.y});var e=p(36895),f=p(59549),A=p(10266),S=p(24006),m=p(284),M=p(89383),w=p(51572),x=p(97392),P=p(63189),F=p(94650);let T=(()=>{class q{}return q.\u0275fac=function(j){return new(j||q)},q.\u0275mod=F.oAB({type:q}),q.\u0275inj=F.cJS({imports:[e.ez,f.lN,A.AV,S.UX,m.c,M.aw,w.Cq,x.Ps,P.r]}),q})();var B=p(47549);p(13469)},13469:(Xe,ae,p)=>{"use strict";p.d(ae,{G:()=>fe});var e=p(47549),f=p(80279),A=p(61744),S=p(94650),m=p(89383),M=p(36895),w=p(59549),x=p(10266),P=p(24006),F=p(284),T=p(51572),B=p(97392),I=p(98380);function q(re,v){1&re&&S._UZ(0,"mat-spinner",12),2&re&&S.Q6J("diameter",18)}function ue(re,v){if(1&re&&(S.TgZ(0,"mat-icon",13),S._uU(1," error "),S.qZA()),2&re){const V=S.oxw();S.Q6J("matTooltip",V.getErrorTooltip())("matTooltipDisabled",!V.formGroup.get("passwordCtrl").hasError("backendError"))}}function j(re,v){1&re&&(S.TgZ(0,"mat-error"),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&re&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function Q(re,v){if(1&re&&(S.TgZ(0,"mat-error",14),S._uU(1),S.qZA()),2&re){const V=S.oxw();S.Q6J("matTooltip",V.getErrorTooltip()),S.xp6(1),S.Oqu(V.getErrorTooltip())}}function be(re,v){1&re&&(S.TgZ(0,"mat-error"),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&re&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function me(re,v){1&re&&(S.TgZ(0,"mat-error"),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&re&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let fe=(()=>{class re{constructor(V,W,ee){this.translator=V,this.usersManagerService=W,this.store=ee,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new e.S,this.allPasswordRequirements=this.store.getProperty("password_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(V=>{const W=V.userAttributes.find(ee=>"preferredLanguage"===ee.friendlyName);this.language=W?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(null===this.namespace?"DIALOGS.CREATE_SPONSORED_MEMBER.NO_NAMESPACE_SELECTED":this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let V=this.formGroup.get("passwordCtrl").getError("backendError");return V&&(V=V.replace(":null","")),V}changeHelp(){this.passwordRequirement=this.allPasswordRequirements[this.namespace],this.passwordRequirement||(this.passwordRequirement=this.allPasswordRequirements.default)}}return re.\u0275fac=function(V){return new(V||re)(S.Y36(m.sK),S.Y36(A.Fv),S.Y36(f.d6))},re.\u0275cmp=S.Xpm({type:re,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",language:"language"},features:[S.TTD],decls:23,vars:23,consts:[[3,"formGroup"],["subscriptSizing","dynamic","matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],["subscriptSizing","dynamic",1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(V,W){1&V&&(S.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),S._uU(3),S.ALo(4,"translate"),S.qZA(),S._UZ(5,"input",2),S.YNc(6,q,1,1,"mat-spinner",3),S.TgZ(7,"mat-icon",4),S.NdJ("click",function(){return W.showNewPassword=!W.showNewPassword}),S._uU(8),S.qZA(),S.YNc(9,ue,2,2,"mat-icon",5),S.YNc(10,j,3,3,"mat-error",6),S.YNc(11,Q,2,2,"mat-error",7),S.qZA(),S.TgZ(12,"mat-form-field",8)(13,"mat-label"),S._uU(14),S.ALo(15,"translate"),S.qZA(),S._UZ(16,"input",9),S.TgZ(17,"mat-icon",4),S.NdJ("click",function(){return W.showPasswordConfirm=!W.showPasswordConfirm}),S._uU(18),S.qZA(),S.YNc(19,be,3,3,"mat-error",6),S.YNc(20,me,3,3,"mat-error",6),S.qZA(),S.TgZ(21,"perun-web-apps-alert",10),S._UZ(22,"div",11),S.qZA()()),2&V&&(S.Q6J("formGroup",W.formGroup),S.xp6(1),S.Q6J("matTooltip",W.getPasswordDisabledTooltip())("matTooltipDisabled",W.formGroup.get("passwordCtrl").enabled||W.tooltipPwdDisabledForNamespace),S.xp6(2),S.hij(" ",S.lcZ(4,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")," "),S.xp6(2),S.Q6J("type",W.showNewPassword?"text":"password")("required",W.passwordRequired)("errorStateMatcher",W.passwordStateMatcher),S.xp6(1),S.Q6J("ngIf",W.formGroup.get("passwordCtrl").pending),S.xp6(2),S.hij(" ",W.showNewPassword?"visibility_off":"visibility"," "),S.xp6(1),S.Q6J("ngIf",W.formGroup.get("passwordCtrl").dirty&&null!==W.formGroup.get("passwordCtrl").errors),S.xp6(1),S.Q6J("ngIf",W.formGroup.get("passwordCtrl").hasError("required")),S.xp6(1),S.Q6J("ngIf",W.formGroup.get("passwordCtrl").hasError("backendError")),S.xp6(3),S.hij(" ",S.lcZ(15,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")," "),S.xp6(2),S.Q6J("type",W.showPasswordConfirm?"text":"password")("required",W.passwordRequired),S.xp6(2),S.hij(" ",W.showPasswordConfirm?"visibility_off":"visibility"," "),S.xp6(1),S.Q6J("ngIf",W.formGroup.get("passwordAgainCtrl").hasError("required")),S.xp6(1),S.Q6J("ngIf",W.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),S.xp6(2),S.Q6J("innerHTML",W.passwordRequirement,S.oJD))},dependencies:[M.O5,w.KE,w.hX,w.TO,w.R9,x.gM,P.Fj,P.JJ,P.JL,P.Q7,P.sg,P.u,F.Nt,T.Ou,B.Hw,I.w,m.X$],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),re})()},47549:(Xe,ae,p)=>{"use strict";p.d(ae,{S:()=>M,y:()=>w});var e=p(82805),f=p(39646),A=p(63900),S=p(54004),m=p(70262);class M{isErrorState(P){return!(!P?.invalid||!P?.dirty)}}const w=(x,P,F,T=!1,B=500)=>I=>(0,e.H)(B).pipe((0,A.w)(()=>(F.dontHandleErrorForNext(),x&&"No namespace"!==x?P.checkPasswordStrength({password:I.value,namespace:x},T):(0,f.of)(null))),(0,S.U)(()=>null),(0,m.K)(q=>{const ue={backendError:q.message.substring(q.message.indexOf(":")+1)};return(0,f.of)(ue)}))},61744:(Xe,ae,p)=>{"use strict";p.d(ae,{au:()=>Ne,sY:()=>Ze,oW:()=>Pe,H8:()=>w,jw:()=>x,Ct:()=>P,VK:()=>M,WY:()=>T,KG:()=>I,IQ:()=>q,ff:()=>ue,uq:()=>Q,aC:()=>be,Hr:()=>me,tk:()=>fe,xk:()=>re,t7:()=>v,KK:()=>V,Ob:()=>W,Dy:()=>Ae,Fv:()=>ee,FW:()=>ie,YF:()=>xe});var e=p(80529);class f{encodeKey(Be){return encodeURIComponent(Be)}encodeValue(Be){return encodeURIComponent(Be)}decodeKey(Be){return decodeURIComponent(Be)}decodeValue(Be){return decodeURIComponent(Be)}}var A=p(94650);const S=new A.OlP("basePath");class M{constructor(Be={}){this.apiKeys=Be.apiKeys,this.username=Be.username,this.password=Be.password,this.accessToken=Be.accessToken,this.basePath=Be.basePath,this.withCredentials=Be.withCredentials,this.encoder=Be.encoder,this.credentials=Be.credentials?Be.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(Be){if(0===Be.length)return;const r=Be.find(u=>this.isJsonMime(u));return void 0===r?Be[0]:r}selectHeaderAccept(Be){if(0===Be.length)return;const r=Be.find(u=>this.isJsonMime(u));return void 0===r?Be[0]:r}isJsonMime(Be){const r=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==Be&&(r.test(Be)||"application/json-patch+json"===Be.toLowerCase())}lookupCredential(Be){const r=this.credentials[Be];return"function"==typeof r?r():r}}let w=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}convertAttributeToNonunique(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}convertAttributeToUnique(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}createAttributeDefinition(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteAttributeDefinition(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteAttributeDefinitions(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"attributes[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllAttributeDefinitions(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAttribute(r,u,_,C,h,o,n,t,i,a,l,d=!1,c="body",s=!1,E){let H=new e.LE({encoder:this.encoder});null!=r&&(H=this.addToHttpParams(H,r,"attributeName")),null!=u&&(H=this.addToHttpParams(H,u,"attributeId")),null!=_&&(H=this.addToHttpParams(H,_,"facility")),null!=C&&(H=this.addToHttpParams(H,C,"user")),null!=h&&(H=this.addToHttpParams(H,h,"vo")),null!=o&&(H=this.addToHttpParams(H,o,"resource")),null!=n&&(H=this.addToHttpParams(H,n,"member")),null!=t&&(H=this.addToHttpParams(H,t,"group")),null!=i&&(H=this.addToHttpParams(H,i,"host")),null!=a&&(H=this.addToHttpParams(H,a,"userExtSource")),null!=l&&(H=this.addToHttpParams(H,l,"key"));let ve,ne=this.defaultHeaders;ve=this.configuration.lookupCredential("BasicAuth"),ve&&(ne=ne.set("Authorization","Basic "+ve)),ve=this.configuration.lookupCredential("BearerAuth"),ve&&(ne=ne.set("Authorization","Bearer "+ve));let We=E&&E.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(ne=ne.set("Accept",We));let Mt=E&&E.context;void 0===Mt&&(Mt=new e.qT);let pt="json";We&&(pt=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob");let _t=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(d){let ye=new URL(_t),Ee=ye.pathname.split("/");Ee[1]="non",ye.pathname=Ee.join("/"),_t=ye.toString()}return this.httpClient.get(_t,{context:Mt,params:H,responseType:pt,withCredentials:this.configuration.withCredentials,headers:ne,observe:c,reportProgress:s})}getAttributeDefinitionById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAttributeDefinitionByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAttributeDefinitionsByNamespace(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"namespace"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAttributeModulesDependenciesForAttributeGraphText(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==u)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"format")),null!=u&&(n=this.addToHttpParams(n,u,"attrName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAttributeModulesDependenciesGraphText(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"format"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAttributePolicyCollections(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAttributeRights(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAttributeRules(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAttributesDefinitionWithRights(r,u,_,C,h,o,n,t,i=!1,a="body",l=!1,d){let c=new e.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"member")),null!=u&&(c=this.addToHttpParams(c,u,"user")),null!=_&&(c=this.addToHttpParams(c,_,"vo")),null!=C&&(c=this.addToHttpParams(c,C,"group")),null!=h&&(c=this.addToHttpParams(c,h,"resource")),null!=o&&(c=this.addToHttpParams(c,o,"facility")),null!=n&&(c=this.addToHttpParams(c,n,"host")),null!=t&&(c=this.addToHttpParams(c,t,"userExtSource"));let E,s=this.defaultHeaders;E=this.configuration.lookupCredential("BasicAuth"),E&&(s=s.set("Authorization","Basic "+E)),E=this.configuration.lookupCredential("BearerAuth"),E&&(s=s.set("Authorization","Bearer "+E));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(s=s.set("Accept",H));let ne=d&&d.context;void 0===ne&&(ne=new e.qT);let ve="json";H&&(ve=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob");let We=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(i){let Mt=new URL(We),pt=Mt.pathname.split("/");pt[1]="non",Mt.pathname=pt.join("/"),We=Mt.toString()}return this.httpClient.get(We,{context:ne,params:c,responseType:ve,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:l})}getEntitylessAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"key")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEntitylessAttributesByKey(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"key"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getEntitylessAttributesByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attrName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getEntitylessAttributesWithKeys(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attrName")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"keys[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEntitylessKeys(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilityAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilityAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilityResourceUserMemberAttributes(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==_)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==C)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"resource")),null!=_&&(i=this.addToHttpParams(i,_,"user")),null!=C&&(i=this.addToHttpParams(i,C,"member"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getFacilityUserAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupResourceAttributeById(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getGroupResourceAttributeByName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getGroupResourceAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getHostAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getHostAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getHostAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getHostAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getIdpAttributeDefinitions(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getLogins(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getLogins.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMemberAndUserAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"workWithUserAttributes"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMemberAndUserAttributesByNames(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMemberAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMemberAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMemberAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMemberGroupAndUserAttributesByNames(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==C)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group")),_&&_.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")}),null!=C&&(i=this.addToHttpParams(i,C,"workWithUserAttributes"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getMemberGroupAttributeById(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberGroupAttributeByName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberGroupAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMemberGroupAttributesByNames(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberResourceAndUserFacilityAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberResourceAndUserFacilityAttributesByNames(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==C)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"resource")),_&&_.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")}),null!=C&&(i=this.addToHttpParams(i,C,"workWithUserAttributes"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getMemberResourceAttributeById(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberResourceAttributeByName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberResourceAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesDefinition(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRequiredAttributesFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRequiredAttributesFacilityService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesFacilityServices(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"services[]")}),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesGroupResourceService(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getRequiredAttributesHostService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==u)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"host"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesMember(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"workWithUserAttributes"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesMemberGroup(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getRequiredAttributesMemberGroupResourceService(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==C)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service")),null!=u&&(a=this.addToHttpParams(a,u,"resource")),null!=_&&(a=this.addToHttpParams(a,_,"group")),null!=C&&(a=this.addToHttpParams(a,C,"member")),null!=h&&(a=this.addToHttpParams(a,h,"workWithUserAttributes"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";c&&(E=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let H=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(o){let ne=new URL(H),ve=ne.pathname.split("/");ve[1]="non",ne.pathname=ve.join("/"),H=ne.toString()}return this.httpClient.get(H,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:l,observe:n,reportProgress:t})}getRequiredAttributesMemberGroupService(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"group")),null!=_&&(i=this.addToHttpParams(i,_,"member")),null!=C&&(i=this.addToHttpParams(i,C,"workWithUserAttributes"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getRequiredAttributesMemberResource(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getRequiredAttributesMemberResourceService(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"resource")),null!=_&&(i=this.addToHttpParams(i,_,"member")),null!=C&&(i=this.addToHttpParams(i,C,"workWithUserAttributes"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getRequiredAttributesResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRequiredAttributesResourceService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesResourceServices(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"services[]")}),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRequiredAttributesUserFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRequiredAttributesVoService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourceAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourceAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourceAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getResourceAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourceGroupAndGroupAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==_)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"resource")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"workWithGroupAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getResourceGroupAndGroupAttributesByNames(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==C)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"group")),_&&_.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")}),null!=C&&(i=this.addToHttpParams(i,C,"workWithGroupAttributes"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getResourceGroupAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourceGroupMemberAttributesByNames(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==C)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"group")),null!=_&&(i=this.addToHttpParams(i,_,"member")),C&&C.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getUserAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserExtSourceAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserExtSourceAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserExtSourceAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserExtSourceAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserFacilityAttributeById(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getUserFacilityAttributeByName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getUserFacilityAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getVoAttributeById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getVoAttributeByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getVoAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeAttributesForFacilityResourceGroupUserMember(r,u,_,C,h,o,n=!1,t="body",i=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==_)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==C)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==h)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let l=new e.LE({encoder:this.encoder});null!=r&&(l=this.addToHttpParams(l,r,"facility")),null!=u&&(l=this.addToHttpParams(l,u,"resource")),null!=_&&(l=this.addToHttpParams(l,_,"group")),null!=C&&(l=this.addToHttpParams(l,C,"user")),null!=h&&(l=this.addToHttpParams(l,h,"member")),o&&o.forEach(ve=>{l=this.addToHttpParams(l,ve,"attributes[]")});let c,d=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(d=d.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(d=d.set("Authorization","Bearer "+c));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let E=a&&a.context;void 0===E&&(E=new e.qT);let H="json";s&&(H=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let ne=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(n){let ve=new URL(ne),We=ve.pathname.split("/");We[1]="non",ve.pathname=We.join("/"),ne=ve.toString()}return this.httpClient.post(ne,null,{context:E,params:l,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:i})}removeAttributesForFacilityResourceUserMember(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==_)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==C)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==h)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility")),null!=u&&(a=this.addToHttpParams(a,u,"resource")),null!=_&&(a=this.addToHttpParams(a,_,"user")),null!=C&&(a=this.addToHttpParams(a,C,"member")),h&&h.forEach(ne=>{a=this.addToHttpParams(a,ne,"attributes[]")});let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";c&&(E=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let H=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(o){let ne=new URL(H),ve=ne.pathname.split("/");ve[1]="non",ne.pathname=ve.join("/"),H=ne.toString()}return this.httpClient.post(H,null,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:l,observe:n,reportProgress:t})}removeEntitylessAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"key")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupResourceAttribute(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeGroupResourceAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeGroupResourceAttributesWorkWithGroupAttributes(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==C)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"resource")),_&&_.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")}),null!=C&&(i=this.addToHttpParams(i,C,"workWithGroupAttributes"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.post(E,null,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}removeHostAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeHostAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeMemberAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeMemberAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeMemberAttributesWorkWithUserAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"attributes[]")}),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeMemberGroupAttribute(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeMemberGroupAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeMemberGroupAttributesWorkWithUserAttributes(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==C)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group")),_&&_.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")}),null!=C&&(i=this.addToHttpParams(i,C,"workWithUserAttributes"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.post(E,null,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}removeMemberResourceAttribute(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeMemberResourceAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeResourceAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeResourceAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeUesAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeUserAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeUserAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeUserExtSourceAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeUserFacilityAttribute(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeUserFacilityAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeVoAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeVoAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}setAttributeActionCriticality(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==u)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==_)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"attributeDefinition")),null!=u&&(t=this.addToHttpParams(t,u,"action")),null!=_&&(t=this.addToHttpParams(t,_,"critical"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}setAttributePolicyCollections(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setAttributeRights(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setEntitylessAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setFacilityAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setFacilityAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setFacilityResourceGroupUserMemberAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setFacilityResourceUserMemberAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setFacilityUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setGroupAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setGroupAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setGroupResourceAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setGroupResourceAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setHostAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setHostAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberGroupAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberGroupAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberGroupWithUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberResourceAndUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberResourceAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberResourceAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setMemberWithUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setResourceAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setResourceAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setResourceGroupAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setResourceGroupWithGroupAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setUserAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setUserExtSourceAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setUserExtSourceAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setUserFacilityAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setUserFacilityAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setVoAttribute(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setVoAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateAttributeDefinition(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),x=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}auditMessagesManagerLog(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"msg"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}createAuditerConsumer(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"consumerName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}findAllPossibleEvents(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/auditMessagesManager/findAllPossibleEvents`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllAuditerConsumers(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAuditerMessagesCount(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getLastMessageId(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getMessages(r,u=!1,_="body",C=!1,h){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"count"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/auditMessagesManager/getMessages`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMessagesByCount(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"count"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMessagesByIdAndCount(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMessagesByIdAndCount.");if(null==u)throw new Error("Required parameter count was null or undefined when calling getMessagesByIdAndCount.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"id")),null!=u&&(n=this.addToHttpParams(n,u,"count"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByIdAndCount`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMessagesPage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetMessagesPage was null or undefined when calling getMessagesPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}pollConsumerMessages(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"consumerName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}setLastProcessedId(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==u)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"consumerName")),null!=u&&(n=this.addToHttpParams(n,u,"lastProcessedId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),P=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}getAllPolicies(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllRolesManagementRules(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAuthzAdminGroups(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==u)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==_)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"role")),null!=u&&(t=this.addToHttpParams(t,u,"complementaryObjectId")),null!=_&&(t=this.addToHttpParams(t,_,"complementaryObjectName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getAuthzRichAdmins(r,u,_,C,h,o,n=!1,t="body",i=!1,a){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==u)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==_)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==C)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let l=new e.LE({encoder:this.encoder});null!=r&&(l=this.addToHttpParams(l,r,"role")),null!=u&&(l=this.addToHttpParams(l,u,"complementaryObjectId")),null!=_&&(l=this.addToHttpParams(l,_,"complementaryObjectName")),C&&C.forEach(ve=>{l=this.addToHttpParams(l,ve,"specificAttributes")}),null!=h&&(l=this.addToHttpParams(l,h,"allUserAttributes")),null!=o&&(l=this.addToHttpParams(l,o,"onlyDirectAdmins"));let c,d=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(d=d.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(d=d.set("Authorization","Bearer "+c));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let E=a&&a.context;void 0===E&&(E=new e.qT);let H="json";s&&(H=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let ne=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(n){let ve=new URL(ne),We=ve.pathname.split("/");We[1]="non",ve.pathname=We.join("/"),ne=ve.toString()}return this.httpClient.get(ne,{context:E,params:l,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:i})}getFacilitiesWhereUserIsInRoles(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=u&&(n=this.addToHttpParams(n,u,"user")),r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupRoleNames(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupRoles(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"groupId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupsWhereUserIsInRoles(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=u&&(n=this.addToHttpParams(n,u,"user")),r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getLoggedUser(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getMembersWhereUserIsInRoles(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=u&&(n=this.addToHttpParams(n,u,"user")),r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getPerunPrincipal(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPrincipalRoleNames(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getResourcesWhereUserIsInRoles(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=u&&(n=this.addToHttpParams(n,u,"user")),r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRoleComplementaryObjectsWithAuthorizedGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getRoleComplementaryObjectsWithAuthorizedGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getRoleComplementaryObjectsWithAuthorizedGroups`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getSecurityTeamsWhereUserIsInRoles(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=u&&(n=this.addToHttpParams(n,u,"user")),r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserDirectRoles(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getUserDirectRoles.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getUserDirectRoles`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserRoleNames(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserRoles(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserRolesObtainedFromAuthorizedGroupMemberships(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getUserRolesObtainedFromAuthorizedGroupMemberships.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getUserRolesObtainedFromAuthorizedGroupMemberships`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVosWhereUserIsInRoles(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=u&&(n=this.addToHttpParams(n,u,"user")),r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}isFacilityAdmin(r,u=!1,_="body",C=!1,h){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}isGroupAdmin(r,u=!1,_="body",C=!1,h){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}isPerunAdmin(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}isVoAdmin(r,u=!1,_="body",C=!1,h){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}keepAlive(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}loadAuthorizationComponents(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}refreshMfa(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}setRoleForGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setRoleForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setRoleWithGroupComplementaryObject(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setRoleWithGroupComplementaryObjects(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setRoleWithUserComplementaryObject(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setRoleWithUserComplementaryObjects(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}unsetRoleForGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}unsetRoleForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}unsetRoleWithGroupComplementaryObject(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}unsetRoleWithGroupComplementaryObjects(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}unsetRoleWithUserComplementaryObject(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}unsetRoleWithUserComplementaryObjects(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),T=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}changeConsentStatus(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"consent")),null!=u&&(n=this.addToHttpParams(n,u,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}evaluateConsentsForConsentHub(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"consentHub"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}evaluateConsentsForConsentHubs(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter consentHubs was null or undefined when calling evaluateConsentsForConsentHubs.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"consentHubs[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHubs`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}evaluateConsentsForService(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllConsentHubs(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllConsents(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/consentsManager/getAllConsents`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getConsentById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentForUserAndConsentHub(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==u)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==_)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"consentHub")),null!=_&&(t=this.addToHttpParams(t,_,"status"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getConsentHubByFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentHubByResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getConsentHubByResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentHubByResource`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentHubById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentHubById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentHubByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentsForConsentHub(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"consentHub"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentsForConsentHubByResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getConsentsForConsentHubByResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHubByResource`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentsForConsentHubWithStatus(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"consentHub")),null!=u&&(n=this.addToHttpParams(n,u,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getConsentsForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getConsentsForUserAndConsentHub(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==u)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"consentHub"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getConsentsForUserWithStatus(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}updateConsentHub(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/consentsManager/updateConsentHub`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),I=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addExtSourceWithGroupSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addExtSourceWithVoSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addExtSourcesWithGroupSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling addExtSourcesWithGroupSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling addExtSourcesWithGroupSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"extSources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSources/g-s`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addExtSourcesWithVoSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addExtSourcesWithVoSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling addExtSourcesWithVoSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"extSources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSources/v-s`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}createExtSourceFromExtSourceObject(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ExtSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createExtSourceWithNameType(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==u)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=u&&(n=this.addToHttpParams(n,u,"type"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteExtSource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getExtSourceById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getExtSourceByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getExtSources(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/extSourcesManager/getExtSources`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getGroupExtSources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoExtSources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}loadExtSourcesDefinitions(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}removeExtSourceWithGroupSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeExtSourceWithVoSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeExtSourcesWithGroupSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeExtSourcesWithGroupSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling removeExtSourcesWithGroupSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"extSources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSources/g-s`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeExtSourcesWithVoSource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeExtSourcesWithVoSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling removeExtSourcesWithVoSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"extSources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSources/v-s`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),q=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addFacilityAdminGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityAdminGroupByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityAdminUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityAdminUserByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwner(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwnerByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwnerByFacilityNameOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwnerByOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwners(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwners.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling addFacilityOwners.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"owners[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwnersByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByFacilityName.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling addFacilityOwnersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"owners[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwnersByFacilityNameOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling addFacilityOwnersByFacilityNameOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"ownerNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/f-o-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addFacilityOwnersByOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling addFacilityOwnersByOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"ownerNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/o-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addHost(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==u)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"hostname"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addHostByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==u)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"hostname"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addHosts(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==u)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"hostnames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addHostsByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==u)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"hostnames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}assignSecurityTeam(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}assignSecurityTeamByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=u&&(n=this.addToHttpParams(n,u,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyAttributesByDestinationName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=u&&(n=this.addToHttpParams(n,u,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyAttributesBySourceDestinationNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=u&&(n=this.addToHttpParams(n,u,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyAttributesBySourceName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=u&&(n=this.addToHttpParams(n,u,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyManagers(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=u&&(n=this.addToHttpParams(n,u,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyManagersByDestinationName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=u&&(n=this.addToHttpParams(n,u,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyManagersBySourceDestinationNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=u&&(n=this.addToHttpParams(n,u,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyManagersBySourceName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=u&&(n=this.addToHttpParams(n,u,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyOwners(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=u&&(n=this.addToHttpParams(n,u,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyOwnersByDestinationName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=u&&(n=this.addToHttpParams(n,u,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyOwnersBySourceDestinationNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=u&&(n=this.addToHttpParams(n,u,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyOwnersBySourceName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=u&&(n=this.addToHttpParams(n,u,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}createFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter name was null or undefined when calling createFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=u&&(n=this.addToHttpParams(n,u,"description"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteFacilityByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllFacilities(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/facilitiesManager/getFacilities`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllowedGroups(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getAllowedGroupsByFacilityName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getAllowedRichGroupsWithAttributes(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")}),null!=_&&(i=this.addToHttpParams(i,_,"vo")),null!=C&&(i=this.addToHttpParams(i,C,"service"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getAllowedRichGroupsWithAttributesByFacilityName(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")}),null!=_&&(i=this.addToHttpParams(i,_,"vo")),null!=C&&(i=this.addToHttpParams(i,C,"service"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getAllowedUsersOfFacility(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getAllowedUsersOfFacilityByFacilityName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getAllowedVos(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllowedVosByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedFacilitiesByGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedFacilitiesByMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedFacilitiesByService(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedFacilitiesByUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedResourcesByAssignedServiceForFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAssignedResourcesForFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedResourcesForFacilityByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedRichResourcesForFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedRichResourcesForFacilityAndService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-s`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAssignedRichResourcesForFacilityByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedSecurityTeams(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedSecurityTeamsByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedUsers(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAssignedUsersByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getBansForFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facilityId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getBansForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getEnricheFacilitydBansForUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnricheFacilitydBansForUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedBansForUser`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedBansForFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedBansForFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedBansForFacility`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedFacilities(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getEnrichedHosts(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilitiesByAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attributeName")),null!=u&&(n=this.addToHttpParams(n,u,"attributeValue"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilitiesByAttributeWithAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttributeWithAttributes.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttributeWithAttributes.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getFacilitiesByAttributeWithAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"attributeName")),null!=u&&(t=this.addToHttpParams(t,u,"attributeValue")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttributeWithAttributes`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getFacilitiesByDestination(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilitiesByHostName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilitiesByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilitiesCount(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getFacilitiesWhereUserIsAdmin(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityAdminGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityAdminGroupsByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups/f-name`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityAdminUsers(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"onlyDirectAdmins"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAdmins`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilityAdminUsersByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"onlyDirectAdmins"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilityBan(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getBan`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacilityBanById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getBanById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityForHost(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityOwners(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getOwners`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityOwnersByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getHostById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getHostById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getHostById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getHosts(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getHosts`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getHostsByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getHostsByHostname(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getHostsCount(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getHostsCountByFacilityName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getOwnerFacilities(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"owner"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichFacilities(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}removeBanByUserIdFacilityId(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityAdminGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityAdminGroupByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityAdminUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityAdminUserByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityBanById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeFacilityOwner(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityOwnerByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityOwnerByFacilityNameOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityOwnerByOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityOwners(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwners.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling removeFacilityOwners.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"owners[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityOwnersByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByFacilityName.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling removeFacilityOwnersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"owners[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityOwnersByFacilityNameOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling removeFacilityOwnersByFacilityNameOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"ownerNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/f-o-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeFacilityOwnersByOwnerName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling removeFacilityOwnersByOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"ownerNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/o-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeHost(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHost.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeHostByHostname(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeHosts(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==u)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"hosts[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeHostsByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==u)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"hosts[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeSecurityTeam(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeSecurityTeamByFacilityName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}setFacilityBan(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/setBan`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFacility was null or undefined when calling updateFacility.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/updateFacility`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateFacilityBan(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/updateBan`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),ue=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addMember(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling addMember.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"groups[]")}),null!=u&&(n=this.addToHttpParams(n,u,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addMembers(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==u)throw new Error("Required parameter members was null or undefined when calling addMembers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"members[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}allowGroupToHierarchicalVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}allowGroupsToHierarchicalVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling allowGroupsToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"groups[]")}),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupsToHierarchicalVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}canExtendMembershipInGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyMembers(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter sourceGroup was null or undefined when calling copyMembers.");if(null==u)throw new Error("Required parameter destinationGroups was null or undefined when calling copyMembers.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"sourceGroup")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"destinationGroups")}),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"members")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/groupsManager/copyMembers`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}createGroupUnion(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==u)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resultGroup")),null!=u&&(n=this.addToHttpParams(n,u,"operandGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}createGroupWithParentGroupNameDescription(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==u)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==_)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"parentGroup")),null!=u&&(t=this.addToHttpParams(t,u,"name")),null!=_&&(t=this.addToHttpParams(t,_,"description"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}createGroupWithVoNameDescription(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==u)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==_)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"name")),null!=_&&(t=this.addToHttpParams(t,_,"description"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}deleteGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/deleteGroups`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}disallowGroupToHierarchicalVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}disallowGroupsToHierarchicalVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling disallowGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling disallowGroupsToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"groups[]")}),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupsToHierarchicalVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}extendMembershipInGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}forceAllSubGroupsSynchronization(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}forceGroupStructureSynchronization(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}forceGroupSynchronization(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllAllowedGroupsToHierarchicalVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllGroups`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllGroupsFromAllVos(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllMemberGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllRichGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"attrNames[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllRichGroupsWithAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAllRichSubGroupsWithGroupAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==u)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"name"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/getGroupByName`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupDirectMembersCount(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupDirectMembersCount.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupDirectMembersCount`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupMemberById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupMembers`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupMembersCount(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupMembersCountsByGroupStatus(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupMembersCountsByVoStatus(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupRichMembersByIds(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==u)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"members[]")}),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getGroupUnions(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==u)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"reverseDirection"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/getGroupUnions`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupsByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupsPage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/getGroupsPage`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getGroupsWhereMemberIsActive(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getIndirectMembershipPaths(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMemberGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getMemberGroups`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMemberRichGroupsWithAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getParentGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getParentGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getParentGroup`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichGroupByIdWithAttributesByNames(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"groupId")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getSubgroupsPage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getVoAllAllowedGroupsToHierarchicalVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"memberVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}isAllowedGroupToHierarchicalVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}isGroupMember(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==u)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/isGroupMember`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}moveGroupWithDestinationGroupMovingGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let n=new e.LE({encoder:this.encoder});null!=u&&(n=this.addToHttpParams(n,u,"destinationGroup")),null!=r&&(n=this.addToHttpParams(n,r,"movingGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupUnion(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==u)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resultGroup")),null!=u&&(n=this.addToHttpParams(n,u,"operandGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeMember(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeMember.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"groups[]")}),null!=u&&(n=this.addToHttpParams(n,u,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeMembers(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==u)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"members[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}setGroupsMemberStatus(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==u)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==_)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"status"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}updateGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/updateGroup`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),Q=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addMemberCandidates(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAddMemberCandidates was null or undefined when calling addMemberCandidates.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/addMemberCandidates`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}canExtendMembership(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/canExtendMembership`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}createMemberForCandidate(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/createMember/c`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createMemberForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/createMember/u`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createMemberFromExtSource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/createMember/extSource`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createSpecificMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/createSpecificMember`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createSponsoredMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createSponsoredMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createSponsoredMembersFromCSV(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"members[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}extendMembership(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}findCompleteRichMembersByAttributes(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(E=>{t=this.addToHttpParams(t,E,"attrsNames[]")}),null!=u&&(t=this.addToHttpParams(t,u,"searchString")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"allowedStatuses[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}findCompleteRichMembersForGroup(r,u,_,C,h,o,n=!1,t="body",i=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==C)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let l=new e.LE({encoder:this.encoder});null!=r&&(l=this.addToHttpParams(l,r,"group")),u&&u.forEach(ve=>{l=this.addToHttpParams(l,ve,"attrsNames[]")}),h&&h.forEach(ve=>{l=this.addToHttpParams(l,ve,"allowedStatuses[]")}),o&&o.forEach(ve=>{l=this.addToHttpParams(l,ve,"allowedGroupStatuses[]")}),null!=_&&(l=this.addToHttpParams(l,_,"searchString")),null!=C&&(l=this.addToHttpParams(l,C,"lookingInParentGroup"));let c,d=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(d=d.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(d=d.set("Authorization","Bearer "+c));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let E=a&&a.context;void 0===E&&(E=new e.qT);let H="json";s&&(H=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let ne=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`;if(n){let ve=new URL(ne),We=ve.pathname.split("/");We[1]="non",ve.pathname=We.join("/"),ne=ve.toString()}return this.httpClient.get(ne,{context:E,params:l,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:i})}findCompleteRichMembersForVo(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(H=>{i=this.addToHttpParams(i,H,"attrsNames[]")}),C&&C.forEach(H=>{i=this.addToHttpParams(i,H,"allowedStatuses[]")}),null!=_&&(i=this.addToHttpParams(i,_,"searchString"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}findMembersInVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"searchString"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/findMembersInVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}findSponsoredCompleteRichMembersForVo(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==C)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(H=>{i=this.addToHttpParams(i,H,"attrsNames[]")}),null!=_&&(i=this.addToHttpParams(i,_,"searchString")),null!=C&&(i=this.addToHttpParams(i,C,"onlySponsored"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getAllMembers(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/membersManager/getAllMembers`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllNamespacesRules(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllSponsoredMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllSponsoredMembersAndTheirSponsors(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getCompleteRichMembersForGroup(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==u)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group")),_&&_.forEach(ne=>{a=this.addToHttpParams(a,ne,"allowedStatuses[]")}),C&&C.forEach(ne=>{a=this.addToHttpParams(a,ne,"allowedGroupStatuses[]")}),null!=u&&(a=this.addToHttpParams(a,u,"lookingInParentGroup")),h&&h.forEach(ne=>{a=this.addToHttpParams(a,ne,"attrsNames[]")});let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";c&&(E=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let H=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`;if(o){let ne=new URL(H),ve=ne.pathname.split("/");ve[1]="non",ne.pathname=ve.join("/"),H=ne.toString()}return this.httpClient.get(H,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:l,observe:n,reportProgress:t})}getCompleteRichMembersForGroupResource(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==_)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==C)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"resource")),_&&_.forEach(H=>{i=this.addToHttpParams(i,H,"attrsNames[]")}),C&&C.forEach(H=>{i=this.addToHttpParams(i,H,"allowedStatuses[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getCompleteRichMembersForVo(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"allowedStatuses[]")}),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"attrsNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberByExtSourceNameAndExtLogin(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==u)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==_)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"extLogin")),null!=_&&(t=this.addToHttpParams(t,_,"extSourceName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getMemberById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMemberById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMemberByUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/getMemberByUser`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMembers(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/getMembers`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMembersByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembersByIds`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMembersByUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembersByUser`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMembersCount(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembersCount`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMembersPage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/getMembersPage`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getMembersWithStatusCount(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/getMembersCount/status`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRichMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getRichMember`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichMemberWithAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichMembersByIds(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"ids[]")}),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRichMembersNoUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getSponsoredMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getSponsoredMembersAndTheirSponsors(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getSponsorsByMember(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/getSponsors/member`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getSponsorsByVo(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==_)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"extSourceName")),null!=_&&(i=this.addToHttpParams(i,_,"extLogin")),C&&C.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/membersManager/getSponsors/vo`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}moveMembership(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==u)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==_)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"sourceUser")),null!=_&&(t=this.addToHttpParams(t,_,"targetUser"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeSponsor(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"sponsor"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeSponsors(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeSponsors.");if(null==u)throw new Error("Required parameter sponsorIds was null or undefined when calling removeSponsors.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"sponsorIds")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsors`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}sendAccountActivationLinkEmail(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==_)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==C)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"namespace")),null!=_&&(i=this.addToHttpParams(i,_,"emailAttributeURN")),null!=C&&(i=this.addToHttpParams(i,C,"language"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.post(E,null,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}sendPasswordResetLinkEmail(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==_)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==C)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member")),null!=u&&(a=this.addToHttpParams(a,u,"namespace")),null!=_&&(a=this.addToHttpParams(a,_,"emailAttributeURN")),null!=C&&(a=this.addToHttpParams(a,C,"language")),null!=h&&(a=this.addToHttpParams(a,h,"baseUrl"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";c&&(E=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let H=`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`;if(o){let ne=new URL(H),ve=ne.pathname.split("/");ve[1]="non",ne.pathname=ve.join("/"),H=ne.toString()}return this.httpClient.post(H,null,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:l,observe:n,reportProgress:t})}setSponsoredMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/setSponsoredMember`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setSponsorshipForMember(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"sponsoredMember")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}setStatus(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling setStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}sponsorMember(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}sponsorMembers(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter members was null or undefined when calling sponsorMembers.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMembers.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(E=>{t=this.addToHttpParams(t,E,"members[]")}),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMembers`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}updateSponsorshipValidity(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}validateMemberAsync(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),be=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}createOwner(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/ownersManager/createOwner`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteOwner(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"owner")),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteOwners(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter owners was null or undefined when calling deleteOwners.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"owners[]")}),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwners`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAllOwners(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/ownersManager/getOwners`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getOwnerById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/ownersManager/getOwnerById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getOwnerByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"owner"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/ownersManager/getOwnerByName`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),me=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}sentMessageToRTWithMemberQueue(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==u)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==_)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==C)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"memberId")),null!=u&&(i=this.addToHttpParams(i,u,"queue")),null!=_&&(i=this.addToHttpParams(i,_,"subject")),null!=C&&(i=this.addToHttpParams(i,C,"text"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.post(E,null,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}sentMessageToRTWithQueue(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==u)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==_)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"queue")),null!=u&&(t=this.addToHttpParams(t,u,"subject")),null!=_&&(t=this.addToHttpParams(t,_,"text"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}sentMessageToRTWithVo(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==u)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==_)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"voId")),null!=u&&(t=this.addToHttpParams(t,u,"subject")),null!=_&&(t=this.addToHttpParams(t,_,"text"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}sentMessageToRTWithVoQueue(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==u)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==_)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==C)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"voId")),null!=u&&(i=this.addToHttpParams(i,u,"queue")),null!=_&&(i=this.addToHttpParams(i,_,"subject")),null!=C&&(i=this.addToHttpParams(i,C,"text"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.post(E,null,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),fe=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addApplicationMailForGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}addApplicationMailForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}addGroupsToAutoRegistration(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"groups[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}approveApplication(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}checkForSimilarRichIdentities(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.post(a,null,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}checkForSimilarUsersWithAuthInfo(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.post(a,null,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}consolidate(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/consolidate`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}consolidateIdentityUsingToken(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"token"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}copyFormFromGroupToGroup(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=u&&(n=this.addToHttpParams(n,u,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyFormFromGroupToVo(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=u&&(n=this.addToHttpParams(n,u,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyFormFromVoToGroup(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=u&&(n=this.addToHttpParams(n,u,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyFormFromVoToVo(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=u&&(n=this.addToHttpParams(n,u,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyMailsFromGroupToGroup(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=u&&(n=this.addToHttpParams(n,u,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyMailsFromGroupToVo(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=u&&(n=this.addToHttpParams(n,u,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyMailsFromVoToGroup(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=u&&(n=this.addToHttpParams(n,u,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyMailsFromVoToVo(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=u&&(n=this.addToHttpParams(n,u,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}createApplicationFormInGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}createApplicationFormInVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteApplication(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteApplicationMailForGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==u)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"id"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteApplicationMailForVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==u)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"id"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteGroupsFromAutoRegistration(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"groups[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getApplicationById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getApplicationById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getApplicationDataById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getApplicationMailsForGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getApplicationMailsForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getApplicationsForGroup(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(H=>{i=this.addToHttpParams(i,H,"state[]")}),null!=_&&(i=this.addToHttpParams(i,_,"dateFrom")),null!=C&&(i=this.addToHttpParams(i,C,"dateTo"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getApplicationsForMember(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getApplicationsForVo(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(H=>{i=this.addToHttpParams(i,H,"state[]")}),null!=_&&(i=this.addToHttpParams(i,_,"dateFrom")),null!=C&&(i=this.addToHttpParams(i,C,"dateTo"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getApplicationsPage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getConsolidatorToken(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getFormItemsForGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getFormItems/group`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFormItemsForGroupWithType(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"type"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFormItemsForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFormItemsForVoWithType(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"type"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupApplicationForm(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupsToAutoRegistration(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoApplicationForm(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}invitationFormExists(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling invitationFormExists.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/invitationFormExists`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}inviteMemberCandidates(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputInviteMemberCandidates was null or undefined when calling inviteMemberCandidates.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/inviteMemberCandidates`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}rejectApplication(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"id")),null!=u&&(n=this.addToHttpParams(n,u,"reason"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}sendInvitation(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==u)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let i=new e.LE({encoder:this.encoder});null!=_&&(i=this.addToHttpParams(i,_,"voId")),null!=C&&(i=this.addToHttpParams(i,C,"name")),null!=r&&(i=this.addToHttpParams(i,r,"email")),null!=u&&(i=this.addToHttpParams(i,u,"language"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.post(E,null,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}sendInvitationForGroup(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==u)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new e.LE({encoder:this.encoder});null!=_&&(a=this.addToHttpParams(a,_,"voId")),null!=C&&(a=this.addToHttpParams(a,C,"groupId")),null!=h&&(a=this.addToHttpParams(a,h,"name")),null!=r&&(a=this.addToHttpParams(a,r,"email")),null!=u&&(a=this.addToHttpParams(a,u,"language"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";c&&(E=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let H=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`;if(o){let ne=new URL(H),ve=ne.pathname.split("/");ve[1]="non",ne.pathname=ve.join("/"),H=ne.toString()}return this.httpClient.post(H,null,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:l,observe:n,reportProgress:t})}sendInvitationGroupToExistingUser(r,u,_,C=!1,h="body",o=!1,n){let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"userId")),null!=u&&(t=this.addToHttpParams(t,u,"voId")),null!=_&&(t=this.addToHttpParams(t,_,"groupId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}sendInvitationToExistingUser(r,u,_=!1,C="body",h=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userId")),null!=u&&(n=this.addToHttpParams(n,u,"voId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}sendInvitationsFromCsv(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}sendMessage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/sendMessage`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}setSendingEnabled(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}submitApplication(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/submitApplication`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateApplicationMail(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateForm(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/updateForm`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateFormItemData(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/updateFormItemData`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateFormItemsData(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateFormItemsForGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateFormItemsForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}verifyApplication(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),re=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}activateGroupResourceAssignment(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"async"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}addAdminToGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addAdminToUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addResourceSelfServiceGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addResourceSelfServiceUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}allowGroupsToResources(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(E=>{t=this.addToHttpParams(t,E,"groups[]")}),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"resources[]")}),null!=_&&(t=this.addToHttpParams(t,_,"async"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}assignGroupToResource(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group")),null!=u&&(a=this.addToHttpParams(a,u,"resource")),null!=_&&(a=this.addToHttpParams(a,_,"async")),null!=C&&(a=this.addToHttpParams(a,C,"assignInactive")),null!=h&&(a=this.addToHttpParams(a,h,"autoAssignSubgroups"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";c&&(E=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let H=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`;if(o){let ne=new URL(H),ve=ne.pathname.split("/");ve[1]="non",ne.pathname=ve.join("/"),H=ne.toString()}return this.httpClient.post(H,null,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:l,observe:n,reportProgress:t})}assignGroupToResources(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group")),u&&u.forEach(ne=>{a=this.addToHttpParams(a,ne,"resources[]")}),null!=_&&(a=this.addToHttpParams(a,_,"async")),null!=C&&(a=this.addToHttpParams(a,C,"assignInactive")),null!=h&&(a=this.addToHttpParams(a,h,"autoAssignSubgroups"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";c&&(E=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let H=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`;if(o){let ne=new URL(H),ve=ne.pathname.split("/");ve[1]="non",ne.pathname=ve.join("/"),H=ne.toString()}return this.httpClient.post(H,null,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:l,observe:n,reportProgress:t})}assignGroupsToResource(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(ne=>{a=this.addToHttpParams(a,ne,"groups[]")}),null!=u&&(a=this.addToHttpParams(a,u,"resource")),null!=_&&(a=this.addToHttpParams(a,_,"async")),null!=C&&(a=this.addToHttpParams(a,C,"assignInactive")),null!=h&&(a=this.addToHttpParams(a,h,"autoAssignSubgroups"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";c&&(E=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let H=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`;if(o){let ne=new URL(H),ve=ne.pathname.split("/");ve[1]="non",ne.pathname=ve.join("/"),H=ne.toString()}return this.httpClient.post(H,null,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:l,observe:n,reportProgress:t})}assignResourceTagToResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}assignResourceTagsToResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAssignResourceTagsToResource was null or undefined when calling assignResourceTagsToResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagsToResource`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}assignService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling assignService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}assignServices(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==u)throw new Error("Required parameter services was null or undefined when calling assignServices.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"services[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}assignServicesPackage(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==u)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"servicesPackage"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}copyResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/copyResource`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createResource(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==_)throw new Error("Required parameter name was null or undefined when calling createResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"facility")),null!=_&&(i=this.addToHttpParams(i,_,"name")),null!=C&&(i=this.addToHttpParams(i,C,"description"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.post(E,null,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}createResourceTagWithResourceTag(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createResourceTagWithTagName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"tagName")),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deactivateGroupResourceAssignment(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteAllResources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteAllResourcesTagsForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteResourceTag(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getAdminGroups(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAdmins(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"onlyDirectAdmins"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getAdmins`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAllResources(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/resourcesManager/getAllResources`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllResourcesByResourceTag(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getAllResourcesTagsForResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllResourcesTagsForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllResourcesWhereUserIsAdmin(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllowedMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllowedResources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllowedUsersOfResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedGroups(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAssignedMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedMembersWithStatus(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedResourcesWithGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedResourcesWithMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedResourcesWithStatus(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedRichMembers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedRichResourcesWithGroup(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedRichResourcesWithMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedRichResourcesWithMemberService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAssignedServicesToResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getBansForMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getBansForMember`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getBansForResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getBansForResource`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getEnrichedBansForResource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getEnrichedBansForResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForResource`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedBansForUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnrichedBansForUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForUser`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedResourceById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"id")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedResourcesForFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedResourcesForVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getFacility`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupAssignments(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getMailingServiceRichResourcesWithMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getResourceAssignments(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourceBan(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getBan`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourceBanById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getBanById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getResourceById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getResourceById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getResourceByName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==_)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"name"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/resourcesManager/getResourceByName`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getResources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getResources`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getResourcesByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getResourcesCountForAll(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getResourcesCountForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getResourcesFromVoWhereUserIsAdmin(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getResourcesWhereGroupIsAdmin(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getResourcesWhereUserIsAdmin(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==_)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"user"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getRichAdmins(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==u)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==_)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==C)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(H=>{i=this.addToHttpParams(i,H,"specificAttributes")}),null!=_&&(i=this.addToHttpParams(i,_,"allUserAttributes")),null!=C&&(i=this.addToHttpParams(i,C,"onlyDirectAdmins"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getRichResourceById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichResources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getRichResources`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichResourcesByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getVo`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeAllResourceTagsFromResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeBanByMemberAndResource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupAdminResource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupFromResource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupFromResources(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"resources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeGroupsFromResource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"groups[]")}),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeResourceBanById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeResourceSelfServiceGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeResourceSelfServiceUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeResourceTagFromResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}removeResourceTagsFromResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputRemoveResourceTagsFromResource was null or undefined when calling removeResourceTagsFromResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagsFromResource`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}removeService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeServiceForResources(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resources was null or undefined when calling removeServiceForResources.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeServiceForResources.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"resources[]")}),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService/forResources`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeServices(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==u)throw new Error("Required parameter services was null or undefined when calling removeServices.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"services[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeServicesPackage(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==u)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"servicesPackage"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeUserAdminResource(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}setResourceBan(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/setBan`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}unallowGroupsFromResources(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"groups[]")}),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"resources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}updateResource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/updateResource`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateResourceBan(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/updateBan`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateResourceTag(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),v=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}getAttributesMatchResources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetMatchResources was null or undefined when calling getAttributesMatchResources.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/searcher/getResources/attributes-match`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getAttributesResources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetResources was null or undefined when calling getAttributesResources.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/searcher/getResources/attributes`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getFacilities(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetFacilities was null or undefined when calling getFacilities.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/searcher/getFacilities`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getMembersByUserAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetMembersByUserAttributes was null or undefined when calling getMembersByUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/searcher/getMembersByUserAttributes`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getUsersSearcher(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetUsers was null or undefined when calling getUsersSearcher.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/searcher/getUsers`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),V=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addDestination(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==_)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==C)throw new Error("Required parameter type was null or undefined when calling addDestination.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service")),null!=u&&(a=this.addToHttpParams(a,u,"facility")),null!=_&&(a=this.addToHttpParams(a,_,"destination")),null!=C&&(a=this.addToHttpParams(a,C,"type")),null!=h&&(a=this.addToHttpParams(a,h,"propagationType"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";c&&(E=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let H=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`;if(o){let ne=new URL(H),ve=ne.pathname.split("/");ve[1]="non",ne.pathname=ve.join("/"),H=ne.toString()}return this.httpClient.post(H,null,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:l,observe:n,reportProgress:t})}addDestinationToMultipleServices(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/addDestination`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}addDestinationsDefinedByHostsOnFacilityWithFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addDestinationsForAllServicesOnFacility(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==_)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"destination")),null!=_&&(i=this.addToHttpParams(i,_,"type")),null!=C&&(i=this.addToHttpParams(i,C,"propagationType"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.post(E,null,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}addRequiredAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addRequiredAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addServiceToServicesPackage(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==u)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"servicesPackage")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}blockAllServicesOnDestinationById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}blockAllServicesOnDestinationByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==u)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"destination")),null!=u&&(n=this.addToHttpParams(n,u,"destinationType"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}blockAllServicesOnFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}blockServiceOnDestination(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}blockServiceOnDestinationWithNameAndType(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==_)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"destination")),null!=_&&(t=this.addToHttpParams(t,_,"destinationType"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}blockServiceOnDestinations(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinations.");if(null==u)throw new Error("Required parameter destinations was null or undefined when calling blockServiceOnDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"destinations[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestinations`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}blockServiceOnFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}blockServicesOnDestinations(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputBlockServicesOnDestinations was null or undefined when calling blockServicesOnDestinations.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/blockServicesOnDestinations`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createService(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==u)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==_)throw new Error("Required parameter script was null or undefined when calling createService.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"name")),null!=u&&(t=this.addToHttpParams(t,u,"description")),null!=_&&(t=this.addToHttpParams(t,_,"script"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}createServiceWithService(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateService was null or undefined when calling createServiceWithService.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/createService`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createServicesPackage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/createServicesPackage`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createServicesPackageByNameAndDescription(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==u)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=u&&(n=this.addToHttpParams(n,u,"description"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteService(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling deleteService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteServices(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter services was null or undefined when calling deleteServices.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(s=>{n=this.addToHttpParams(n,s,"services[]")}),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServices`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteServicesPackage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}forceServicePropagation(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAllDestinations(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/servicesManager/getDestinations/all`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllRichDestinationsForFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllRichDestinationsForService(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedResources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedServices(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedServicesVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServicesVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getAssignedServicesVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f-v`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getDataWithGroups(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getDataWithVos(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/getDataWithVos`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getDestinationById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getDestinationById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getDestinations(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getDestinationsCount(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getFacilitiesDestinations(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityAssignedServicesForGUI(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFlatData(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/getFlatData`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getHashedDataWithGroups(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"consentEval"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getHashedHierarchicalData(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"consentEval"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getHierarchicalData(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getRichDestinations(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/getRichDestinations`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getServiceById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getServiceById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServiceByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getServiceByName`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServices(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/servicesManager/getServices`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getServicesBlockedOnDestination(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServicesBlockedOnFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServicesByAttributeDefinition(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServicesFromServicesPackage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServicesPackageById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServicesPackageByName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getServicesPackages(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/servicesManager/getServicesPackages`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}isServiceBlockedOnDestination(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}isServiceBlockedOnFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}planServicePropagation(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeAllDestinations(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeAllRequiredAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeDestination(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==_)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==C)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility")),null!=_&&(i=this.addToHttpParams(i,_,"destination")),null!=C&&(i=this.addToHttpParams(i,C,"type"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.post(E,null,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}removeDestinations(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeDestinations.");if(null==_)throw new Error("Required parameter destinations was null or undefined when calling removeDestinations.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),_&&_.forEach(E=>{t=this.addToHttpParams(t,E,"destinations[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestinations`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeDestinationsByRichDestinations(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputRemoveRichDestinations was null or undefined when calling removeDestinationsByRichDestinations.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/removeDestinationsByRichDestinations`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}removeRequiredAttribute(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeRequiredAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeServiceFromServicesPackage(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"servicesPackage")),null!=u&&(n=this.addToHttpParams(n,u,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}unblockAllServicesOnDestinationById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}unblockAllServicesOnDestinationByName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==u)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"destination")),null!=u&&(n=this.addToHttpParams(n,u,"destinationType"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}unblockAllServicesOnFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}unblockServiceOnDestinationById(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}unblockServiceOnDestinationByName(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==_)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"destination")),null!=_&&(t=this.addToHttpParams(t,_,"destinationType"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}unblockServiceOnDestinations(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinations.");if(null==u)throw new Error("Required parameter destinations was null or undefined when calling unblockServiceOnDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"destinations[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestinations`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}unblockServiceOnFacility(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}unblockServicesOnDestinations(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUnlockServicesOnDestinations was null or undefined when calling unblockServicesOnDestinations.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/unblockServicesOnDestinations`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateService(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateService was null or undefined when calling updateService.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/updateService`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateServicesPackage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),W=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}countTasks(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/tasksManager/countTasks`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}deleteTask(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter TaskIdObject was null or undefined when calling deleteTask.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/tasksManager/deleteTask`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteTaskResultById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter TaskResultIdObject was null or undefined when calling deleteTaskResultById.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteTaskResultsByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter taskResultIds was null or undefined when calling deleteTaskResultsByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"taskResultIds")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/tasksManager/deleteTaskResultsByIds`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}deleteTaskResultsIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter TaskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteTaskResultsNames(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter TaskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getAllFacilitiesStates(r,u=!1,_="body",C=!1,h){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAllResourcesState(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"voId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityServicesState(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getFacilityState(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getFacilityState`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getTask(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getTask.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/tasksManager/getTask`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getTaskById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getTaskById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getTaskResultById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"taskResult"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getTaskResultById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getTaskResults(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/tasksManager/getTaskResults`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getTaskResultsByTask(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getTaskResultsForDestinations(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"destinations[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getTaskResultsForGUIByTask(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getTaskResultsForGUIByTaskAndDestination(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"task")),null!=u&&(n=this.addToHttpParams(n,u,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getTaskResultsForGUIByTaskOnlyNewest(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}isThereSuchTask(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}listAllTasks(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/tasksManager/listAllTasks`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}listAllTasksForFacility(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}suspendTasksPropagation(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"suspend"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),ee=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addSpecificUserOwner(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==u)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"specificUser"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addUserExtSource(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}anonymizeUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}changeNonAuthzPasswordByToken(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}changePasswordForLogin(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}changePasswordForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}checkPasswordResetRequestByTokenIsValid(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"token"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}checkPasswordStrength(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createAlternativePassword(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}createServiceUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteAlternativePassword(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==u)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==_)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"loginNamespace")),null!=_&&(t=this.addToHttpParams(t,_,"passwordId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}deletePasswordForLogin(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"login")),null!=u&&(n=this.addToHttpParams(n,u,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deletePasswordForUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}deleteUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}findRichUsers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}findRichUsersWithAttributes(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"searchString")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrsNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}findUsers(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/findUsers`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}generateAccountForName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"namespace")),null!=u&&(n=this.addToHttpParams(n,u,"name"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAllRichUsersWithAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"includedSpecificUsers"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getAssignedRichResourcesForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getGroupsForFacilityWhereUserIsActive(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupsForResourceWhereUserIsActive(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupsInVoWhereUserIsAdmin(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getGroupsWhereUserIsAdmin(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getPendingPreferredEmailChanges(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichUserExtSources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichUserWithAttributes(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichUsersByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichUsersWithAttributesByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichUsersWithoutVoWithAttributes(r,u=!1,_="body",C=!1,h){let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"attrsNames[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getSpecificUsersByUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getSponsorsForMember(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getSponsorsForMemberByVoAndLogin(r,u,_,C,h=!1,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==_)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"extSourceName")),null!=_&&(i=this.addToHttpParams(i,_,"extLogin")),C&&C.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(a=a.set("Accept",d));let c=t&&t.context;void 0===c&&(c=new e.qT);let s="json";d&&(s=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let E=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(h){let H=new URL(E),ne=H.pathname.split("/");ne[1]="non",H.pathname=ne.join("/"),E=H.toString()}return this.httpClient.get(E,{context:c,params:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getUserByExtSourceNameAndExtLogin(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"extLogin")),null!=u&&(n=this.addToHttpParams(n,u,"extSourceName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getUserById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserExtSourceByExtLoginAndExtSourceName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==u)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"extSourceName")),null!=u&&(n=this.addToHttpParams(n,u,"extSourceLogin"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserExtSourceById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserExtSourceByUniqueAttributeValueAndAttributeId(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attributeId")),null!=u&&(n=this.addToHttpParams(n,u,"attributeValue"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserExtSourceByUniqueAttributeValueAndAttributeName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attributeName")),null!=u&&(n=this.addToHttpParams(n,u,"attributeValue"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getUserExtSources(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUserExtSourcesByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUsers(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/usersManager/getUsers`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getUsersByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUsersBySpecificUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"specificUser"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getUsersPage(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}getVosWhereUserIsAdmin(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVosWhereUserIsMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}isLoginAvailable(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==u)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"loginNamespace")),null!=u&&(n=this.addToHttpParams(n,u,"login"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}loginExist(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeSpecificUserOwner(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==u)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"specificUser"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeUserExtSource(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==u)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"userExtSource")),null!=_&&(t=this.addToHttpParams(t,_,"force"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}removeUserExtSources(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==u)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"userExtSources")}),null!=_&&(t=this.addToHttpParams(t,_,"force"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}requestPreferredEmailChange(r,u,_,C,h,o,n=!1,t="body",i=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==u)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let l=new e.LE({encoder:this.encoder});null!=r&&(l=this.addToHttpParams(l,r,"user")),null!=u&&(l=this.addToHttpParams(l,u,"email")),null!=_&&(l=this.addToHttpParams(l,_,"lang")),null!=C&&(l=this.addToHttpParams(l,C,"linkPath")),null!=h&&(l=this.addToHttpParams(l,h,"customUrl")),null!=o&&(l=this.addToHttpParams(l,o,"idpFilter"));let c,d=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(d=d.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(d=d.set("Authorization","Bearer "+c));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let E=a&&a.context;void 0===E&&(E=new e.qT);let H="json";s&&(H=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let ne=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(n){let ve=new URL(ne),We=ve.pathname.split("/");We[1]="non",ve.pathname=We.join("/"),ne=ve.toString()}return this.httpClient.post(ne,null,{context:E,params:l,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:i})}reservePasswordForLogin(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}reservePasswordForUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}reserveRandomPassword(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}setLogin(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==u)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==_)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"login")),null!=_&&(t=this.addToHttpParams(t,_,"namespace"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.post(s,null,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}updateUser(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/updateUser`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateUserExtSourceLastAccess(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}validatePasswordForLogin(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"login")),null!=u&&(n=this.addToHttpParams(n,u,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}validatePasswordForUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=u&&(n=this.addToHttpParams(n,u,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}validatePreferredEmailChangeWithToken(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==u)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"token")),null!=u&&(n=this.addToHttpParams(n,u,"u"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),ie=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}getAppsConfig(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getGuiConfiguration(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getNewGuiAlert(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunRPCVersion(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunStatistics(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunStatus(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunSystemTimeInMillis(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),xe=(()=>{class we{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new M,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new f}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(C=>r=this.addToHttpParamsRecursive(r,C,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(C=>r=this.addToHttpParamsRecursive(r,u[C],null!=_?`${_}.${C}`:C));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addMemberVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"memberVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addSponsorRoleToGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addSponsorRoleToUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addVoAdminGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}addVoAdminUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}createVoWithName(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==u)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=u&&(n=this.addToHttpParams(n,u,"shortName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}createVoWithVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/createVo/withVo`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}deleteVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}findCandidates(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"id")),null!=u&&(t=this.addToHttpParams(t,u,"searchString")),null!=_&&(t=this.addToHttpParams(t,_,"maxNumOfResults"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/vosManager/findCandidates`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}findCandidatesForGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"searchString"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getAllVos(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/vosManager/getAllVos`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getCompleteCandidatesForGroup(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"searchString"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getCompleteCandidatesForVo(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),u&&u.forEach(E=>{t=this.addToHttpParams(t,E,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"searchString"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getEnrichedBansForVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getEnrichedBansForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedVoBansForUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnrichedVoBansForUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),u&&u.forEach(s=>{n=this.addToHttpParams(n,s,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForUser`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getEnrichedVoById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMemberVos(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getMemberVos`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getMyEnrichedVos(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/vosManager/getEnrichedVos`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getMyVos(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/vosManager/getVos`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getParentVos(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getParentVos`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getRichAdminsForVo(r,u,_,C,h,o=!1,n="body",t=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==_)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==C)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==h)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo")),null!=u&&(a=this.addToHttpParams(a,u,"role")),_&&_.forEach(ne=>{a=this.addToHttpParams(a,ne,"specificAttributes")}),null!=C&&(a=this.addToHttpParams(a,C,"allUserAttributes")),null!=h&&(a=this.addToHttpParams(a,h,"onlyDirectAdmins"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let s=i&&i.context;void 0===s&&(s=new e.qT);let E="json";c&&(E=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let H=`${this.configuration.basePath}/json/vosManager/getRichAdmins`;if(o){let ne=new URL(H),ve=ne.pathname.split("/");ve[1]="non",ne.pathname=ve.join("/"),H=ne.toString()}return this.httpClient.get(H,{context:s,params:a,responseType:E,withCredentials:this.configuration.withCredentials,headers:l,observe:n,reportProgress:t})}getVoAdminGroups(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"role"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/getAdminGroups`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.get(c,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}getVoAdminUsers(r,u,_,C=!1,h="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==_)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"role")),null!=_&&(t=this.addToHttpParams(t,_,"onlyDirectAdmins"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let l=n&&n.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(i=i.set("Accept",l));let d=n&&n.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let s=`${this.configuration.basePath}/json/vosManager/getAdmins`;if(C){let E=new URL(s),H=E.pathname.split("/");H[1]="non",E.pathname=H.join("/"),s=E.toString()}return this.httpClient.get(s,{context:d,params:t,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:h,reportProgress:o})}getVoBanById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getBanById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoBanForMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getBanForMember`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoBansForVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getBansForVo`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoById(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getVoById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getVoById`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoByShortName(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"shortName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getVoByShortName`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVoMembersCountsByStatus(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVosByIds(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{o=this.addToHttpParams(o,c,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getVosByIds`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.get(d,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}getVosCount(r=!1,u="body",_=!1,C){let o,h=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(h=h.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(h=h.set("Authorization","Bearer "+o));let n=C&&C.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(h=h.set("Accept",n));let t=C&&C.context;void 0===t&&(t=new e.qT);let i="json";n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let a=`${this.configuration.basePath}/json/vosManager/getVosCount`;if(r){let l=new URL(a),d=l.pathname.split("/");d[1]="non",l.pathname=d.join("/"),a=l.toString()}return this.httpClient.get(a,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}removeMemberVo(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"memberVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeSponsorRoleFromGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeSponsorRoleFromUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeVoAdminGroup(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeVoAdminUser(r,u,_=!1,C="body",h=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new e.qT);let d="json";a&&(d=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`;if(_){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,null,{context:l,params:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:C,reportProgress:h})}removeVoBan(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}removeVoBanForMember(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=h&&h.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=h&&h.context;void 0===a&&(a=new e.qT);let l="json";i&&(l=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`;if(u){let c=new URL(d),s=c.pathname.split("/");s[1]="non",c.pathname=s.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:a,params:o,responseType:l,withCredentials:this.configuration.withCredentials,headers:n,observe:_,reportProgress:C})}setVoBan(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/setBan`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateVo(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/updateVo`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}updateVoBan(r,u=!1,_="body",C=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBan1 was null or undefined when calling updateVoBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=h&&h.context;void 0===i&&(i=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(o=o.set("Content-Type",l));let d="json";t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/updateBan`;if(u){let s=new URL(c),E=s.pathname.split("/");E[1]="non",s.pathname=E.join("/"),c=s.toString()}return this.httpClient.post(c,r,{context:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:o,observe:_,reportProgress:C})}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(e.eN),A.LFG(S,8),A.LFG(M,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();const Ze={ID:"ID",DATE_CREATED:"DATE_CREATED",TYPE:"TYPE",STATE:"STATE",SUBMITTER:"SUBMITTER",GROUP_NAME:"GROUP_NAME",MODIFIED_BY:"MODIFIED_BY"},Pe={WRITE:"WRITE",READ:"READ"},Ae={HTML_COMMENT:"HTML_COMMENT",SUBMIT_BUTTON:"SUBMIT_BUTTON",AUTO_SUBMIT_BUTTON:"AUTO_SUBMIT_BUTTON",PASSWORD:"PASSWORD",VALIDATED_EMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDED_GROUP_APPLICATION:"EMBEDDED_GROUP_APPLICATION",LIST_INPUT_BOX:"LIST_INPUT_BOX",MAP_INPUT_BOX:"MAP_INPUT_BOX"};let Ne=(()=>{class we{constructor(r,u){if(r)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!u)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(r){return{ngModule:we,providers:[{provide:M,useFactory:r}]}}}return we.\u0275fac=function(r){return new(r||we)(A.LFG(we,12),A.LFG(e.eN,8))},we.\u0275mod=A.oAB({type:we}),we.\u0275inj=A.cJS({}),we})()},19516:(Xe,ae,p)=>{"use strict";p.d(ae,{m2:()=>me.m,yo:()=>be.y,bY:()=>Q.b,i2:()=>fe.i,r5:()=>M.r,GY:()=>re.G,d4:()=>A,Qh:()=>W.Q,E7:()=>v.E,dp:()=>S.d});var e=p(36895),f=p(94650);let A=(()=>{class ee{}return ee.\u0275fac=function(xe){return new(xe||ee)},ee.\u0275mod=f.oAB({type:ee}),ee.\u0275inj=f.cJS({imports:[e.ez]}),ee})();var S=p(31359),M=(p(34447),p(82895)),Q=(p(69773),p(12856),p(20919),p(5865),p(38993),p(86349),p(53561),p(16119),p(7598),p(9954),p(4765)),be=p(22908),me=p(10293),fe=p(23123),re=p(56575),v=p(48524),W=(p(77749),p(67955))},77749:(Xe,ae,p)=>{"use strict";p.d(ae,{K:()=>A});var e=p(80279),f=p(94650);let A=(()=>{class S{constructor(M){this.translate=M}transform(M){switch(M){case"createdAt":return this.translate.instant("APPLICATIONS_LIST.CREATED_DATE");case"createdBy":return this.translate.instant("APPLICATIONS_LIST.CREATED_BY");case"type":return this.translate.instant("APPLICATIONS_LIST.TYPE");case"state":return this.translate.instant("APPLICATIONS_LIST.STATE");case"modifiedBy":return this.translate.instant("APPLICATIONS_LIST.MODIFIED_BY");default:return M}}}return S.\u0275fac=function(M){return new(M||S)(f.Y36(e.Te,16))},S.\u0275pipe=f.Yjl({name:"applicationColumnSelectLabel",type:S,pure:!0}),S})()},8231:(Xe,ae,p)=>{"use strict";p.d(ae,{G:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){const M="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return m?M+"DESELECT_ROW":M+"SELECT_ROW"}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"checkboxLabel",type:A,pure:!0}),A})()},10293:(Xe,ae,p)=>{"use strict";p.d(ae,{m:()=>f});var e=p(94650);let f=(()=>{class A{transform(m,M){if(!M||0===M.length)return;const w=M.filter(x=>x.userId===m);return 0!==w.length?w.reduce((x,P)=>x.id>P.id?x:P).status:void 0}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"consentStatusIcon",type:A,pure:!0}),A})()},34447:(Xe,ae,p)=>{"use strict";p.d(ae,{a:()=>S});var e=p(80279),f=p(94650),A=p(89383);let S=(()=>{class m{constructor(w,x){this.translate=w,this.storage=x}transform(w,x="en"){const P=this.storage.getProperty("custom_labels");if(P)for(const F of P)if(F.label===w)return F[x];return w}}return m.\u0275fac=function(w){return new(w||m)(f.Y36(A.sK,16),f.Y36(e.d6,16))},m.\u0275pipe=f.Yjl({name:"customTranslate",type:m,pure:!0}),m})()},22908:(Xe,ae,p)=>{"use strict";p.d(ae,{y:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M,w,x,P){return w&&"members"===M.name||x&&(P.has(M.id)||(0,e.bx)(M))}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"disableGroupSelect",type:S,pure:!0}),S})()},4765:(Xe,ae,p)=>{"use strict";p.d(ae,{b:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){return m.namespace.includes("virt")||m.namespace.includes("core")||m.namespace.includes("entityless")}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"disableUniqueAttribute",type:A,pure:!0}),A})()},23123:(Xe,ae,p)=>{"use strict";p.d(ae,{i:()=>A});var e=p(80279),f=p(94650);let A=(()=>{class S{constructor(M){this.translate=M,this.prefix="ROLES."}transform(M){return"displayName"in M&&M.displayName?M.displayName:this.translate.instant(this.prefix+M.roleName)}}return S.\u0275fac=function(M){return new(M||S)(f.Y36(e.Te,16))},S.\u0275pipe=f.Yjl({name:"displayedRole",type:S,pure:!0}),S})()},82895:(Xe,ae,p)=>{"use strict";p.d(ae,{r:()=>f});var e=p(94650);let f=(()=>{class A{transform(m,M){return M?`/organizations/${m.voId}/resources/${m.id}`:`/facilities/${m.facilityId}/resources/${m.id}`}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"getResourceRoute",type:A,pure:!0}),A})()},82514:(Xe,ae,p)=>{"use strict";p.d(ae,{F:()=>f});var e=p(94650);let f=(()=>{class A{transform(m,M,w){let x;switch(m){case"VALID":x="green";break;case"INVALID":x="red";break;default:x=""}return`${x}${w||M?" cursor-default":""}`}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"groupStatusIconColor",type:A,pure:!0}),A})()},28764:(Xe,ae,p)=>{"use strict";p.d(ae,{F:()=>S});var e=p(9244),f=p(64080),A=p(94650);let S=(()=>{class m{transform(w){if(null==w||null==w.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const x=(0,e.IL)(w.attributes,f.r.GROUP_SYNC_ENABLED),P=(0,e.IL)(w.attributes,f.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===x&&null===P)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const F=P.value;if("true"===x.value){const B=(0,e.IL)(w.attributes,f.r.GROUP_LAST_SYNC_STATE),I=(0,e.IL)(w.attributes,f.r.GROUP_LAST_SYNC_TIMESTAMP),q=B.value,ue=I.value;return null!=q&&q.trim().length>0?"red":null!==ue&&ue.trim().length>0?"green":""}if(F){const B=(0,e.IL)(w.attributes,f.r.GROUP_LAST_STRUCTURE_SYNC_STATE),I=(0,e.IL)(w.attributes,f.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),q=B.value,ue=I.value;return null!=q&&q.trim().length>0?"red":null!==ue&&ue.trim().length>0?"green":""}return""}}return m.\u0275fac=function(w){return new(w||m)},m.\u0275pipe=A.Yjl({name:"groupSyncIconColor",type:m,pure:!0}),m})()},29218:(Xe,ae,p)=>{"use strict";p.d(ae,{J:()=>S});var e=p(64080),f=p(9244),A=p(94650);let S=(()=>{class m{transform(w){if(null==w||null==w.attributes)return"";const x=(0,f.IL)(w.attributes,e.r.GROUP_SYNC_ENABLED),P=(0,f.IL)(w.attributes,e.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===x&&null===P)return"";const F=P.value;if("true"===x.value){const B=(0,f.IL)(w.attributes,e.r.GROUP_LAST_SYNC_STATE),I=(0,f.IL)(w.attributes,e.r.GROUP_LAST_SYNC_TIMESTAMP),q=B.value,ue=I.value;return null!=q&&q.trim().length>0?"sync_problem":(null!==ue&&ue.trim(),"sync")}if(F){const B=(0,f.IL)(w.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_STATE),I=(0,f.IL)(w.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),q=B.value,ue=I.value;return null!=q&&q.trim().length>0?"sync_problem":(null!==ue&&ue.trim(),"sync")}return"sync_disabled"}}return m.\u0275fac=function(w){return new(w||m)},m.\u0275pipe=A.Yjl({name:"groupSyncIcon",type:m,pure:!0}),m})()},45942:(Xe,ae,p)=>{"use strict";p.d(ae,{r:()=>S});var e=p(9244),f=p(64080),A=p(94650);let S=(()=>{class m{transform(w){if(null==w||null==w.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const x=(0,e.IL)(w.attributes,f.r.GROUP_SYNC_ENABLED),P=(0,e.IL)(w.attributes,f.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===x&&null===P)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const F=P.value;if("true"===x.value){const B=(0,e.IL)(w.attributes,f.r.GROUP_LAST_SYNC_STATE),I=(0,e.IL)(w.attributes,f.r.GROUP_LAST_SYNC_TIMESTAMP),q=B.value,ue=I.value;return null!=q&&q.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==ue&&ue.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(F){const B=(0,e.IL)(w.attributes,f.r.GROUP_LAST_STRUCTURE_SYNC_STATE),I=(0,e.IL)(w.attributes,f.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),q=B.value,ue=I.value;return null!=q&&q.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==ue&&ue.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return m.\u0275fac=function(w){return new(w||m)},m.\u0275pipe=A.Yjl({name:"groupSyncToolTip",type:m,pure:!0}),m})()},9185:(Xe,ae,p)=>{"use strict";p.d(ae,{I:()=>S});var e=p(80279),f=p(91479),A=p(94650);let S=(()=>{class m{constructor(w){this.tableCheckboxService=w}transform(w,x,P){return 0!==x&&((0,e.uI)(w)?x===w.getData().length:(0,f.o)(w)?this.tableCheckboxService.isAllSelectedPaginated(w,x,P):this.tableCheckboxService.isAllSelected(x,w,P))}}return m.\u0275fac=function(w){return new(w||m)(A.Y36(e.UA,16))},m.\u0275pipe=A.Yjl({name:"isAllSelected",type:m,pure:!0}),m})()},56575:(Xe,ae,p)=>{"use strict";p.d(ae,{G:()=>A});var e=p(80279),f=p(94650);let A=(()=>{class S{constructor(M){this.authResolver=M}transform(M,w){return M.filter(x=>this.canSetRoleForEntity(x,w))}canSetRoleForEntity(M,w){const x=new Map;return this.authResolver.setRolesAuthorization([w],M,x),x.get(w.roleName).manageAuth}}return S.\u0275fac=function(M){return new(M||S)(f.Y36(e.x4,16))},S.\u0275pipe=f.Yjl({name:"manageableEntities",type:S,pure:!0}),S})()},14849:(Xe,ae,p)=>{"use strict";p.d(ae,{r:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){const M="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return m?M+"DESELECT_ALL":M+"SELECT_ALL"}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"masterCheckboxLabel",type:A,pure:!0}),A})()},86349:(Xe,ae,p)=>{"use strict";p.d(ae,{A:()=>S});var e=p(9244),f=p(94650),A=p(89383);let S=(()=>{class m{constructor(w){this.translate=w}transform(w,x){const P=(0,e.zr)(w);return"INDIRECT"===P?this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"):x||"UNALTERABLE"!==P?"":this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_UNALTERABLE")}}return m.\u0275fac=function(w){return new(w||m)(f.Y36(A.sK,16))},m.\u0275pipe=f.Yjl({name:"memberCheckboxLabel",type:m,pure:!0}),m})()},20919:(Xe,ae,p)=>{"use strict";p.d(ae,{D:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){return(0,e.g$)(M)}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"memberEmail",type:S,pure:!0}),S})()},5865:(Xe,ae,p)=>{"use strict";p.d(ae,{p:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){return(0,e.lt)(M)}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"memberLogins",type:S,pure:!0}),S})()},96974:(Xe,ae,p)=>{"use strict";p.d(ae,{M:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){return(0,e.Gw)(M)}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"memberOrganization",type:S,pure:!0}),S})()},38993:(Xe,ae,p)=>{"use strict";p.d(ae,{n:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M,w){const x=(0,e.zr)(M);return"INDIRECT"===x||!w&&"UNALTERABLE"===x}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"memberStatusDisabled",type:S,pure:!0}),S})()},69773:(Xe,ae,p)=>{"use strict";p.d(ae,{u:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){const w=(0,e.zr)(M);let x;switch(M.status){case"VALID":x="green";break;case"INVALID":x="red";break;case"DISABLED":x="black";break;default:return""}return`${x}${"UNALTERABLE"===w?" cursor-default":""}`}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"memberStatusIconColor",type:S,pure:!0}),S})()},21757:(Xe,ae,p)=>{"use strict";p.d(ae,{f:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){switch(m){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return m}}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"memberStatusIcon",type:A,pure:!0}),A})()},12856:(Xe,ae,p)=>{"use strict";p.d(ae,{i:()=>S});var e=p(9244),f=p(94650),A=p(89383);let S=(()=>{class m{constructor(w){this.translate=w}transform(w,x,P){let F=null,T=null;w.memberAttributes&&(F=w.memberAttributes.find(q=>"membershipExpiration"===q.friendlyName),T=w.memberAttributes.find(q=>"groupMembershipExpiration"===q.friendlyName));let B="";B=x?`\n Group status: ${(0,e.Oe)(w.groupStatus)}\n Expiration: ${T?.value??"never"}`:w.memberAttributes?`Status: ${(0,e.Oe)(w.status,w.groupStatus)}\n Vo status: ${(0,e.Oe)(w.status)}\n Expiration: ${F?.value??"never"}`:`Status: ${(0,e.Oe)(w.status,w.groupStatus)}\n Vo status: ${(0,e.Oe)(w.status)}`;const I=(0,e.zr)(w);return P?B=`${B}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_MEMBERS_GROUP")}`:"INDIRECT"===I&&x?B=`${B}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_GROUP_INDIRECT")}`:!x&&"UNALTERABLE"===I&&(B=`${B}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_INDIRECT")}`),B}}return m.\u0275fac=function(w){return new(w||m)(f.Y36(A.sK,16))},m.\u0275pipe=f.Yjl({name:"memberStatusTooltip",type:m,pure:!0}),m})()},20551:(Xe,ae,p)=>{"use strict";p.d(ae,{l:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){let M=m.replace("VALID","ACTIVE");return M=M.replace("INACTIVE","INCOMPLETE"),M}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"memberStatus",type:A,pure:!0}),A})()},64597:(Xe,ae,p)=>{"use strict";p.d(ae,{R:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){return m.replace(/\s/g,"-").replace(/\./g,"-").toLowerCase()}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"multiWordDataCy",type:A,pure:!0}),A})()},62383:(Xe,ae,p)=>{"use strict";p.d(ae,{M:()=>A});var e=p(36895),f=p(94650);let A=(()=>{class S{transform(M,w){return"voRules"===M?"Vo rules":"groupRules"===M?"Group rules":M&&"never"!==M.toLowerCase()?(0,e.p6)(M.replace(" ","T"),"d.M.yyyy "+(w?"H:mm:ss":""),"en"):"never"}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"parseDate",type:S,pure:!0}),S})()},30076:(Xe,ae,p)=>{"use strict";p.d(ae,{A:()=>A});var e=p(94650),f=p(11481);let A=(()=>{class S{constructor(M){this.sanitizer=M}transform(M){return this.sanitizer.bypassSecurityTrustHtml(M)}}return S.\u0275fac=function(M){return new(M||S)(e.Y36(f.H7,16))},S.\u0275pipe=e.Yjl({name:"sanitizeHtml",type:S,pure:!0}),S})()},67955:(Xe,ae,p)=>{"use strict";p.d(ae,{Q:()=>A});var e=p(80279),f=p(94650);let A=(()=>{class S{constructor(M){this.translateService=M}transform(M,w,x){if(!M||M.length===w.length)return"ALL";const P=x;return P?`${this.translateService.instant(`CONSENTS.STATUS_${P[0]}`)} ${P.length>1?"(+"+(P.length-1).toString()+" "+(2===P.length?"other)":"others)"):""}`:""}}return S.\u0275fac=function(M){return new(M||S)(f.Y36(e.Te,16))},S.\u0275pipe=f.Yjl({name:"selectedConsentStatuses",type:S,pure:!0}),S})()},53561:(Xe,ae,p)=>{"use strict";p.d(ae,{J:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){return(0,e.te)(M)}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"technicalOwners",type:S,pure:!0}),S})()},48524:(Xe,ae,p)=>{"use strict";p.d(ae,{E:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){return m.map(M=>({facility:M}))}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"toEnrichedFacility",type:A,pure:!0}),A})()},49206:(Xe,ae,p)=>{"use strict";p.d(ae,{r:()=>f});var e=p(94650);let f=(()=>{class A{transform(m,M){return"valid"!==m.toLowerCase()||M&&"valid"!==m.toLowerCase()?m.replace("INVALID","INCOMPLETE"):"ACTIVE"}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"transformMemberStatus",type:A,pure:!0}),A})()},16119:(Xe,ae,p)=>{"use strict";p.d(ae,{S:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){return(0,e.kN)(M)}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"userEmail",type:S,pure:!0}),S})()},31359:(Xe,ae,p)=>{"use strict";p.d(ae,{d:()=>f});var e=p(94650);let f=(()=>{class A{transform(m){return[m.titleBefore,m.firstName,m.middleName,m.lastName,m.titleAfter].join(" ")}}return A.\u0275fac=function(m){return new(m||A)},A.\u0275pipe=e.Yjl({name:"userFullName",type:A,pure:!0}),A})()},7598:(Xe,ae,p)=>{"use strict";p.d(ae,{g:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){return(0,e.$0)(M)}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"userLogins",type:S,pure:!0}),S})()},9954:(Xe,ae,p)=>{"use strict";p.d(ae,{Z:()=>A});var e=p(9244),f=p(94650);let A=(()=>{class S{transform(M){return(0,e.OV)(M)}}return S.\u0275fac=function(M){return new(M||S)},S.\u0275pipe=f.Yjl({name:"userVo",type:S,pure:!0}),S})()},80279:(Xe,ae,p)=>{"use strict";p.d(ae,{yC:()=>$,F5:()=>N,sM:()=>De,eE:()=>C,e8:()=>I,EB:()=>xe,Be:()=>Ne,Hy:()=>ft,ly:()=>Oe,fb:()=>we,Mf:()=>n,K1:()=>o,x4:()=>M,L6:()=>a,v0:()=>W,hy:()=>V,SZ:()=>ce,V6:()=>U,jq:()=>pe,Te:()=>A,BN:()=>Z,Nj:()=>t,Ip:()=>r,HV:()=>Ke,d6:()=>F,UA:()=>he,uI:()=>Ue});var e=p(89383),f=p(94650);let A=(()=>{class l extends e.sK{instant(c,s){return String(super.instant(c,s))}}return l.\u0275fac=function(){let d;return function(s){return(d||(d=f.n5z(l)))(s||l)}}(),l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();var S=p(61744),m=p(45323);let M=(()=>{class l{constructor(c){this.authzSevice=c,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(s,E)=>s.roleName>E.roleName?1:s.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(E=>{this.allRolesManagementRules=E,c()},E=>s(E))})}assignAvailableRoles(c,s){this.allRolesManagementRules.forEach(E=>{E.primaryObject===s&&c.push(E)}),c.sort(this.sortRoles),"Vo"===s&&this.voCustomSort(c)}isManagerPagePrivileged(c){const s=[];let E=c.beanName;E.startsWith("Rich")&&(E=E.substring(4)),this.assignAvailableRoles(s,E);const H=new Map;this.setRolesAuthorization(s,c,H);for(const ne of H.values())if(ne.readAuth||ne.manageAuth)return!0;return!1}setRolesAuthorization(c,s,E){for(const H of c){let ne=[],ve=[],We=[];for(const Ee of this.allRolesManagementRules)if(Ee.roleName===H.roleName){ne=ne.concat(Ee.privilegedRolesToRead),ve=ve.concat(Ee.privilegedRolesToManage);for(const oe of Object.keys(Ee.entitiesToManage))We="User"===oe?[oe].concat(We):We.concat(oe);break}const Mt=this.fetchAllRelatedObjects([s]),pt=this.resolveAuthorization(ne,Mt),_t=this.resolveAuthorization(ve,Mt);E.set(H.roleName,{readAuth:pt,manageAuth:_t,modes:We})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(c){for(const s of this.allRolesManagementRules)if(s.roleName===c)return s.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(c){return this.allRolesManagementRules.find(s=>s.roleName===c)}getAssignableRoleRules(c){const s=[],E=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(H=>{!E.includes(H.roleName)&&this.canManage(H)&&this.ruleHasMode(H,c)&&s.push(H)}),s.sort(this.sortRoles)}ruleHasMode(c,s){return Object.keys(c.entitiesToManage).map(E=>E.toUpperCase()).includes(s)}canManage(c){return c.privilegedRolesToManage.some(s=>this.principalRoles.has(Object.keys(s)[0]))}resolveAuthorization(c,s){for(const E of c){let H=!0;for(const ne of Object.keys(E)){const ve=E[ne];if(null===ve)this.principalRoles.has(ne)||(H=!1);else if(s[ve]){for(const We of s[ve])if(!this.principalHasRole(ne,ve,We)){H=!1;break}}else H=!1;if(!H)break}if(H)return!0}return!1}getPerunPolicy(c){for(const s of this.perunPolicies)if(s.policyName===c)return s;return null}fetchAllRelatedObjects(c){const s={};for(const E of c){let H=E.beanName;switch(E.beanName.startsWith("Rich")&&(H=E.beanName.substring(4)),s[H]?s[H].push(E.id):s[H]=[E.id],H){case"Member":s.User?s.User.push(E.userId):s.User=[E.userId],s.Vo?s.Vo.push(E.voId):s.Vo=[E.voId];break;case"Group":case"ResourceTag":s.Vo?s.Vo.push(E.voId):s.Vo=[E.voId];break;case"Resource":s.Facility?s.Facility.push(E.facilityId):s.Facility=[E.facilityId],s.Vo?s.Vo.push(E.voId):s.Vo=[E.voId]}}return s}fetchPolicyWithAllIncludedPolicies(c){const s=new Map;let E=[];for(E.push(c);0!==E.length;){const ne=E.shift();if(s.has(ne))continue;const ve=this.getPerunPolicy(ne);if(!ve)return[];s.set(ne,ve),E=E.concat(ve.includePolicies)}const H=[];for(const ne of s.values())H.push(ne);return H}voCustomSort(c){for(let s=0;s{class l{constructor(){this.branding=""}setInstanceConfig(c){this.instanceConfig=c}setDefaultConfig(c){this.defaultConfig=c}getAppsConfig(){return this.appsConfig}setAppsConfig(c){this.appsConfig=c}setPerunPrincipal(c){this.principal=c}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(c){this.initialPageId=c}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(c){this.branding=c}getProperty(c){if(!this.instanceConfig||!this.defaultConfig)return null;const s=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],E=this.defaultConfig[c];let H=null;for(const ne of s)ne&&null==H&&(H=ne[c]);return null===H?E:this.addMissingValuesToProperty(H,E)}addMissingValuesToProperty(c,s){if(null==c)return s;if("object"==typeof c&&!Array.isArray(c))for(const E of Object.keys(s))c[E]=this.addMissingValuesToProperty(c[E],s[E]);return c}}return l.\u0275fac=function(c){return new(c||l)},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();var T=p(7274),B=p(51214);let I=(()=>{class l{constructor(c,s,E,H,ne){this.injector=c,this.store=s,this.dialog=E,this.route=H,this.oauthService=ne,setTimeout(()=>{this.router=this.injector.get(x.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(ve=>{ve.idpFilter&&(this.filterShortname=String(ve.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const c=this.setIdpFilter(),H=.5+.25*Math.random(),ne=c?{acr_values:c}:{},ve=this.store.getProperty("oidc_client");if(ve.oauth_scopes.split(" ").includes("offline_access")&&ve.oauth_offline_access_consent_prompt&&(ne.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(ne.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(ne.prompt?ne.prompt+=" login":ne.prompt="login",ne.max_age="0"),"Linker"===this.store.getProperty("application")){ne.prompt?ne.prompt+=" login":ne.prompt="login";const We=(0,P.O5)("idphint",location.search.substring(1));We&&(ne.idphint=We)}return{requestAccessToken:!0,issuer:ve.oauth_authority,clientId:ve.oauth_client_id,redirectUri:ve.oauth_redirect_uri,postLogoutRedirectUri:ve.oauth_post_logout_redirect_uri,responseType:ve.oauth_response_type,scope:ve.oauth_scopes,clockSkewInSec:1,timeoutFactor:H,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:ne}}setIdpFilter(){const c=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const s=this.store.getProperty("oidc_client").filters;if(!s)return null;let E=null;return c.forEach(H=>{const ne=H.split("=");"idpFilter"===ne[0]&&s[ne[1]]&&(this.filterShortname=ne[1],E=s[ne[1]])}),s.default&&!E?(this.filterShortname="default",s.default):E}startIdpFilterKeeper(){this.router.events.pipe((0,w.h)(c=>c instanceof x.m2)).subscribe(()=>{const c={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===c.idpFilter?{}:c,queryParamsHandling:"merge",replaceUrl:!0})})}}return l.\u0275fac=function(c){return new(c||l)(f.LFG(f.zs3),f.LFG(F),f.LFG(T.uw),f.LFG(x.gz),f.LFG(B.Ct))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})(),q=(()=>{class l{constructor(c){this.dialogRef=c}}return l.\u0275fac=function(c){return new(c||l)(f.Y36(T.so))},l.\u0275cmp=f.Xpm({type:l,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(c,s){1&c&&(f.TgZ(0,"h2",0),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&c&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[T.xY,e.X$]}),l})();var ue=p(83905),j=p(69751),Q=p(4859),be=p(98380);let me=(()=>{class l{constructor(c,s){this.dialogRef=c,this.data=s}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return l.\u0275fac=function(c){return new(c||l)(f.Y36(T.so),f.Y36(T.WI))},l.\u0275cmp=f.Xpm({type:l,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(c,s){1&c&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),f._uU(5),f.ALo(6,"translate"),f.ALo(7,"translate"),f.qZA()(),f.TgZ(8,"div",3)(9,"button",4),f.NdJ("click",function(){return s.cancel()}),f._uU(10),f.ALo(11,"translate"),f.qZA(),f.TgZ(12,"button",5),f.NdJ("click",function(){return s.submit()}),f._uU(13),f.ALo(14,"translate"),f.qZA()()),2&c&&(f.xp6(1),f.Oqu(f.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),f.xp6(4),f.hij(" ",s.data.mfaRoleException?f.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):f.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),f.xp6(4),f.Q6J("hidden",s.data.mfaRoleException),f.xp6(1),f.hij(" ",f.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),f.xp6(2),f.Tol(s.data.mfaRoleException?"ms-auto":"ms-2"),f.xp6(1),f.hij(" ",f.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[T.uh,T.xY,T.H8,Q.lW,be.w,e.X$]}),l})();var fe=p(97392);let re=(()=>{class l{}return l.\u0275fac=function(c){return new(c||l)},l.\u0275cmp=f.Xpm({type:l,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(c,s){1&c&&(f.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),f._uU(3," info "),f.qZA(),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div"),f._uU(7),f.ALo(8,"translate"),f.qZA()()),2&c&&(f.xp6(4),f.hij(" ",f.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),f.xp6(3),f.hij(" ",f.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[fe.Hw,e.X$],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),l})(),v=(()=>{class l{constructor(c,s){this.data=c,this.dialogRef=s}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return l.\u0275fac=function(c){return new(c||l)(f.Y36(T.WI),f.Y36(T.so))},l.\u0275cmp=f.Xpm({type:l,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ms-auto",3,"click"],["color","accent","mat-flat-button","",1,"ms-2",3,"click"]],template:function(c,s){1&c&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),f._uU(5),f.ALo(6,"translate"),f.qZA()(),f.TgZ(7,"div",3)(8,"button",4),f.NdJ("click",function(){return s.cancel()}),f._uU(9),f.ALo(10,"translate"),f.qZA(),f.TgZ(11,"button",5),f.NdJ("click",function(){return s.submit()}),f._uU(12),f.ALo(13,"translate"),f.qZA()()),2&c&&(f.xp6(1),f.Oqu(f.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),f.xp6(4),f.hij(" ",f.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),f.xp6(4),f.hij(" ",f.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),f.xp6(3),f.hij(" ",f.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[T.uh,T.xY,T.H8,Q.lW,be.w,e.X$]}),l})(),V=(()=>{class l{constructor(c,s,E,H){this.dialog=c,this.oauthService=s,this.authService=E,this.store=H}openMfaWindow(c){let s=null,E=null;const H=(0,P.kZ)();H.width="450px",H.data={mfaRoleException:c};const ne=this.dialog.open(me,H);let ve=!1;if(ne.afterClosed().subscribe(We=>{if(We){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),s=this.setupMfaWindow(),s){const Mt=(0,P.kZ)();Mt.width="450px",Mt.panelClass="noBorderDialog",E=this.dialog.open(re,Mt)}}else ve=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const We=(0,P.kZ)();We.width="450px",We.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(v,We)}return new j.y(We=>{const Mt=setInterval(()=>s?.closed?(clearInterval(Mt),E.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),We.next(!0)):ve?(clearInterval(Mt),We.next(!1)):void 0,1e3)})}catchNoMfaTokenError(c){"unmet_authentication_requirements"===c&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const c=location.pathname+location.search,H=window.top;return window.open(c,"_blank",`width=600,height=600,top=${H.outerHeight/2+H.screenY-300}, left=${H.outerWidth/2+H.screenX-300}`)}}return l.\u0275fac=function(c){return new(c||l)(f.LFG(T.uw),f.LFG(B.Ct),f.LFG(I),f.LFG(F))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})(),W=(()=>{class l{constructor(c,s,E,H,ne,ve,We,Mt){this.authService=c,this.oauthService=s,this.storeService=E,this.authResolver=H,this.authzService=ne,this.dialog=ve,this.router=We,this.mfaHandlerService=Mt,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const c=location.pathname,s=location.search.substring(1);return"/api-callback"===c?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",s),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(c)?(sessionStorage.setItem("auth:redirect",c),sessionStorage.setItem("auth:queryParams",s),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return(0,ue.z)(this.authzService.getPerunPrincipal()).then(c=>{if(null===c.user){const s=(0,P.kZ)();this.dialog.open(q,s)}else this.storeService.setPerunPrincipal(c),this.authResolver.init(c)})}simpleLoadPrincipal(){return(0,ue.z)(this.authzService.getPerunPrincipal()).then(c=>{this.storeService.setPerunPrincipal(c)})}checkRouteGuard(){const c=localStorage.getItem("routeAuthGuard");c&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([c],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const c=location.pathname,s=location.search.substring(1);sessionStorage.setItem("auth:redirect",c),sessionStorage.setItem("auth:queryParams",s);const E={};return s.split("&").forEach(H=>{const ne=H.split("=");E[ne[0]]=ne[1]}),this.router.navigate(["service-access"],{queryParams:E,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const c=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",c),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(c){this.loginScreenShown=c}isPotentiallyValidPath(c){const s=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===c)return!0;for(const E of s)if(c.startsWith(E))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,w.h)(c=>"token_expires"===c.type&&"access_token"===c.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const c=sessionStorage.getItem("mfa_route");if(c)return this.router.navigate([c],{replaceUrl:!0,queryParamsHandling:"merge"});let s=sessionStorage.getItem("auth:redirect");(!s||"/login"===s)&&(s="/"),sessionStorage.removeItem("auth:redirect");const E=sessionStorage.getItem("auth:queryParams");let H=[];E&&(H=E.split("&"));const ne={};return H.forEach(ve=>{const We=ve.split("=");ne[We[0]]=We[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([s],{queryParams:ne,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return l.\u0275fac=function(c){return new(c||l)(f.LFG(I),f.LFG(B.Ct),f.LFG(F),f.LFG(M),f.LFG(S.Ct),f.LFG(T.uw),f.LFG(x.F0),f.LFG(V))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();var ee=p(11481);let xe=(()=>{class l{constructor(c,s){this.matIconRegistry=c,this.domSanitizer=s,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(c=>{this.matIconRegistry.addSvgIcon(c.name,this.domSanitizer.bypassSecurityTrustResourceUrl(c.url))})}}return l.\u0275fac=function(c){return new(c||l)(f.LFG(fe.jv),f.LFG(ee.H7))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac}),l})();var Ye=p(80529),Le=p(62843),$e=p(28746),qe=p(18505),Ze=p(70262),Pe=p(63900);let se=(()=>{class l{constructor(c){this.dialogRef=c}close(){this.dialogRef.close(!0)}}return l.\u0275fac=function(c){return new(c||l)(f.Y36(T.so))},l.\u0275cmp=f.Xpm({type:l,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ms-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(c,s){1&c&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div",2)(7,"div",3)(8,"button",4),f.NdJ("click",function(){return s.close()}),f._uU(9),f.ALo(10,"translate"),f.qZA()()()),2&c&&(f.xp6(1),f.Oqu(f.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),f.xp6(3),f.hij(" ",f.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),f.xp6(5),f.hij(" ",f.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[T.uh,T.xY,T.H8,Q.lW,e.X$]}),l})(),N=(()=>{class l{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const c=this.handleNextError;return this.handleNextError=!0,c}}return l.\u0275fac=function(c){return new(c||l)},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})(),U=(()=>{class l{constructor(c){this.translate=c,this.addNotification=new f.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(c,s=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===c.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===c.name?s:s+"\n"+c.name,c,c.message)}showRouteError(){this.showInstantError("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR",null,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC")}showError(c,s,E,H,ne){this.addNotification.emit({type:"error",error:s,description:E,title:c,actionText:void 0===H&&void 0!==E?this.getDefaultActionMessage():H,delay:this.defaultErrorDelayMs,icon:"error_outline",action:ne,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantError(c,s,E,H,ne){const ve=E?this.translate.instant(E):null,We=H?this.translate.instant(H):null;We?this.showError(this.translate.instant(c),s,ve,We,ne):this.showError(this.translate.instant(c),s,ve)}showSuccess(c,s,E,H){this.addNotification.emit({type:"success",description:s,title:c,actionText:void 0===E&&void 0!==s?this.getDefaultActionMessage():E,delay:this.defaultSuccessDelayMs,icon:"done",action:H,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantSuccess(c,s,E,H){const ne=s?this.translate.instant(s):null,ve=E?this.translate.instant(E):null;ve?this.showSuccess(this.translate.instant(c),ne,ve,H):this.showSuccess(this.translate.instant(c),ne)}}return l.\u0275fac=function(c){return new(c||l)(f.LFG(A))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})(),$=(()=>{class l{constructor(c,s,E,H,ne,ve,We,Mt){this.authService=c,this.apiRequestConfiguration=s,this.notificator=E,this.store=H,this.dialog=ne,this.initAuthService=ve,this.mfaHandlerService=We,this.oauthService=Mt}intercept(c,s){const E=this.store.getProperty("api_url");if(c.url.includes("i18n")&&(c=c.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==E&&this.isCallToPerunApi(c.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const H=(0,P.kZ)();H.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(se,H),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{(0,$e.x)(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.dialog.closeAll(),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?c=c.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(c.url)&&(c=c.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(c,s)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(c,s){const E=this.apiRequestConfiguration.shouldHandleError(),H="POST"===c.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(c.url);return s.handle(c).pipe((0,qe.b)(ne=>{ne instanceof Ye.Zn&&H&&this.initAuthService.loadPrincipal()}),(0,Ze.K)(ne=>{const ve=ne.error;if("MfaPrivilegeException"===ve.type||"MfaRolePrivilegeException"===ve.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===ve.type).pipe((0,Pe.w)(We=>We?("MfaRolePrivilegeException"===ve.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(c),s)):(0,Le._)(()=>ve)));{this.handleInvalidAccessTokenError(ne);const We=this.formatErrors(ne,c);return void 0===We?(0,Le._)(()=>ne):(E&&this.notificator.showRPCError(We),(0,Le._)(()=>We))}}))}replaceAuthenticationToken(c){return c.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(c){return c.startsWith(this.store.getProperty("api_url"))}formatErrors(c,s){let E;console.error(c);const H=c.error;if(H.errorId&&(E=H),void 0!==E)return E.urlWithParams=s.urlWithParams,E.call=s.url,E.payload=s.body,E}isNotConsolidatorOrLinker(){const c=this.store.getProperty("application");return!("Linker"===c||"Consolidator"===c)}handleInvalidAccessTokenError(c){if(401===c.status){if(!this.isLoggedIn()||"invalid_token"===c.error.error||null!=this.dialogRefSessionExpiration)return;const s=(0,P.kZ)();this.dialogRefSessionExpiration=this.dialog.open(se,s),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return l.\u0275fac=function(c){return new(c||l)(f.LFG(I),f.LFG(N),f.LFG(U),f.LFG(F),f.LFG(T.uw),f.LFG(W),f.LFG(V),f.LFG(B.Ct))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac}),l})(),ce=(()=>{class l{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(c){this.newNotificationsCount++,this.notificationData.push(c)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return l.\u0275fac=function(c){return new(c||l)},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})(),De=(()=>{class l{constructor(c,s,E,H){this.http=c,this.notificator=s,this.authService=E,this.storeService=H}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let c=new Ye.WM;return c=c.set("Authorization",this.authService.getAuthorizationHeaderValue()),c}get(c,s=!0){const E=`${this.getApiUrl()}${c}`;return this.http.get(E,{headers:this.getHeaders()}).pipe((0,Ze.K)(H=>this.formatErrors(H,E,null,s)))}put(c,s={},E=!0){const H=`${this.getApiUrl()}${c}`,ne=JSON.stringify(s);return this.http.put(H,ne,{headers:this.getHeaders()}).pipe((0,Ze.K)(ve=>this.formatErrors(ve,H,ne,E)))}post(c,s={},E=!0){const H=`${this.getApiUrl()}${c}`,ne=JSON.stringify(s);let ve=this.getHeaders();return ve=ve.set("Content-Type","application/json; charset=utf-8"),this.http.post(H,ne,{headers:ve}).pipe((0,Ze.K)(We=>this.formatErrors(We,H,ne,E)))}delete(c,s=!0){const E=`${this.getApiUrl()}${c}`;return this.http.delete(E,{headers:this.getHeaders()}).pipe((0,Ze.K)(H=>this.formatErrors(H,E,null,s)))}formatErrors(c,s,E,H){const ne=c.error;return ne.call=s,ne.payload=E,H&&this.notificator.showRPCError(c.error),(0,Le._)(ne)}}return l.\u0275fac=function(c){return new(c||l)(f.LFG(Ye.eN),f.LFG(U),f.LFG(I),f.LFG(F))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})(),he=(()=>{class l{isAllSelected(c,s,E=(()=>!0)){const H=s.paginator,ne=H.pageSize??0,ve=H.pageIndex??0,We=(H.pageIndex+1)*H.pageSize{this.pageStart<=this.pageIterator&&this.pageIterator{Mt?pt(_t)&&this.pageStart<=this.pageIterator&&this.pageIterator!0)){return s===c.data.reduce((H,ne)=>H+Number(E(ne)),0)}masterTogglePaginated(c,s,E,H=(()=>!0)){s.clear(),E&&c.data.forEach(ne=>{H(ne)&&s.select(ne)})}}return l.\u0275fac=function(c){return new(c||l)},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})(),Oe=(()=>{class l{constructor(c,s,E,H){this.membersService=c,this.usersService=s,this.auditMessagesManagerService=E,this.registrarService=H}getMembers(c,s,E,H,ne,ve,We,Mt,pt,_t){return this.membersService.getMembersPage({vo:c,attrNames:s,query:{pageSize:ne,offset:H*ne,order:E,sortColumn:ve,statuses:We,searchString:Mt,groupId:pt,groupStatuses:_t}})}getUsers(c,s,E,H,ne,ve,We,Mt,pt,_t,ye,Ee,oe){return this.usersService.getUsersPage({attrNames:c,query:{offset:H*E,pageSize:H,order:s,sortColumn:ne,searchString:ve,withoutVo:We,facilityId:Mt,voId:pt,resourceId:_t,serviceId:ye,onlyAllowed:Ee,consentStatuses:oe}})}getAuditMessages(c,s,E,H){return this.auditMessagesManagerService.getMessagesPage({query:{offset:E*s,pageSize:E,order:c,selectedEvents:H}})}getApplications(c,s,E,H,ne,ve,We,Mt,pt,_t,ye,Ee,oe){return this.registrarService.getApplicationsPage({vo:ye,query:{pageSize:c,offset:s*c,order:E,sortColumn:H,searchString:ve,includeGroupApplications:ne,getDetails:oe,states:We,dateFrom:Mt,dateTo:pt,userId:_t,groupId:Ee}})}}return l.\u0275fac=function(c){return new(c||l)(f.LFG(S.uq),f.LFG(S.Fv),f.LFG(S.jw),f.LFG(S.tk))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();var it=p(61135),Ce=p(39646),ot=p(4128);function Ue(l){return"allObjectCount"in l}class ft{constructor(d,c){this.dynamicPaginatingService=d,this.authzService=c,this.allObjectCount=0,this.routeAuth=!0,this.step=1e4,this.dataSubject=new it.X([]),this.loadingSubject=new it.X(!1),this.loading$=this.loadingSubject.asObservable()}loadMembers(d,c,s,E,H,ne,ve,We,Mt,pt){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const _t=this.latestQueryTime;this.dynamicPaginatingService.getMembers(d,c,s,E,H,ne,ve,We,Mt,pt).pipe((0,Ze.K)(()=>(0,Ce.of)([])),(0,$e.x)(()=>this.loadingSubject.next(!1))).subscribe(ye=>{if(this.latestQueryTime<=_t){const Ee=ye.data;null!==Ee&&0!==Ee.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:d},Ee[0]])),this.allObjectCount=ye.totalCount,this.dataSubject.next(Ee)}})}getAllMembers(d,c,s,E,H,ne,ve,We,Mt){return new j.y(pt=>{const _t=[];for(let ye=0;ye{const Ee=[].concat(...ye.map(oe=>oe.data));pt.next(Ee),pt.complete()},error:ye=>pt.error(ye)})})}loadUsers(d,c,s,E,H,ne,ve,We,Mt,pt,_t,ye,Ee){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const oe=this.latestQueryTime;this.dynamicPaginatingService.getUsers(d,E,s,c,H,ne,ve,We,Mt,pt,_t,ye,Ee).pipe((0,Ze.K)(()=>(0,Ce.of)([])),(0,$e.x)(()=>this.loadingSubject.next(!1))).subscribe(_e=>{if(this.latestQueryTime<=oe){const Te=_e.data;this.allObjectCount=_e.totalCount,this.dataSubject.next(Te)}})}getAllUsers(d,c,s,E,H,ne,ve,We,Mt,pt,_t,ye){return new j.y(Ee=>{const oe=[];for(let _e=0;_e{const Te=[].concat(..._e.map(ut=>ut.data));Ee.next(Te),Ee.complete()},error:_e=>Ee.error(_e)})})}loadAuditMessages(d,c,s,E){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const H=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(s,c,d,E).pipe((0,Ze.K)(()=>(0,Ce.of)([])),(0,$e.x)(()=>this.loadingSubject.next(!1))).subscribe(ne=>{if(this.latestQueryTime<=H){const ve=ne.data;this.allObjectCount=ne.totalCount,this.dataSubject.next(ve)}})}getAllAuditMessages(d,c,s){return new j.y(E=>{const H=[];for(let ne=0;ne{const ve=[].concat(...ne.map(We=>We.data));E.next(ve),E.complete()},error:ne=>E.error(ne)})})}loadApplications(d,c,s,E,H,ne,ve,We,Mt,pt,_t,ye,Ee){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const oe=this.latestQueryTime;this.dynamicPaginatingService.getApplications(d,c,s,E,ne,H,ve,We,Mt,pt,ye,_t,Ee??!1).pipe((0,Ze.K)(()=>(0,Ce.of)([])),(0,$e.x)(()=>this.loadingSubject.next(!1))).subscribe(_e=>{if(this.latestQueryTime<=oe){const Te=_e.data;if(null!==Te&&0!==Te.length){const ut=Te;this.routeAuth=ut[0].group?this.authzService.isAuthorized("getApplicationsForGroup_Group_List_policy",[ut[0].group]):this.authzService.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[ut[0].vo])}this.allObjectCount=_e.totalCount,this.dataSubject.next(Te)}})}getAllApplications(d,c,s,E,H,ne,ve,We,Mt,pt,_t,ye){return new j.y(Ee=>{const oe=[];for(let _e=0;_e{const Te=[].concat(..._e.map(ut=>ut.data));Ee.next(Te),Ee.complete()},error:_e=>Ee.error(_e)})})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let Z=(()=>{class l{constructor(c,s){this.route=c,this.store=s}getPreferredLanguage(c){const s=this.store.getProperty("supported_languages"),E=navigator.languages.map(ve=>ve.split("-")[0]),H=location.search.substring(1).split("&");let ne=null;for(const ve of H){const We=ve.split("=");"lang"===We[0]&&(ne=We[1])}return ne&&s.includes(ne)?ne:c&&s.includes(c)?c:E&&s.includes(E[0])?E[0]:"en"}}return l.\u0275fac=function(c){return new(c||l)(f.LFG(x.gz),f.LFG(F))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();var lt=p(15861);let Ae=(()=>{class l{generatePdf(c){var s=this;return(0,lt.Z)(function*(){yield s.loadPdfMake(),s.pdfMake.createPdf(c).open()})()}loadPdfMake(){var c=this;return(0,lt.Z)(function*(){if(!c.pdfMake){const s=yield p.e(641).then(p.t.bind(p,54641,23)),E=yield p.e(493).then(p.t.bind(p,58493,19));c.pdfMake=s.default,c.pdfMake.vfs=E.default.pdfMake.vfs}})()}}return l.\u0275fac=function(c){return new(c||l)},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})(),Ke=(()=>{class l{constructor(c){this.pdfService=c}static generateTableForUser(c){const s=c.name.replace(";"," ").split(";")[0];return"OK"!==c.status?this.generateErrorRowForUser(s,c.status):l.generateRowForUser(s,c.login,c.password)}static generateErrorRowForUser(c,s){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:c,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:s,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(c,s,E){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[l.generateNameCell(c),{},l.getPasswordLabelCell(),l.generatePasswordCell(E)],[l.getLoginLabelCell(),l.generateLoginCell(s),{},{}]]}}}static generateNameCell(c){return{text:c,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(c){return{text:c??"N/A",border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(c){return{text:c??"N/A",border:[!1,!1,!0,!0],bold:!0}}static getLoginLabelCell(){return{text:"Login:",border:[!0,!1,!1,!0],alignment:"right",margin:[0,0,0,10]}}static getPasswordLabelCell(){return{text:"Password:",border:[!0,!0,!1,!0],alignment:"right",margin:[0,25],rowSpan:2}}generate(c){var s=this;return(0,lt.Z)(function*(){const E=[];for(const ne of c)E.push(l.generateTableForUser(ne));return s.pdfService.generatePdf({content:E})})()}}return l.\u0275fac=function(c){return new(c||l)(f.LFG(Ae))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})(),pe=(()=>{class l{constructor(c){this.storeService=c}static getBrandContainingDomain(c,s){for(const H of c)if(H.newApps.admin===s||H.newApps.profile===s||H.newApps.pwdReset===s||H.newApps.consolidator===s||H.newApps.linker===s)return H;return c.filter(H=>"default"===H.name)[0]||c[0]}getUrlForOtherApplication(c,s){const H=window.location.href.split("/"),ne=H[0]+"//"+H[2],ve=l.getBrandContainingDomain(this.storeService.getAppsConfig().brands,ne);let We;if(ve.newApps[c])We=ve.newApps[c],"pwdReset"===c&&(We+=`?login-namespace=${s}`);else switch(We=ve.oldGuiDomain+"/fed",c){case"admin":We+="/gui/";break;case"profile":We+="/profile/";break;case"pwdReset":We+=`/pwd-reset/?login-namespace=${s}`}return We}}return l.\u0275fac=function(c){return new(c||l)(f.LFG(F))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();var Ie=p(98739);let Ne=(()=>{class l extends Ie.ye{constructor(){super(...arguments),this.getRangeLabel=function(c,s,E){let H;const ne=c*s+1,ve=(c+1)*s,We=ve>E?E:ve;return E<1e3?`${ne} \u2013 ${We} of ${String(E)}`:(H=E<1e4?"1 000":E<1e5?"10 000":"100 000",`${ne} \u2013 ${We} of ${H} +`)}}}return l.\u0275fac=function(){let d;return function(s){return(d||(d=f.n5z(l)))(s||l)}}(),l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac}),l})(),we=(()=>{class l{setEntity(c){this.entity=c}getEntity(){return this.entity}}return l.\u0275fac=function(c){return new(c||l)},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();var Be=p(64080);let r=(()=>{class l{constructor(c,s,E,H,ne){this.authResolver=c,this.attributesManager=s,this.notificator=E,this.apiRequest=H,this.router=ne,this.routePolicies=new Map([["organizations",ve=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[ve])],["organizations-members",ve=>this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[ve])],["organizations-groups",ve=>this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[ve])],["organizations-resources",ve=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[ve])||this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[ve])||this.authResolver.isAuthorized("getResourcesState_Vo_policy",[ve])],["organizations-resources-preview",ve=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[ve])],["organizations-resources-tags",ve=>this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[ve])],["organizations-resources-states",ve=>this.authResolver.isAuthorized("getResourcesState_Vo_policy",[ve])],["organizations-applications",ve=>this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[ve])],["organizations-sponsoredMembers",ve=>this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[ve])],["organizations-serviceAccounts",ve=>this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[ve])],["organizations-attributes",ve=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[ve])],["organizations-statistics",ve=>this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[ve])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[ve])],["organizations-settings",ve=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[ve])||this.authResolver.isManagerPagePrivileged(ve)||this.authResolver.isThisVoAdminOrObserver(ve.id)],["organizations-settings-expiration",ve=>this.authResolver.isThisVoAdminOrObserver(ve.id)],["organizations-settings-managers",ve=>this.authResolver.isManagerPagePrivileged(ve)],["organizations-settings-applicationForm",ve=>this.authResolver.isThisVoAdminOrObserver(ve.id)],["organizations-settings-notifications",ve=>this.authResolver.isThisVoAdminOrObserver(ve.id)],["organizations-settings-extsources",ve=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[ve])],["organizations-settings-memberOrganizations",()=>this.authResolver.isPerunAdmin()],["organizations-settings-hierarchicalInclusion",()=>this.authResolver.isPerunAdmin()],["organizations-settings-bans",ve=>this.authResolver.isAuthorized("getBansForVo_int_policy",[ve])],["members",ve=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[ve])],["members-groups",ve=>this.authResolver.isAuthorized("getMemberGroups_Member_policy",[ve])],["members-applications",ve=>this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[ve])],["members-resources",ve=>this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[ve])],["members-attributes",ve=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[ve])],["members-bans",ve=>this.authResolver.isAuthorized("vo-getBanForMember_member_policy",[ve])],["groups",ve=>this.authResolver.isAuthorized("getGroupById_int_policy",[ve])],["groups-members",ve=>this.authResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[ve])],["groups-subgroups",ve=>this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[ve])],["groups-resources",ve=>this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[ve])],["groups-applications",ve=>this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[ve])],["groups-attributes",ve=>this.authResolver.isAuthorized("getGroupById_int_policy",[ve])],["groups-statistics",ve=>this.authResolver.isAuthorized("getGroupMembersCount_Group_policy",[ve])&&this.authResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[ve])&&this.authResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[ve])],["groups-roles",ve=>this.authResolver.isAuthorized("getGroupRoles_int_policy",[ve])],["groups-settings",ve=>this.authResolver.isManagerPagePrivileged(ve)||this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[ve])||this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[ve])||this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[ve])],["groups-settings-managers",ve=>this.authResolver.isManagerPagePrivileged(ve)],["groups-settings-applicationForm",ve=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[ve])],["groups-settings-notifications",ve=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[ve])],["groups-settings-relations",ve=>this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[ve])],["groups-settings-extsources",ve=>this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[ve])],["groups-settings-expiration",ve=>(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(ve.id,Be.r.GROUP_DEF_EXPIRATION_RULES).subscribe({next:()=>{},error:()=>{this.notificator.showRouteError(),this.router.navigate(["/notAuthorized"],{queryParamsHandling:"preserve"})}}),!0)],["resources",ve=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[ve])],["resources-groups",ve=>this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[ve])],["resources-services",ve=>this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[ve])],["resources-members",ve=>this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[ve])],["resources-tags",ve=>this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[ve])],["resources-attributes",ve=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[ve])],["resources-settings",ve=>this.authResolver.isManagerPagePrivileged(ve)],["resources-settings-managers",ve=>this.authResolver.isManagerPagePrivileged(ve)],["resources-settings-bans",ve=>this.authResolver.isAuthorized("getBansForResource_int_policy",[ve])],["facilities",ve=>this.authResolver.isAuthorized("getFacilityById_int_policy",[ve])],["facilities-resources",ve=>this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[ve])],["facilities-allowed-users",ve=>this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[ve])],["facilities-allowed-groups",ve=>this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[ve])],["facilities-services-status",ve=>this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[ve])],["services-status",ve=>this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[ve])],["facilities-services-destinations",ve=>this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[ve])],["facilities-hosts",()=>this.authResolver.isFacilityAdmin()],["facilities-attributes",ve=>this.authResolver.isAuthorized("getFacilityById_int_policy",[ve])],["facilities-settings",ve=>this.authResolver.isAuthorized("getOwners_Facility_policy",[ve])||this.authResolver.isManagerPagePrivileged(ve)||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[ve])||this.authResolver.isAuthorized("getBansForFacility_int_policy",[ve])],["facilities-settings-owners",ve=>this.authResolver.isAuthorized("getOwners_Facility_policy",[ve])],["facilities-settings-managers",ve=>this.authResolver.isManagerPagePrivileged(ve)],["facilities-settings-security-teams",ve=>this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[ve])],["facilities-settings-blacklist",ve=>this.authResolver.isAuthorized("getBansForFacility_int_policy",[ve])],["facilities-settings-bans",ve=>this.authResolver.isAuthorized("getBansForUser_int_policy",[ve])]])}canNavigate(c,s){if(c.startsWith("admin")||c.startsWith("identities"))return this.authResolver.isPerunAdminOrObserver();if("facilities"===c&&-1===s.id)return this.authResolver.canManageFacilities();const E=this.routePolicies.get(c);return!E||E(s)}}return l.\u0275fac=function(c){return new(c||l)(f.LFG(M),f.LFG(S.H8),f.LFG(U),f.LFG(N),f.LFG(x.F0))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();var u=p(54004),_=p(4707);let C=(()=>{class l{constructor(c,s){this.attributesManager=c,this.authResolver=s,this.roleWithObjects$=new _.t(1),(0,Ce.of)(this.authResolver.getAllRules()).pipe((0,u.U)(E=>E.filter(H=>H.assignableToAttributes)),(0,Pe.w)(E=>{const H=new Map;return E.map(ne=>H.set(ne.roleName,["None",...Object.keys(ne.assignedObjects)])),(0,Ce.of)(new Map([...H.entries()].sort()))})).subscribe(this.roleWithObjects$)}getRoles(){return(0,Ce.of)(this.authResolver.getAllRules().filter(c=>c.assignableToAttributes))}getObjects(c){return this.roleWithObjects$.pipe((0,Pe.w)(s=>(0,Ce.of)(s.get(c))))}filterNullInPolicy(){return function(c){return c.pipe((0,u.U)(s=>(s.forEach(E=>E.policies=E.policies.filter(H=>null!==H.role&&null!==H.object)),s)))}}updateAttributeAction(c,s,E,H){return void 0!==c&&c!==s?this.attributesManager.setAttributeActionCriticality(E,H,c):(0,Ce.of)(void 0)}addAttributeId(){return function(c){return c.pipe((0,u.U)(([s,E])=>(E.forEach(H=>H.attributeId=s),E)))}}}return l.\u0275fac=function(c){return new(c||l)(f.LFG(S.H8),f.LFG(M))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();var h=p(36895);let o=(()=>{class l{constructor(){this.getDataForColumn=(c,s,E)=>{switch(s){case"id":return c.id.toString();case"vo":return E.get(c.voId);case"name":return c.name;case"description":return c.description;case"expiration":{const H=(0,P.x2)(c);return(0,P.sG)(H)}case"recent":return"";case"status":return c.status;case"uuid":return c.uuid;default:return c[s]}},this.getSortDataForColumn=(c,s,E,H)=>{switch(s){case"id":return c.id.toString();case"vo":return E.get(c.voId);case"name":return c.name;case"description":return c.description;case"expiration":{const ne=(0,P.x2)(c);return ne&&"never"!==ne.toLowerCase()?(0,h.p6)(ne,"yyyy.MM.dd","en"):ne}case"recent":return H&&H.includes(c.id)?"#".repeat(H.indexOf(c.id)):c.name;case"status":return c.status;default:return c[s]}}}}return l.\u0275fac=function(c){return new(c||l)},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})(),n=(()=>{class l{constructor(c,s){this.guiAuthResolver=c,this.authzResolver=s}findSponsorsAuth(c){const s=[this.guiAuthResolver.getRuleForRole("SPONSOR")],E=new Map;return this.guiAuthResolver.setRolesAuthorization(s,c,E),E.get(s[0].roleName).readAuth}getSponsors(c){const s=[Be.r.USER_DEF_PREFERRED_MAIL];return new j.y(E=>{this.authzResolver.getAuthzRichAdmins(m.u.SPONSOR,c,"Vo",s,!1,!1).subscribe(H=>{E.next(H),E.complete()})})}}return l.\u0275fac=function(c){return new(c||l)(f.LFG(M),f.LFG(S.Ct))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})(),t=(()=>{class l{prepareRoles(c,s){const E=new Map;return s.forEach(H=>{const ne=new Map;Object.keys(c[H]).forEach(We=>{ne.set(We,c[H][We])}),E.set(H,ne)}),E}prepareComplementaryObjects(c,s){const E=new Map;return c.forEach(H=>{const ne=new Map;Object.keys(s[H]).forEach(We=>{const Mt=new Map;Object.keys(s[H][We]).map(_t=>Number(_t)).forEach(_t=>{Mt.set(_t,s[H][We][_t])}),ne.set(We,Mt)}),E.set(H,ne)}),E}}return l.\u0275fac=function(c){return new(c||l)},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();var i=p(92735);let a=(()=>{class l{escapeDangerousHtml(c){const s={WHOLE_DOCUMENT:!0,ALLOWED_TAGS:["a","article","aside","b","blockquote","br","button","caption","center","cite","decorator","del","details","div","em","footer","h1","h2","h3","h4","h5","h6","header","i","img","kbd","label","li","ol","p","pre","section","select","span","strong","sup","table","tbody","td","textarea","tfoot","th","thead","tr","ul"],ALLOWED_ATTR:["align","class","color","disabled","height","hidden","href","id","label","size","span","src","srcset","style","width"],ALLOWED_STYLE_PROPS:["color","background-color","font-size","font-family","text-align","margin","padding","border","width","height","display","position","top","bottom","left","right","overflow","float","clear","z-index"]},E=[],H=[],ne=[];(0,i.addHook)("uponSanitizeAttribute",(Mt,pt)=>{if("style"!==pt.attrName)return;const _t=pt.attrValue.split(";").map(ye=>ye.trim()).filter(ye=>ye.length>0);for(let ye=0;ye<_t.length;ye++){const Ee=_t[ye];let[oe,_e]=Ee.split(":");if(void 0!==oe&&void 0!==_e){if(oe=oe.trim(),_e=_e.trim(),!s.ALLOWED_STYLE_PROPS.includes(oe)){i.removed.push({style:oe,tag:Mt.localName}),_t[ye]="";continue}_t[ye]=`${oe}:${_e};`}}pt.attrValue=_t.filter(ye=>ye.length>0).join(" ")});const ve=(0,i.sanitize)(c,s),We=document.createElement("html");We.innerHTML=ve,c=We.getElementsByTagName("body")[0].innerHTML;for(const Mt of i.removed)"element"in Mt?E.push(Mt.element.localName):"attribute"in Mt?H.push({attribute:Mt.attribute.localName,tag:Mt.from.localName}):"style"in Mt&&ne.push({style:Mt.style,tag:Mt.tag});return{escapedHtml:c,removedTags:E,removedAttrs:H,removedStyleProps:ne}}generateErrorTooltip(c){let s="";if(0!==c.removedTags.length){s+=" The following tags are not allowed: ";for(const E of c.removedTags)s+=E+", ";s=s.slice(0,-2)+". "}if(0!==c.removedAttrs.length){s+=" The following attributes are not allowed: ";for(const E of c.removedAttrs)s+=E.attribute+" in "+E.tag+", ";s=s.slice(0,-2)+". "}if(0!==c.removedStyleProps.length){s+=" The following style properties are not allowed: ";for(const E of c.removedStyleProps)s+=E.style+" in "+E.tag+", ";s=s.slice(0,-2)+"."}return s}htmlContentValidator(){return c=>{const{isHtmlInvalid:s,invalidMessage:E}=this.checkHtmlContent(c);return s?{invalidHtmlContent:E}:null}}checkHtmlContent(c){const{escapedHtml:s,removedTags:E,removedAttrs:H,removedStyleProps:ne}=this.escapeDangerousHtml(String(c.value)),ve=this.generateErrorTooltip({escapedHtml:s,removedTags:E,removedAttrs:H,removedStyleProps:ne});return{isHtmlInvalid:E.length>0||H.length>0||ne.length>0,invalidMessage:ve}}}return l.\u0275fac=function(c){return new(c||l)},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},64080:(Xe,ae,p)=>{"use strict";p.d(ae,{r:()=>e});let e=(()=>{class f{}return f.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",f.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",f.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",f.MEMBER_GROUP_STATUS_INDIRECT="urn:perun:member_group:attribute-def:virt:groupStatusIndirect",f.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",f.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",f.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",f.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",f.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",f.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",f.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",f.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",f.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",f.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",f.USER_DEF_CERTIFICATES="urn:perun:user:attribute-def:def:userCertificates",f.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",f.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",f.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",f.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",f.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",f.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",f.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",f.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",f.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",f.GROUP_SYNC_INTERVAL="urn:perun:group:attribute-def:def:synchronizationInterval",f.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",f.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",f.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",f.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",f.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",f})()},9244:(Xe,ae,p)=>{"use strict";p.d(ae,{dN:()=>T,Je:()=>x,f7:()=>P.f7,l9:()=>F.l,sF:()=>P.sF,XI:()=>P.XI,Xd:()=>P.Xd,aC:()=>P.aC,fx:()=>P.fx,dv:()=>P.dv,i5:()=>P.i5,Sd:()=>P.Sd,pR:()=>P.pR,ys:()=>P.ys,O6:()=>P.O6,B2:()=>P.B2,mH:()=>P.mH,MX:()=>P.MX,cT:()=>P.cT,oU:()=>P.oU,IL:()=>P.IL,Jc:()=>P.Jc,Xn:()=>P.Xn,kZ:()=>P.kZ,v$:()=>P.v$,x2:()=>P.x2,vL:()=>P.vL,j4:()=>P.j4,jh:()=>P.jh,bx:()=>P.bx,im:()=>P.im,zr:()=>P.zr,Hm:()=>P.Hm,Cz:()=>P.Cz,sG:()=>P.sG,g$:()=>P.g$,bD:()=>P.bD,lt:()=>P.lt,Oe:()=>P.Oe,hu:()=>P.hu,Gw:()=>P.Gw,O5:()=>P.O5,te:()=>P.te,kN:()=>P.kN,$0:()=>P.$0,OV:()=>P.OV});var e=p(98739),f=p(28255),A=p(97392),S=p(4859),m=p(89383),M=p(36895),w=p(94650);let x=(()=>{class B{}return B.\u0275fac=function(q){return new(q||B)},B.\u0275mod=w.oAB({type:B}),B.\u0275inj=w.cJS({imports:[e.TU,f.Tx,A.Ps,S.ot,m.aw,M.ez]}),B})();var P=p(17218),F=p(18750);class T{static passwordMatchValidator(I){const q=I.get("passwordCtrl").value,ue=I.get("passwordAgainCtrl").value;return I.get("passwordAgainCtrl").setErrors(q!==ue?{noPasswordMatch:!0}:null),null}static patternValidator(I){return q=>{if(!q.value)return null;let ue=0;for(const j of I)ue+=j.test(q.value)?1:0;return ue>=3?null:{isWeak:!0}}}}},17218:(Xe,ae,p)=>{"use strict";p.d(ae,{$0:()=>T,B2:()=>x,Cz:()=>j,Gw:()=>it,Hm:()=>he,IL:()=>qe,Jc:()=>Ze,MX:()=>Le,O5:()=>u,O6:()=>Ke,OV:()=>Ye,Oe:()=>Oe,Sd:()=>Z,XI:()=>ee,Xd:()=>Ie,Xn:()=>Ae,aC:()=>pe,bD:()=>q,bx:()=>r,cT:()=>lt,dv:()=>De,f7:()=>w,fx:()=>Ne,g$:()=>P,hu:()=>ue,i5:()=>$,im:()=>_,j4:()=>V,jh:()=>Be,kN:()=>F,kZ:()=>ce,lt:()=>B,mH:()=>we,oU:()=>$e,pR:()=>ft,sF:()=>W,sG:()=>ot,te:()=>be,v$:()=>Pe,vL:()=>v,x2:()=>Ce,ys:()=>me,zr:()=>C});var e=p(15861),f=p(7274),A=p(36895),S=p(94327),M=p(64080);const w=[5,10,25,100],x=/^(([^<>+()[\]\\.,;:\s@"-#$%&=]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]+))$/;function P(h){let o="";return h?.userAttributes.forEach(n=>{"preferredMail"===n.friendlyName&&(o=n.value)}),o&&0===o.length&&null!==h.memberAttributes&&h.memberAttributes.forEach(n=>{"mail"===n.friendlyName&&null!==n.value&&(o=n.value)}),o}function F(h){let o="";return h&&h.userAttributes.forEach(n=>{"preferredMail"===n.friendlyName&&(o=n.value)}),o}function T(h){let o="";return h&&h.userAttributes&&h.userAttributes.filter(n=>"login-namespace"===n.baseFriendlyName).filter(n=>null!==n.value).forEach(n=>{o=o.concat(n.friendlyNameParameter,": ",n.value,", ")}),o.endsWith(", ")&&(o=o.substring(0,o.length-2)),o}function B(h){let o="";return h&&h.userAttributes&&h.userAttributes.filter(n=>"login-namespace"===n.baseFriendlyName).filter(n=>null!==n.value).forEach(n=>{o=o.concat(n.friendlyNameParameter,": ",n.value,", ")}),o.endsWith(", ")&&(o=o.substring(0,o.length-2)),o}function q(h){let o="";return null!==h.titleBefore&&(o+=h.titleBefore+" "),null!==h.firstName&&(o+=h.firstName+" "),null!==h.middleName&&(o+=h.middleName+" "),null!==h.lastName&&(o+=h.lastName+" "),null!==h.titleAfter&&(o+=h.titleAfter+" "),o.endsWith(" ")&&(o=o.substring(0,o.length-1)),o}function ue(h){let o="";return null!==h.firstName&&(o+=h.firstName+" "),null!==h.middleName&&(o+=h.middleName+" "),null!==h.lastName&&(o+=h.lastName+" "),o.endsWith(" ")&&(o=o.substring(0,o.length-1)),o}function j(h){let o="";return h.split(/(?=[A-Z])/g).forEach(t=>{o=o.concat(t.toLowerCase()),o=o.concat(" ")}),o=o.charAt(0).toUpperCase()+o.slice(1,o.length-1),o}function be(h){let o="";for(const n of h)"technical"===n.type&&(o+=n.name+", ");return o.endsWith(", ")&&(o=o.substring(0,o.length-2)),o}function me(h,o){return fe.apply(this,arguments)}function fe(){return(fe=(0,e.Z)(function*(h,o){yield function re(h){return new Promise(o=>setTimeout(o,h))}(h),o()})).apply(this,arguments)}function v(h){return JSON.parse(localStorage.getItem(h))||[]}function V(h){return JSON.parse(localStorage.getItem(h))||[]}function W(h,o){if(null===localStorage.getItem(h)){const n=[];n.unshift(o.id),localStorage.setItem(h,JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem(h)),t=function xe(h,o){for(let n=0;n0&&n.splice(t,1),0!==t&&n.unshift(o.id),n.length>5&&n.pop(),localStorage.setItem(h,JSON.stringify(n))}}function ee(h,o){if(null===localStorage.getItem("recent")){let n;n="Group"===h.beanName?[{id:h.id,name:h.shortName,fullName:h.name,type:h.beanName,voId:h.voId,voName:o}]:[{id:h.id,name:h.name,type:h.beanName,voId:h.voId}],localStorage.setItem("recent",JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem("recent"));let t;t="Group"===h.beanName?{id:h.id,name:h.shortName,fullName:h.name,type:h.beanName,voId:h.voId,voName:o}:{id:h.id,name:h.name,type:h.beanName,voId:h.voId};const i=function ie(h,o){for(let n=0;n0&&n.splice(i,1),0!==i&&n.unshift(t),n.length>5&&n.pop(),localStorage.setItem("recent",JSON.stringify(n))}}function Ye(h){let o="";return h&&h.userAttributes.forEach(n=>{"organization"===n.friendlyName&&(o=n.value)}),o}function Le(h){return h.filter(o=>!o.namespace.includes("def:core"))}function $e(h,o){const n=o.find(t=>t.id===h);return n?n.parentGroupId?$e(n.parentGroupId,o).concat(n):[n]:[]}function qe(h,o){for(const n of h)if(n.namespace+":"+n.friendlyName===o)return n;return null}function Ze(h){return null!=h.attributes["urn:perun:member:attribute-def:def:mail"]?h.attributes["urn:perun:member:attribute-def:def:mail"]:null!=h.attributes["urn:perun:user:attribute-def:def:preferredMail"]?h.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function Pe(h){return h.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function se(h){if(h.includes("/CN=")){const o=h.split("/");for(const n of o)if(n.startsWith("CN="))return N(n.substring(3))}return h}(h.userExtSource.extSource.name):h.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function U(h){switch(h){case"https://idp.upce.cz/idp/shibboleth":return"University in Pardubice";case"https://idp.slu.cz/idp/shibboleth":return"University in Opava";case"https://login.feld.cvut.cz/idp/shibboleth":return"Faculty of Electrical Engineering, Czech Technical University In Prague";case"https://www.vutbr.cz/SSO/saml2/idp":return"Brno University of Technology";case"https://shibboleth.nkp.cz/idp/shibboleth":return"The National Library of the Czech Republic";case"https://idp2.civ.cvut.cz/idp/shibboleth":return"Czech Technical University In Prague";case"https://shibbo.tul.cz/idp/shibboleth":return"Technical University of Liberec";case"https://idp.mendelu.cz/idp/shibboleth":return"Mendel University in Brno";case"https://cas.cuni.cz/idp/shibboleth":return"Charles University in Prague";case"https://wsso.vscht.cz/idp/shibboleth":return"Institute of Chemical Technology Prague";case"https://idp.vsb.cz/idp/shibboleth":return"VSB \u2013 Technical University of Ostrava";case"https://whoami.cesnet.cz/idp/shibboleth":return"CESNET";case"https://helium.jcu.cz/idp/shibboleth":return"University of South Bohemia";case"https://idp.ujep.cz/idp/shibboleth":return"Jan Evangelista Purkyne University in Usti nad Labem";case"https://idp.amu.cz/idp/shibboleth":return"Academy of Performing Arts in Prague";case"https://idp.lib.cas.cz/idp/shibboleth":return"Academy of Sciences Library";case"https://shibboleth.mzk.cz/simplesaml/metadata.xml":return"Moravian Library";case"https://idp2.ics.muni.cz/idp/shibboleth":return"Masaryk University";case"https://idp.upol.cz/idp/shibboleth":return"Palacky University, Olomouc";case"https://idp.fnplzen.cz/idp/shibboleth":return"FN Plzen";case"https://id.vse.cz/idp/shibboleth":return"University of Economics, Prague";case"https://shib.zcu.cz/idp/shibboleth":return"University of West Bohemia";case"https://idptoo.osu.cz/simplesaml/saml2/idp/metadata.php":return"University of Ostrava";case"https://login.ics.muni.cz/idp/shibboleth":return"MetaCentrum";case"https://idp.hostel.eduid.cz/idp/shibboleth":return"eduID.cz Hostel";case"https://shibboleth.techlib.cz/idp/shibboleth":return"National Library of Technology";case"https://eduid.jamu.cz/idp/shibboleth":return"Janacek Academy of Music and Performing Arts in Brno";case"https://marisa.uochb.cas.cz/simplesaml/saml2/idp/metadata.php":return"Institute of Organic Chemistry and Biochemistry AS CR";case"https://shibboleth.utb.cz/idp/shibboleth":return"Tomas Bata University in Zlin";case"https://engine.elixir-czech.org/authentication/idp/metadata":case"@elixir-europe.org":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":case"@mojeid.extidp.cesnet.cz":return"MojeID";case"https://www.egi.eu/idp/shibboleth":return"EGI SSO";case"@google.extidp.cesnet.cz":return"Google";case"@facebook.extidp.cesnet.cz":return"Facebook";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return h}}(h.userExtSource.extSource.name):h.userExtSource.extSource.name}function N(h){return decodeURIComponent(h.replace(/\\x/g,"%"))}function $(h=["en","cs"]){const o={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{},htmlMessage:{}};return h.forEach(n=>{o.message[n]={locale:n,htmlFormat:!1,subject:"",text:""},o.htmlMessage[n]={locale:n,htmlFormat:!0,subject:"",text:""}}),o}function ce(){const h=new f.vA;return h.disableClose=!0,h.autoFocus=!1,h}function De(h){const o={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null};for(const n of h)o.i18n[n]={locale:n,errorMessage:"",help:"",label:"",options:""};return o}function he(h){return"virt"===h.namespace.split(":")[4]}function Oe(h,o){return"valid"!==h.toLowerCase()||o&&"valid"!==h.toLowerCase()?h.replace("INVALID","INCOMPLETE"):"ACTIVE"}function it(h){let o="";return h?.memberAttributes.forEach(n=>{"organization"===n.friendlyName&&null!==n.value&&(o=n.value)}),0===o.length&&h?.userAttributes.forEach(n=>{"organization"===n.friendlyName&&(o=n.value)}),o}function Ce(h){return h.attributes.find(n=>"groupMembershipExpiration"===n.baseFriendlyName)?.value??"Never"}function ot(h){return h&&"never"!==h.toLowerCase()?(0,A.p6)(h,"d.M.yyyy","en"):h}const Ue=new Intl.Collator("cs",{numeric:!0});function ft(h,o,n){const t=o.active,i=o.direction;return t&&""!==i?h.sort((a,l)=>{const d=n(a,t),c=n(l,t);return Ue.compare(d,c)*("asc"===i?1:-1)}):h}function Z(h,o,n,t,i){o=o.toLowerCase();let a="";return n.forEach(l=>{a+=";"+t(h,l)}),i&&(a+=";"+t(h,"uuid")),a.toLowerCase().includes(o)}function lt(h,o){let n="";return h?.forEach(t=>{t.friendlyName===o&&(n=t.value)}),n}function Ae(h,o,n){const t=[],i=["checkbox","select","edit","menu","cite","extend","recent"];return o=o.filter(a=>!i.includes(a)),h.forEach(a=>{const l={};o.forEach(d=>{l[d]=(n(a,d)??"").split('"').join("''").trim()}),t.push(l)}),t}function Ke(h,o="csv",n="export"){if("csv"===o){const t=(c,s)=>null===s?"":s,i=Object.keys(h[0]),a=h.map(c=>i.map(s=>JSON.stringify(c[s],t)).join(","));a.unshift(i.join(",").split(" ").join("_").split('"').join("''"));const l=a.join("\r\n"),d=new Blob([l],{type:"text/csv"});(0,S.saveAs)(d,`${n}.${o}`)}}function pe(h,o){return h.name.toLowerCase()>o.name.toLowerCase()?1:h.name.toLowerCase()===o.name.toLowerCase()?0:-1}function Ie(h,o){return h.displayName.toLowerCase()>o.displayName.toLowerCase()?1:h.displayName.toLowerCase()===o.displayName.toLowerCase()?0:-1}function Ne(h,o){let n,t;return h.user?(n=h.user.lastName?h.user.lastName:h.user.firstName??"",t=o.user.lastName?o.user.lastName:o.user.firstName??""):(n=h.lastName?h.lastName:h.firstName??"",t=o.lastName?o.lastName:o.firstName??""),n>t?1:n===t?0:-1}function we(h,o,n=[]){h.enable(),h.clearValidators(),h.clearAsyncValidators(),h.setValidators(o),h.setAsyncValidators(n),h.updateValueAndValidity()}function Be(h,o){return!!h&&h.some(n=>n.namespace+":"+n.friendlyName===o&&null!==n.value&&"true"===String(n.value))}function r(h){return Be(h.attributes,M.r.GROUP_SYNC_ENABLED)||Be(h.attributes,M.r.GROUP_STRUCTURE_SYNC_ENABLED)}function u(h,o){const n=o.split("&");for(const t of n){const[i,a]=t.split("=");if(i.includes(h))return a}return""}function _(h){if("INDIRECT"===h.membershipType)return!0;const o=h.memberAttributes?.find(n=>"isLifecycleAlterable"===n.friendlyName);return!!o&&!o.value}function C(h){if("INDIRECT"===h.membershipType)return"INDIRECT";const o=h.memberAttributes?.find(n=>"isLifecycleAlterable"===n.friendlyName);return o?o.value?"DIRECT":"UNALTERABLE":"UNKNOWN"}},18750:(Xe,ae,p)=>{"use strict";p.d(ae,{l:()=>j});var e=p(94650),f=p(98739),A=p(17218),S=p(10036),m=p(36895),M=p(28255),w=p(97392),x=p(4859),P=p(89383);function F(Q,be){if(1&Q){const me=e.EpF();e.TgZ(0,"button",6),e.NdJ("click",function(){e.CHM(me);const re=e.oxw();return e.KtG(re.exportAllData.emit("csv"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&Q&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let T=(()=>{class Q{constructor(){this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe}}return Q.\u0275fac=function(me){return new(me||Q)},Q.\u0275cmp=e.Xpm({type:Q,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(me,fe){if(1&me&&(e.TgZ(0,"div")(1,"button",0)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,1)(6,"button",2),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"mat-menu",null,3)(11,"button",2),e._uU(12,"Csv"),e.qZA()(),e.TgZ(13,"mat-menu",4,5)(15,"button",6),e.NdJ("click",function(){return fe.exportDisplayedData.emit("csv")}),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.YNc(18,F,3,3,"button",7),e.qZA()()),2&me){const re=e.MAs(5),v=e.MAs(10),V=e.MAs(14);e.xp6(1),e.Q6J("matMenuTriggerFor",re),e.xp6(5),e.Q6J("matMenuTriggerFor",v),e.xp6(1),e.hij(" ",e.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),e.xp6(4),e.Q6J("matMenuTriggerFor",V),e.xp6(5),e.hij(" ",e.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),e.xp6(2),e.Q6J("ngIf",fe.allowExportAll)}},dependencies:[M.VK,M.OP,M.p6,w.Hw,x.RK,m.O5,P.X$]}),Q})();const B=["topNav"];function I(Q,be){if(1&Q){const me=e.EpF();e.TgZ(0,"perun-web-apps-table-options",7),e.NdJ("exportDisplayedData",function(re){e.CHM(me);const v=e.oxw();return e.KtG(v.exportDisplayedData.emit(re))})("exportAllData",function(re){e.CHM(me);const v=e.oxw();return e.KtG(v.exportAllData.emit(re))}),e.qZA()}if(2&Q){const me=e.oxw();e.Q6J("allowExportAll",me.allowExportAll)}}function q(Q,be){if(1&Q){const me=e.EpF();e.TgZ(0,"perun-web-apps-table-options",7),e.NdJ("exportDisplayedData",function(re){e.CHM(me);const v=e.oxw();return e.KtG(v.exportDisplayedData.emit(re))})("exportAllData",function(re){e.CHM(me);const v=e.oxw();return e.KtG(v.exportAllData.emit(re))}),e.qZA()}if(2&Q){const me=e.oxw();e.Q6J("allowExportAll",me.allowExportAll)}}const ue=["*"];let j=(()=>{class Q{constructor(me){this.tableConfigService=me,this.hideExport=!1,this.pageSizeOptions=A.f7,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe,this.pageSize=5}set matPaginator(me){this.paginator=me}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5),this.paginator._changePageSize(this.pageSize)}pageChangedTop(me){this.pageSize=me.pageSize,this.tableConfigService.setTablePageSize(this.tableId,me.pageSize)}pageChangedBottom(me){this.paginator.pageSize=me.pageSize,this.paginator.pageIndex=me.pageIndex,this.paginator.page.emit(me),this.pageSize=me.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,me.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return Q.\u0275fac=function(me){return new(me||Q)(e.Y36(S.dB))},Q.\u0275cmp=e.Xpm({type:Q,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(me,fe){if(1&me&&(e.Gf(B,5),e.Gf(f.NW,7)),2&me){let re;e.iGM(re=e.CRH())&&(fe.topNav=re.first),e.iGM(re=e.CRH())&&(fe.matPaginator=re.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},features:[e._Bn([{provide:f.Zf,useValue:{formFieldAppearance:"fill"}}])],ngContentSelectors:ue,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"d-flex","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(me,fe){1&me&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),e.NdJ("page",function(v){return fe.pageChangedTop(v)}),e.qZA(),e.YNc(4,I,1,1,"perun-web-apps-table-options",4),e.qZA(),e.TgZ(5,"div",5),e.Hsn(6),e.qZA(),e.TgZ(7,"div",1)(8,"mat-paginator",6),e.NdJ("page",function(v){return fe.pageChangedBottom(v)}),e.qZA(),e.YNc(9,q,1,1,"perun-web-apps-table-options",4),e.qZA()()),2&me&&(e.xp6(3),e.Q6J("length",fe.dataLength)("pageSizeOptions",fe.pageSizeOptions)("pageSize",fe.pageSize),e.xp6(1),e.Q6J("ngIf",!fe.hideExport),e.xp6(4),e.Q6J("length",fe.paginator.length)("pageIndex",fe.paginator.pageIndex)("pageSizeOptions",fe.paginator.pageSizeOptions)("pageSize",fe.paginator.pageSize),e.xp6(1),e.Q6J("ngIf",!fe.hideExport))},dependencies:[f.NW,m.O5,T]}),Q})()},98380:(Xe,ae,p)=>{"use strict";p.d(ae,{w:()=>P});var e=p(94650),f=p(97392),A=p(36895);function S(F,T){1&F&&(e.TgZ(0,"mat-icon",2),e._uU(1," info "),e.qZA())}function m(F,T){1&F&&(e.TgZ(0,"mat-icon",2),e._uU(1," warning "),e.qZA())}function M(F,T){1&F&&(e.TgZ(0,"mat-icon",2),e._uU(1," dangerous "),e.qZA())}function w(F,T){1&F&&(e.TgZ(0,"mat-icon",2),e._uU(1," check_circle "),e.qZA())}const x=["*"];let P=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275cmp=e.Xpm({type:F,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:x,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(B,I){1&B&&(e.F$t(),e.TgZ(0,"div",0),e.YNc(1,S,2,0,"mat-icon",1),e.YNc(2,m,2,0,"mat-icon",1),e.YNc(3,M,2,0,"mat-icon",1),e.YNc(4,w,2,0,"mat-icon",1),e.Hsn(5),e.qZA()),2&B&&(e.ekj("warn-alert","warn"===I.alert_type)("error-alert","error"===I.alert_type)("success-alert","success"===I.alert_type)("info-alert","info"===I.alert_type),e.xp6(1),e.Q6J("ngIf","info"===I.alert_type),e.xp6(1),e.Q6J("ngIf","warn"===I.alert_type),e.xp6(1),e.Q6J("ngIf","error"===I.alert_type),e.xp6(1),e.Q6J("ngIf","success"===I.alert_type))},dependencies:[f.Hw,A.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),F})()},63189:(Xe,ae,p)=>{"use strict";p.d(ae,{r:()=>S});var e=p(97392),f=p(36895),A=p(94650);let S=(()=>{class m{}return m.\u0275fac=function(w){return new(w||m)},m.\u0275mod=A.oAB({type:m}),m.\u0275inj=A.cJS({imports:[e.Ps,f.ez]}),m})()},97403:(Xe,ae,p)=>{"use strict";p.d(ae,{b:()=>A});var e=p(94650),f=p(51572);let A=(()=>{class S{}return S.\u0275fac=function(M){return new(M||S)},S.\u0275cmp=e.Xpm({type:S,selectors:[["perun-web-apps-loading-dialog"]],decls:2,vars:0,consts:[[1,"spinner-container"]],template:function(M,w){1&M&&(e.TgZ(0,"div",0),e._UZ(1,"mat-spinner"),e.qZA())},dependencies:[f.Ou]}),S})()},68530:(Xe,ae,p)=>{"use strict";p.d(ae,{K:()=>A});var e=p(94650),f=p(51572);let A=(()=>{class S{}return S.\u0275fac=function(M){return new(M||S)},S.\u0275cmp=e.Xpm({type:S,selectors:[["perun-web-apps-loading-table"]],decls:2,vars:0,consts:[[1,"spinner-container"]],template:function(M,w){1&M&&(e.TgZ(0,"div",0),e._UZ(1,"mat-spinner"),e.qZA())},dependencies:[f.Ou]}),S})()},46860:(Xe,ae,p)=>{"use strict";p.d(ae,{A:()=>m});var e=p(97392),f=p(36895),A=p(51572),S=p(94650);let m=(()=>{class M{}return M.\u0275fac=function(x){return new(x||M)},M.\u0275mod=S.oAB({type:M}),M.\u0275inj=S.cJS({imports:[e.Ps,f.ez,A.Cq]}),M})()},60900:(Xe,ae,p)=>{"use strict";p.d(ae,{C:()=>Ne});var e=p(36895),f=p(4859),A=p(73546),S=p(56709),m=p(7274),M=p(44850),w=p(37084),x=p(59549),P=p(94650),F=p(3238);let Ze=(()=>{class we{}return we.\u0275fac=function(r){return new(r||we)},we.\u0275mod=P.oAB({type:we}),we.\u0275inj=P.cJS({imports:[F.uc,F.BQ,F.uc,F.BQ]}),we})();var se=p(97392),N=p(284),U=p(51572),$=p(86257),ce=p(30671),De=p(67376),he=p(24006),Oe=p(99602),it=p(23267),Ce=p(96338),ot=p(28255),Ue=p(83683),ft=p(96308),Z=p(98739),lt=p(10266),Ae=p(84385),Ke=p(3848),pe=p(90455),Ie=p(77331);let Ne=(()=>{class we{}return we.\u0275fac=function(r){return new(r||we)},we.\u0275mod=P.oAB({type:we}),we.\u0275inj=P.cJS({imports:[e.ez,A.QW,M.t,w.To,f.ot,Ze,S.p9,se.Ps,ce.p0,m.Is,U.Cq,x.lN,N.c,De.Cl,he.u5,he.UX,$.T5,Oe.FA,F.XK,it.SJ,Ce.ie,ot.Tx,Ue.g0,ft.JX,Z.TU,lt.AV,Ae.LD,F.si,ce.p0,pe.rP,Ie.Hi,A.QW,M.t,w.To,f.ot,Ze,S.p9,se.Ps,ce.p0,m.Is,U.Cq,x.lN,N.c,De.Cl,he.u5,he.UX,$.T5,Oe.FA,F.XK,it.SJ,Ce.ie,ot.Tx,Ue.g0,ft.JX,Z.TU,lt.AV,Ae.LD,F.si,Ke.Nh,pe.rP,Ie.Hi]}),we})()},71345:Xe=>{var ae=4,p=.001,e=1e-7,f=10,A=11,S=1/(A-1),m="function"==typeof Float32Array;function M(q,ue){return 1-3*ue+3*q}function w(q,ue){return 3*ue-6*q}function x(q){return 3*q}function P(q,ue,j){return((M(ue,j)*q+w(ue,j))*q+x(ue))*q}function F(q,ue,j){return 3*M(ue,j)*q*q+2*w(ue,j)*q+x(ue)}function I(q){return q}Xe.exports=function(ue,j,Q,be){if(!(0<=ue&&ue<=1&&0<=Q&&Q<=1))throw new Error("bezier x values must be in [0, 1] range");if(ue===j&&Q===be)return I;for(var me=m?new Float32Array(A):new Array(A),fe=0;fe=p?function B(q,ue,j,Q){for(var be=0;be0?j=fe:ue=fe}while(Math.abs(me)>e&&++re"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(i,a,l){var d=[null];d.push.apply(d,a);var s=new(Function.bind.apply(i,d));return l&&p(s,l.prototype),s}).apply(null,arguments)}function A(h){return function S(h){if(Array.isArray(h))return w(h)}(h)||function m(h){if(typeof Symbol<"u"&&null!=h[Symbol.iterator]||null!=h["@@iterator"])return Array.from(h)}(h)||function M(h,o){if(h){if("string"==typeof h)return w(h,o);var n=Object.prototype.toString.call(h).slice(8,-1);if("Object"===n&&h.constructor&&(n=h.constructor.name),"Map"===n||"Set"===n)return Array.from(h);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(h,o)}}(h)||function x(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(h,o){(null==o||o>h.length)&&(o=h.length);for(var n=0,t=new Array(o);n1?n-1:0),i=1;i/gm),Ae=ue(/\${[\w\W]*}/gm),Ke=ue(/^data-[\-\w.\u00B7-\uFFFF]/),pe=ue(/^aria-[\-\w]+$/),Ie=ue(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ne=ue(/^(?:\w+script|data):/i),we=ue(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Be=ue(/^html$/i),r=function(){return typeof window>"u"?null:window},u=function(o,n){if("object"!==ae(o)||"function"!=typeof o.createPolicy)return null;var t=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(t=n.currentScript.getAttribute(i));var a="dompurify"+(t?"#"+t:"");try{return o.createPolicy(a,{createHTML:function(d){return d},createScriptURL:function(d){return d}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};return function _(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r(),o=function(at){return _(at)};if(o.version="2.4.3",o.removed=[],!h||!h.document||9!==h.document.nodeType)return o.isSupported=!1,o;var n=h.document,t=h.document,i=h.DocumentFragment,a=h.HTMLTemplateElement,l=h.Node,d=h.Element,c=h.NodeFilter,s=h.NamedNodeMap,E=void 0===s?h.NamedNodeMap||h.MozNamedAttrMap:s,H=h.HTMLFormElement,ne=h.DOMParser,ve=h.trustedTypes,We=d.prototype,Mt=N(We,"cloneNode"),pt=N(We,"nextSibling"),_t=N(We,"childNodes"),ye=N(We,"parentNode");if("function"==typeof a){var Ee=t.createElement("template");Ee.content&&Ee.content.ownerDocument&&(t=Ee.content.ownerDocument)}var oe=u(ve,n),_e=oe?oe.createHTML(""):"",ut=t.implementation,vt=t.createNodeIterator,Bt=t.createDocumentFragment,Rt=t.getElementsByTagName,Ot=n.importNode,si={};try{si=se(t).documentMode?t.documentMode:{}}catch{}var hi={};o.isSupported="function"==typeof ye&&ut&&typeof ut.createHTMLDocument<"u"&&9!==si;var ln,zi,kt=Z,xt=lt,Se=Ae,Je=Ke,le=pe,tt=Ne,rt=we,Ft=Ie,wt=null,zt=Pe({},[].concat(A(U),A($),A(ce),A(he),A(it))),ii=null,xi=Pe({},[].concat(A(Ce),A(ot),A(Ue),A(ft))),mt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Vt=null,gt=null,Ut=!0,Kt=!0,ni=!1,ci=!1,Ai=!1,Di=!1,St=!1,Gt=!1,J=!1,He=!1,bt=!0,Pt=!1,vi=!0,Bi=!1,$i={},ki=null,sn=Pe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),_n=null,Li=Pe({},["audio","video","img","source","image","track"]),Un=null,Xn=Pe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),lr="http://www.w3.org/1998/Math/MathML",Wn="http://www.w3.org/2000/svg",rn="http://www.w3.org/1999/xhtml",Bn=rn,xn=!1,un=null,er=Pe({},[lr,Wn,rn],W),tn=["application/xhtml+xml","text/html"],Yn=null,tr=t.createElement("form"),Nn=function(at){return at instanceof RegExp||at instanceof Function},On=function(at){Yn&&Yn===at||((!at||"object"!==ae(at))&&(at={}),at=se(at),ln=ln=-1===tn.indexOf(at.PARSER_MEDIA_TYPE)?"text/html":at.PARSER_MEDIA_TYPE,zi="application/xhtml+xml"===ln?W:V,wt="ALLOWED_TAGS"in at?Pe({},at.ALLOWED_TAGS,zi):zt,ii="ALLOWED_ATTR"in at?Pe({},at.ALLOWED_ATTR,zi):xi,un="ALLOWED_NAMESPACES"in at?Pe({},at.ALLOWED_NAMESPACES,W):er,Un="ADD_URI_SAFE_ATTR"in at?Pe(se(Xn),at.ADD_URI_SAFE_ATTR,zi):Xn,_n="ADD_DATA_URI_TAGS"in at?Pe(se(Li),at.ADD_DATA_URI_TAGS,zi):Li,ki="FORBID_CONTENTS"in at?Pe({},at.FORBID_CONTENTS,zi):sn,Vt="FORBID_TAGS"in at?Pe({},at.FORBID_TAGS,zi):{},gt="FORBID_ATTR"in at?Pe({},at.FORBID_ATTR,zi):{},$i="USE_PROFILES"in at&&at.USE_PROFILES,Ut=!1!==at.ALLOW_ARIA_ATTR,Kt=!1!==at.ALLOW_DATA_ATTR,ni=at.ALLOW_UNKNOWN_PROTOCOLS||!1,ci=at.SAFE_FOR_TEMPLATES||!1,Ai=at.WHOLE_DOCUMENT||!1,Gt=at.RETURN_DOM||!1,J=at.RETURN_DOM_FRAGMENT||!1,He=at.RETURN_TRUSTED_TYPE||!1,St=at.FORCE_BODY||!1,bt=!1!==at.SANITIZE_DOM,Pt=at.SANITIZE_NAMED_PROPS||!1,vi=!1!==at.KEEP_CONTENT,Bi=at.IN_PLACE||!1,Ft=at.ALLOWED_URI_REGEXP||Ft,Bn=at.NAMESPACE||rn,at.CUSTOM_ELEMENT_HANDLING&&Nn(at.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(mt.tagNameCheck=at.CUSTOM_ELEMENT_HANDLING.tagNameCheck),at.CUSTOM_ELEMENT_HANDLING&&Nn(at.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(mt.attributeNameCheck=at.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),at.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof at.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(mt.allowCustomizedBuiltInElements=at.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ci&&(Kt=!1),J&&(Gt=!0),$i&&(wt=Pe({},A(it)),ii=[],!0===$i.html&&(Pe(wt,U),Pe(ii,Ce)),!0===$i.svg&&(Pe(wt,$),Pe(ii,ot),Pe(ii,ft)),!0===$i.svgFilters&&(Pe(wt,ce),Pe(ii,ot),Pe(ii,ft)),!0===$i.mathMl&&(Pe(wt,he),Pe(ii,Ue),Pe(ii,ft))),at.ADD_TAGS&&(wt===zt&&(wt=se(wt)),Pe(wt,at.ADD_TAGS,zi)),at.ADD_ATTR&&(ii===xi&&(ii=se(ii)),Pe(ii,at.ADD_ATTR,zi)),at.ADD_URI_SAFE_ATTR&&Pe(Un,at.ADD_URI_SAFE_ATTR,zi),at.FORBID_CONTENTS&&(ki===sn&&(ki=se(ki)),Pe(ki,at.FORBID_CONTENTS,zi)),vi&&(wt["#text"]=!0),Ai&&Pe(wt,["html","head","body"]),wt.table&&(Pe(wt,["tbody"]),delete Vt.tbody),q&&q(at),Yn=at)},Dt=Pe({},["mi","mo","mn","ms","mtext"]),ai=Pe({},["foreignobject","desc","title","annotation-xml"]),ct=Pe({},["title","style","font","a","script"]),Zt=Pe({},$);Pe(Zt,ce),Pe(Zt,De);var Jt=Pe({},he);Pe(Jt,Oe);var Mi=function(at){v(o.removed,{element:at});try{at.parentNode.removeChild(at)}catch{try{at.outerHTML=_e}catch{at.remove()}}},Oi=function(at,It){try{v(o.removed,{attribute:It.getAttributeNode(at),from:It})}catch{v(o.removed,{attribute:null,from:It})}if(It.removeAttribute(at),"is"===at&&!ii[at])if(Gt||J)try{Mi(It)}catch{}else try{It.setAttribute(at,"")}catch{}},nn=function(at){var It,Xt;if(St)at=""+at;else{var gi=ee(at,/^[\r\n\t ]+/);Xt=gi&&gi[0]}"application/xhtml+xml"===ln&&Bn===rn&&(at=''+at+"");var Zi=oe?oe.createHTML(at):at;if(Bn===rn)try{It=(new ne).parseFromString(Zi,ln)}catch{}if(!It||!It.documentElement){It=ut.createDocument(Bn,"template",null);try{It.documentElement.innerHTML=xn?_e:Zi}catch{}}var Ui=It.body||It.documentElement;return at&&Xt&&Ui.insertBefore(t.createTextNode(Xt),Ui.childNodes[0]||null),Bn===rn?Rt.call(It,Ai?"html":"body")[0]:Ai?It.documentElement:Ui},Mn=function(at){return vt.call(at.ownerDocument||at,at,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Sn=function(at){return"object"===ae(l)?at instanceof l:at&&"object"===ae(at)&&"number"==typeof at.nodeType&&"string"==typeof at.nodeName},vn=function(at,It,Xt){hi[at]&&fe(hi[at],function(gi){gi.call(o,It,Xt,Yn)})},cr=function(at){var It;if(vn("beforeSanitizeElements",at,null),function(at){return at instanceof H&&("string"!=typeof at.nodeName||"string"!=typeof at.textContent||"function"!=typeof at.removeChild||!(at.attributes instanceof E)||"function"!=typeof at.removeAttribute||"function"!=typeof at.setAttribute||"string"!=typeof at.namespaceURI||"function"!=typeof at.insertBefore||"function"!=typeof at.hasChildNodes)}(at)||Le(/[\u0080-\uFFFF]/,at.nodeName))return Mi(at),!0;var Xt=zi(at.nodeName);if(vn("uponSanitizeElement",at,{tagName:Xt,allowedTags:wt}),at.hasChildNodes()&&!Sn(at.firstElementChild)&&(!Sn(at.content)||!Sn(at.content.firstElementChild))&&Le(/<[/\w]/g,at.innerHTML)&&Le(/<[/\w]/g,at.textContent)||"select"===Xt&&Le(/