1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1444,7318,5452,7506,7802,9945,6525],{96525:(T,g,e)=>{e.d(g,{R:()=>n});var u=e(36895),t=e(50312),s=e(94650);let n=(()=>{var _;class f{}return(_=f).\u0275fac=function(m){return new(m||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({imports:[u.ez,t.Pc]}),f})()},39945:(T,g,e)=>{e.d(g,{M:()=>P});var u=e(15861),t=e(94650),s=e(24006),n=e(80953),_=e(40833),d=e(29358),m=e(66425),M=e(17318),c=e.n(M),a=e(35452),h=e(84191),v=e(50309),O=e(90900),I=e(13787),A=e(36895),D=e(50312);function C(o,i){if(1&o){const l=t.EpF();t.TgZ(0,"ion-buttons",8)(1,"ion-button",9),t.NdJ("click",function(){t.CHM(l),t.oxw();const p=t.MAs(1),E=t.oxw();return t.KtG(E.clear(p))}),t._uU(2),t.qZA()()}if(2&o){const l=t.oxw(2);t.xp6(2),t.Oqu(l.isBrazil?"Limpar":"Borrar")}}function y(o,i){if(1&o){const l=t.EpF();t.TgZ(0,"ion-datetime",2,3),t.NdJ("ionChange",function(p){t.CHM(l);const E=t.oxw();return t.KtG(E.dateChanged(p))}),t.TgZ(2,"ion-toolbar",4),t.YNc(3,C,3,1,"ion-buttons",5),t.TgZ(4,"ion-buttons",6)(5,"ion-button",7),t.NdJ("click",function(){t.CHM(l);const p=t.MAs(1),E=t.oxw();return t.KtG(E.cancel(p))}),t._uU(6,"Cancelar"),t.qZA(),t.TgZ(7,"ion-button",7),t.NdJ("click",function(){t.CHM(l);const p=t.MAs(1),E=t.oxw();return t.KtG(E.confirm(p))}),t._uU(8,"Confirmar"),t.qZA()()()()}if(2&o){const l=t.oxw();t.Q6J("presentation",l.presentation)("value",l.inputDate)("locale",l.locale)("min",l.minDate)("max",l.maxDate)("minuteValues",l.minuteValues)("monthShortNames",l.monthShortNames)("preferWheel",!0),t.xp6(3),t.Q6J("ngIf",l.clearable)}}let P=(()=>{var o;class i{constructor(r){this.countryService=r,this.isBrazil=!1,this.locale="es-ES",this.monthShortNames="Ene, Feb, Mar, Abr, May, Jun, Jul, Ago, Sep, Oct, Nov, Dic",this.presentation="date",this.clearable=!1,this.minuteValues="0,5,10,15,20,25,30,35,40,45,50,55",this.placeholder="",this.propagateChange=p=>{},this.isBrazil=this.countryService.isBrazil(),this.isBrazil&&(this.locale="pt-BR",this.monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Ago, Set, Out, Nov, Dez")}ngOnInit(){}get date(){return this._date}get inputDate(){let r=Intl.DateTimeFormat().resolvedOptions().timeZone;return this.date||(0,m.Z)(c()(function f(o){(0,_.Z)(1,arguments);var i=(0,n.Z)(o);return i.setMinutes(0,0,0),i}((0,d.Z)(new Date,1)),r),"yyyy-MM-dd'T'HH:mm")}set date(r){this._date=r,this.propagateChange(this._date)}get dateLabel(){if(!this.date||0==this.date.length)return this.date;switch(this.presentation){case"year":return(0,m.Z)((0,h.Z)(this.date),"yyyy");case"time":let r;return r=this.date.includes("T")?(0,h.Z)(this.date):(0,v.Z)(this.date,"HH:mm",new Date),(0,O.Z)(r)?(0,m.Z)(r,"HH:mm"):this.date;case"month-year":return(0,m.Z)((0,h.Z)(this.date+"-01"),"MM/yyyy");case"date":return(0,m.Z)((0,h.Z)(this.date),"dd/MM/yyyy");default:return this.date}}getCssClass(){return"bottom-end"}writeValue(r){this._date=r}registerOnChange(r){this.propagateChange=r}registerOnTouched(){}dateChanged(r){this.date=r.detail.value}clear(r){return(0,u.Z)(function*(){yield r.reset(),r.value=null,r.confirm(!0)})()}confirm(r){r.confirm(!0)}cancel(r){r.cancel(!0)}}return(o=i).\u0275fac=function(r){return new(r||o)(t.Y36(I.T))},o.\u0275cmp=t.Xpm({type:o,selectors:[["date-control"]],inputs:{presentation:"presentation",trigger:"trigger",clearable:"clearable",_date:"_date",maxDate:"maxDate",minDate:"minDate",minuteValues:"minuteValues",placeholder:"placeholder"},standalone:!0,features:[t._Bn([{provide:s.JU,useExisting:(0,t.Gpc)(()=>o),multi:!0}]),t.jDz],decls:4,vars:4,consts:[["readonly","true",3,"value","placeholder"],[3,"trigger","cssClass"],["size","cover","showClearButton","","displayFormat","dd MMM. yyyy","picker-format","dd MMM. yyyy",3,"presentation","value","locale","min","max","minuteValues","monthShortNames","preferWheel","ionChange"],["datetime",""],["slot","buttons"],["slot","start",4,"ngIf"],["slot","end"],["color","primary",3,"click"],["slot","start"],["color","danger",3,"click"]],template:function(r,p){1&r&&(t.ynx(0),t._UZ(1,"ion-input",0),t.TgZ(2,"ion-modal",1),t.YNc(3,y,9,9,"ng-template"),t.qZA(),t.BQk()),2&r&&(t.xp6(1),t.s9C("placeholder",p.placeholder),t.Q6J("value",p.dateLabel),t.xp6(1),t.Q6J("trigger",p.trigger)("cssClass",p.getCssClass()))},dependencies:[a.O,A.O5,D.YG,D.Sm,D.x4,D.pK,D.sr,D.ki,D.QI,D.j9],changeDetection:0}),i})()},23839:(T,g,e)=>{e.d(g,{I:()=>D});var u=e(15861),t=e(94650),s=e(30070),n=e(24006),_=e(52613),f=e(56197),d=e(35452),m=e(6613),M=e(89383),c=e(50312),a=e(11481),h=e(36895);function v(C,y){if(1&C&&t._UZ(0,"img",6),2&C){const P=t.oxw();
1t.Q6J("src",P.secureSrc,t.LSH)}}function O(C,y){1&C&&t._UZ(0,"ion-icon",7)(1,"ion-text",8)}function I(C,y){if(1&C){const P=t.EpF();t.TgZ(0,"ion-button",9),t.NdJ("click",function(){t.CHM(P);const i=t.oxw();return t.KtG(i.getPicture(i.srcTypes.CAMERA))}),t._UZ(1,"ion-icon",10),t.qZA()}}function A(C,y){if(1&C){const P=t.EpF();t.TgZ(0,"ion-button",11),t.NdJ("click",function(){t.CHM(P);const i=t.oxw();return t.KtG(i.getPicture(i.srcTypes.PHOTOLIBRARY))}),t._UZ(1,"ion-icon",12),t.qZA()}}let D=(()=>{var C;class y{get imgSrc(){return this._imgSrc}set imgSrc(o){this._imgSrc=o,this.propagateChange(this._imgSrc)}get options(){return this._options}set options(o){this._options={...this.defaultOptions,...o}}writeValue(o){this.imgSrc=o,this.secureSrc=o}registerOnChange(o){this.propagateChange=o}registerOnTouched(){}constructor(o,i,l,r,p,E,x,U,Z){this.alertService=o,this.translate=i,this.camera=l,this.platform=r,this.webview=p,this.actionSheetCtrl=E,this.sanitizer=x,this.modalController=U,this.cdr=Z,this.srcTypes=s.yW,this.useFileUri=!0,this.defaultOptions={destinationType:this.useFileUri?this.camera.DestinationType.FILE_URI:this.camera.DestinationType.DATA_URL,encodingType:this.camera.EncodingType.JPEG,allowEdit:!1,mediaType:this.camera.MediaType.PICTURE,correctOrientation:!0,cameraDirection:s.Nm.FRONT},this.galleryAvailable=!0,this.cameraAvailable=!0,this.actionSheetTitle="image_action_sheet_title",this._options=this.defaultOptions,this.propagateChange=b=>{}}ngOnInit(){}getPicture(o){var i=this;return(0,u.Z)(function*(){if(i.platform.is("desktop")||o===s.yW.PHOTOLIBRARY){let l=document.createElement("input");return l.type="file",l.accept="image/*",l.click(),void(l.onchange=r=>{let p=r.target.files[0],E=new FileReader;E.readAsDataURL(p),E.onload=()=>{i.writeValue(E.result.toString())}})}if(i.platform.is("cordova")||!navigator?.mediaDevices?.getUserMedia)i.camera.getPicture({...i.options,sourceType:o}).then(l=>{i.useFileUri?(i.writeValue(i.webview.convertFileSrc(l)),i.platform.is("ios")&&(i.secureSrc=i.sanitizer.bypassSecurityTrustResourceUrl(i.imgSrc))):i.imgSrc=`data:image/jpeg;base64,${l}`},l=>{i.alertService.showToast("No se seleccion\xf3 ninguna foto")});else{const l=yield i.modalController.create({component:f.Y});l.present();const r=yield l.onDidDismiss();r.data&&i.writeValue(r.data)}})()}presentCameraActionSheet(){var o=this;return(0,u.Z)(function*(){let i=[],l={icon:"camera",text:o.translate.instant("camera"),handler:()=>o.getPicture(s.yW.CAMERA)},r={icon:"image",text:o.translate.instant("gallery"),handler:()=>o.getPicture(s.yW.PHOTOLIBRARY)},p={text:o.translate.instant("cancel"),role:"cancel"};o.cameraAvailable&&i.push(l),o.galleryAvailable&&i.push(r),i.push(p),yield(yield o.actionSheetCtrl.create({header:o.translate.instant(o.actionSheetTitle),buttons:i})).present()})()}}return(C=y).\u0275fac=function(o){return new(o||C)(t.Y36(m.m),t.Y36(M.sK),t.Y36(s.V1),t.Y36(c.t4),t.Y36(_.k),t.Y36(c.BX),t.Y36(a.H7),t.Y36(c.IN),t.Y36(t.sBO))},C.\u0275cmp=t.Xpm({type:C,selectors:[["image-file-control"]],inputs:{galleryAvailable:["gallery","galleryAvailable"],cameraAvailable:["camera","cameraAvailable"],actionSheetTitle:"actionSheetTitle",_imgSrc:"_imgSrc",options:"options"},standalone:!0,features:[t._Bn([{provide:n.JU,useExisting:(0,t.Gpc)(()=>C),multi:!0}]),t.jDz],decls:12,vars:4,consts:[[1,"center-col"],[1,"profile-picture",3,"click"],[3,"src",4,"ngIf","ngIfElse"],["noImgSrc",""],["mode","ios","translate","camera",3,"click",4,"ngIf"],["mode","ios","translate","gallery",3,"click",4,"ngIf"],[3,"src"],["name","share-outline"],["translate","user_data_form.avatar.upload"],["mode","ios","translate","camera",3,"click"],["name","camera-outline","slot","start"],["mode","ios","translate","gallery",3,"click"],["name","image-outline","slot","start"]],template:function(o,i){if(1&o&&(t.TgZ(0,"ion-grid")(1,"ion-row")(2,"ion-col",0)(3,"div",1),t.NdJ("click",function(){return i.getPicture(i.srcTypes.CAMERA)}),t.YNc(4,v,1,1,"img",2),t.YNc(5,O,2,0,"ng-template",null,3,t.W1O),t.qZA()()(),t.TgZ(7,"ion-row")(8,"ion-col",0)(9,"ion-buttons"),t.YNc(10,I,2,0,"ion-button",4),t.YNc(11,A,2,0,"ion-button",5),t.qZA()()()()),2&o){const l=t.MAs(6);t.xp6(4),t.Q6J("ngIf",i.imgSrc)("ngIfElse",l),t.xp6(6),t.Q6J("ngIf",i.cameraAvailable),t.xp6(1),t.Q6J("ngIf",i.galleryAvailable)}},dependencies:[d.O,h.O5,M.Pi,c.YG,c.Sm,c.wI,c.jY,c.gu,c.Nd,c.yW],styles:['.input-label[_ngcontent-%COMP%]{color:#7a7a7a;font-size:larger;font-weight:700}.checkbox-label[_ngcontent-%COMP%]{font-size:.85em;color:#7a7a7a}form[_ngcontent-%COMP%]{width:100%;max-width:600px;margin:auto}.input-error[_ngcontent-%COMP%]{display:flex;flex-flow:column}.input-error[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{padding:0 16px}ion-spinner[slot=end][_ngcontent-%COMP%]{align-self:center}.suggestion[_ngcontent-%COMP%]{text-align:left;color:#7a7a7a}ion-grid[_ngcontent-%COMP%], ion-col[_ngcontent-%COMP%]{padding-inline-start:0}address-control[_ngcontent-%COMP%]{width:100%}image-file-control[_ngcontent-%COMP%]{align-self:center}.required[_ngcontent-%COMP%]:after{content:"*";position:absolute}ion-icon[slot=end][_ngcontent-%COMP%], fa-icon[slot=end][_ngcontent-%COMP%]{align-self:center}.profile-picture[_ngcontent-%COMP%]{color:#bfbfbf;height:140px;width:140px;border:#BFBFBF dashed 2px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center}.profile-picture[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{height:20px;width:20px}.profile-picture[_ngcontent-%COMP%] ion-text[_ngcontent-%COMP%]{color:#bfbfbf}.profile-picture[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:16px}.center-col[_ngcontent-%COMP%]{display:flex;justify-content:center}.center-col[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{font-size:16px;--background-hover: none}']}),y})()},35452:(T,g,e)=>{e.d(g,{O:()=>d});var u=e(36895),t=e(50312),s=e(24006),n=e(89383),_=e(92216),f=e(94650);let d=(()=>{var m;class M{}return(m=M).\u0275fac=function(a){return new(a||m)},m.\u0275mod=f.oAB({type:m}),m.\u0275inj=f.cJS({imports:[u.ez,s.UX,_.uH,n.aw,s.u5,t.Pc,u.ez,s.UX,_.uH,n.aw,s.u5,t.Pc]}),M})()},56197:(T,g,e)=>{e.d(g,{Y:()=>d});var u=e(15861),t=e(36895),s=e(50312),n=e(94650);const _=["videoElement"],f=["canvasElement"];let d=(()=>{var m;class M{constructor(a){this.modalController=a,this.facingMode="user"}ngOnInit(){this.initVideo(640,480,this.facingMode)}
1takePicture(){var a=this;return(0,u.Z)(function*(){a.canvasElement.nativeElement.width=a.videoElement.nativeElement.videoWidth,a.canvasElement.nativeElement.height=a.videoElement.nativeElement.videoHeight,a.canvasElement.nativeElement.getContext("2d").drawImage(a.videoElement.nativeElement,0,0,a.canvasElement.nativeElement.width,a.canvasElement.nativeElement.height);const v=a.canvasElement.nativeElement.toDataURL("image/jpeg");a.stream.getTracks().forEach(O=>O.stop()),a.modalController.dismiss(v)})()}toggleCamera(){var a=this;return(0,u.Z)(function*(){a.stream.getTracks().forEach(h=>h.stop()),a.facingMode="user"==a.facingMode?"environment":"user",a.initVideo(640,480,a.facingMode)})()}initVideo(a,h,v){var O=this;return(0,u.Z)(function*(){const I={video:{width:a,height:h,facingMode:v},audio:!1};O.stream=yield navigator.mediaDevices.getUserMedia(I),O.videoElement.nativeElement.srcObject=O.stream,yield O.videoElement.nativeElement.play()})()}dismiss(){this.stream.getTracks().forEach(a=>a.stop()),this.modalController.dismiss()}}return(m=M).\u0275fac=function(a){return new(a||m)(n.Y36(s.IN))},m.\u0275cmp=n.Xpm({type:m,selectors:[["app-webrtc-image-modal"]],viewQuery:function(a,h){if(1&a&&(n.Gf(_,5),n.Gf(f,5)),2&a){let v;n.iGM(v=n.CRH())&&(h.videoElement=v.first),n.iGM(v=n.CRH())&&(h.canvasElement=v.first)}},standalone:!0,features:[n.jDz],decls:18,vars:2,consts:[["forceOverscroll","false",3,"fullscreen"],["slot","end"],["color","light",3,"click"],["slot","icon-only","name","close"],[1,"video-container"],["autoplay","","playsinline","","width","100%"],["videoElement",""],["hidden","true"],["canvasElement",""],["mode","md",2,"box-shadow","none",3,"translucent"],[1,"buttons-grid"],["shape","round","fill","clear","color","light",3,"click"],["slot","icon-only","name","camera-reverse-outline"],["shape","round","color","primary",2,"min-width","0",3,"click"],["slot","icon-only","name","camera"]],template:function(a,h){1&a&&(n.TgZ(0,"ion-content",0)(1,"ion-toolbar")(2,"ion-buttons",1)(3,"ion-button",2),n.NdJ("click",function(){return h.dismiss()}),n._UZ(4,"ion-icon",3),n.qZA()()(),n.TgZ(5,"div",4),n._UZ(6,"video",5,6),n.qZA(),n._UZ(8,"canvas",7,8),n.qZA(),n.TgZ(10,"ion-footer",9)(11,"div",10)(12,"div")(13,"ion-button",11),n.NdJ("click",function(){return h.toggleCamera()}),n._UZ(14,"ion-icon",12),n.qZA()(),n.TgZ(15,"div")(16,"ion-button",13),n.NdJ("click",function(){return h.takePicture
1()}),n._UZ(17,"ion-icon",14),n.qZA()()()()),2&a&&(n.Q6J("fullscreen",!0),n.xp6(10),n.Q6J("translucent",!0))},dependencies:[t.ez,s.Pc,s.YG,s.Sm,s.W2,s.fr,s.gu,s.sr],styles:["ion-content[_ngcontent-%COMP%]{--background: black}ion-toolbar[_ngcontent-%COMP%]{--background: transparent;position:absolute}.video-container[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center}.buttons-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:1em;margin-bottom:1em}.buttons-grid[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:auto}"]}),M})()},29358:(T,g,e)=>{e.d(g,{Z:()=>_});var u=e(91998),t=e(81201),s=e(40833),n=36e5;function _(f,d){(0,s.Z)(2,arguments);var m=(0,u.Z)(d);return(0,t.Z)(f,m*n)}},85866:(T,g,e)=>{e.d(g,{Z:()=>n});var u=e(91998),t=e(80953),s=e(40833);function n(_,f){(0,s.Z)(2,arguments);var d=(0,t.Z)(_),m=(0,u.Z)(f);if(isNaN(m))return new Date(NaN);if(!m)return d;var M=d.getDate(),c=new Date(d.getTime());return c.setMonth(d.getMonth()+m+1,0),M>=c.getDate()?c:(d.setFullYear(c.getFullYear(),c.getMonth(),M),d)}},70207:(T,g,e)=>{e.d(g,{u:()=>s});var u=e(57359),t=e(54482);function s(n,_){return(0,t.e)((0,u.U)(n,_,arguments.length>=2,!1,!0))}},17318:(T,g,e)=>{Object.defineProperty(g,"__esModule",{value:!0}),g.default=function n(_,f,d){var m=(0,t.default)(_,d),M=(0,u.default)(f,m,!0),c=new Date(m.getTime()-M),a=new Date(0);return a.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),a.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),a};var u=s(e(24597)),t=s(e(29018));function s(_){return _&&_.__esModule?_:{default:_}}T.exports=g.default}}]);
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.