PageSourceSearch

https://www.swa.gov.sa/ar/chunk-4DAFNGH6.js

js swa.gov.sa collected 2026-10-02 17:14:03 UTC 35,889 bytes, 1 lines download raw bytes

1import{b as Ve}from"./chunk-EDYGVQUJ.js";import{a as Te}from"./chunk-COMB7F4L.js";import{a as Ee,b as xe}from"./chunk-ALFFUGJF.js";import{b as Ie}from"./chunk-IXMU7KSL.js";import"./chunk-SY7IMYNK.js";import{a as Re}from"./chunk-VEROZDKE.js";import{a as we}from"./chunk-F4STMYM2.js";import"./chunk-DILRS2C7.js";import{a as Ne}from"./chunk-HTMDXLAI.js";import{a as Ce}from"./chunk-SGYHSEQ5.js";import{a as _e}from"./chunk-M54B23MJ.js";import"./chunk-SK5JZZXW.js";import{c as Se}from"./chunk-MPVKU6BR.js";import{a as Ae}from"./chunk-G2KUO4TJ.js";import"./chunk-JFYVGDLK.js";import"./chunk-XYFEJQJU.js";import{a as be}from"./chunk-5MP3JAG6.js";import{c as ye,d as F,f as S,g as k,h as O}from"./chunk-YUBS7AQW.js";import{a as ge}from"./chunk-WRMJB4KT.js";import{d as ve}from"./chunk-S5GXOG6I.js";import"./chunk-R4YOZNOI.js";import"./chunk-FJDW344Y.js";import"./chunk-5LVXJWGR.js";import{a as fe}from"./chunk-TFUXPF5C.js";import"./chunk-ADPUZLEP.js";import"./chunk-RONQHHKM.js";import{A as he,c as ne,d as A,f as ue,g as ae,j as re,k as oe,m as se,n as le,o as pe,r as me,y as ce,z as de}from"./chunk-KE6TWG4W.js";import{D as ie,l as J,m as Q,w as ee,x as te}from"./chunk-BPTP2OGQ.js";import{Bc as K,C as P,Da as H,E as W,Eb as r,Fb as p,G as U,Gb as c,H as z,Kb as D,Nb as C,O as $,Ob as f,Vc as Z,Za as n,_a as m,_b as h,ac as g,ca as G,ec as R,ed as X,f as I,fc as E,gc as x,ic as Y,jc as _,ma as q,na as L,oa as w,pa as M,rb as b,tb as a,y as B,z as V}from"./chunk-CEMWIL7S.js";import{a as j}from"./chunk-ZQYCHSNR.js";var ke=["class","component"],Oe=()=>["1","2"],je=()=>["pdf"],Be=()=>({standalone:!0}),We=()=>["/services/request-service/escalate-complaints"];function Ue(s,d){s&1&&(r(0,"div"),c(1,"app-dga-loader"),p());}function ze(s,d){if(s&1&&c(0,"app-dropdown-input",29),s&2){let u=f();a("label",u.en=="en"?"City":"\u0627\u0644\u0645\u062F\u064A\u0646\u0629")("options",u.cities)("placeholder",u.en=="en"?"Select city":"\u0627\u062E\u062A\u0631 \u0627\u0644\u0645\u062F\u064A\u0646\u0629")("isRequired",!0);}}function $e(s,d){if(s&1){let u=D();r(0,"app-dropdown-input",30),C("ngModelChange",function(t){q(u);let e=f();return L(e.onComplaintSelection(t));}),p();}if(s&2){let u=f();a("label",u.en=="en"?"Complaint Number":"\u0631\u0642\u0645 \u0627\u0644\u0634\u0643\u0648\u0649")("options",u.complaintList)("placeholder",u.en=="en"?"Select your complaint":"\u0627\u062E\u062A\u0631 \u0627\u0644\u0634\u0643\u0648\u0649")("isRequired",!0);}}function Ge(s,d){if(s&1&&(r(0,"div",31),w(),r(1,"svg",32),c(2,"path",33),p(),M(),r(3,"p",34),h(4),p()()),s&2){let u=f();n(4),g(" ",u.en==="en"?"Please enter National ID Number first":"\u0627\u062F\u062E\u0644 \u0631\u0642\u0645 \u0627\u0644\u0647\u0648\u064A\u0629 \u0627\u0648\u0644\u0627"," ");}}function He(s,d){if(s&1&&(r(0,"div",35)(1,"div",36),w(),r(2,"svg",32),c(3,"path",33),p(),M(),r(4,"p",34),h(5),p()(),r(6,"a",37),w(),r(7,"svg",38),c(8,"path",39),p(),h(9),p()()),s&2){let u=f();n(5),g(" ",u.en==="en"?"No complaints found for this National ID Number":"\u0644\u0645 \u064A\u062A\u0645 \u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 \u0634\u0643\u0627\u0648\u0649 \u0645\u0635\u0639\u062F\u0629 \u0644\u0631\u0642\u0645 \u0627\u0644\u0647\u0648\u064A\u0629 \u0627\u0644\u0645\u062F\u062E\u0644"," "),n(),a("routerLink",_(3,We)),n(3),g(" ",u.en==="en"?"Go to Complaint Escalation Service":"\u0627\u0630\u0647\u0628 \u0644\u062E\u062F\u0645\u0629 \u062A\u0635\u0639\u064A\u062F \u0627\u0644\u0634\u0643\u0627\u0648\u0649"," ");}}function Ye(s,d){if(s&1){let u=D();r(0,"app-dropdown-input",40),C("ngModelChange",function(t){q(u);let e=f();return L(e.whenChoiceNationalWaterCompany(t));}),p();}if(s&2){let u=f();a("label",u.en=="en"?"Related Authority":"\u0627\u0644\u062C\u0647\u0629 \u0630\u0627\u062A \u0627\u0644\u0635\u0644\u0629")("options",u.companies)("placeholder",u.en=="en"?"Related authority":"\u0627\u0644\u062C\u0647\u0629 \u0630\u0627\u062A \u0627\u0644\u0635\u0644\u0629")("isDisabled",!0);}}function Ke(s,d){if(s&1&&c(0,"app-text-input-modern-2",41),s&2){let u=f();a("formControl",u.form.get("complainRelatedAuthorityComplaintNumber"))("isNumericOnly",!0)("label",u.en=="en"?"Complaint Reference Number":"\u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u062C\u0639\u064A \u0644\u0644\u0634\u0643\u0648\u0649")("placeholder",u.en=="en"?"Reference Number":"\u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u062C\u0639\u064A")("isDisabled",!0)("customErrorMsg",u.getCustomErrorMsg(u.minLength,u.maxLength))("maxLength",u.maxLength)("minLength",u.minLength)("exactLength",u.excaxt);}}function Ze(s,d){if(s&1&&(r(0,"div",42)(1,"label",43),h(2),p(),r(3,"div",44)(4,"label",45),c(5,"input",46),r(6,"span",47),h(7),p()(),r(8,"label",45),c(9,"input",48),r(10,"span",47),h(11),p()()()()),s&2){let u=f();n(2),g(" ",u.en=="en"?"Has the relevant party been met?":"\u0647\u0644 \u062A\u0645 \u0627\u0644\u0627\u062C\u062A\u0645\u0627\u0639 \u0628\u0627\u0644\u062C\u0647\u0629 \u0630\u0627\u062A \u0627\u0644\u0639\u0644\u0627\u0642\u0629\u061F"," "),n(3),a("value",!0),n(2),g(" ",u.en=="en"?"Yes":"\u0646\u0639\u0645"," "),n(2),a("value",!1),n(2),g(" ",u.en=="en"?"No":"\u0644\u0627"," ");}}function Xe(s,d){if(s&1&&(r(0,"div",42)(1,"label",43),h(2),p(),r(3,"div",44)(4,"label",45),c(5,"input",49),r(6,"span",47),h(7),p()(),r(8,"label",45),c(9,"input",50),r(10,"span",47),h(11),p()()()()),s&2){let u=f();n(2),g(" ",u.en=="en"?"Would you prefer the relevant party to be present at the interview?":"\u0647\u0644 \u062A\u0641\u0636\u0644 \u062D\u0636\u0648\u0631 \u0627\u0644\u062C\u0647\u0629 \u0630\u0627\u062A \u0627\u0644\u0639\u0644\u0627\u0642\u0629 \u0641\u064A \u0627\u0644\u0645\u0642\u0627\u0628\u0644\u0629\u061F"," "),n(3),a("value",!0),n(2),g(" ",u.en=="en"?"Yes":"\u0646\u0639\u0645"," "),n(2),a("value",!1),n(2),g(" ",u.en=="en"?"No":"\u0644\u0627"," ");}}var Rt=(()=>{let d=class d{constructor(i,t,e,l,o,v,y,T,N,Pe,qe,Le,Me,De,Fe){this.platformId=i,this.fb=t,this.saudiCitiesService=e,this.sweetAlertService=l,this.companyService=o,this.visitPresidentService=v,this.complaintService=y,this.escalationsService=T,this.nafathService=N,this.metaService=Pe,this.titleService=qe,this.urlService=Le,this.router=Me,this.cdr=De,this.elmService=Fe,this.en="ar",this.isSmallScreen=!1,this.hasMetRelevantParty=!1,this.presentOfRelevantParty=!1,this.agreementChecked=!1,this.dataAccuracyChecked=!1,this.onOthers=!1,this.title=this.en==="en"?"Request an Appointment with the President of the Saudi Water Authority ":"\u0637\u0644\u0628 \u0645\u0648\u0639\u062F \u0644\u0645\u0642\u0627\u0628\u0644\u0629 \u0645\u0639\u0627\u0644\u064A \u0631\u0626\u064A\u0633 \u0627\u0644\u0647\u064A\u0626\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629 \u0644\u0644\u0645\u064A\u0627\u0647 ",this.showLogo=!1,this.headerContent={en:"Contact the President",ar:"\u0627\u0644\u062A\u0648\u0627\u0635\u0644 \u0647\u0648 \u0631\u0643\u064A\u0632\u0629 \u0623\u0639\u0645\u0627\u0644\u0646\u0627\u060C \u0648\u0646\u0633\u0639\u0649 \u062F\u0627\u0626\u0645\u064B\u0627 \u0625\u0644\u0649 \u0627\u0644\u0627\u0631\u062A\u0642\u0627\u0621 \u0628\u062C\u0648\u062F\u0629 \u0622\u0644\u064A\u0627\u062A \u0627\u0644\u062A\u0648\u0627\u0635\u0644 \u0645\u0639 \u0627\u0644\u0645\u0633\u062A\u0641\u064A\u062F\u064A\u0646 \u0641\u064A \u0642\u0637\u0627\u0639 \u0627\u0644\u0645\u064A\u0627\u0647\u060C \u0648\u0644\u062A\u0639\u0632\u064A\u0632 \u0627\u0644\u062A\u0648\u0627\u0635\u0644\u060C \u062A\u0645 \u0625\u062A\u0627\u062D\u0629 \u062E\u062F\u0645\u0629 \u0645\u0642\u0627\u0628\u0644\u0629 \u0645\u0639\u0627\u0644\u064A \u0631\u0626\u064A\u0633 \u0627\u0644\u0647\u064A\u0626\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629 \u0644\u0644\u0645\u064A\u0627\u0647\u060C \u062D\u0631\u0635\u064B\u0627 \u0639\u0644\u0649 \u062A\u0644\u0642\u064A \u0627\u0633\u062A\u0641\u0633\u0627\u0631\u0627\u062A\u0643\u0645 \u0648\u0627\u0642\u062A\u0631\u0627\u062D\u0627\u062A\u0643\u0645 \u0628\u0634\u0643\u0644 \u0645\u0628\u0627\u0634\u0631."},this.isBodyOverlapped=!0,this.language="ar",this.previousRoutes=[{title:{en:"Main Page",ar:" \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629"},link:{path:"/"}}
1,{title:{en:"Contact Us",ar:" \u062A\u0648\u0627\u0635\u0644 \u0645\u0639\u0646\u0627"}},{title:{en:"Contact the President",ar:"\u062A\u0648\u0627\u0635\u0644 \u0645\u0639 \u0645\u0639\u0627\u0644\u064A \u0627\u0644\u0631\u0626\u064A\u0633"},link:{path:"/request-visit"}}],this.pageName={en:"Request an Appointment with the President of the Saudi Water Authority ",ar:"\u0637\u0644\u0628 \u0645\u0648\u0639\u062F \u0644\u0645\u0642\u0627\u0628\u0644\u0629 \u0645\u0639\u0627\u0644\u064A \u0631\u0626\u064A\u0633 \u0627\u0644\u0647\u064A\u0626\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629 \u0644\u0644\u0645\u064A\u0627\u0647 "},this.serviceData=[],this.filterdService=[],this.visitType="On-Site",this.provinces=[],this.cities=[],this.showOnBehalf=!1,this.companies=[],this.requestType="",this.requestFilePath="",this.meetingType="",this.meetingAddress="",this.minutesOfMeeting="",this.meetingInvitations="",this.meetingLink="",this.requestTypeOptions=[{value:"Suggestion",label:this.en==="en"?"Suggestion Visit Request":"\u0637\u0644\u0628 \u0645\u0642\u0627\u0628\u0644\u0629 \u0644\u062A\u0642\u062F\u064A\u0645 \u0625\u0642\u062A\u0631\u0627\u062D"},{value:"Complaint",label:this.en==="en"?"Complaint Visit Request":"\u0637\u0644\u0628 \u0645\u0642\u0627\u0628\u0644\u0629 \u0644\u062A\u0642\u062F\u064A\u0645 \u0634\u0643\u0648\u0649"}],this.visitTypeOptions=[{value:"In-Person",label:this.en==="en"?"President Office (Riyadh)":"\u0645\u0643\u062A\u0628 \u0627\u0644\u0631\u0626\u064A\u0633 (\u0627\u0644\u0631\u064A\u0627\u0636)"},{value:"Online",label:this.en==="en"?"Online (Virtual Meeting)":"\u0639\u0628\u0631 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A (\u0627\u062C\u062A\u0645\u0627\u0639 \u0639\u0628\u0631 \u0627\u0644\u0627\u062A\u0635\u0627\u0644 \u0627\u0644\u0645\u0631\u0626\u064A)"}],this.minLength=null,this.maxLength=null,this.selectValidation=null,this.excaxt=null,this.destroy$=new I(),this.idInputSubject=new I(),this.phoneInputSubject=new I(),this.userComplaintsOptions=[],this.userComplaints=[],this.complaintList=[],this.form=this.fb.group({requestNumber:[0],requestType:[""],requestStatus:["Under Review "],requestSubject:[""],requestMessage:[""],requestFilePath:[""],requestFile:[void 0],beneficiaryFirstName:[""],beneficiaryLastName:[""],beneficiaryIdentityNumber:[""],beneficiaryMobileNumber:[""],beneficiaryRegion:[""],beneficiaryCity:[""],onBehalf:[!1],onBehalfIdentityNumber:[void 0],onBehalfMobileNumber:[void 0],onOther:[!1],complaintId:[""],complainRelatedAuthorityName:[""],complainRelatedAuthorityComplaintNumber:[void 0],complainRelatedAuthorityMeetingHeld:[!1],complainRelatedAuthorityPreferPresence:[!1],meetingType:[""],meetingAddress:[""],minutesOfMeeting:[""],meetingInvitations:[""],meetingLink:[""],agreement:[!1],certifyData:[!1]});}ngOnInit(){this.loadLocations(),this.loadCompanies(),this.setupProvinceChangeListener(),this.setupOnBehalfChangeListener(),this.setupComplaintFetchListener(),this.form.get("complainRelatedAuthorityName")?.disable(),this.requestType="Suggestion",this.meetingType="In-Person",this.setMetaTags();}setupComplaintFetchListener(){let i=this.form.get("beneficiaryIdentityNumber"),t=this.form.get("beneficiaryMobileNumber");i&&t&&B(i.valueChanges.pipe(V(e=>e&&e.length===10),P(500)),t.valueChanges.pipe(V(e=>e&&e.length===10),P(500))).pipe(U(),$(this.destroy$)).subscribe(()=>{if(this.canFetchComplaints()){let e=this.form.get("beneficiaryIdentityNumber")?.value,l=this.form.get("beneficiaryMobileNumber")?.value;this.fetchUserComplaints(e,l);}else this.complaintList=[];});}navigateTo(i){this.router.navigate([i.path],{fragment:i.fragment});}onFileChange(i,t){if(i.addedFiles.length>0){let e=i.addedFiles[0];this.form.patchValue({[t]:e}),this.form.get(t)?.updateValueAndValidity();}}onSubmit(){if(this.showLogo=!0,this.form.valid){this.requestType=="Suggestion"?this.form.get("requestType")?.patchValue("Suggestion"):this.requestType=="Complaint"&&this.form.get("requestType")?.patchValue("Complaint"),this.form.get("requestStatus")?.patchValue("Under Review");let i=this.form.get("beneficiaryMobileNumber")?.value,t=this.form.get("beneficiaryIdentityNumber")?.value,e=this.form.get("beneficiaryCity")?.value,l=this.saudiCitiesService.getCityByCode(e),o=this.form.get("beneficiaryRegion")?.value,v=this.saudiCitiesService.getProvinceByCode(o),y=this.form.get("complainRelatedAuthorityName")?.value;y=="1"?this.form.get("complainRelatedAuthorityName")?.patchValue("National Water Company"):y=="2"?this.form.get("complainRelatedAuthorityName")?.patchValue("Marafiq Company"):y=="3"&&this.form.get("complainRelatedAuthorityName")?.patchValue("Others"),this.meetingType=="In-Person"?this.form.get("meetingType")?.patchValue("In-Person"):this.meetingType=="Online"&&this.form.get("meetingType")?.patchValue("Online"),this.form.get("meetingAddress")?.patchValue("Prince Muhammad Ibn Abd Al Aziz street, Al Olaya, Riyadh 12213");let T=j({},this.form.value);this.showLogo=!0,this.nafathService.startNafathAuthenticationV2(t).pipe(W(1),z(()=>{this.showLogo=!1;})).subscribe(N=>{switch(N){case"COMPLETED":console.log("Nafath verification completed ---"),this.submitRequest(T);break;case"CANCELLED":console.log("2 ---"),this.onAuthenticationCancelled();break;case"EXPIRED":case"NOTFOUND":case"ERROR":console.log("kjhgfghjk"),this.onAuthenticationFailure(N);break;default:console.log("4 ---");break;}});}}submitRequest(i){this.visitPresidentService.addNewRequest(i).subscribe(t=>{console.log("Request created successfully:",t),this.resetForm(),this.sweetAlertService.successWithRating(this.en=="en"?"Request Submitted Successfully":"\u062A\u0645 \u062A\u0642\u062F\u064A\u0645 \u0627\u0644\u0637\u0644\u0628 \u0628\u0646\u062C\u0627\u062D",this.en=="en"?`Your visit request #R${t.requestNumber} has been received. We will contact you shortly with further details.`:`\u062A\u0645 \u0627\u0633\u062A\u0644\u0627\u0645 \u0637\u0644\u0628 \u0627\u0644\u0632\u064A\u0627\u0631\u0629 \u0631\u0642\u0645 #R${t.requestNumber}
1 \u0627\u0644\u062E\u0627\u0635 \u0628\u0643. \u0633\u0646\u062A\u0648\u0627\u0635\u0644 \u0645\u0639\u0643 \u0642\u0631\u064A\u0628\u064B\u0627 \u0628\u0645\u0632\u064A\u062F \u0645\u0646 \u0627\u0644\u062A\u0641\u0627\u0635\u064A\u0644.`);},t=>{console.error("Error creating request:",t),this.handleError(t),this.showLogo=!1;});}handleError(i){let t=i.error;i.status===401?this.sweetAlertService.error(this.en=="en"?"Unauthorized":"\u063A\u064A\u0631 \u0645\u0635\u0631\u062D",this.en=="en"?"A new request cannot be submitted within 30 days of the previous request, except in certain cases.":"\u0644\u0627 \u064A\u0645\u0643\u0646\u0643 \u062A\u0642\u062F\u064A\u0645 \u0637\u0644\u0628 \u062C\u062F\u064A\u062F\u060C \u064A\u0645\u0643\u0646\u0643 \u062A\u0642\u062F\u064A\u0645 \u0637\u0644\u0628 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649 \u0628\u0639\u062F \u0645\u0636\u064A 30 \u064A\u0648\u0645 \u0645\u0646 \u0627\u0644\u0637\u0644\u0628 \u0627\u0644\u0633\u0627\u0628\u0642.",this.en=="en"?"OK":"\u0645\u0648\u0627\u0641\u0642"):t&&t.title?this.sweetAlertService.error(t.title,t.detail,this.en==="en"?"OK":"\u0645\u0648\u0627\u0641\u0642"):this.sweetAlertService.error(this.en=="en"?"Error":"\u062E\u0637\u0623",this.en=="en"?"An error occurred while submitting your request. Please try again later.":"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u062A\u0642\u062F\u064A\u0645 \u0637\u0644\u0628\u0643. \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649 \u0644\u0627\u062D\u0642\u064B\u0627.",this.en=="en"?"OK":"\u0645\u0648\u0627\u0641\u0642");}resetForm(){this.form.reset(),this.form.patchValue({agreement:!1,certifyData:!1}),this.agreementChecked=!1,this.dataAccuracyChecked=!1;}loadAllRequests(){this.visitPresidentService.getAllRequests().subscribe(i=>{},i=>{});}loadLocations(){let i=this.saudiCitiesService.getProvinces();this.provinces=i.map(e=>({value:e.code,label:this.en==="en"?e.nameEn:e.nameAr}));let t=this.saudiCitiesService.getAllCities();this.cities=t.map(e=>({value:e.code,label:this.en==="en"?e.nameEn:e.nameAr}));}loadCompanies(){let i=this.companyService.getAllCompanies();this.companies=i.map(e=>({value:e.id,label:this.en==="en"?e.nameEn:e.nameAr}));let t=this.saudiCitiesService.getAllCities();this.cities=t.map(e=>({value:e.code,label:this.en==="en"?e.nameEn:e.nameAr}));}setupProvinceChangeListener(){this.form.get("beneficiaryRegion")?.valueChanges.subscribe(i=>{i!==this.previousProvinceCode&&(this.updateCities(i),this.previousProvinceCode=i);});}setupOnBehalfChangeListener(){this.form.get("onBehalf")?.valueChanges.subscribe(i=>{["onBehalfIdentityNumber","onBehalfMobileNumber"].forEach(e=>{let l=this.form.get(e);l&&(l.setValue(""),l.setValidators(i?[A.required]:null),l.updateValueAndValidity(),l.markAsUntouched());});});}updateCities(i){this.form.get("beneficiaryCity")?.setValue("");let t=this.saudiCitiesService.getCitiesByProvince(i);this.cities=t.map(e=>({value:e.code,label:this.en==="en"?e.nameEn:e.nameAr}));}markAsTouched(){this.form.markAllAsTouched();}onInputChange(i){let t=i.target,e=t.value.replace(/[^a-zA-Z\s\u0600-\u06FF'-]/g,"");e!==t.value&&(t.value=e,this.form.get("beneficiaryFirstName")?.setValue(e));}onLastNameInputChange(i){let t=i.target,e=t.value.replace(/[^a-zA-Z\s\u0600-\u06FF'-]/g,"");e!==t.value&&(t.value=e,this.form.get("beneficiaryLasttName")?.setValue(e));}onNumberInput(i){let t=i.target;t.value=t.value.replace(/[^0-9]/g,""),this.form.get("beneficiaryMobileNumber")?.setValue(t.value);}onIdNumberInput(i){let t=i.target;t.value=t.value.replace(/[^0-9]/g,""),this.form.get("beneficiaryIdentityNumber")?.setValue(t.value);}onBehalIdNumberInput(i){let t=i.target;t.value=t.value.replace(/[^0-9]/g,""),this.form.get("onBehalfIdentityNumber")?.setValue(t.value);}onBehalNumberInput(i){let t=i.target;t.value=t.value.replace(/[^0-9]/g,""),this.form.get("onBehalfMobileNumber")?.setValue(t.value);}check(){}onAuthenticationSuccess(){console.log("Authentication successful");}onAuthenticationCancelled(){console.log("Authentication cancelled by user");}onAuthenticationFailure(i){console.log("Authentication failed:",i),this.handleError(i);}shouldShowComplaintNumber(){let i=this.form.get("complainRelatedAuthorityName")?.value;return this.onOthers=!0,i!=3;}setMetaTags(){let i=this.en==="en"?"SWA | Request an Appointment with the President of SWA":"\u0627\u0644\u0647\u064A\u0626\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629 \u0644\u0644\u0645\u064A\u0627\u0647 | \u0637\u0644\u0628 \u0645\u0648\u0639\u062F \u0644\u0645\u0642\u0627\u0628\u0644\u0629 \u0645\u0639\u0627\u0644\u064A \u0631\u0626\u064A\u0633 \u0627\u0644\u0647\u064A\u0626\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629 \u0644\u0644\u0645\u064A\u0627\u0647",t=this.en==="en"?"Request an Appointment with the President of the Saudi Water Authority":"\u0637\u0644\u0628 \u0645\u0648\u0639\u062F \u0644\u0645\u0642\u0627\u0628\u0644\u0629 \u0645\u0639\u0627\u0644\u064A \u0631\u0626\u064A\u0633 \u0627\u0644\u0647\u064A\u0626\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629 \u0644\u0644\u0645\u064A\u0627\u0647",e=this.urlService.urlWithoutLang+"assets/images/default_meta_image.png";this.titleService.setTitle(i),this.metaService.updateTag({name:"keywords",content:this.en==="en"?"Saudi Water Authority, SWA, Appointment with the President of the Saudi Water Authority":"\u0627\u0644\u0647\u064A\u0626\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629 \u0644\u0644\u0645\u064A\u0627\u0647, SWA, \u0645\u0642\u0627\u0628\u0644\u0629 \u0645\u0639\u0627\u0644\u064A \u0631\u0626\u064A\u0633 \u0627\u0644\u0647\u064A\u0626\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629 \u0644\u0644\u0645\u064A\u0627\u0647"}),this.metaService.updateTag({name:"description",content:t}),this.metaService.updateTag({property:"og:type",content:"website"}),this.metaService.updateTag({property:"og:url",content:this.urlService.fullUrl}),this.metaService.updateTag({property:"og:title",content:i}),this.metaService.updateTag({property:"og:description",content:t}),this.metaService.updateTag({property:"og:image",content:e}),this.metaService.updateTag({name:"twitter:card",content:"summary_large_image"}),this.metaService.updateTag({name:"twitter:url",content:this.urlService.fullUrl}),this.metaService.updateTag({name:"twitter:title",content:t}),this.metaService.updateTag({name:"twitter:description",content:t}),this.metaService.updateTag({name:"twitter:image",content:e});}getCustomErrorMsg(i,t){return this.selectValidation==1?this.en==="ar"?` \u0627\u0644\u0631\u0642\u0645 \u064A\u062C\u0628 \u0627\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 ${t}  \u062E\u0627\u0646\u0627\u062A`:`The number must be ${t} digits`:this.selectValidation==2?this.en==="ar"?`\u0627\u0644\u0631\u0642\u0645 \u064A\u062C\u0628 \u0627\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 ${i} \u0627\u0644\u0649 ${t} \u062E\u0627\u0646\u0629`:`The number must be between ${i} and ${t} digits`:"";}
1whenChoiceNationalWaterCompany(i){i==1?(this.maxLength=10,this.minLength=10,this.excaxt=10,this.selectValidation=1):i==2?(this.maxLength=12,this.minLength=5,this.excaxt=null,this.selectValidation=2):i==3&&(this.maxLength=null,this.minLength=null,this.selectValidation=3,this.excaxt=null);let t=this.form.get("complainRelatedAuthorityComplaintNumber");if(t){let e=[];this.minLength!=null&&e.push(A.minLength(this.minLength)),this.maxLength!=null&&e.push(A.maxLength(this.maxLength)),i!=3&&e.push(A.required),t.setValidators(e),t.updateValueAndValidity();}}canFetchComplaints(){let i=this.form.get("beneficiaryIdentityNumber")?.value,t=this.form.get("beneficiaryMobileNumber")?.value;return i&&i.length===10&&t&&t.length===10;}handleCheck(){if(this.canFetchComplaints()){let i=this.form.get("beneficiaryIdentityNumber")?.value,t=this.form.get("beneficiaryMobileNumber")?.value;this.idInputSubject.next(i),this.fetchUserComplaints(i,t);}else this.complaintList=[];}fetchUserComplaints(i,t){let e=this.elmService.formatMobileNumber(t);this.elmService.getByIdAndPhone(e,i).subscribe({next:l=>{this.complaintList=l.complaints.map(o=>{let v=this.language==="en"||this.en==="en"?o.englishServiceName:o.arabicServiceName,y=v.length>15?v.substring(0,15)+"...":v;return{value:o.ticketNo,label:`${o.ticketNo} - ${y}`,creationDate:o.createdDate,disabled:!1,disabledMsg:""};}),console.log("Complaints loaded:",this.complaintList);},error:l=>{this.complaintList=[],console.error("Error fetching complaints:",l);}});}onComplaintSelection(i){let t=this.complaintList.find(e=>e.value===i);t&&this.form.patchValue({complainRelatedAuthorityName:"1",complainRelatedAuthorityComplaintNumber:t.value});}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete();}};d.ɵfac=function(t){return new(t||d)(m(H),m(ce),m(Re),m(Se),m(Ie),m(Te),m(Ee),m(xe),m(Ne),m(J),m(Q),m(fe),m(ee),m(K),m(Ve));},d.ɵcmp=G({type:d,selectors:[["app-elm-dga-visit-president",8,"component"]],standalone:!0,features:[Y],attrs:ke,decls:38,vars:76,consts:[[4,"ngIf"],[3,"previousRoutes","pageName","language","isBodyOverlapped","headerContent"],[1,""],[1,"flex","justify-center","w-full","my-6","p-4"],[3,"selectedValueChange","options","selectedValue"],[1,"lg:col-span-2"],[3,"ngSubmit","formGroup"],[1,"grid","grid-cols-1","lg:grid-cols-2","gap-6","my-6"],[3,"input","formControl","label","placeholder","isRequired"],[3,"input","change","formControl","label","placeholder","isRequired","exactLength","isNumericOnly","customErrorMsg","startsWith"],[3,"input","formControl","type","label","placeholder","isRequired","startsWith","exactLength","isNumericOnly","customErrorMsg"],["formControlName","beneficiaryRegion",3,"label","options","placeholder","isRequired"],["formControlName","beneficiaryCity",3,"label","options","placeholder","isRequired",4,"ngIf"],[1,"lg:col-span-2","text-center","mt-10"],[1,"text-[#1B8354]","font-bold","text-[18px]","w-full","text-center","leading-[14px]","mb-10"],[1,"flex","flex-col","lg:col-span-2","gap-2"],["class","lg:col-span-2 ","formControlName","complaintId",3,"label","options","placeholder","isRequired","ngModelChange",4,"ngIf"],["class","flex lg:col-span-2  items-center gap-2 text-[#b52218]",4,"ngIf"],["class","flex flex-col lg:col-span-2  gap-2 text-[#b52218]",4,"ngIf"],["formControlName","complainRelatedAuthorityName",3,"label","options","placeholder","isDisabled","ngModelChange",4,"ngIf"],[3,"formControl","isNumericOnly","label","placeholder","isDisabled","customErrorMsg","maxLength","minLength","exactLength",4,"ngIf"],["class","space-y-4",4,"ngIf"],[1,"lg:col-span-2",3,"formControl","label","placeholder","isRequired"],[1,"lg:col-span-2",3,"formControl","type","label","placeholder","description","isRequired"],[1,"lg:col-span-2",3,"control","label","maxFileSize","allowedExtensions","description"],[1,"mt-4"],[1,"flex","flex-col","gap-5","lg:col-span-2"],[1,"lg:col-span-2",3,"ngModelChange","ngModel","ngModelOptions","label","isRequiredTrue","customErrorMessage"],["type","submit",1,"text-white","bg-black","py-2","px-4","rounded-md","w-full","md:w-auto","my-4","disabled:bg-[#e5e7eb]","disabled:text-[#9da4ae]",3,"mouseenter","disabled"],["formControlName","beneficiaryCity",3,"label","options","placeholder","isRequired"],["formControlName","complaintId",1,"lg:col-span-2",3,"ngModelChange","label","options","placeholder","isRequired"],[1,"flex","lg:col-span-2","items-center","gap-2","text-[#b52218]"],["aria-hidden","true","focusable","false","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"text-sm"],[1,"flex","flex-col","lg:col-span-2","gap-2","text-[#b52218]"],[1,"flex","items-center","gap-2"],[1,"curs
1or-pointer","underline","text-sm","flex","items-center","gap-2","transition-all","duration-200",3,"routerLink"],["aria-hidden","true","focusable","false","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 19l9 2-9-18-9 18 9-2zm0 0v-8"],["formControlName","complainRelatedAuthorityName",3,"ngModelChange","label","options","placeholder","isDisabled"],[3,"formControl","isNumericOnly","label","placeholder","isDisabled","customErrorMsg","maxLength","minLength","exactLength"],[1,"space-y-4"],[1,"text-[13px]","font-medium","leading-[14px]","text-gray-700","mb-2","flex","items-center"],[1,"flex","space-x-4","rtl:space-x-reverse"],[1,"inline-flex","items-center"],["type","radio","formControlName","complainRelatedAuthorityMeetingHeld","name","complainRelatedAuthorityMeetingHeld",1,"form-radio","h-3","w-3","text-green-600","ring-green-500","focus:ring-green-500","transition","duration-50","ease-in-out",3,"value"],[1,"ml-2","rtl:mr-2","mt-2","text-[13px]","font-medium","leading-[14px]","text-gray-700","mb-2","flex","items-center"],["type","radio","formControlName","complainRelatedAuthorityMeetingHeld","name","complainRelatedAuthorityMeetingHeld","checked","",1,"form-radio","h-3","w-3","text-green-600","ring-green-500","focus:ring-green-500","transition","duration-50","ease-in-out",3,"value"],["type","radio","formControlName","complainRelatedAuthorityPreferPresence","name","complainRelatedAuthorityPreferPresence",1,"form-radio","h-3","w-3","text-green-600","ring-green-500","focus:ring-green-500","transition","duration-50","ease-in-out",3,"value"],["type","radio","formControlName","complainRelatedAuthorityPreferPresence","name","complainRelatedAuthorityPreferPresence","checked","",1,"form-radio","h-3","w-3","text-green-600","ring-green-500","focus:ring-green-500","transition","duration-50","ease-in-out",3,"value"]],template:function(t,e){if(t&1&&(b(0,Ue,2,0,"div",0),r(1,"app-dga-page-container",1)(2,"section")(3,"div",2)(4,"div",3)(5,"app-dga-toggle-button-group",4),x("selectedValueChange",function(o){return E(e.requestType,o)||(e.requestType=o),o;}),p()(),c(6,"hr",5),r(7,"form",6),C("ngSubmit",function(){return e.onSubmit();}),r(8,"div",7)(9,"app-text-input-modern-2",8),C("input",function(o){return e.onInputChange(o);}),p(),r(10,"app-text-input-modern-2",8),C("input",function(o){return e.onLastNameInputChange(o);}),p(),r(11,"app-text-input-modern-2",9),C("input",function(o){return e.onIdNumberInput(o);})("change",function(){return e.handleCheck();}),p(),r(12,"app-text-input-modern-2",10),C("input",function(o){return e.onNumberInput(o);}),p(),c(13,"app-dropdown-input",11),b(14,ze,1,4,"app-dropdown-input",12),r(15,"div",13)(16,"p",14),h(17),p(),r(18,"app-dga-toggle-button-group",4),x("selectedValueChange",function(o){return E(e.meetingType,o)||(e.meetingType=o),o;}),p()()(),c(19,"hr",5),r(20,"div",7)(21,"div",15),b(22,$e,1,4,"app-dropdown-input",16)(23,Ge,5,1,"div",17)(24,He,10,4,"div",18),p(),b(25,Ye,1,4,"app-dropdown-input",19)(26,Ke,1,9,"app-text-input-modern-2",20)(27,Ze,12,5,"div",21)(28,Xe,12,5,"div",21),c(29,"app-text-input-modern-2",22)(30,"app-text-input-modern-2",23)(31,"app-file-dropzone",24),p(),c(32,"hr",5),r(33,"div",25)(34,"div",26)(35,"app-checkbox-input",27),x("ngModelChange",function(o){return E(e.dataAccuracyChecked,o)||(e.dataAccuracyChecked=o),o;}),p()(),r(36,"button",28),C("mouseenter",function(){return e.check();}),h(37),p()()()()()()),t&2){let l,o,v;a("ngIf",e.showLogo),n(),a("previousRoutes",e.previousRoutes)("pageName",e.pageName)("language",e.language)("isBodyOverlapped",!0)("headerContent",e.headerContent),n(4),a("options",e.requestTypeOptions),R("selectedValue",e.requestType),n(2),a("formGroup",e.form),n(2),a("formControl",e.form.get("beneficiaryFirstName"))("label",e.en=="en"?"First Name":"\u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0623\u0648\u0644")("placeholder",e.en=="en"?"First Name":"\u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0623\u0648\u0644")("isRequired",!0),n(),a("formControl",e.form.get("beneficiaryLastName"))("label",e.en=="en"?"Last Name":"\u0627\u0633\u0645 \u0627\u0644\u0639\u0627\u0626\u0644\u0629")("placeholder",e.en=="en"?"Last Name":"\u0627\u0633\u0645 \u0627\u0644\u0639\u0627\u0626\u0644\u0629")("isRequired",!0),n(),a("formControl",e.form.get("beneficiaryIdentityNumber"))("label",e.en=="en"?"National ID/Iqama":"\u0631\u0642\u0645 \u0627\u0644\u0647\u0648\u064A\u0629 / \u0627\u0644\u0625\u0642\u0627\u0645\u0629")("placeholder",e.en=="en"?"109*******":"\u0627\u062F\u062E\u0644 \u0631\u0642\u0645 \u0627\u0644\u0647\u0648\u064A\u0629")("isRequired",!0)("exactLength",10)("isNumericOnly",!0)("customErrorMsg",e.en==="en"?"Please enter a valid 10-digit number starting with 1 (for Saudi ID) or 2 (for Iqama)":"\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 \u0631\u0642\u0645 \u0647\u0648\u064A\u0629 \u0635\u062D\u064A\u062D \u0645\u0643\u0648\u0651\u0646 \u0645\u0646 10 \u0623\u0631\u0642\u0627\u0645\u060C \u0648\u064A\u0628\u062F\u0623 \u0628\u0640 1 \u0644\u0644\u0647\u0648\u064A\u0629 \u0627\u0644\u0648\u0637\u0646\u064A\u0629 \u0623\u0648 2 \u0644\u0644\u0625\u0642\u0627\u0645\u0629.")("startsWith",_(73,Oe)),n(),a("formControl",e.form.get("beneficiaryMobileNumber"))("type","tel")("type","tel")("label",e.en=="en"?"Phone Number":"\u0631\u0642\u0645 \u0627\u0644\u062C\u0648\u0627\u0644")("placeholder",(e.en=="en","05********"))("isRequired",!0)("startsWith","05")("exactLength",10)("isNumericOnly",!0)("customErrorMsg",e.en=="en"?"Invalid phone number":"\u0631\u0642\u0645 \u0627\u0644\u062C\u0648\u0627\u0644 \u063A\u064A\u0631 \u0635\u062D\u064A\u062D")("customErrorMsg",e.language==="en"?"Please enter a valid Saudi mobile number":"\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 \u0631\u0642\u0645 \u062C\u0648\u0627\u0644 \u0633\u0639\u0648\u062F\u064A \u0635\u062D\u064A\u062D"),n(),a("label",e.en=="en"?"Region":"\u0627\u0644\u0645\u0646\u0637\u0642\u0629 ")("options",e.provinces)("placeholder",e.en=="en"?"Select Region":"\u0627\u062E\u062A\u0631 \u0627\u0644\u0645\u0646\u0637\u0642\u0629 ")("isRequired",!0),n(),a("ngIf",(l=e.form.get("beneficiaryRegion"))==null?null:l.value),n(3),g(" ",e.en=="en"?"Visit Location":"\u0645\u0643\u0627\u0646 \u0627\u0644\u0645\u0642\u0627\u0628\u0644\u0629"," "),n(),a("options",e.visitTypeOptions),R("selectedValue",e.meetingType),n(4),a("ngIf",e.requestType=="Complaint"),n(),a("ngIf",!((o=e.form.get("beneficiaryIdentityNumber"))!=null&&o.value)&&e.requestType==="Complaint"),n(),a("ngIf",e.complaintList.length==0&&((v=e.form.get("beneficiaryIdentityNumber"))==null?null:v.value)&&e.requestType=="Complaint"),n(),a("ngIf",e.requestType=="Complaint"),n(),a("ngIf",e.shouldShowComplaintNumber()&&e.requestType=="Complaint"),n(),a("ngIf",e.shouldShowComplaintNumber()&&e.requestType=="Complaint"),n(),a("ngIf",e.shouldShowComplaintNumber()&&e.requestType=="Complaint"),n(),a("formControl",e.form.get("requestSubject"))("label",e.en=="en"?"Visit Subject":"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0645\u0642\u0627\u0628\u0644\u0629")("placeholder",e.en=="en"?"Subject":"\u0627\u0644\u0639\u0646\u0648\u0627\u0646")("isRequired",!0),n(),a("formControl",e.form.get("requestMessage"))("type","textarea")("label",e.en=="en"?"Visit Purpose":"\u0645\u0648\u0636\u0648\u0639 \u0627\u0644\u0645\u0642\u0627\u0628\u0644\u0629")("placeholder",e.en=="en"?"Message...":"\u0645\u0648\u062C\u0632 \u0645\u0648\u0636\u0648\u0639 \u0627\u0644\u0645\u0642\u0627\u0628\u0644\u0629...")("description",e.en=="en"?"Please provide a brief description of the interview subject":"\u064A\u0631\u062C\u0649 \u062A\u0642\u062F\u064A\u0645 \u0648\u0635\u0641 \u0645\u0648\u062C\u0632 \u0644\u0645\u0648\u0636\u0648\u0639 \u0627\u0644\u0645\u0642\u0627\u0628\u0644\u0629")("isRequired",!0),n(),a("control",e.form.get("requestFile"))("label",e.en=="en"?"Upload File":"\u0625\u0631\u0641\u0627\u0642 \u0645\u0644\u0641")("maxFileSize",2*1024*1024)("allowedExtensions",_(74,
1je))("description",e.en=="en"?"Combine all your files in 1 PDF document.":"\u0642\u0645 \u0628\u062F\u0645\u062C \u062C\u0645\u064A\u0639 \u0645\u0644\u0641\u0627\u062A\u0643 \u0641\u064A \u0645\u0633\u062A\u0646\u062F PDF \u0648\u0627\u062D\u062F."),n(4),R("ngModel",e.dataAccuracyChecked),a("ngModelOptions",_(75,Be))("label",e.en=="en"?"I declare that all information provided is true and accurate, and I bear full responsibility for the accuracy of this data":"\u0623\u0642\u0631 \u0628\u0623\u0646 \u062C\u0645\u064A\u0639 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0648\u0627\u0631\u062F\u0629 \u0635\u062D\u064A\u062D\u0629 \u0648\u062F\u0642\u064A\u0642\u0629\u060C \u0648\u0623\u062A\u062D\u0645\u0644 \u0643\u0627\u0645\u0644 \u0627\u0644\u0645\u0633\u0624\u0648\u0644\u064A\u0629 \u0639\u0646 \u0635\u062D\u0629 \u0647\u0630\u0647 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A")("isRequiredTrue",!1)("customErrorMessage",e.en=="en"?"You must confirm that all data is accurate":"\u064A\u062C\u0628 \u0639\u0644\u064A\u0643 \u0627\u0644\u062A\u0623\u0643\u064A\u062F \u0639\u0644\u0649 \u0623\u0646 \u062C\u0645\u064A\u0639 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u062F\u0642\u064A\u0642\u0629"),n(),a("disabled",e.form.invalid||e.agreementChecked||!e.dataAccuracyChecked),n(),g(" ",e.en=="en"?"Send Request":"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0637\u0644\u0628"," ");}},dependencies:[X,Z,ie,te,ve,ge,Ae,Ce,we,_e,de,oe,ne,se,ue,ae,re,he,le,pe,me,be],data:{animation:[ye("fadeAnimation",[k("void",S({opacity:0})),k("*",S({opacity:1})),O(":enter",[F(".5s ease-in",S({opacity:1}))]),O(":leave",[F(".5s ease-out",S({opacity:0}))])])]}});let s=d;return s;})();export{Rt as ElmDgaVisitPresidentComponentComponent};/**i18n:34af3656f0562cb6a33cf22ea7254dacf3d3f980c546b3cc51fddd03c4df9e28*/

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.