1import{e as E,f as O,g as P,i as k,k as C}from"./chunk-3AUAGP2X.js";import"./chunk-NSVNAA2J.js";import"./chunk-WWZWMNW2.js";import"./chunk-4MY6DG24.js";import"./chunk-253MU3U4.js";import"./chunk-R3QSFFEJ.js";import"./chunk-HGONFQ5Z.js";import"./chunk-XOQRPEET.js";import"./chunk-NKVJR3OZ.js";import"./chunk-N3TXSTFK.js";import{a as L,b as v}from"./chunk-GK2ODLU7.js";import"./chunk-T25OYS5Q.js";import"./chunk-H3E25XSG.js";import"./chunk-YRL7PCI7.js";import"./chunk-5CCC3EFV.js";import"./chunk-4GUEFG3F.js";import"./chunk-Z44NIMCV.js";import"./chunk-DCNVETC5.js";import{b as q}from"./chunk-6WX4BPHW.js";import"./chunk-6LSTUB2A.js";import{C as j,d as h,l as b,m as N}from"./chunk-UATMZHBF.js";import{b as $,g as y}from"./chunk-4NOBKVRH.js";import{o as R,q as D}from"./chunk-PHTXUX46.js";import{B as V,n as T}from"./chunk-H5ISOBV4.js";import{$b as I,Ga as m,Ha as s,Jb as F,Ob as l,Zb as f,_b as u,a as w,b as x,dc as _,fa as M,jc as g,lc as n,n as S,na as c,sb as p,tb as d,wa as A,xa as a}from"./chunk-DNSUUEP6.js";function G(e,B){if(e&1){let t=_();f(0,"div",3)(1,"app-accreditation-search",4),g("capacity",function(o){m(t);let r=n();return s(r.onSetCapacity(o))})("selectContract",function(o){m(t);let r=n();return s(r.selectContract(o))}),u()()}}function J(e,B){if(e&1){let t=_();f(0,"div",3)(1,"app-accreditation-inside",5),g("onSave",function(o){m(t);let r=n();return s(r.saveData(o))}),u()()}if(e&2){let t=n();p(),l("contract",t.contractForm.value)}}var U=(()=>{class e{translateService;spinner;route;destroy$=new S;isLoaded=!1;contractForm=new b(null,h.required);clientsForm=new N(null,h.required);capacity;constructor(t,i,o){this.translateService=t,this.spinner=i,this.route=o}selectContract(t){console.log(t);let i=x(w({},t),{capacity:this.capacity});this.contractForm.setValue(i),this.isLoaded=!0,this.spinner.hide()}onSetCapacity(t){this.capacity=t}saveData(t){console.log(t)}ngOnInit(){this.spinner.show(),this.route.queryParams.pipe(M(this.destroy$)).subscribe(t=>{t.ContractId}),setTimeout(()=>{this.isLoaded||(this.isLoaded=!0,this.spinner.hide(),console.warn("Tiempo de carga excedido"))},1)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static \u0275fac=function(i){return new(i||e)(d(R),d(L),d($))};static \u0275cmp=A({type:e,selectors:[["app-accreditation"]],decls:4,vars:2,consts:[[1,"box","d-flex","flex-column","w-100","align-items-center"],["bdColor","rgba(0,0,0,0.5)","size","large","color","#fff","type","ball-spin-clockwise"],["class","w-80 w-md-100",4,"ngIf"],[1,"w-80","w-md-100"],[3,"capacity","selectContract"],[3,"onSave","contract"]],template:function(i,o){i&1&&(f(0,"div",0),I(1,"ngx-spinner",1),F(2,G,2,0,"div",2)(3,J,2,1,"div",2),u()),i&2&&(p(2),l("ngIf",!(o.contractForm!=null&&o.contractForm.value)),p(),l("ngIf",o.isLoaded&&(o.contractForm==null?null:o.contractForm.value)))},dependencies:[T,E,C,v],styles:[".box[_ngcontent-%COMP%]{gap:clamp(3.75rem,3.12rem + 3.6vw,6rem);margin-bottom:clamp(3.75rem,3.12rem + 3.6vw,6rem);min-height:70vh}"]})}return e})();var K=[{path:"",component:U}],H=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=a({type:e});static \u0275inj=c({imports:[y.forChild(K),y]})}return e})();var wt=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=a({type:e});static \u0275inj=c({imports:[V,k,H,q,P,O,C,j,D,v]})}return e})();export{wt as AccreditationModule};
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.