PageSourceSearch

https://edoreczenia.gov.pl/chunk-RL3CBAJA.js

js edoreczenia.gov.pl collected 2026-10-04 04:11:02 UTC 28,682 bytes, 3 lines download raw bytes

1import"./chunk-4O4IU2HS.js";import"./chunk-XTBHLZQK.js";import{a as tt}from"./chunk-BKGEPO6Y.js";import{a as ot}from"./chunk-WGTEXET2.js";import{a as He,b as Qe}from"./chunk-2GGXBBVZ.js";import{a as Xe}from"./chunk-SE53QEDB.js";import{a as et,b as q}from"./chunk-X6KOFACX.js";import"./chunk-TQGCJQP6.js";import{a as T}from"./chunk-56Q7KFJI.js";import{$a as Me,Ca as Ae,Da as Ie,Ia as M,Ja as E,Ka as Te,La as Fe,Qa as Ve,Sa as De,Ta as xe,Tb as Je,Vb as I,Wa as Ee,Wb as Ke,Xa as Re,Ya as Ge,Za as Ne,_a as Pe,ab as Oe,bb as R,cb as ze,db as Le,eb as je,fb as $,gb as $e,hb as Ue,ia as D,ib as U,jb as B,kb as Be,la as _e,lb as qe,mb as Ye,pb as A,qb as We,sb as te,ta as be,ua as we,wa as ke}from"./chunk-7NE4MRKC.js";import{a as ve}from"./chunk-D4DO6M56.js";import"./chunk-JDVNIZWB.js";import{j as F,m as Ze}from"./chunk-ZZ2F64IY.js";import{a as ue,l as ee}from"./chunk-76V5FL5B.js";import"./chunk-PDDGTZCI.js";import{xa as Ce}from"./chunk-DOL3BZVS.js";import{a as Se}from"./chunk-JJE772GU.js";import"./chunk-DMWQDYB2.js";import"./chunk-M5VVJY4K.js";import{a as he}from"./chunk-SY4AA36U.js";import"./chunk-KVAOALUT.js";import"./chunk-TZ242GVR.js";import"./chunk-OPLTFURD.js";import"./chunk-UI5T2TXM.js";import"./chunk-25WYPBAC.js";import{$ as c,$b as ce,Eb as b,Fc as k,Gb as w,Gd as ge,H as se,Hb as a,Hd as ye,Ld as x,M as ne,Md as j,Sc as de,Va as S,Yd as N,Za as X,Zb as le,Zd as P,_b as pe,a as r,aa as ae,b as O,db as C,eb as L,ga as me,ha as z,hb as v,ib as _,ja as H,l as y,m as g,od as fe,pb as d,qd as Q,rd as V,s as re,ua as l,va as p,yb as f,yd as h,zb as u}from"./chunk-MPIHQT3N.js";function it(s,o,e,t){let i=Te(t.type==="public",o);return{controls:r(r(r(r(r(r(r(r(r({},Oe()),be()),we()),ke(!0)),Ae()),Ie()),i),Fe(e,t)),We()),cards:[{key:"data",label:"Twoje dane"},{key:"header",label:"Wybierz, w jakiej roli wyst\u0119pujesz"},{key:"files",label:"Za\u0142\u0105czniki",hidden:!0},{key:"proxy",label:"Op\u0142ata za pe\u0142nomocnictwo",hidden:!0}]}}var Y=class{constructor(o,e,t,i,n=[],m,Z){this.form=o,this.destroyed$=e,this.controlsDefinitions=t,this.representativeType=i,this.cards=n,this.attachmentManagementService=m,this.formFromService=Z}listenForProxyFee(){this.form?.controls.proxyFee?.valueChanges.pipe(c(this.destroyed$)).subscribe(o=>{this.form&&(o==="noFee"?(D(!1,this.form.controls.feeReasons),D(!0,this.form.controls.feeAttachments),D(!0,this.form.controls.feeAttachments)):o==="fee"&&(D(!0,this.form.controls.feeReasons),D(!1,this.form.controls.feeAttachments),D(!1,this.form.controls.feeAttachments)),this.form.controls.feeAttachments?.updateValueAndValidity(),this.form.controls.feeAttachments?.updateValueAndValidity(),this.form.controls.noFeeReasons?.updateValueAndValidity())})}listenForRepresentativeType(){this.form.controls.representativeType?.valueChanges.pipe(c(this.destroyed$)).subscribe(o=>{switch(o&&(this.representativeType=o),o){case P.REPRESENTATIVE:if(this.changeAttachmentsLabel("Pliki z dokumentami"),this.form&&(this.form.controls.feeAttachments.hidden=!0,this.form.controls.proxyFee.hidden=!0,this.form.controls.attachments.customOptions.required=!1,this.form.controls.attachments.customOptions.additionalText=void 0,this.form.controls.attachments.customOptions.attachmentData&&(this.form.controls.attachments.customOptions.attachmentData.fileDescription=ee.DOKUMENT_POTWIERDZAJACY_REPREZENTACJE_PODMIOTU)),this.controlsDefinitions?.cards){let e=[...this.controlsDefinitions.cards];e.filter(t=>t.key==="files")[0].hidden=!1,e.filter(t=>t.key==="files")[0].label="Za\u0142\u0105czniki",e.filter(t=>t.key==="proxy")[0].hidden=!0,this.cards=e}break;case P.PROXY:if(this.controlsDefinitions?.cards){let e=[...this.controlsDefinitions.cards];e.filter(t=>t.key==="files")[0].hidden=!1,e.filter(t=>t.key==="files")[0].label="Pe\u0142nomocnictwo",e.filter(t=>t.key==="proxy")[0].hidden=!1,this.cards=e}this.form&&(this.form.controls.proxyFee.hidden=!1,this.form.controls.attachments.customOptions.required=!0,this.formFromService.entityType===h.PUBLIC_ENTITY_LOCAL?this.form.controls.attachments.customOptions.additionalText=`<p class="mb-20">
2      Pe\u0142nomocnictwo musi by\u0107 podpisane przez osob\u0119 upowa\u017Cnion\u0105 do reprezentowania podmiotu publicznego posiadaj\u0105cego g\u0142\xF3wny adres do e-Dor\u0119cze\u0144 w rozumieniu art. 32 ust. 3 i 4 ustawy o dor\u0119czeniach elektronicznych.
3          </p>`:this.form.controls.attachments.customOptions.additionalText=void 0,this.form.controls.attachments.customOptions.attachmentData&&(this.form.controls.attachments.customOptions.attachmentData.fileDescription=ee.DOKUMENT_USTANAWIAJACY_PELNOMOCNICTWO)),this.changeAttachmentsLabel("Plik z pe\u0142nomocnictwem podpisany elektronicznie");break}this.form.controls.attachments.clearAttachments("attachments",this.attachmentManagementService),this.form?.controls.attachments.updateV
3alueAndValidity()})}changeAttachmentsLabel(o){this.form&&(this.form.controls.attachments.customOptions.label=o)}};function ht(s,o){if(s&1){let e=b();f(0,"app-form-builder",2),w("formGroupEvent",function(i){l(e);let n=a();return p(n.formGroup(i))})("buttonClick",function(i){l(e);let n=a();return p(n.onClick(i))})("formValid",function(i){l(e);let n=a();return p(n.onValid(i))}),u()}if(s&2){let e=a();d("controlsDefinitions",e.controlsDefinitions)("cardsRefresh",e.cards)}}var rt=(()=>{class s extends I{constructor(){super(),this.controlsDefinitions=null,this.valid=!1,this.removeAllItems$=new g(!1),this.removeAllItemsFee$=new g(!1),this.cards=[],this.representativeType=null,this.valueChanges=null,this.stepLabel="k1",this.controlsDefinitions=it(this.getGroupAddress(),this.removeAllItems$,this.removeAllItemsFee$,this.formManagementService.form),this.setForm(this.controlsDefinitions)}ngOnInit(){this.formManagementService.setCurrentStep(1)}ngAfterViewInit(){super.ngAfterViewInit()}ngOnDestroy(){super.ngOnDestroy()}formGroup(e){this.form&&(this.destroy(),this.destroyed$=new y),this.form=e,this.initData(),this.valueChanges=new Y(this.form,this.destroyed$,this.controlsDefinitions,this.representativeType,this.cards,this.attachmentManagementService,this.formManagementService.form),this.valueChanges.listenForProxyFee(),this.valueChanges.listenForRepresentativeType()}onClick(e){e.button==="buttonPrev"&&(this.attachmentManagementService.removeAllAttachments(),this.router.navigate(["../../.."],{relativeTo:this.route})),e.button==="buttonProcede"&&this.submitForm()}initData(){this.form?.controls.name?.patchValue(this.formManagementService.initData?.applicant?.firstName??this.loggedUserService.getFirstName??null),this.form?.controls.surname?.patchValue(this.formManagementService.initData?.applicant?.surname??this.loggedUserService.getLastName??null),this.form?.controls.pesel?.patchValue(this.formManagementService.initData?.applicant?.pesel??this.loggedUserService.getPersonID??null)}onValid(e){this.valid=e}destroy(){this.destroyed$.next(),this.destroyed$.complete()}submitForm(){this.form?.markAllAsTouched(),this.form?.updateValueAndValidity(),this.form?.valid?(this.formManagementService.form?.applicant!=="proxy"&&this.form.controls.correspondenceAddress.customOptions.formGroup?.patchValue({change:!0}),this.saveToSessionStorage(),this.setSessionStorageForForm(),this.router.navigate(["../step2"],{relativeTo:this.route})):T()}saveToSessionStorage(){this.formManagementService.saveStepToSessionStorage("k1",this.form?.value)}setSessionStorageForForm(){this.formManagementService.form=new ge(this.formManagementService.form?.context,this.formManagementService.form?.type,this.formManagementService.form?.applicant,this.formManagementService.form?.isGracePeriod,this.formManagementService.form?.ade,this.formManagementService.form?.action,this.formManagementService.form?.entityType,this.formManagementService.form?.legalForm,this.formManagementService.form?.subContext,this.getSenderRole())}getSenderRole(){return this.representativeType?this.representativeType:this.formManagementService.form?.applicant==="proxy"?"PROXY":"OWNER"}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275cmp=C({type:s,selectors:[["app-step1-registration-company"]],standalone:!1,features:[v],decls:2,vars:1,consts:[[1,"fs-16","content"],[3,"controlsDefinitions","cardsRefresh","formGroupEvent","buttonClick","formValid",4,"ngIf"],[3,"formGroupEvent","buttonClick","formValid","controlsDefinitions","cardsRefresh"]],template:function(t,i){t&1&&(f(0,"div",0),_(1,ht,1,2,"app-form-builder",1),u()),t&2&&(S(),d("ngIf",i.controlsDefinitions))},dependencies:[k,F],encapsulation:2})}}return s})();function st(s,o,e){return e.type==="private"?{controls:r(r(r(r(r(r(r({},R("Nazwa podmiotu","col-lg-12")),Pe()),je()),te()),E(o)),M(s,!0)),A()),cards:[{key:"data",label:"Dane podmiotu"},{key:"outsideGdsCard",label:""},{key:"headquartersAddress",label:"Adres siedziby podmiotu ",required:!0},{key:"address",label:"Adres do korespondencji ",required:!0}]}
3:e.entityType===h.PUBLIC_ENTITY_LOCAL?{controls:r(r(r(r(r(r(r(r(r({},xe()),Re()),R("Nazwa podmiotu","col-lg-6 col-12 mb-15")),$("col-12 mb-15")),U("data",!1,"col-lg-6 col-12 mb-15")),B("data","col-lg-6 col-12 mb-15")),Ge()),E(o)),A()),cards:[{key:"data",label:"Dane podmiotu"},{key:"headquartersAddress",label:"Adres siedziby podmiotu ",required:!0}]}:{controls:r(r(r(r(r(r(r(r(r({},ze()),Le()),R("Nazwa podmiotu","col-12")),Me()),$e()),te()),E(o)),M(s,!0)),A()),cards:[{key:"data",label:"Dane podmiotu"},{key:"outsideGdsCard",label:""},{key:"headquartersAddress",label:"Adres siedziby podmiotu ",required:!0},{key:"address",label:"Adres do korespondencji ",required:!0}]}}var W=class{constructor(o,e,t,i=[],n,m,Z,ft,ut){this.form=o,this.destroyed$=e,this.controlsDefinitions=t,this.cards=i,this.attachmentManagementService=n,this.loggedUserService=m,this.searchByParticipantService=Z,this.cdr=ft,this.messageNotificationService=ut,this.nipStatusEnum=N.NipStatusEnum}listenForNipStatusForNipGroup(){this.form.controls.nipGroup?.controls.nipStatus?.valueChanges.pipe(c(this.destroyed$)).subscribe(o=>{let e=this.form.controls.nipGroup.controls.nip;o===this.nipStatusEnum.ASSIGNED&&this.form?(e.hidden=!1,e.updateValueAndValidity()):this.form&&(e.hidden=!0,e.updateValueAndValidity())})}listenKRSCheckbox(){let o=this.form.controls.officialIdGroup.controls.krsGroup;o.controls.withoutKrs.valueChanges.pipe(c(this.destroyed$)).subscribe(e=>{e?(o.controls.krs.reset(),o.controls.krs.disable()):o.controls.krs.enable()})}listenFor14CharactersRegon(){let o=this.form.controls.officialIdGroup.controls.regonGroup;o.controls.regon.valueChanges.pipe(c(this.destroyed$),se(()=>o.controls.regon.valid)).subscribe(e=>{let t=this.form.controls.legalForm;e.toString().length===14?(t.patchValue({label:"INNE"}),t.updateValueAndValidity(),t.disable()):(t.enable(),t.updateValueAndValidity()),this.cdr.detectChanges()})}listenREGONCheckbox(){let o=this.form.controls.officialIdGroup.controls.regonGroup;o.controls.withoutRegon.valueChanges.pipe(c(this.destroyed$)).subscribe(e=>{e?(o.controls.regon.reset(""),o.controls.regon.disable()):o.controls.regon.enable()})}listenForNIPCheckbox(){let o=this.form.controls.officialIdGroup.controls.nipGroup.controls.nip.controls.nip,e=this.form.controls.officialIdGroup.controls.nipGroup.controls.nip.controls.withoutNIP,t=this.form.controls.officialIdGroup.controls.nipGroup.controls.nipStatus;e.valueChanges.pipe(c(this.destroyed$)).subscribe(i=>{i?(o.reset(),o.disable(),t.hidden=!1,t.reset()):(o.enable(),t.reset(N.NipStatusEnum.ASSIGNED),t.hidden=!0)})}listenForNipStatus(){this.form.controls.officialIdGroup?.controls.nipGroup?.controls.nipStatus?.valueChanges.pipe(c(this.destroyed$)).subscribe(o=>{let e=(this.form.controls.officialIdGroup?.controls.nipGroup).controls.nip;o===this.nipStatusEnum.ASSIGNED&&this.form?(e.hidden=!1,e.updateValueAndValidity()):this.form&&(e.hidden=!0,e.updateValueAndValidity())})}hideREGONCheckbox(){let o=this.form.get("officialIdGroup.regonGroup.withoutRegon");o&&(o.disable(),o.hidden=!0)}listenForAdeSearchData(o){this.form.controls.searchAde.valueChanges.pipe(c(this.destroyed$)).subscribe(e=>{if(this.form.controls.searchAde.valid){let t={id:this.loggedUserService.getPersonID,referenceRegistry:"PESEL"};this.searchByParticipantService.getEDAByParticipantReferenceRegistryNumber(!0,e,t).pipe(ae(i=>{let n=i?.owner?.officialIds?.find(m=>m.referenceRegistry==="REGON");!i.isMainEda||i.disclosureStatus==="UNDISCLOSED"||i.edaStatus!=="ACTIVE"||i.owner?.entityType!=="PUBLIC_ENTITY"||n&&n.id.length!==9&&n.id.length!==14?(this.form.controls.searchAde.setErrors({adeSearchInvalid:!0}),this.hideForm(),o.cards[1].hidden=!0):(this.form.controls.searchAde.setErrors(null),this.patchFormPersonalData(i),this.patchAddressData(i),this.messageNotificationService.setNotification({badgeType:"success",notificationType:ue.PP_ENTITY_LOCAL_DATA_APPLIED}),o.cards[1].hidden=!1)}),ne(i=>((i.status===400||i.status===404)&&(this.messageNotificationService.hideAllNotifications(),this.form.controls.searchAde.setErrors({adeSearchNoResult:!0}),this.hideForm(),o.cards[1].hidden=!0),re(null)))).subscribe()}else this.hideForm(),o.cards[1].hidden=!0})}hideForm(){let o=this.form.controls.nipGroup.controls.nip;this.form.controls.nipGroup.controls.nipStatus.hidden=!0,o.hidden=!0,this.form.controls.companyName.hidden=!0,this.form.controls.krs.hidden=!0,this.form.controls.regon.hidden=!0,this.form.controls.legalForm.hidden=!0,this.form.controls.headquartersAddress.hidden=!0}patchAddressData(o){let e=o.owner?.streetAddresses?.find(t=>t.addressType==="HEADQUARTERS");Object.keys(e??{})&&e&&(this.form.controls.headquartersAddress&&(this.form.controls.headquartersAddress.hidden=!1,this.form.controls.headquartersAddress.readOnly=!0,this.form.controls.headquartersAddress.patchValue({CAddressOption:"Nowy adres"}),this.form.controls.headquartersAddress.patchValue(O(r({},_e(e)),{change:!1}
3)),this.form.controls.headquartersAddress.updateValueAndValidity()),this.cdr.detectChanges()),this.form.updateValueAndValidity()}patchFormPersonalData(o){let e=o.owner,t=o.owner?o.owner.officialIds?.find(m=>m.referenceRegistry==="REGON"):void 0,i=o.owner?o.owner.officialIds?.find(m=>m.referenceRegistry==="KRS"):void 0,n=o.owner?o.owner.officialIds?.find(m=>m.referenceRegistry==="NIP"):void 0;if(e){this.form.patchValue({nipGroup:{nip:n?.id,nipStatus:e.nipStatus},companyName:e?.companyName,legalForm:{label:e.legalForm},regon:t?.id,krs:i?.id,parenteDeliveryAddress:o.address});let m=this.form.controls.nipGroup.controls.nip;e.nipStatus!=="ASSIGNED"?(this.form.controls.nipGroup.controls.nipStatus.hidden=!0,this.form.controls.nipGroup.controls.nipStatus.readOnly=!0,m.hidden=!1,m.patchValue(""),m.customOptions.emptyValue=Ce(e.nipStatus??"")):(m.hidden=!n?.id,this.form.controls.nipGroup.controls.nipStatus.hidden=!0),this.form.controls.companyName.readOnly=!0,this.form.controls.companyName.hidden=!1,this.form.controls.krs.readOnly=!0,this.form.controls.krs.hidden=!1,this.form.controls.regon.readOnly=!0,this.form.controls.regon.hidden=!1,this.form.controls.legalForm.readOnly=!0,this.form.controls.legalForm.hidden=!1}}};function yt(s,o){if(s&1){let e=b();f(0,"app-form-builder",2),w("formGroupEvent",function(i){l(e);let n=a();return p(n.formGroup(i))})("buttonClick",function(i){l(e);let n=a();return p(n.onClick(i))})("formValid",function(i){l(e);let n=a();return p(n.onValid(i))})("rowItemClick",function(i){l(e);let n=a();return p(n.onRowItemClick(i))}),u()}if(s&2){let e=a();d("controlsDefinitions",e.controlsDefinitions)("cardsRefresh",e.cards)("tooltip",e.formManagementService.form.applicant==="proxy"?"":"Za chwil\u0119 przejdziesz do us\u0142ugi e-podpis. Tam sprawdzisz i podpiszesz sw\xF3j wniosek. Mo\u017Cesz to zrobi\u0107 za pomoc\u0105 podpisu zaufanego, osobistego lub kwalifikowanego.")}}var nt=(()=>{class s extends I{constructor(e,t){super(),this.searchByParticipantService=e,this.messageNotificationService=t,this.controlsDefinitions=null,this.valid=!1,this.cards=[],this.removeAllItems$=new g(!1),this.window=window,this.valueChanges=null,this.stepLabel="k2",this.applyingProcessService=new x(this.http,this.envConfig.config?.api.baeAPI,new V),this.searchByParticipantService=new j(this.http,this.envConfig.config?.api.baeAPI,new V),this.controlsDefinitions=st(this.getGroupAddress(),this.getGroupAddress(),this.formManagementService.form),this.formManagementService.form.entityType===h.PUBLIC_ENTITY_LOCAL&&(this.controlsDefinitions.cards[1].hidden=!0),this.setForm(this.controlsDefinitions)}ngOnInit(){this.formManagementService.setCurrentStep(2)}ngAfterViewInit(){super.ngAfterViewInit()}ngOnDestroy(){super.ngOnDestroy()}formGroup(e){this.form&&(this.destroy(),this.destroyed$=new y),this.form=e,this.valueChanges=new W(this.form,this.destroyed$,this.controlsDefinitions,this.cards,this.attachmentManagementService,this.loggedUserService,this.searchByParticipantService,this.cdr,this.messageNotificationService),this.formManagementService.form.type==="private"?(this.valueChanges.listenKRSCheckbox(),this.valueChanges.listenREGONCheckbox(),this.valueChanges.listenForNipStatus()):this.formManagementService.form.entityType===h.PUBLIC_ENTITY_LOCAL?(this.valueChanges.hideForm(),this.valueChanges.listenForAdeSearchData(this.controlsDefinitions)):(this.valueChanges.listenKRSCheckbox(),this.valueChanges.listenForNIPCheckbox(),this.valueChanges.hideREGONCheckbox(),this.valueChanges.listenFor14CharactersRegon())}onClick(e){e.button==="buttonPrev"&&this.router.navigate(["../step1"],{relativeTo:this.route}),e.button==="buttonProcede"&&this.submitForm()}onValid(e){this.valid=e}destroy(){this.destroyed$.next(),this.destroyed$.complete()}submitForm(){if(this.form?.markAllAsTouched(),this.form?.updateValueAndValidity(),this.form?.valid)if(this.formManagementService.form.entityType===h.PUBLIC_ENTITY_LOCAL){let e=JSON.parse(sessionStorage.getItem("form")??"{}").k2?.searchAde;e&&e!==this.form.controls.searchAde.value&&this.removeK3(),this.saveToSessionStorage(),this.router.navigate(["../step3"],{relativeTo:this.route})}else this.saveToSessionStorage(),this.router.navigate(["../step4"],{relativeTo:this.route});else T()}saveToSessionStorage(){this.formManagementService.saveStepToSessionStorage("k2",r({},this.form?.value))}removeK3(){let e=JSON.parse(sessionStorage.getItem("form")??"{}");delete e.k3,sessionStorage.setItem("form",JSON.stringify(e))}static{this.\u0275fac=function(t){return new(t||s)(X(j),X(he))}}static{this.\u0275cmp=C({type:s,selectors:[["app-step2-registration-company"]],standalone:!1,features:[v],decls:2,vars:1,consts:[[1,"fs-16","content"],[3,"controlsDefinitions","cardsRefresh","tooltip","formGroupEvent","buttonClick","formValid","rowItemClick",4,"ngIf"],[3,"formGroupEvent","buttonClick","formValid","rowItemClick","controlsDefinitions","cardsRefresh","tooltip"]],template:function(t,i){t&1&&(f(0,"div",0),_(1,yt,1,3,"app-form-builder",1),u()),t&2&&(S(),d("ngIf",i.controlsDefinitions))},dependencies:[k,F],encapsulation:2})}}return s})();function at(s){return{controls:r(r(r(r(r(r({},Ee()),Ve()),Be(s,!0)),qe()),Ye()),A()),cards:[{key:"data",label:"Dane administratora"}]}}var J=class{constructor(o,e,t,i){this.form=o,this.destroyed$=e,this.adminsFacade=t,this.yourData=i}listenForReplaceWithMe(){this.form.controls.replaceWithMe?.valueChanges.pipe(c(this.destroyed$)).subscribe(o=>{o?this.adminsFacade.add({name:this.yourData.name,surname:this.yourData.surname,email:this.yourData.email,id:this.yourData.id,peselGroup:{pesel:this.yourData.pesel,withoutPESEL:!1}}):this.adminsFacade.remove({name:this.yourData.name,surname:this.yourData.surname,email:this.yourData.email,id:this.yourData.id,peselGroup:{pesel:this.yourData.pesel,withoutPESEL:!1}})})}};function St(s,o){if(s&1){let e=b();f(0,"app-form-builder",3),w("formGroupEvent",function(i){l(e);let n=a();return p(n.formGroup(i))})("buttonClick",function(i){l(e);let n=a();return p(n.onClick(i))})("formValid",function(i){l(e);let n=a();return p(n.onValid(i))})("rowItemClick",function(i){l(e);let n=a();return p(n.onRowItemClick(i))}
3),u()}if(s&2){let e=a();d("controlsDefinitions",e.controlsDefinitions)}}var mt=(()=>{class s extends I{constructor(){super(!0,!0),this.controlsDefinitions=null,this.valid=!1,this.removeAllItems$=new g(!1),this.removeAllItemsFee$=new g(!1),this.window=window,this.valueChanges=null,this.stepLabel="k4",this.applyingProcessService=new x(this.http,this.envConfig.config?.api.baeAPI,new V),this.getYourDataFromSession(),this.controlsDefinitions=at(this.adminAddFacade),this.setForm(this.controlsDefinitions)}ngOnInit(){this.formManagementService.setCurrentStep(this.formManagementService.form.entityType===h.PUBLIC_ENTITY_LOCAL?4:3)}ngAfterViewInit(){super.ngAfterViewInit()}ngOnDestroy(){super.ngOnDestroy()}formGroup(e){this.form&&(this.destroy(),this.destroyed$=new y),this.form=e,this.valueChanges=new J(this.form,this.destroyed$,this.adminAddFacade,this.k1),this.valueChanges.listenForReplaceWithMe(),super.adminLimit()}onClick(e){e.button==="dodajAdmina"&&(this.mode=Je.ADD,this.admin=void 0,this.modalVisible=!0),e.button==="buttonPrev"&&(this.form?.valid&&this.saveToSessionStorage(),this.formManagementService.form.entityType===h.PUBLIC_ENTITY_LOCAL?this.router.navigate(["../step3"],{relativeTo:this.route}):this.router.navigate(["../step2"],{relativeTo:this.route})),e.button==="buttonProcede"&&this.submitForm()}onValid(e){this.valid=e}destroy(){this.destroyed$.next(),this.destroyed$.complete()}submitForm(){this.form?.markAllAsTouched(),this.form?.updateValueAndValidity(),this.form?.valid?(this.saveToSessionStorage(),this.prepareData(),this.sendData()):T()}saveToSessionStorage(){this.formManagementService.saveStepToSessionStorage("k4",O(r({},this.form?.value),{admins:this.admins}))}prepareData(){let e=JSON.parse(sessionStorage.getItem("form")??"").k1;this.applyingProcessRequestService.getRegistrationRequest(e?.representativeType??P.OWNER,this.formManagementService.form.applicant??"proxy",r({},this.formManagementService.initData?.applicant))}sendData(){this.applyingProcessService.processEdaData(this.applyingProcessRequestService.request).subscribe(e=>{sessionStorage.setItem("requestId",JSON.stringify(e.requestId)),sessionStorage.setItem("requestSigningUrl",JSON.stringify(e.signingUrl)),this.window.location.assign(e.signingUrl??"")})}getYourDataFromSession(){this.k1=this.formManagementService.getStepFromSessionStorage("k1")}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275cmp=C({type:s,selectors:[["app-step4-registration-company"]],standalone:!1,features:[v],decls:3,vars:6,consts:[[3,"modalVisibleChange","modalVisible","data","mode","facade","type"],[1,"fs-16","content"],["tooltip","Za chwil\u0119 przejdziesz do us\u0142ugi e-podpis. Tam sprawdzisz i podpiszesz sw\xF3j wniosek. Mo\u017Cesz to zrobi\u0107 za pomoc\u0105 podpisu zaufanego, osobistego lub kwalifikowanego.",3,"controlsDefinitions","formGroupEvent","buttonClick","formValid","rowItemClick",4,"ngIf"],["tooltip","Za chwil\u0119 przejdziesz do us\u0142ugi e-podpis. Tam sprawdzisz i podpiszesz sw\xF3j wniosek. Mo\u017Cesz to zrobi\u0107 za pomoc\u0105 podpisu zaufanego, osobistego lub kwalifikowanego.",3,"formGroupEvent","buttonClick","formValid","rowItemClick","controlsDefinitions"]],template:function(t,i){t&1&&(f(0,"app-admin-modal",0),ce("modalVisibleChange",function(m){return pe(i.modalVisible,m)||(i.modalVisible=m),m}),u(),f(1,"div",1),_(2,St,1,1,"app-form-builder",2),u()),t&2&&(le("modalVisible",i.modalVisible),d("data",i.admin)("mode",i.mode)("facade",i.adminAddFacade)("type",i.modalType),S(2),d("ngIf",i.controlsDefinitions))},dependencies:[k,F,He],encapsulation:2})}}return s})();function lt(s,o){return{controls:r(r(r(r(r(r(r(r(r(r({},R("Nazwa jednostki","col-12")),$("col-12 mb-20")),De()),U(void 0,void 0,"col-lg-6 col-12 mb-20")),B(void 0,"col-lg-6 col-12 mb-20")),Ne("data","NIP podmiotu/jednostki")),Ue()),E(o)),M(s,!0,"Taki sam jak siedziby jednostki")),A()),cards:[{key:"data",label:"Dane jednostki lokalnej"},{key:"headquartersAddress",label:"Adres siedziby jednostki ",required:!0},{key:"address",label:"Adres do korespondencji ",required:!0}]}}var K=class{constructor(o,e){this.form=o,this.destroyed$=e,this.nipStatusEnum=N.NipStatusEnum}listenForNipStatus(){this.form.controls.nipGroup?.controls.nipStatus?.valueChanges.pipe(c(this.destroyed$)).subscribe(o=>{let e=this.form.controls.nipGroup.controls.nip,t=this.form.controls.nipGroup.controls.nipStatus;o===this.nipStatusEnum.ASSIGNED&&this.form?(e.hidden=!1,e.readOnly=t.hidden,e.updateValueAndValidity()):this.form&&(e.hidden=!t.hidden,e.disable(),e.updateValueAndValidity())})}patchFormPersonalInitData(o){o&&(this.form.patchValue({legalForm:o.legalForm,nipGroup:o.nipGroup,regon:o.regon,krs:o.krs}),this.form.controls.krs.readOnly=!0,this.form.controls.krs.hidden=!1,this.form.controls.regon.readOnly=!0,this.form.controls.regon.hidden=!1,this.form.controls.legalForm.readOnly=!0,this.form.controls.legalForm.hidden=!1,this.form.updateValueAndValidity())}};function Ct(s,o){if(s&1){let e=b();f(0,"app-form-builder",2),w("formGroupEvent",function(i){l(e);let n=a();return p(n.formGroup(i))})("buttonClick",function(i){l(e);let n=a();return p(n.onClick(i))})("formValid",function(i){l(e);let n=a();return p(n.onValid(i))})("rowItemClick",function(i){l(e);let n=a();return p(n.onRowItemClick(i))}
3),u()}if(s&2){let e=a();d("controlsDefinitions",e.controlsDefinitions)}}var pt=(()=>{class s extends I{constructor(){super(),this.controlsDefinitions=null,this.valid=!1,this.removeAllItems$=new g(!1),this.removeAllItemsFee$=new g(!1),this.window=window,this.valueChanges=null,this.stepLabel="k3",this.applyingProcessService=new x(this.http,this.envConfig.config?.api.baeAPI,new V),this.controlsDefinitions=lt(this.getGroupAddress(),this.getGroupAddress()),this.setForm(this.controlsDefinitions)}ngOnInit(){this.formManagementService.setCurrentStep(3)}ngAfterViewInit(){super.ngAfterViewInit()}ngOnDestroy(){super.ngOnDestroy()}formGroup(e){this.form&&(this.destroy(),this.destroyed$=new y),this.form=e,this.getEntityDataFromSession(),this.valueChanges=new K(this.form,this.destroyed$),this.valueChanges.listenForNipStatus(),this.valueChanges.patchFormPersonalInitData(this.k2)}onClick(e){e.button==="buttonPrev"&&this.router.navigate(["../step2"],{relativeTo:this.route}),e.button==="buttonProcede"&&this.submitForm()}onValid(e){this.valid=e}destroy(){this.destroyed$.next(),this.destroyed$.complete()}submitForm(){this.form?.markAllAsTouched(),this.form?.updateValueAndValidity(),this.form?.valid?(this.saveToSessionStorage(),this.router.navigate(["../step4"],{relativeTo:this.route})):T()}saveToSessionStorage(){this.formManagementService.saveStepToSessionStorage("k3",r({},this.form?.value))}getEntityDataFromSession(){this.k2=this.formManagementService.getStepFromSessionStorage("k2")}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275cmp=C({type:s,selectors:[["app-step3-registration-company"]],standalone:!1,features:[v],decls:2,vars:1,consts:[[1,"fs-16","content"],[3,"controlsDefinitions","formGroupEvent","buttonClick","formValid","rowItemClick",4,"ngIf"],[3,"formGroupEvent","buttonClick","formValid","rowItemClick","controlsDefinitions"]],template:function(t,i){t&1&&(f(0,"div",0),_(1,Ct,1,1,"app-form-builder",1),u()),t&2&&(S(),d("ngIf",i.controlsDefinitions))},dependencies:[k,F],encapsulation:2})}}return s})();var ct=(()=>{class s extends et{constructor(e,t){super(e),this.router=e,this.formManagementService=t}canActivate(e,t){return this.formManagementService.form?.entityType===h.PUBLIC_ENTITY_LOCAL?super.checkIfStepExist(3)?!0:(this.navigateToSpecifiedStep(e,t),!1):super.canActivate(e,t)}static{this.\u0275fac=function(t){return new(t||s)(H(fe),H(ye))}}static{this.\u0275prov=me({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var vt=[{path:"",redirectTo:"step1",pathMatch:"full"},{path:"step1",component:rt,data:{backUrl:"/registration/"}},{path:"step2",component:nt,canActivate:[tt],canDeactivate:[q],data:{step:2,redirect:"/step1",backUrl:"/registration/company/step1"}},{path:"step3",component:pt,canActivate:[ot],canDeactivate:[q],data:{step:3,redirect:"/step2",backUrl:"/registration/company/step2"}},{path:"step4",canActivate:[ct],canDeactivate:[q],component:mt,data:{step:3,redirect:"/step3",backUrl:"/registration/company/step2"}}],dt=(()=>{class s{static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275mod=L({type:s})}static{this.\u0275inj=z({imports:[Q.forChild(vt),Q]})}}return s})();var vi=(()=>{class s{static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275mod=L({type:s})}static{this.\u0275inj=z({imports:[de,dt,Ke,ve,Ze,Xe,Qe,Se]})}}return s})();export{vi as RegistrationCompanyModule};

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.