1import{b}from"./chunk-BL5MA6XA.js";import{a as $,b as K}from"./chunk-DMWQDYB2.js";import"./chunk-M5VVJY4K.js";import{a as H,b as ie,c as oe}from"./chunk-SY4AA36U.js";import{G as te,H as I}from"./chunk-KVAOALUT.js";import{Ab as A,Bb as d,Ca as R,Cb as f,Db as x,Eb as k,Fc as z,Gb as M,Hb as u,Hd as X,Ib as N,Id as ee,Jb as B,Kc as Z,Kd as O,Nb as F,Ob as V,Pb as W,Sb as v,Sc as j,Tb as a,Ud as ne,Va as p,Za as c,db as w,eb as S,ed as G,ha as y,ib as l,id as L,md as U,od as E,pb as m,pc as _,qd as J,rd as Q,ta as D,ua as C,va as h,vd as q,wd as Y,yb as o,zb as i}from"./chunk-MPIHQT3N.js";var _e=["modalContent"];function ye(e,s){e&1&&(d(0),o(1,"p"),a(2," Otrzymali\u015Bmy wiele wniosk\xF3w, dlatego za\u0142o\u017Cenie skrzynki mo\u017Ce potrwa\u0107 d\u0142u\u017Cej. Mo\u017Cesz wr\xF3ci\u0107 do Twoich skrzynek i aktywowa\u0107 skrzynk\u0119 p\xF3\u017Aniej. "),i(),f())}function Ce(e,s){e&1&&(d(0),o(1,"p"),a(2," Na podany we wniosku adres e-mail wys\u0142ali\u015Bmy wiadomo\u015B\u0107 o powodach odrzucenia. We\u017A je pod uwag\u0119, gdy ponownie b\u0119dziesz sk\u0142ada\u0107 wniosek, aby\u015Bmy mogli za\u0142o\u017Cy\u0107 dla Ciebie skrzynk\u0119 do e-Dor\u0119cze\u0144. "),i(),f())}function he(e,s){e&1&&(d(0),o(1,"p"),a(2," Za\u0142o\u017Cyli\u015Bmy ju\u017C dla Ciebie skrzynk\u0119 do e-Dor\u0119cze\u0144. Ponownie spr\xF3buj j\u0105 aktywowa\u0107 lub wr\xF3\u0107 do Twoich skrzynek i aktywuj j\u0105 p\xF3\u017Aniej. "),i(),f())}function we(e,s){if(e&1&&(o(0,"div"),l(1,ye,3,0,"ng-container",1)(2,Ce,3,0,"ng-container",1)(3,he,3,0,"ng-container",1),i()),e&2){let t=u();p(),m("ngIf",t.errorType==="wait"),p(),m("ngIf",t.errorType==="rejected"),p(),m("ngIf",t.errorType==="activationError")}}var re=(()=>{class e{constructor(t,n){this.modalService=t,this.router=n,this.errorType="",this.closeModal=new R,this.window=window}ngOnChanges(){setTimeout(()=>{this.modalService.createModal($.WARN,this.mapTitle(),"",[this.errorType==="rejected"?{isPrimary:!0,optionText:"Z\u0142\xF3\u017C ponownie wniosek",execute:()=>{this.router.navigate(["registration"]),this.closeWarningModal()}}:{isPrimary:!1,optionText:"Zamknij",execute:()=>{this.closeWarningModal()}}],()=>this.closeWarningModal(),this.modalContent)})}closeWarningModal(){this.modalService.hideModal(),this.closeModal.emit()}mapTitle(){switch(this.errorType){case"wait":return"Zak\u0142adamy dla Ciebie skrzynk\u0119 do e-Dor\u0119cze\u0144";case"rejected":return"Niestety wniosek o skrzynk\u0119 do e-Dor\u0119cze\u0144 zosta\u0142 odrzucony";case"activationError":return"Nie mo\u017Cna by\u0142o aktywowa\u0107 skrzynki"}return""}static{this.\u0275fac=function(n){return new(n||e)(c(K),c(E))}}static{this.\u0275cmp=w({type:e,selectors:[["app-summary-activate-ade-dialog"]],viewQuery:function(n,r){if(n&1&&F(_e,7),n&2){let g;V(g=W())&&(r.modalContent=g.first)}},inputs:{errorType:"errorType"},outputs:{closeModal:"closeModal"},standalone:!1,features:[D],decls:2,vars:0,consts:[["modalContent",""],[4,"ngIf"]],template:function(n,r){n&1&&l(0,we,4,3,"ng-template",null,0,_)},dependencies:[z],encapsulation:2})}}return e})();var ve=["*"],ae=(()=>{class e{constructor(t){this.titleService=t,this.title="Dzi\u0119kujemy! Tw\xF3j wniosek zosta\u0142 wys\u0142any",this.titleService.setTitle(`${this.title} - e-Dor\u0119czenia`)}static{this.\u0275fac=function(n){return new(n||e)(c(L))}}static{this.\u0275cmp=w({type:e,selectors:[["app-summary-content"]],standalone:!1,ngContentSelectors:ve,decls:12,vars:0,consts:[[1,"bold-text","h1"],[1,"h1"],[1,"mt-5","mb-5"],[1,"bold-text"]],template:function(n,r){n&1&&(N(),o(0,"header",0)(1,"h1",1),a(2,"Dzi\u0119kujemy! "),A(3,"br"),a(4," Tw\xF3j wniosek zosta\u0142 wys\u0142any "),i()(),o(5,"gds-card")(6,"p",2),a(7," Odbierze go: "),A(8,"br"),o(9,"span",3),a(10,"MINISTERSTWO CYFRYZACJI"),i()(),B(11),i())},dependencies:[ie],styles:[".bold-text[_ngcontent-%COMP%]{font-weight:700}h1[_ngcontent-%COMP%], h1.h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h2.h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h3.h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h4.h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h5.h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], h6.h6[_ngcontent-%COMP%]{font-weight:700;font-family:Open Sans Bold,Open Sans,sans-serif;font-style:normal}h1[_ngcontent-%COMP%], h1.h1[_ngcontent-%COMP%]{font-size:1.5rem;line-height:32px}h2[_ngcontent-%COMP%], h2.h2[_ngcontent-%COMP%]{font-size:1.25rem;line-height:26px}h3[_ngcontent-%COMP%], h3.h3[_ngcontent-%COMP%]{font-size:1rem;line-height:26px}.skip-link[_ngcontent-%COMP%]{font-weight:700;font-family:Open Sans Bold,Open Sans,sans-serif;font-style:normal}"],changeDetection:0})}}return e})();function ke(e,s){if(e&1){let t=k();o(0,"app-summary-activate-ade-dialog",10),M("closeModal",function(){C(t);let r=u();return h(r.onModalClose())}),i()}if(e&2){let t=u();
1m("errorType",t.errorType)}}function Me(e,s){e&1&&x(0)}function Te(e,s){if(e&1&&(d(0),o(1,"p"),a(2," Informacj\u0119 o utworzeniu adresu e-Dor\u0119cze\u0144 oraz "),o(3,"b"),a(4,"instrukcj\u0119, jak aktywowa\u0107 skrzynk\u0119,"),i(),a(5," otrzymasz na adres e-mail podany we wniosku. "),i(),d(6),l(7,Me,1,0,"ng-container",11),f(),o(8,"p",12),a(9," Je\u015Bli wniosek zostanie odrzucony, poinformujemy Ci\u0119 o tym wiadomo\u015Bci\u0105 na podany adres e-mail. Otrzymasz te\u017C powiadomienia w aplikacji mObywatel, je\u015Bli masz je w\u0142\u0105czone. "),i(),f()),e&2){u();let t=v(11);p(7),m("ngTemplateOutlet",t)}}function ze(e,s){e&1&&x(0)}function je(e,s){if(e&1&&(d(0),l(1,ze,1,0,"ng-container",11),f()),e&2){u(2);let t=v(13);p(),m("ngTemplateOutlet",t)}}function Ee(e,s){e&1&&x(0)}function Ie(e,s){e&1&&x(0)}function Oe(e,s){if(e&1&&(d(0),l(1,Ie,1,0,"ng-container",11),f()),e&2){u(2);let t=v(15);p(),m("ngTemplateOutlet",t)}}function Ae(e,s){if(e&1&&(l(0,je,2,1,"ng-container",13),d(1),l(2,Ee,1,0,"ng-container",11),f(),l(3,Oe,2,1,"ng-container",13)),e&2){let t=u(),n=v(11);m("ngIf",(t.formManagementService.form==null?null:t.formManagementService.form.applicant)!=="proxy"),p(2),m("ngTemplateOutlet",n),p(),m("ngIf",(t.formManagementService.form==null?null:t.formManagementService.form.applicant)==="proxy")}}function be(e,s){if(e&1){let t=k();o(0,"gds-button",8),M("click",function(){C(t);let r=u();return h(r.activateAde())}),i()}e&2&&m("type","primary")("label","Aktywuj skrzynk\u0119")}function Pe(e,s){if(e&1){let t=k();o(0,"p",14),a(1," Wniosek, informacj\u0119 o jego statusie i ewentualnie przyczynie odrzucenia znajdziesz w module "),o(2,"button",15),M("click",function(){C(t);let r=u();return h(r.navigateToManagement())})("keydown.enter",function(){C(t);let r=u();return h(r.navigateToManagement())}),a(3," Zarz\u0105dzaj\xA0adresami\xA0do\xA0e-Dor\u0119cze\u0144 "),i(),a(4,". "),i()}}function De(e,s){e&1&&(o(0,"p",17),a(1,"Potwierdzenie ujawnienia adresu otrzymasz na sw\xF3j adres do e-Dor\u0119cze\u0144."),i())}function Re(e,s){if(e&1&&(o(0,"p"),a(1,"Na Tw\xF3j adres e-mail przyjd\u0105:"),i(),o(2,"ul")(3,"li"),a(4,"powiadomienie o wys\u0142aniu wniosku,"),i(),o(5,"li"),a(6,"decyzja o jego zatwierdzeniu lub odrzuceniu."),i()(),l(7,De,2,0,"p",16)),e&2){let t=u();p(7),m("ngIf",t.action===t.OperationTypeEnum.DISCLOSURE)}}function Ne(e,s){e&1&&(o(0,"span"),a(1,"Je\u015Bli wniosek zostanie odrzucony, poinformujemy Ci\u0119 o tym wiadomo\u015Bci\u0105 na wskazany adres\xA0e-mail."),i())}var me=(()=>{class e{constructor(t,n,r,g,P,le,pe,ue,de){this.formManagementService=t,this.router=n,this.route=r,this.http=g,this.envConfig=P,this.activationProcessService=le,this.loggedUserService=pe,this.messageNotificationService=ue,this.tracker=de,this.action=this.formManagementService?.form?.action,this.OperationTypeEnum=ne,this.window=window,this.showModal=!1,this.loading=!1,this.errorType="",this.activationProcessService=new O(this.http,this.envConfig.config?.api.baeAPI,new Q)}navigateToManagement(){this.tracker.trackClickButton("Tw\xF3j wniosek zosta\u0142 wys\u0142any","internal_link","Zarz\u0105dzaj adresami do e-Dor\u0119cze\u0144"),this.router.navigate(["../../"],{relativeTo:this.route})}navigateToDashboard(){this.tracker.trackClickButton("Tw\xF3j wniosek zosta\u0142 wys\u0142any","internal_link","Wr\xF3\u0107 do Twoich skrzynek"),this.router.navigate(["../../../"],{relativeTo:this.route})}activateAde(){if(this.loading)return;this.loading=!0,this.tracker.trackClickButton("Tw\xF3j wniosek zosta\u0142 wys\u0142any","element","Aktywuj skrzynk\u0119");let t=sessionStorage.getItem("requestId");this.activationProcessService.activateEda(Number(t)).subscribe(n=>{let r=JSON.parse(sessionStorage.getItem("form_data")??"");this.setIdentifiers(r?.senderRole.toLowerCase()==="owner"&&r?.entityType.toLowerCase()==="natural_person"?this.loggedUserService.getEpuapLogin:void 0),this.window.location.href=this.envConfig.config?.redirect.edorAPP+n.eDeliveryAddress+"/inbox/"},n=>{this.messageNotificationService.hideAllNotifications(),this.showModal=!0,n.error.errorCode==="BAE-ERR-0027"&&(this.errorType="wait"),n.error.errorCode==="BAE-ERR-0028"&&(this.errorType="activationError"),n.error.errorCode==="BAE-ERR-0026"&&(this.errorType="rejected"),this.loading=!1})}setIdentifiers(t){sessionStorage.setItem("identifiers",JSON.stringify({epuapId:t}))}onModalClose(){this.showModal=!1,this.errorType=""}checkIfNeutralPersonOwnerRegistration(){return this.formManagementService.form?.entityType==="NATURAL_PERSON"&&this.formManagementService.form?.applicant==="owner"&&this.formManagementService.form?.action==="REGISTRATION"}static{this.\u0275fac=function(n){return new(n||e)(c(X),c(E),c(U),c(G),c(q),c(O),c(Y),c(H),c(ee))}}static{this.\u0275cmp=w({type:e,selectors:[["app-summary"]],standalone:!1,decls:16,vars:6,consts:[["other",""],["genericInfo",""],["ownerGenericContent",""],["proxyContent",""],[3,"errorType","closeModal",4,"ngIf"],[1,"summary-container","p-0","nforms-form-grid__row"],[4,"ngIf","ngIfElse"],[1,"d-flex","mt-30","gap-15"],[3,"click","type","label"],[3,"type","label","click",4,"ngIf"],[3,"closeModal","errorType"],[4,"ngTemplateOutlet"],[1,"mt-0"],[4,"ngIf"],[1,"mb-20"],[1,"nforms-text-link","link-appearance",3,"click","keydown.enter"],["class","mt-20",4,"ngIf"],[1,"mt-20"]],template:function(n,r){if(n&1){let g=k();l(0,ke,1,1,"app-summary-activate-ade-dialog",4),d(1),o(2,"div",5)(3,"app-summary-content"),l(4,Te,10,1,"ng-container",6)(5,Ae,4,3,"ng-template",null,0,_),i()(),f(),o(7,"div",7)(8,"gds-button",8),M("click",function(){return C(g),h(r.navigateToDashboard())}),i(),l(9,be,1,2,"gds-button",9),i(),l(10,Pe,5,0,"ng-template",null,1,_)(12,Re,8,1,"ng-template",null,2,_)(14,Ne,2,0,"ng-template",null,3,_)}if(n&2){let g=v(6);m("ngIf",r.showModal),p(4),m("ngIf",r.checkIfNeutralPersonOwnerRegistration())("ngIfElse",g),p(4),m("type",r.checkIfNeutralPersonOwnerRegistration()?"secondary":"primary")("label","Wr\xF3\u0107 do Twoich skrzynek"),p(),m("ngIf",r.checkIfNeutralPersonOwnerRegistration())}},dependencies:[z,Z,te,re,ae],styles:["a.nforms-button[_ngcontent-%COMP%]:hover{color:#fff}li[_ngcontent-%COMP%]{margin-left:25px;list-style-type:initial}.summary-container[_ngcontent-%COMP%]{max-width:760px}p[_ngcontent-%COMP%]{margin-top:25px}
1ul[_ngcontent-%COMP%]{padding-left:1rem;margin-bottom:0}"]})}}return e})();var Be=[{path:"",component:me,data:{backUrl:"/management/"}}],se=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=S({type:e})}static{this.\u0275inj=y({imports:[J.forChild(Be)]})}}return e})();var ce=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=S({type:e})}static{this.\u0275inj=y({imports:[j,b,I,b]})}}return e})();var xt=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=S({type:e})}static{this.\u0275inj=y({imports:[j,se,oe,I,ce]})}}return e})();export{xt as SummaryModule};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.