"use strict";(self.webpackChunkarter=self.webpackChunkarter||[]).push([[539],{79982:function(t,e,i){i.d(e,{Q3:function(){return n.Q}}),i(61662),i(64680),i(42291),i(12893),i(89042),i(76426),i(16684);var n=i(33099);i(32648)},16684:function(t,e,i){i.d(e,{O:function(){return _}});var n=i(3679),o=i(12893),r=i(33099),s=i(88720),a=i(38583),l=i(21384),c=i(37118),p=i(93130),u=i(95389);function d(t,e){1&t&&(s.TgZ(0,"label"),s._uU(1),s.ALo(2,"translate"),s._UZ(3,"app-help-hint",10),s.qZA()),2&t&&(s.xp6(1),s.hij("",s.lcZ(2,3,"advance_search.lbl_trofi_title")," "),s.xp6(2),s.Q6J("popupTextKey","record_search.trofi_popup")("hintTextKey","record_search.trofi_hint"))}function f(t,e){if(1&t&&(s.TgZ(0,"b"),s._uU(1),s.qZA()),2&t){const t=e.item;s.xp6(1),s.Oqu(t.group)}}function h(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"span",11),s._uU(1),s.qZA(),s.TgZ(2,"span",12),s.NdJ("click",function(){const e=s.CHM(t);return e.clear(e.item)}),s._UZ(3,"i",13),s.qZA()}if(2&t){const t=e.item;s.xp6(1),s.AsE("",t.text,"",void 0===t.text?t.group:"","")}}const x=function(){return{standalone:!0}};function g(t,e){if(1&t&&s._UZ(0,"input",15),2&t){const t=s.oxw(),e=t.item$;s.MGl("id","item-",t.index,""),s.Q6J("ngModel",e.selected)("ngModelOptions",s.DdM(3,x))}}function m(t,e){if(1&t&&(s.YNc(0,g,1,4,"input",14),s._uU(1)),2&t){const t=e.item,i=s.oxw();s.Q6J("ngIf",i.showItem(t)),s.xp6(1),s.hij(" ",t.text," ")}}let _=(()=>{class t{constructor(t,e){this.formBuilder=t,this.trofiHelper=e,this.trofiItems=o.BJ,this.showLabel=!0}ngOnInit(){this.buildForm(),this.form.valueChanges.subscribe(t=>{const e=this.trofiHelper.serializeTrofiValue(t.trofi);this.form.value.trofi&&e.length!==this.form.value.trofi.length?this.form.patchValue({trofi:this.trofiHelper.deserializePrimitiveValueForDisplay(e)},{emitEvent:!1}):this.formChange(e)})}buildForm(){this.form=this.formBuilder.group({trofi:null})}writeValue(t){const e=this.trofiHelper.deserializePrimitiveValueForDisplay(t);e&&this.form.patchValue({trofi:e},{emitEvent:!1})}registerOnChange(t){this.formChange=t}registerOnTouched(t){}setDisabledState(t){}showItem(t){return t.key.indexOf("I")<0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.qu),s.Y36(r.Q))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-trofi-filter"]],inputs:{showLabel:"showLabel"},features:[s._Bn([{provide:n.JU,useExisting:t,multi:!0},r.Q])],decls:11,vars:12,consts:[[3,"formGroup"],[1,""],[1,"mb-0"],[1,"form-group"],[4,"ngIf"],["appMobileFriendlySelect","","id","trofiSelector","formControlName","trofi",3,"items","placeholder","groupBy","bindLabel","multiple","hideSelected","closeOnSelect","selectableGroup"],["ng-optgroup-tmp",""],["ng-label-tmp",""],["default",""],["ng-option-tmp",""],[3,"popupTextKey","hintTextKey"],[1,"ng-value-label"],["aria-hidden","true",1,"ng-value-icon","right",3,"click"],[1,"far","fa-times-circle"],["type","checkbox",3,"id","ngModel","ngModelOptions",4,"ngIf"],["type","checkbox",3,"id","ngModel","ngModelOptions"]],template:function(t,e){1&t&&(s.TgZ(0,"form",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"div",3),s.YNc(4,d,4,5,"label",4),s.TgZ(5,"ng-select",5),s.ALo(6,"translate"),s.YNc(7,f,2,1,"ng-template",6),s.YNc(8,h,4,2,"ng-template",7,8,s.W1O),s.YNc(10,m,2,2,"ng-template",9),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("formGroup",e.form),s.xp6(4),s.Q6J("ngIf",e.showLabel),s.xp6(1),s.Q6J("items",e.trofiItems)("placeholder",s.lcZ(6,10,"trofi.lbl_select_trofi"))("groupBy","group")("bindLabel","text")("multiple",!0)("hideSelected",!0)("closeOnSelect",!1)("selectableGroup",!0))},directives:[n._Y,n.JL,n.sg,a.O5,l.w9,c.W,n.JJ,n.u,l.mD,l.bb,l.Z2,p.h,n.Wl,n.On],pipes:[u.X$],styles:[""],changeDetection:0}),t})()},33099:function(t,e,i){i.d(e,{Q:function(){return r}});var n=i(12893),o=i(88720);let r=(()=>{class t{serializeTrofiValue(t){let e=[];return t&&t.length>0&&t.forEach(t=>{let i="";if(t.group&&t.text)i=t.key;else if(t.group){const e=n.hx.find(e=>e.text===t.group);i=e?e.key:null}e.push(i)}),e=e.filter(t=>t),e=e.filter(this.toDistinctArrayOfSingleValue),e}deserializePrimitiveValueForDisplay(t){let e=[];return t&&t.length>0&&t.forEach(t=>{const i=n.BJ.find(e=>e.key===t);if(i)return void e.push(i);const o=n.hx.find(e=>e.key===t);o&&e.push({key:o.key,text:o.text,group:o.text})}),e=e.filter(this.toDistinctArrayObjects),e}getKeyByText(t){const e=n.hx.find(e=>e.text===t),i=n.BJ.find(e=>e.text===t);return e?e.key:i?i.key:null}getTextByKey(t){const e=n.hx.find(e=>e.key===t),i=n.BJ.find(e=>e.key===t);return e?e.text:i?i.text:null}toDistinctArrayObjects(t,e,i){return i.findIndex(e=>e.key===t.key)===e}toDistinctArrayOfSingleValue(t,e,i){return i.indexOf(t)===e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})()},56950:function(t,e,i){i.d(e,{zE:function(){return z.z},S9:function(){return D.S},zo:function(){return k},JL:function(){return $}});var n=i(79765),o=i(59193),r=i(45435),s=i(93342),a=i(19773),l=i(5304),c=i(68939),p=i(54395),u=i(43190),d=i(12893),f=i(45626),h=i(88720),x=i(89042),g=i(38583),m=i(95389),_=i(85475);const Z=function(t){return{value:t}};function v(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"input",11),h.NdJ("change",function(){return h.CHM(t),h.oxw(3).exportMethodSelected(null)}),h.qZA(),h._UZ(2,"label",12),h.qZA()}if(2&t){const t=h.oxw(3);h.xp6(1),h.s9C("id","wave"+t.i),h.s9C("value",null),h.xp6(1),h.s9C("for","wave"+t.i),h.Q6J("translate","taxon_export_modal.lbl_new_export")("translateParams",h.VKq(5,Z,t.taxonCount))}}const b=function(t,e,i){return{dateValue:t,taxonValue:e,userName:i}};function y(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"input",13),h.NdJ("change",function(){const e=h.CHM(t).index;return h.oxw(3).exportMethodSelected(e)}),h.qZA(),h._UZ(2,"label",12),h.ALo(3,"appDateTime"),h.qZA()}if(2&t){const t=e.$implicit,i=e.index;h.xp6(1),h.s9C("id","wave"+i),h.s9C("value",i),h.xp6(1),h.s9C("for","wave"+i),h.Q6J("translate","taxon_export_modal.lbl_old_export")("translateParams",h.kEZ(7,b,h.lcZ(3,5,t.exportedDate),t.total,t.userName))}}function A(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",14),h.TgZ(1,"button",15),h.NdJ("click",function(){return h.CHM(t),h.oxw(3).loadMore()}),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.qZA()}2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,1,"taxon_search.btn_load_more")))}function q(t,e){if(1&t&&(h.ynx(0),h.YNc(1,v,3,7,"div",4),h.YNc(2,y,4,11,"div",9),h.YNc(3,A,4,3,"div",10),h.BQk()),2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("ngIf",t.taxonCount),h.xp6(1),h.Q6J("ngForOf",t.reports),h.xp6(1),h.Q6J("ngIf",!t.isLoadingMore&&t.reports.length<t.totalHistoryRecords)}}function T(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"input",11),h.NdJ("change",function(){return h.CHM(t),h.oxw(3).exportMethodSelected(null)}),h.qZA(),h._UZ(2,"label",12),h.qZA()}if(2&t){const t=h.oxw(3);h.xp6(1),h.s9C("id","wave"+t.i),h.s9C("value",null),h.xp6(1),h.s9C("for","wave"+t.i),h.Q6J("translate","taxon_export_modal.lbl_new_export")("translateParams",h.VKq(5,Z,t.taxonCount))}}function w(t,e){if(1&t&&(h.ynx(0),h.YNc(1,T,3,7,"div",4),h.BQk()),2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("ngIf",t.taxonCount)}}function J(t,e){1&t&&(h.TgZ(0,"span"),h._UZ(1,"i",16),h.qZA())}function Q(t,e){if(1&t){const t=h.EpF();h.ynx(0),h.TgZ(1,"div"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,q,4,3,"ng-container",4),h.YNc(5,w,2,1,"ng-container",4),h.TgZ(6,"div",5),h.TgZ(7,"button",6),h.NdJ("click",function(){return h.CHM(t),h.oxw().modalRef.hide()}),h._UZ(8,"i",7),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().export()}),h.YNc(12,J,2,0,"span",4),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.qZA(),h.BQk()}if(2&t){const t=h.oxw();h.xp6(2),h.Oqu(h.lcZ(3,7,"taxon_export_modal.lbl_help_text")),h.xp6(2),h.Q6J("ngIf",t.reports),h.xp6(1),h.Q6J("ngIf",!t.reports),h.xp6(4),h.hij(" ",h.lcZ(10,9,"common.close")," "),h.xp6(2),h.Q6J("disabled",t.exporting||t.loadingReport||t.hideExportButton),h.xp6(1),h.Q6J("ngIf",t.exporting),h.xp6(1),h.hij(" ",h.lcZ(14,11,"taxon_export_modal.btn_export")," ")}}function U(t,e){1&t&&(h.TgZ(0,"span"),h._UZ(1,"i",16),h.qZA())}let k=(()=>{class t{constructor(t,e){this.taxonService=t,this.notificationService=e,this.exportHistoryQuery=new d.Jb,this.exporting=!1,this.loadingReport=!1,this.isLoadingMore=!1,this.hideExportButton=!1,this.action$=new n.xQ,this.actionType={export:"export",loadReports:"load"},this.take=20,this.totalHistoryRecords=0,this.loadReports=this.action$.pipe((0,r.h)(t=>t.type===this.actionType.loadReports),(0,s.b)(t=>{this.loadingReport=!this.isLoadingMore,this.hideExportButton=this.taxonCount<=0}),(0,a.zg)(t=>this.taxonService.getUserExportHistory(this.exportHistoryQuery).pipe((0,s.b)(t=>{this.isLoadingMore?Array.prototype.push.apply(this.reports,t.items):this.reports=t.items,this.reports.length&&(this.totalHistoryRecords=this.reports[0].totalItems)}),(0,l.K)(t=>{if(this.loadingReport=!1,403!==t.status)return this.notificationService.showHttpErrorResponse(t),o.E;this.exportMethodSelected(null)}),(0,c.x)(()=>this.loadingReport=!1)))).subscribe(t=>{this.isLoadingMore=!1}),this.export$=this.action$.pipe((0,r.h)(t=>t.type===this.actionType.export),(0,p.b)(0),(0,u.w)(t=>(this.exporting=!0,this.taxonService.export(t.payload).pipe((0,a.zg)(t=>this.taxonService.getReport(t).pipe((0,s.b)(t=>window.location.href=t.fileUrl))),(0,l.K)(t=>(this.notificationService.showHttpErrorResponse(t),o.E)),(0,c.x)(()=>{this.exporting=!1,this.modalRef.hide()}))))).subscribe()}ngOnDestroy(){this.loadReports.unsubscribe(),this.export$.unsubscribe()}ngOnInit(){this.exportHistoryQuery.take=this.take,this.exportHistoryQuery.skip=0,this.action$.next({type:this.actionType.loadReports})}exportMethodSelected(t){this.exportOption=t,this.hideExportButton=!1}export(){null!=this.exportOption?window.location.href=this.reports[this.exportOption].fileUrl:this.action$.next({type:this.actionType.export,payload:this.query})}loadMore(){this.exportHistoryQuery.skip+=this.take,this.isLoadingMore=!0,this.action$.next({type:this.actionType.loadReports})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(f.g),h.Y36(x.gq))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-taxon-export-modal"]],features:[h._Bn([f.g])],decls:8,vars:5,consts:[[1,"modal-header"],[1,"modal-body"],[4,"ngIf","ngIfElse"],["loading",""],[4,"ngIf"],[1,"text-right"],["type","button",1,"btn","btn-secondary",3,"click"],[1,"fas","fa-times"],["type","button",1,"btn","btn-primary","ml-2",3,"disabled","click"],[4,"ngFor","ngForOf"],["class","d-flex justify-content-center mt-4",4,"ngIf"],["name","export","type","radio","checked","",1,"with-font",3,"id","value","change"],[1,"mb-0",3,"for","translate","translateParams"],["name","export","type","radio",1,"with-font",3,"id","value","change"],[1,"d-flex","justify-content-center","mt-4"],[1,"btn","btn-link",3,"click"],[1,"fas","fa-spinner","fa-spin"]],template:function(t,e){if(1&t&&(h.TgZ(0,"div",0),h.TgZ(1,"h1"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.qZA(),h.TgZ(4,"div",1),h.YNc(5,Q,15,13,"ng-container",2),h.YNc(6,U,2,0,"ng-template",null,3,h.W1O),h.qZA()),2&t){const t=h.MAs(7);h.xp6(2),h.Oqu(h.lcZ(3,3,"taxon_export_modal.lbl_heaer")),h.xp6(3),h.Q6J("ngIf",!e.loadingReport)("ngIfElse",t)}},directives:[g.O5,g.sg,m.Pi],pipes:[m.X$,_.X],encapsulation:2}),t})();var I=i(75425);function N(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"p",7),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",8),h._UZ(5,"app-loading-indicator"),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,1,"taxon_import_modal.lbl_loading_helptext")))}function L(t,e){1&t&&(h.TgZ(0,"div",9),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"taxon_import_modal.lbl_confirmation")," "))}const M=function(t){return{value:t}};function O(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"i",10),h._UZ(2,"span",11),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Q6J("translate","taxon_import_modal.msg_unrecognize_species_morpho_group")("translateParams",h.VKq(2,M,t.errors.unrecognize_species_morpho_group.join(", ")))}}function Y(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"i",10),h._UZ(2,"span",11),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Q6J("translate","taxon_import_modal.msg_missing_species_group")("translateParams",h.VKq(2,M,t.errors.missing_species_group.join(", ")))}}function C(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"i",10),h._UZ(2,"span",11),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Q6J("translate","taxon_import_modal.msg_not_existed_taxon")("translateParams",h.VKq(2,M,t.errors.not_existed_taxon.join(", ")))}}function E(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"i",10),h._UZ(2,"span",11),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Q6J("translate","taxon_import_modal.msg_invalid_dansk")("translateParams",h.VKq(2,M,t.errors.invalid_dansk.join(", ")))}}function S(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"i",10),h._UZ(2,"span",11),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Q6J("translate","taxon_import_modal.msg_invalid_reference_year")("translateParams",h.VKq(2,M,t.errors.invalid_reference_year.join(", ")))}}function H(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"i",10),h._UZ(2,"span",11),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Q6J("translate","taxon_import_modal.msg_duplicate_name")("translateParams",h.VKq(2,M,t.errors.duplicate_name.join(", ")))}}function P(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"i",10),h._UZ(2,"span",11),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Q6J("translate","taxon_import_modal.msg_empty_accepted_danish_name")("translateParams",h.VKq(2,M,t.errors.empty_accepted_danish_name.join(", ")))}}function B(t,e){1&t&&(h.TgZ(0,"div"),h._UZ(1,"i",10),h._UZ(2,"span",12),h.qZA()),2&t&&(h.xp6(2),h.Q6J("translate","taxon_import_modal.msg_general_error"))}function R(t,e){if(1&t&&(h.TgZ(0,"div",9),h.YNc(1,O,3,4,"div",2),h.YNc(2,Y,3,4,"div",2),h.YNc(3,C,3,4,"div",2),h.YNc(4,E,3,4,"div",2),h.YNc(5,S,3,4,"div",2),h.YNc(6,H,3,4,"div",2),h.YNc(7,P,3,4,"div",2),h.YNc(8,B,3,1,"div",2),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf",t.errors.unrecognize_species_morpho_group),h.xp6(1),h.Q6J("ngIf",t.errors.missing_species_group),h.xp6(1),h.Q6J("ngIf",t.errors.not_existed_taxon),h.xp6(1),h.Q6J("ngIf",t.errors.invalid_dansk),h.xp6(1),h.Q6J("ngIf",t.errors.invalid_reference_year),h.xp6(1),h.Q6J("ngIf",t.errors.duplicate_name),h.xp6(1),h.Q6J("ngIf",t.errors.empty_accepted_danish_name),h.xp6(1),h.Q6J("ngIf",t.errors.generalError)}}function V(t,e){1&t&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"taxon_import_modal.lbl_import_successfully")))}function j(t,e){1&t&&(h.TgZ(0,"span"),h._UZ(1,"i",16),h.qZA())}function F(t,e){if(1&t){const t=h.EpF();h.ynx(0),h.TgZ(1,"button",13),h.NdJ("click",function(){return h.CHM(t),h.oxw().modalRef.hide()}),h._UZ(2,"i",14),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.TgZ(5,"button",15),h.NdJ("click",function(){return h.CHM(t),h.oxw().startImport()}),h.YNc(6,j,2,0,"span",2),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.BQk()}if(2&t){const t=h.oxw();h.xp6(3),h.hij(" ",h.lcZ(4,4,"common.close")," "),h.xp6(2),h.Q6J("disabled",t.state.isProcessing||!t.file),h.xp6(1),h.Q6J("ngIf",t.state.isProcessing),h.xp6(1),h.hij(" ",h.lcZ(8,6,"taxon_import_modal.btn_import")," ")}}function K(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",13),h.NdJ("click",function(){return h.CHM(t),h.oxw().modalRef.hide()}),h._UZ(1,"i",14),h._uU(2),h.ALo(3,"translate"),h.qZA()}2&t&&(h.xp6(2),h.hij(" ",h.lcZ(3,1,"common.btn_close")," "))}let $=(()=>{class t{constructor(t,e){this.taxonService=t,this.notificationService=e,this.defaultState={isProcessing:!1,succeed:!1,errors:null},this.state=Object.assign({},this.defaultState),this.isProcessing=!1,this.finish=!1,this.action$=new n.xQ,this.importTaxon$=this.action$.pipe((0,u.w)(t=>(this.state=Object.assign({},this.defaultState),this.state.isProcessing=!0,this.taxonService.import(t).pipe((0,s.b)(t=>this.state.succeed=!0),(0,l.K)(t=>(this.state.errors=t.error,t.error&&400===t.status?this.errors=t.error:(this.errors={generalError:!0},this.notificationService.showHttpErrorResponse(t)),o.E)),(0,c.x)(()=>this.state.isProcessing=!1))))).subscribe()}ngOnDestroy(){this.importTaxon$.unsubscribe()}startImport(){const t=new FormData;t.append("file",this.file,this.file.name),this.action$.next(t)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(f.g),h.Y36(x.gq))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-taxon-import-modal"]],features:[h._Bn([f.g])],decls:13,vars:9,consts:[[1,"modal-header"],[1,"modal-body"],[4,"ngIf"],["class","mb-3",4,"ngIf"],[1,"text-right"],[4,"ngIf","ngIfElse"],["closebtn",""],[1,"text-center","text-muted"],[1,"text-center"],[1,"mb-3"],[1,"fas","fa-exclamation"],[1,"ml-2",3,"translate","translateParams"],[1,"ml-2",3,"translate"],["type","button",1,"btn","btn-secondary",3,"click"],[1,"fas","fa-times"],["type","button",1,"btn","btn-primary","ml-2",3,"disabled","click"],[1,"fas","fa-spinner","fa-spin"]],template:function(t,e){if(1&t&&(h.TgZ(0,"div",0),h.TgZ(1,"h1"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.qZA(),h.TgZ(4,"div",1),h.YNc(5,N,6,3,"div",2),h.YNc(6,L,3,3,"div",3),h.YNc(7,R,9,8,"div",3),h.YNc(8,V,3,3,"div",2),h.TgZ(9,"div",4),h.YNc(10,F,9,8,"ng-container",5),h.YNc(11,K,4,3,"ng-template",null,6,h.W1O),h.qZA(),h.qZA()),2&t){const t=h.MAs(12);h.xp6(2),h.Oqu(h.lcZ(3,7,"taxon_import_modal.lbl_header")),h.xp6(3),h.Q6J("ngIf",e.state.isProcessing),h.xp6(1),h.Q6J("ngIf",!e.state.isProcessing&&!e.state.errors&&!e.state.succeed),h.xp6(1),h.Q6J("ngIf",e.state.errors),h.xp6(1),h.Q6J("ngIf",e.state.succeed),h.xp6(2),h.Q6J("ngIf",!e.state.succeed)("ngIfElse",t)}},directives:[g.O5,I.Q,m.Pi],pipes:[m.X$],encapsulation:2}),t})();var D=i(34037),z=i(2688);i(82879)},43580:function(t,e,i){i.d(e,{C:function(){return p}});var n=i(25917),o=i(49670),r=i(93342),s=i(88002),a=i(12893),l=i(88720),c=i(91841);let p=(()=>{class t{constructor(t){this.httpClient=t,this.administrativeMap={}}getAdministrativeListValues(t){const e=this.popAdministrativeList(t);return e?(0,n.of)(e):this.httpClient.get(o.X.apiUrls.administrativeList.getDetails(t)).pipe((0,r.b)(e=>{this.administrativeMap[t]||(this.administrativeMap[t]=e)}))}getAdministrativeListByListName(t){const e=o.X.apiUrls.administrativeList.getByListName();return new a.v7(e,this.httpClient).doSearch(t)}getAllAdministrativeList(){return this.httpClient.get(o.X.apiUrls.administrativeList.getAll()).pipe((0,r.b)(t=>{t.items.forEach(t=>{this.administrativeMap[t.listId]||this.storeAdministrativeList(t.listId,t)})}),(0,s.U)(t=>t.items))}popAdministrativeList(t){return this.administrativeMap[t]}storeAdministrativeList(t,e){this.administrativeMap[t]||(this.administrativeMap[t]=e)}}return t.\u0275fac=function(e){return new(e||t)(l.LFG(c.eN))},t.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()}}]);