PageSourceSearch

https://cccc-mobile-portal.firebaseapp.com/chunk-LKBPFVFZ.js

js cccc-mobile-portal.firebaseapp.com collected 2026-10-03 14:05:37 UTC 7,357 bytes, 1 lines download raw bytes

1import{f as ie}from"./chunk-XVEXVSHY.js";import{c as X,g as Y}from"./chunk-LQAJVVFO.js";import"./chunk-FHRX5ITS.js";import"./chunk-UWKFGWZA.js";import"./chunk-CB2ES4ID.js";import{$a as Z,Ba as Q,Ga as W,Ha as H,Ma as J,Qa as K,S as q,T as G,Ta as $,Ya as z,_ as j,ab as ee,bb as te,d as C,e as y,ea as V,f as M,h as w,i as x,j as D,m as L,o as P,q as U,ra as k}from"./chunk-GKK7I2HG.js";import{Da as m,Fa as E,Ja as c,N as f,Oa as o,Pa as r,Qa as p,Tb as R,Va as O,Wa as F,db as u,eb as _,fb as S,ka as i,n as N,qb as s,ra as B,rb as d,xa as h}from"./chunk-Y5LJR3O3.js";import"./chunk-Y6RRHSU5.js";import"./chunk-7KGURMOZ.js";import"./chunk-72VIP7DC.js";import"./chunk-6FHAKEBC.js";import"./chunk-XCWWZPNY.js";import"./chunk-YKDYFRO7.js";import"./chunk-G3CV3VGG.js";import"./chunk-7JEWJNYV.js";import"./chunk-LZRXDEP2.js";import"./chunk-6RNTMJIT.js";import"./chunk-4U6PRYVA.js";import"./chunk-IL4VJRLA.js";import"./chunk-JWIEPCRG.js";import"./chunk-QPVVTFFW.js";import"./chunk-J6ICYO4L.js";import"./chunk-LF5XB4YN.js";import{o as I}from"./chunk-2ULHPW3F.js";function ne(t,l){t&1&&p(0,"ion-spinner",4)}function ae(t,l){t&1&&(o(0,"span"),u(1),s(2,"translate"),r()),t&2&&(i(),_(d(2,1,"CONTACT.BUTTONS.SEND")))}function oe(t,l){t&1&&(o(0,"div",10),u(1),s(2,"translate"),r()),t&2&&(i(),S(" ",d(2,1,"CONTACT.ERRORS.FIRST_NAME_REQUIRED")," "))}function re(t,l){t&1&&(o(0,"div",10),u(1),s(2,"translate"),r()),t&2&&(i(),S(" ",d(2,1,"CONTACT.ERRORS.LAST_NAME_REQUIRED")," "))}function le(t,l){if(t&1&&(o(0,"div",10),u(1),s(2,"translate"),r()),t&2){let g=F();i(),S(" ",d(2,1,g.getErrorMessage("email"))," ")}}function se(t,l){if(t&1&&(o(0,"div",10),u(1),s(2,"translate"),r()),t&2){let g=F();i(),S(" ",d(2,1,g.getErrorMessage("subject"))," ")}}function de(t,l){if(t&1&&(o(0,"div",10),u(1),s(2,"translate"),r()),t&2){let g=F();i(),S(" ",d(2,1,g.getErrorMessage("message"))," ")}}var Fe=(()=>{let l=class l{constructor(){this.isSending=!1,this.showErrors=!1,this.functions=f(X),this.toastController=f(K),this.alertController=f(J),this.formBuilder=f(P),this.translate=f(Z),this.authService=f(ie),this.contactForm=this.formBuilder.group({firstName:["",C.required],lastName:["",C.required],email:["",[C.required,C.email]],subject:["",C.required],message:["",C.required]})}ionViewWillEnter(){this.prefillFormWithUserData()}prefillFormWithUserData(){let a=this.authService.getCurrentUserData();a&&this.contactForm.patchValue({firstName:a.firstName,lastName:a.lastName,email:a.email})}isFieldInvalid(a){let n=this.contactForm.get(a);return!!n&&n.invalid&&(n.dirty||n.touched||this.showErrors)}isFieldTouched(a){let n=this.contactForm.get(a);return!!n&&(n.dirty||n.touched||this.showErrors)}getErrorMessage(a){let n=this.contactForm.get(a);return n?n.hasError("required")?`CONTACT.ERRORS.${a.toUpperCase()}_REQUIRED`:n.hasError("email")?"CONTACT.ERRORS.INVALID_EMAIL":"":""}onSubmit(){return I(this,null,function*(){var a,n,e,b,A;if(this.showErrors=!0,!this.contactForm.valid){Object.keys(this.contactForm.controls).forEach(T=>{let v=this.contactForm.get(T);v==null||v.markAsTouched()});return}if(!this.isSending){this.isSending=!0;try{let T=Y(this.functions,"sendEmail"),v={template:"contact-form",to:"[email protected]",data:{firstName:(a=this.contactForm.get("firstName"))==null?void 0:a.value,lastName:(n=this.contactForm.get("lastName"))==null?void 0:n.value,email:(e=this.contactForm.get("email"))==null?void 0:e.value,subject:(b=this.contactForm.get("subject"))==null?void 0:b.value,message:(A=this.contactForm.get("message"))==null?void 0:A.value,language:this.translate.currentLang||"en"}};yield T(v),yield(yield this.alertController.create({header:yield N(this.translate.get("CONTACT.MESSAGES.SEND_SUCCESS")),message:yield N(this.translate.get("CONTACT.MESSAGES.SEND_SUCCESS_MESSAGE")),buttons:[{text:yield N(this.translate.get("COMMON.BUTTONS.OK")),handler:()=>(this.contactForm.reset(),this.showErrors=!1,!0),cssClass:"alert-blue-button"}],cssClass:"custom-alert alert-with-line-breaks"})).present(),this.contactForm.reset(),this.showErrors=!1}catch(T){console.error("Error sending contact form:",T),(yield this.toastController.create({message:yield N(this.translate.get("CONTACT.MESSAGES.SEND_ERROR")),duration:3e3,position:"bottom",color:"danger",positionAnchor:"ion-tab-bar"})).present()}finally{this.isSending=!1}}})}};l.\u0275fac=function(n){return new(n||l)},l.\u0275cmp=B({type:l,selectors:[["app-contact"]],decls:34,vars:49,consts:[["color","primary"],["slot","start"],["slot","end"],[1,"w-full",3,"click","disabled"],["name","dots"],[3,"fullscreen"],[1,"p-4"],[1,"space-y-6",3,"formGroup"],[1,"space-y-2"],["type","text","formControlName","firstName","label-placement","floating","fill","outline","required","","mode","md",1,"rounded-lg",3,"label"],[1,"text-xs","text-red-500","mt-1"],["type","text","formControlName","lastName","label-placement","floating","fill","outline","required","","mode","md",1,"rounded-lg",3,"label"],["type","email","formControlName","email","label-placement","floating","fill","outline","required","","mode","md",1,"rounded-lg",3,"label"],["type","text","formControlName","subject","label-placement","floating","fill","outline","required","","mode","md",1,"rounded-lg",3,"label"],["rows","4","formControlName","message","label-placement","floating","fill","outline","required","","mode","md",1,"rounded-lg",3,"label","autoGrow"]],template:function(n,e){n&1&&(o(0,"ion-header")(1,"ion-toolbar",0)(2,"ion-buttons",1),p(3,"ion-menu-button"),r(),o(4,"ion-title"),u(5),s(6,"translate"),r(),o(7,"ion-buttons",2)(8,"ion-button",3),O("click",function(){return e.onSubmit()}),h(9,ne,1,0,"ion-spinner",4)(10,ae,3,3,"span"),r()()()(),o(11,"ion-content",5)(12,"div",6)(13,"form",7)(14,"div",8),p(15,"ion-input",9),s(16,"translate"),h(17,oe,3,3,"div",10),r(),o(18,"div",8),p(19,"ion-input",11),s(20,"translate"),h(21,re,3,3,"div",10),r(),o(22,"div",8),p(23,"ion-input",12),s(24,"translate"),h(25,le,3,3,"div",10),r(),o(26,"div",8),p(27,"ion-input",13),s(28,"translate"),h(29,se,3,3,"div",10),r(),o(30,"div",8),p(31,"ion-textarea",14),s(32,"translate"),h(33,de,3,3,"div",10),r()()()()),n&2&&(i(5),_(d(6,37,"CONTACT.HEADERS.CONTACT_US")),i(3),m("disabled",!e.contactForm.valid||e.isSending),i(),c(e.isSe
1nding?9:-1),i(),c(e.isSending?-1:10),i(),m("fullscreen",!0),i(2),m("formGroup",e.contactForm),i(2),E("ion-invalid",e.isFieldInvalid("firstName"))("ion-touched",e.isFieldTouched("firstName")),m("label",d(16,39,"CONTACT.LABELS.FIRST_NAME")),i(2),c(e.isFieldInvalid("firstName")?17:-1),i(2),E("ion-invalid",e.isFieldInvalid("lastName"))("ion-touched",e.isFieldTouched("lastName")),m("label",d(20,41,"CONTACT.LABELS.LAST_NAME")),i(2),c(e.isFieldInvalid("lastName")?21:-1),i(2),E("ion-invalid",e.isFieldInvalid("email"))("ion-touched",e.isFieldTouched("email")),m("label",d(24,43,"CONTACT.LABELS.EMAIL")),i(2),c(e.isFieldInvalid("email")?25:-1),i(2),E("ion-invalid",e.isFieldInvalid("subject"))("ion-touched",e.isFieldTouched("subject")),m("label",d(28,45,"CONTACT.LABELS.SUBJECT")),i(2),c(e.isFieldInvalid("subject")?29:-1),i(2),E("ion-invalid",e.isFieldInvalid("message"))("ion-touched",e.isFieldTouched("message")),m("label",d(32,47,"CONTACT.LABELS.MESSAGE"))("autoGrow",!0),i(2),c(e.isFieldInvalid("message")?33:-1))},dependencies:[R,U,w,y,M,L,x,D,j,V,W,H,q,$,z,Q,G,k,te,ee],encapsulation:2});let t=l;return t})();export{Fe as ContactPage};

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.