1"use strict";(self.webpackChunkDCP_Web=self.webpackChunkDCP_Web||[]).push([["default-libs_general-pages_src_lib_online-services_services_online-service-request_service_ts"],{15329:(U,L,i)=>{i.d(L,{u:()=>v});var y=i(75835),N=i(23214),S=i(73165);let v=(()=>{class h{http;context=(0,y.mb)();constructor(l){this.http=l}get(l,A){return this.http.get(l,{...A,context:this.context,withCredentials:A?.withCredentials??!1})}post(l,A,r){return this.http.post(l,A,{...r,context:this.context,withCredentials:r?.withCredentials??!1})}put(l,A,r){return this.http.put(l,A,{...r,context:this.context,withCredentials:r?.withCredentials??!1})}patch(l,A,r){return this.http.patch(l,A,{...r,context:this.context,withCredentials:r?.withCredentials??!1})}delete(l,A){return this.http.delete(l,{...A,context:this.context,withCredentials:A?.withCredentials??!1})}head(l,A){return this.http.head(l,{...A,context:this.context})}options(l,A){return this.http.options(l,{...A,context:this.context})}request(l,A,r){return this.http.request(l,A,{...r,context:this.context})}static \u0275fac=function(A){return new(A||h)(N.KVO(S.Qq))};static \u0275prov=N.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},27205:(U,L,i)=>{i.d(L,{Jm:()=>m,hw:()=>p});const p=[{id:183,Type:"request",ServiceType:"Motor",Area:"Digital",SubArea:"Al Rajhi Takaful Website",note:null,Area_ar:"\u0627\u0644\u062e\u062f\u0645\u0627\u062a \u0627\u0644\u0631\u0642\u0645\u064a\u0629",SubArea_ar:"\u0645\u0648\u0642\u0639 \u062a\u0643\u0627\u0641\u0644 \u0627\u0644\u0631\u0627\u062c\u062d\u064a",desc:null,desc_ar:null,ServiceType_ar:"\u0645\u0631\u0643\u0628\u0627\u062a",CRMType:"a.Motor",CRMArea:"Digital",CRMSubArea:"Delay in Policy Issuance DCP",AreaCategory:null,AreaCategory_ar:null,status:!0,classificationCode:"ART_request_12469"},{id:189,Type:"request",ServiceType:"Motor",Area:"Digital",SubArea:"Al Rajhi Takaful Mobile App",note:null,Area_ar:"\u0627\u0644\u062e\u062f\u0645\u0627\u062a \u0627\u0644\u0631\u0642\u0645\u064a\u0629",SubArea_ar:"\u062a\u0637\u0628\u064a\u0642 \u062a\u0643\u0627\u0641\u0644 \u0627\u0644\u0631\u0627\u062c\u062d\u064a",desc:null,desc_ar:null,ServiceType_ar:"\u0645\u0631\u0643\u0628\u0627\u062a",CRMType:"a.Motor",CRMArea:"Digital",CRMSubArea:"Delay in Policy Issuance App",AreaCategory:null,AreaCategory_ar:null,status:!0,classificationCode:"ART_request_12466"},{id:193,Type:"request",ServiceType:"Motor",Area:"Digital",SubArea:"Al Rajhi Bank",note:null,Area_ar:"\u0627\u0644\u062e\u062f\u0645\u0627\u062a \u0627\u0644\u0631\u0642\u0645\u064a\u0629",SubArea_ar:"\u0628\u0646\u0643 \u0627\u0644\u0631\u0627\u062c\u062d\u064a",desc:null,desc_ar:null,ServiceType_ar:"\u0645\u0631\u0643\u0628\u0627\u062a",CRMType:"a.Motor",CRMArea:"Digital",CRMSubArea:"Delay in Policy issuance-ARB",AreaCategory:null,AreaCategory_ar:null,status:!0,classificationCode:"ART_request_12467"},{id:185,Type:"request",ServiceType:"Motor",Area:"Digital",SubArea:"Tameeni",note:null,Area_ar:"\u0627\u0644\u062e\u062f\u0645\u0627\u062a \u0627\u0644\u0631\u0642\u0645\u064a\u0629",SubArea_ar:"\u062a\u0623\u0645\u064a\u0646\u064a",desc:null,desc_ar:null,ServiceType_ar:"\u0645\u0631\u0643\u0628\u0627\u062a",CRMType:"a.Motor",CRMArea:"Digital",CRMSubArea:"Delay in Policy Issuance Tamni",AreaCategory:null,AreaCategory_ar:null,status:!0,classificationCode:"ART_request_12470"},{id:187,Type:"request",ServiceType:"Motor",Area:"Digital",SubArea:"Bcare",note:null,Area_ar:"\u0627\u0644\u062e\u062f\u0645\u0627\u062a \u0627\u0644\u0631\u0642\u0645\u064a\u0629",SubArea_ar:"\u0628\u064a \u0643\u064a\u0631",desc:null,desc_ar:null,ServiceType_ar:"\u0645\u0631\u0643\u0628\u0627\u062a",CRMType:"a.Motor",CRMArea:"Digital",CRMSubArea:"Delay in Policy Issuance Bcare",AreaCategory:null,AreaCategory_ar:null,status:!0,classificationCode:"ART_request_12468"},{id:191,Type:"request",ServiceType:"Motor",Area:"Digital",SubArea:"Tele sales",note:null,Area_ar:"\u0627\u0644\u062e\u062f\u0645\u0627\u062a \u0627\u0644\u0631\u0642\u0645\u064a\u0629",SubArea_ar:"\u0645\u0628\u064a\u0639\u0627\u062a \u0627\u0644\u0647\u0627\u062a\u0641",desc:null,desc_ar:null,ServiceType_ar:"\u0645\u0631\u0643\u0628\u0627\u062a",CRMType:"a.Motor",CRMArea:"Digital",CRMSubArea:"Delay in Policy Issuance TS",AreaCategory:null,AreaCategory_ar:null,status:!0,classificationCode:"ART_request_12471"}],m={ENDPOINTS:{SERVICE_REQUESTS_MAPPING:"/v1/serviceRequests/mapping",SERVICE_REQUESTS_FIELD:"/v1/serviceRequests/field",SERVICE_REQUESTS_ATTACHMENTS:"/v1/serviceRequests/attachments",SERVICE_REQUESTS:"/v1/serviceRequests/",SERVICE_REQUESTS_STATUS:"/v1/serviceRequests/status",SERVICE_REQUESTS_POLICY_VALIDATION:"/v1/serviceRequests/policyValidation",COMPLAINTS:"/v1/complaints",CAPTCHA_GENERATE:"/v1/captcha/generate",CAPTCHA_REFRESH:"/v1/captcha/refresh",CAPTCHA_VERIFY:"/v1/captcha/verify",UPLOAD_MULTIPLE:"/upload-multiple",UPLOAD_SERVICE_REQUESTS:"/v1/serviceRequests/upload-multiple",KSACITIES:"/ksacities",USER_INFO_BY_ID:"/BusinessProcesses/Motor/Purchase/UserInfoById",SERVICE_REQUEST_STATUS:"/service-request-status",AFTER_SALES_SERVICE_REQ_STATUS:"/after-sales/service-req-status",AFTER_SALES_USER_YAKEEN:"/inquiry/after-sales-user-yakeen",LAPSED_POLICIES:"/inquiry/lapsed-policies",AFTER_SALES_POLICY_BENEFICIARY:"/after-sales/apigee/policy-beneficiary-list",POLICIES:"/inquiry/policies",SERVICE_REQUEST_UPDATE:"/service-request/update",FILE_UPLOAD:"/file/after-sales/upload",CLAIM_QUESTION:"/service-request/question",CLAIM:"/service-request/claim",COVERAGE:"/service-request/coverage",CHECK_KYC_STATUS:"/service-request/check-kyc-status"},HEADERS:{LANGUAGE:"language"},DEFAULTS:{LANGUAGE:"en",AREA_ALL:"all",MODE_DEFAULT:1,RANDOM_DIGITS_MIN:1e9,RANDOM_DIGITS_MAX:9e9},TRANSACTION_TYPES:{SERVICE_REQUEST:"service_request"},LANGUAGES:{ENGLISH:"en",ARABIC:"ar"},SERVICE_TYPES:{INDIVIDUAL:"individual",BUSINESS:"business"},PRODUCT_CATEGORIES:{INDIVIDUAL:"Individual",BUSINESS:"Business"},STORAGE_KEYS:{SELECTED_LANG:"selectedLang",ACTIVE_PROD_TAB:"activeProdTab",PRODUCT_ICON:"productIcon",SELECTED_SERVICE_NAME:"selectedServiceName",SERVICE_REQUEST_SELECTED_PRODUCT_NAME:"serviceRequestSelectedProductName",
1SERVICE_REQUEST_SELECTED_PRODUCT_NAME_AR:"serviceRequestSelectedProductNameAR",SHOW_PENDING_REQUEST_PAGE:"showPendingRequestPage",REF_NUMBER:"refNumber",SUBMIT_REQUEST:"submitRequest",ServiceTypeProduct:"serviceTypeProduct"},IMAGES:{ALL_PRODUCTS:"./assets/all-products.svg",BUSINESS_PRODUCTS:"./assets/images/widget/[email protected]",DEATH_COVERAGE_STORAGE_KEY:"deathCoverageOnlineServicesData"},WEB_SALE_TARGET_URLS:{PERSONAL_HEALTH_DOMESTIC:{en:"https://www.alrajhitakaful.com/en/domestic-helper-insurance-policy",ar:"https://www.alrajhitakaful.com/ar/domestic-helper-insurance-policy"},PERSONAL_HEALTH_VISITOR_VISA:{en:"https://www.alrajhitakaful.com/en/Pages/VisitorVisa.aspx",ar:"https://www.alrajhitakaful.com/ar/Pages/VisitorVisa.aspx"},SME_HEALTH_UNIFIED:{en:"https://www.alrajhitakaful.com/en/Pages/unifiedpolicy.aspx",ar:"https://www.alrajhitakaful.com/ar/Pages/unifiedpolicy.aspx"},PERSONAL_PS_FAMILY_TAKAFUL:{en:"https://www.alrajhitakaful.com/en/pages/individualtermpolicy.aspx",ar:"https://www.alrajhitakaful.com/ar/pages/individualtermpolicy.aspx"}},PRODUCT_INDIVIDUAL:[{ProductCategory_Name:"individual_Motor",ProductCategory:"Individual",Name:"COMMON.MOTOR",Title:"COMMON.PRODUCTS_LIST.INDIVIDUAL.MOTOR.TITLE",RedirectLink:"/personal/car-insurance",IconLink:"art-motor-product-icon",imgPath:"./assets/img/products/individual/motor-img.webp",ProductID:1},{ProductCategory_Name:"individual_Travel",ProductCategory:"Individual",Name:"COMMON.TRAVEL",Title:"COMMON.PRODUCTS_LIST.INDIVIDUAL.TRAVEL.TITLE",RedirectLink:"/personal/travel-insurance",IconLink:"art-travel-product-icon",imgPath:"./assets/images/individual-products-images/travel-img.webp",ProductID:2},{ProductCategory_Name:"individual_VVE",ProductCategory:"Individual",Name:"COMMON.visitVisa",Title:"COMMON.PRODUCTS_LIST.INDIVIDUAL.VISA.TITLE",RedirectLink:"/visit-visa-extension",IconLink:"art-vve-product-icon",imgPath:"./assets/images/individual-products-images/visit-visa-img.webp",ProductID:3},{ProductCategory_Name:"individual_MMP",ProductCategory:"Individual",Name:"COMMON.MMP",Title:"COMMON.PRODUCTS_LIST.INDIVIDUAL.MEDICAL.TITLE",RedirectLink:"/personal/medical-malpractice-insurance",IconLink:"art-mmp-product-icon",imgPath:"./assets/images/individual-products-images/medical-malpractice-img.webp",ProductID:4},{ProductCategory_Name:"individual_DWI",ProductCategory:"Individual",Name:"COMMON.DWI",Title:"COMMON.PRODUCTS_LIST.INDIVIDUAL.DOMESTIC_WORKERS.TITLE",RedirectLink:"/domestic-helper-insurance",IconLink:"art-domestic-helper-product-icon",imgPath:"./assets/images/individual-products-images/domestic-helper-img.webp",ProductID:5},{ProductCategory_Name:"individual_LI",ProductCategory:"Individual",Name:"COMMON.LIFE_INSURANCE",Title:"COMMON.PRODUCTS_LIST.INDIVIDUAL.LIFE.PERSONAL",RedirectLink:"/revamp-life-insurance",IconLink:"art-life-insurance-product-icon",imgPath:"./assets/images/individual-products-images/life-insurance-img.webp",ProductID:6},{ProductCategory_Name:"individual_HI",ProductCategory:"Individual",Name:"COMMON.HOME_INSURANCE",Title:"serviceRequest.HOME_INSURANCE_TITLE",RedirectLink:"/personal/home-insurance",IconLink:"art-home-Insurance",imgPath:"./assets/images/individual-products-images/home-img.webp",ProductID:7},{ProductCategory_Name:"individual_CI",ProductCategory:"Individual",Name:"COMMON.CI",Title:"serviceRequest.CYBER_SECURITY_TITLE",RedirectLink:"/personal/cyber-insurance",IconLink:"art-cyper-product-icon",imgPath:"./assets/images/individual-products-images/cyber-img.webp",ProductID:8},{ProductCategory_Name:"individual_DHI",ProductCategory:"Individual",Name:"serviceRequest.DOMESTIC_HELPER",Title:"serviceRequest.DOMESTIC_HELPER_TITLE",RedirectLink:"/domestic-helper-insurance",IconLink:"art-domestic-helper-product-icon",imgPath:"./assets/images/individual-products-images/cyber-img.webp",ProductID:9},{ProductCategory_Name:"Medical",ProductCategory:"Business",Name:"COMMON.HEALTH",Title:"COMMON.PRODUCTS_LIST.INDIVIDUAL.HEALTH.TITLE",RedirectLink:"",IconLink:"art-medical.svg",isImageIcon:!0,imgPath:"./assets/images/business-products-images/medical.png",ProductID:10}],PRODUCT_BUSINESS:[{ProductCategory_Name:"Motor",ProductCategory:"Business",Name:"COMMON.MOTOR",Title:"COMMON.PRODUCTS_LIST.BUSINESS.MOTOR.TITLE",RedirectLink:"/business/car-insurance",IconLink:"additional-driver-info-icon",imgPath:"./assets/images/business-products-images/motor.png",ProductID:1},{ProductCategory_Name:"Medical",ProductCategory:"Business",Name:"COMMON.HEALTH",Title:"COMMON.PRODUCTS_LIST.BUSINESS.MEDICAL.TITLE",RedirectLink:"business/health-insurance",IconLink:"art-health",imgPath:"./assets/business-product/health.webp",ProductID:10},{ProductCategory_Name:"Engineering",ProductCategory:"Business",Name:"COMMON.ENGINEERING_INSURANCE",Title:"COMMON.PRODUCTS_LIST.BUSINESS.ENGINEERING.TITLE",RedirectLink:"",IconLink:"art-engineering",imgPath:"./assets/images/business-products-images/engineering.png",ProductID:3},{ProductCategory_Name:"Liability",ProductCategory:"Business",Name:"COMMON.LIABILITY_INSURANCE",Title:"COMMON.PRODUCTS_LIST.BUSINESS.LIABILITY.TITLE",RedirectLink:"",IconLink:"art-liability",imgPath:"./assets/images/business-products-images/liability.png",ProductID:4},{ProductCategory_Name:"Marine",ProductCategory:"Business",Name:"COMMON.MARINE",Title:"COMMON.PRODUCTS_LIST.BUSINESS.MARINE.TITLE",RedirectLink:"",IconLink:"art-marine",imgPath:"./assets/images/business-products-images/marine.png",ProductID:5},{ProductCategory_Name:"Property",ProductCategory:"Business",Name:"COMMON.PROPERTY",Title:"COMMON.PRODUCTS_LIST.BUSINESS.PROPERTY.TITLE",RedirectLink:"",IconLink:"art-property",imgPath:"./assets/images/business-products-images/property.png",ProductID:6}]}},47738:(U,L,i)=>{i.d(L,{b:()=>m});var y=i(84412),N=i(18810),S=i(99437),v=i(96354),h=i(45312),c=i(95330),l=i(4
16006),A=i(77970),r=i(97563),p=i(23214),b=i(73165),O=i(29040);let m=(()=>{class P{http;httpApigee;cmsService;httpNode;languageService;serviceApi=h.c.sitecoreApi;dlpServicePublicApi=h.c.dlpSrPublicApi;selectedProductData;selectedServicerequest;policyData;currentTab;sadadNumber;amount;digitalLifeSRResponse$=new y.t(null);_willPolicyCancel;dlpServiceReqFlags;dlpServiceData;setCurrentTab(a){this.currentTab=a}getCurrentTab(){return this.currentTab}set setSelectedProductData(a){this.selectedProductData=a}set setSelectedServicerequest(a){this.selectedServicerequest=a}set setPolicyData(a){this.policyData=a}set setSADADNumber(a){this.sadadNumber=a}set setDlpServiceReqFlags(a){this.dlpServiceReqFlags=a}set setDlpServiceData(a){this.dlpServiceData=a}set setWillPolicyCancel(a){this._willPolicyCancel=a}constructor(a,s,g,T,C){this.http=a,this.httpApigee=s,this.cmsService=g,this.httpNode=T,this.languageService=C}getServices(a,s,g,T){let C;return a=encodeURIComponent(a),s=encodeURIComponent(s),g=encodeURIComponent(g),"en"===T?C="all"!=g?{type:a,serviceType:s,area:g,lang:T}:{type:a,serviceType:s,lang:T}:"ar"===T&&(C=g!=g?{type:a,serviceType:s,area:g,lang:T}:{type:a,serviceType:s,lang:T}),this.http.get(this.serviceApi+`${r.Sn.serviceRequests.mapping}?`,{params:C}).pipe((0,S.W)(this.errorHandl))}get getSelectedProductData(){return this.selectedProductData}get getselectedServicerequest(){return this.selectedServicerequest}get getpolicyData(){return this.policyData}get getSADADNumber(){return this.sadadNumber}get getWillPolicyCancel(){return this._willPolicyCancel}get getDlpServiceReqFlags(){return this.dlpServiceReqFlags}get getDlpServiceData(){return this.dlpServiceData}getSubAreaData(a){return this.http.get(this.serviceApi+`${r.Sn.serviceRequests.field}?`,{params:{type:a,serviceType:this.selectedProductData.ServiceType,area:this.selectedProductData.Area,subArea:this.selectedProductData.SubArea}}).pipe((0,S.W)(this.errorHandl))}getRequestStatus(){const a={language:this.languageService.currentLang()};return this.http.get(this.serviceApi+`${r.Sn.serviceRequests.status}?srNo=`+this.selectedServicerequest.srNo,{headers:a}).pipe((0,S.W)(this.errorHandl))}getDLPLifeRequestStatus(){return this.httpApigee.get(this.dlpServicePublicApi+"/after-sales/service-req-status?srNo="+this.selectedServicerequest.srNo,{withCredentials:!0}).pipe((0,S.W)(this.errorHandl))}serviceCreation(a){const s={language:this.languageService.currentLang()};return this.http.post(this.serviceApi+r.Sn.serviceRequests.base,a,{headers:s}).pipe((0,S.W)(this.errorHandl))}getSubAreaAttachments(a){return this.http.get(this.serviceApi+`${r.Sn.serviceRequests.attachments}?`,{params:{type:a,serviceType:this.selectedProductData.ServiceType,area:this.selectedProductData.Area,subArea:this.selectedProductData.SubArea}}).pipe((0,S.W)(this.errorHandl))}getKSACities(a=1){return this.httpNode.get("/ksacities",{params:{mode:a}}).pipe((0,S.W)(this.errorHandl))}getUserInfoById(a,s){return this.http.get(this.serviceApi+`/BusinessProcesses/Motor/Purchase/UserInfoById?language=E&nationalIdNumber=${a}&dateOfBirth=${s}&address=1&ignoreAddressError=1&manualAddress=false`).pipe((0,S.W)(this.errorHandl))}uploadSingleFile(a){return this.httpNode.post(r.Sn.serviceRequests.uploadWithMetadata,a)}generateCaptcha(){return this.httpNode.post("/v1/captcha/generate",{transactionType:"service_request"}).pipe((0,S.W)(this.errorHandl))}getRefreshCaptcha(a){return this.httpNode.post("/v1/captcha/refresh",{transactionType:"service_request",captchaId:a}).pipe((0,S.W)(this.errorHandl))}validateCaptcha(a,s){return this.http.post(this.serviceApi+r.Sn.captcha.verify,{captcha:s,captchaId:a}).pipe((0,S.W)(this.errorHandl))}uploadFile(a){return this.httpNode.post(r.Sn.serviceRequests.uploadWithMetadata,a)}submitComplaints(a){const s={language:this.languageService.currentLang()};return this.http.post(this.serviceApi+r.Sn.complaints.base,a,{headers:s}).pipe((0,S.W)(this.errorHandl))}trackComplaint(a){const s={language:this.languageService.currentLang()};return this.http.get(this.serviceApi+`${r.Sn.complaints.trackStatus}?srNo=${a}`,{headers:s}).pipe((0,S.W)(this.errorHandl))}submitSR(a){const s={language:this.languageService.currentLang()};return this.http.post(this.serviceApi+r.Sn.serviceRequests.base,a,{headers:s}).pipe((0,S.W)(this.errorHandl))}validatePolicyInput(a){const s={language:this.languageService.currentLang()};return this.http.post(this.serviceApi+r.Sn.serviceRequests.policyValidation,a,{headers:s}).pipe((0,S.W)(this.errorHandl))}errorHandl(a){let s="";return console.log("Connecting 4"),s=a.error instanceof ErrorEvent?a.error.message:a.error,console.log(s),(0,N.$)(s)}getDocumentList(a){let s=this.cmsService.langEN;"ar"===this.languageService.currentLang()&&(s=this.cmsService.langAR);const g={DocumentList:[],IsMandatory:!1};return this.cmsService.query({options:{query:`\n query{\n serviceRequest1: serviceRequestDocuments(locale:"${s}", filters:\n {ServiceRequestId: {eq: "${a}"}}){\n data{\n attributes{\n ServiceRequestId\n Name\n documents{\n data{\n attributes{\n DocumentName\n IsMandatory\n }\n }\n }\n }\n }\n }\n\n serviceRequest2: serviceRequestDocuments(locale:"${s}", filters:\n {ServiceRequestId: {eq: "Default"}}){\n data{\n attributes{\n ServiceRequestId\n Name\n documents{\n data{\n attributes{\n DocumentName\n IsMandatory\n }\n }\n }\n }\n }\n }\n }\n `}}).pipe((0,S.W)(this.errorHandl)).pipe((0,v.T)(T=>{if(T.serviceRequest1.data.length>0){let C;T.serviceRequest1.data[0].attributes.documents.data.forEach(D=>{C={},C.document=D.attributes.DocumentName,C.IsMandatory=D.attributes.IsMandatory,g.DocumentList.push(C)})}else{let C;T.serviceRequest2.data[0].attributes.documents.data.forEach(D=>{C={},C.document=D.attributes.DocumentName,C.IsMandatory=D.attributes.IsMandatory,g.DocumentList.push(C)})}return g}))}
1setDigitalLifeSRResponse(a){this.digitalLifeSRResponse$.next(a)}getDigitalLifeSRResponse(){return this.digitalLifeSRResponse$.asObservable()}static \u0275fac=function(s){return new(s||P)(p.KVO(b.Qq),p.KVO(l.J),p.KVO(c.J),p.KVO(A.Y),p.KVO(O.g))};static \u0275prov=p.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})()},59827:(U,L,i)=>{i.d(L,{z:()=>w});var y=i(84412),N=i(18810),S=i(27468),v=i(73165),h=i(23214),c=i(99437),l=i(96354),A=i(88141);var m=i(45312),P=i(95330),H=i(47738),a=function(o){return o.Success="success",o.failure="failure",o.inprogress="In-Progress",o}(a||{}),s=i(77970),g=i(27205),T=i(46006),C=i(15329),D=i(73018);const f=new v.rx(()=>!1);var E=i(97563),M=i(38109),W=i(92947),B=i(68018),F=i(29040);const G=new v.rx(()=>!1);let w=(()=>{class o{http;httpApigee;httpLife;cmsService;router;translateService;serviceReqService;httpNode;languageService;serviceApi=m.c.sitecoreApi;apigeeApi=m.c.apigeeUrl;dlpServicePublicApi=m.c.dlpSrPublicApi;dlpServicePrivateApi=m.c.dlpSrApi;easyLifePrivateApi=m.c.dlpSrApi;selectedProductData;selectedServicerequest;policyData;currentTab;currentLang=localStorage.getItem(M.Hh.LOCALIZE_DEFAULT_LANGUAGE);sadadNumber;amount;digitalLifeSRResponse$=new y.t(null);_willPolicyCancel;DEATH_COVERAGE_STORAGE_KEY=M.RM.DEATH_COVERAGE_ONLINE_SERVICES_DATA;checkKycStatus=!1;dlpServiceReqFlags;dcpNodejsHttpService=(0,h.WQX)(s.Y);digitalServicesOptions=g.hw;setCurrentTab(e){this.currentTab=e}getCurrentTab(){return this.currentTab}set setSelectedProductData(e){this.selectedProductData=e}set setSelectedServicerequest(e){this.selectedServicerequest=e}set setPolicyData(e){this.policyData=e}set setSADADNumber(e){this.sadadNumber=e}set setWillPolicyCancel(e){this._willPolicyCancel=e}constructor(e,t,n,u,R,d,I,_,q){this.http=e,this.httpApigee=t,this.httpLife=n,this.cmsService=u,this.router=R,this.translateService=d,this.serviceReqService=I,this.httpNode=_,this.languageService=q}getServices(e,t,n,u){let R;return e=encodeURIComponent(e),t=encodeURIComponent(t),n=encodeURIComponent(n),"en"===u?R="all"!=n?{type:e,serviceType:t,area:n,lang:u}:{type:e,serviceType:t,lang:u}:"ar"===u&&(R=n!=n?{type:e,serviceType:t,area:n,lang:u}:{type:e,serviceType:t,lang:u}),this.httpNode.get(`${E.Sn.serviceRequests.mapping}?`,{params:R}).pipe((0,c.W)(this.errorHandl))}getBanknames(e){return this.http.get(`/ibanValidation/${e}`,{context:(new v._y).set(G,!0)})}getKSACities(e=1){return this.httpNode.get("/ksacities",{params:{mode:e}}).pipe((0,l.T)(t=>{const n=Array.isArray(t)?t:Array.isArray(t?.data)?t.data:[];return n.length?"en"===this.currentLang?[...n].sort((u,R)=>(u.cityNameEn??"")>(R.cityNameEn??"")?1:(R.cityNameEn??"")>(u.cityNameEn??"")?-1:0):[...n].sort((u,R)=>u>R?1:R>u?-1:0):n}),(0,c.W)(this.errorHandl))}get getSelectedProductData(){return this.selectedProductData}get getselectedServicerequest(){return this.selectedServicerequest}get getpolicyData(){return this.policyData}get getSADADNumber(){return this.sadadNumber}get getWillPolicyCancel(){return this._willPolicyCancel}set setDlpServiceReqFlags(e){this.dlpServiceReqFlags=e,this.checkKycStatus=!0}get getDlpServiceReqFlags(){return this.dlpServiceReqFlags}get getcheckKycStatus(){return this.checkKycStatus}getRandomDigits(){return Math.floor(9e9*Math.random())+1e9}getSubAreaData(e){return this.http.get(this.serviceApi+`${E.Sn.serviceRequests.field}?`,{params:{type:e,serviceType:this.selectedProductData.ServiceType,area:this.selectedProductData.Area,subArea:this.selectedProductData.SubArea}}).pipe((0,c.W)(this.errorHandl))}getRequestStatus(){return this.http.get(this.serviceApi+`${E.Sn.serviceRequests.status}?srNo=`+this.selectedServicerequest.srNo,{headers:{language:this.currentLang}}).pipe((0,c.W)(this.errorHandl))}getDLPLifeRequestStatus(){return this.httpApigee.get(this.dlpServicePublicApi+"/after-sales/service-req-status?srNo="+this.selectedServicerequest.srNo,{withCredentials:!0}).pipe((0,c.W)(this.errorHandl))}updateRequest(e){return this.httpApigee.post(E.Sn.serviceRequests.updateCase,e).pipe((0,c.W)(this.errorHandl))}serviceCreation(e){const t={language:localStorage.getItem(M.Hh.LOCALIZE_DEFAULT_LANGUAGE)};return this.http.post(this.serviceApi+E.Sn.serviceRequests.base,e,{headers:t}).pipe((0,c.W)(this.errorHandl))}getSubAreaAttachments(e){return this.http.get(this.serviceApi+`${E.Sn.serviceRequests.attachments}?`,{params:{type:e,serviceType:this.selectedProductData.ServiceType,area:this.selectedProductData.Area,subArea:this.selectedProductData.SubArea}}).pipe((0,c.W)(this.errorHandl))}getUserInfoById(e,t){return this.http.get(this.serviceApi+`${E.Sn.motor.userInfoById}?language=E&nationalIdNumber=${e}&dateOfBirth=${t}&address=1&ignoreAddressError=1&manualAddress=false`).pipe((0,c.W)(this.errorHandl))}uploadSingleFile(e){return this.dcpNodejsHttpService.post(E.Sn.serviceRequests.uploadWithMetadata,e)}generateCaptcha(){return this.httpNode.post(E.Sn.captcha.generate,{transactionType:"service_request"}).pipe((0,c.W)(this.errorHandl))}getRefreshCaptcha(e){return this.httpNode.post(E.Sn.captcha.refresh,{transactionType:"service_request",captchaId:e}).pipe((0,c.W)(this.errorHandl))}validateCaptcha(e,t){return this.httpNode.post(E.Sn.captcha.verify,{captcha:t,captchaId:e}).pipe((0,c.W)(this.errorHandl))}uploadFile(e){return this.dcpNodejsHttpService.post(E.Sn.serviceRequests.uploadWithMetadata,e)}submitComplaints(e){return this.http.post(this.serviceApi+E.Sn.complaints.base,e,{headers:{language:this.currentLang}}).pipe((0,c.W)(this.errorHandl))}trackComplaint(e){return this.http.get(this.serviceApi+`${E.Sn.complaints.trackStatus}?srNo=${e}`,{headers:{language:this.currentLang}}).pipe((0,c.W)(this.errorHandl))}getServiceTypesList(){return this.httpApigee.get(E.Sn.serviceRequests.serviceTypesList).pipe((0,l.T)(e=>e?.data?.serviceType),(0,c.W)(this.errorHandl))}getServiceRequestsList(){return this.httpApigee.get(E.Sn.serviceRequests.list).pipe((0,c.W)(this.errorHandl))}getCaseDetails(e){return this.httpApigee.get(`${E.Sn.serviceRequests.caseDetails}/${e}`).pipe((0,c.W)(this.errorHandl))}getCaseDetailsHistory(e){return this.httpApigee.get(`/art/crm/case/node-retrieve-communication-history/${e}`,{headers:{channel:"Web"}}).pipe((0,l.T)(n=>n?.getCrmCaseDetail)).pipe((0,c.W)(this.errorHandl))}submitSR(e){return this.httpApigee.post(E.Sn.serviceRequests.createRevamped,e).pipe((0,c.W)(this.errorHandl))}validatePolicyInput(e){return this.http.post(this.serviceApi+E.Sn.serviceRequests.policyValidation,e,{headers:{language:this.currentLang}}).pipe((0,c.W)(this.errorHandl))}getUserData(e,t){return this.httpLife.get(`/inquiry/after-sales-user-yakeen?fromSource=${t}&id=${e.id}&dob=${e.dob}`).pipe((0,l.T)(u=>u.result),(0,c.W)(this.errorHandl))}errorHandl(e){let t="";return console.log("Connecting 4"),t=e.error instanceof ErrorEvent?e.error.message:e.error,console.log(t),(0,N.$)(t)}getDocumentList(e,t){const n="ar"===t?this.cmsService.langAR:this.cmsService.langEN,u={DocumentList:[],IsMandatory:!1};return this.cmsService.query({options:{query:`\n query{\n serviceRequest1: serviceRequestDocuments(locale:"${n}", filters:\n {ServiceRequestId: {eq: "${e}"}}
1){\n data{\n attributes{\n ServiceRequestId\n Name\n documents{\n data{\n attributes{\n DocumentName\n IsMandatory\n }\n }\n }\n }\n }\n }\n\n serviceRequest2: serviceRequestDocuments(locale:"${n}", filters:\n {ServiceRequestId: {eq: "Default"}}){\n data{\n attributes{\n ServiceRequestId\n Name\n documents{\n data{\n attributes{\n DocumentName\n IsMandatory\n }\n }\n }\n }\n }\n }\n }\n `}}).pipe((0,c.W)(this.errorHandl)).pipe((0,l.T)(R=>{if(R.serviceRequest1.data.length>0){let d;R.serviceRequest1.data[0].attributes.documents.data.forEach(I=>{d={},d.document=I.attributes.DocumentName,d.IsMandatory=I.attributes.IsMandatory,u.DocumentList.push(d)})}else{let d;R.serviceRequest2.data[0].attributes.documents.data.forEach(I=>{d={},d.document=I.attributes.DocumentName,d.IsMandatory=I.attributes.IsMandatory,u.DocumentList.push(d)})}return u}))}getReasonOfCancelationList(){const e=t=>this.cmsService.query({options:{query:`\n query {\n serviceOptions(\n locale: "${t}"\n filters: { name: { eq: "Domestic Worker Policy Cancellation" } }\n ) {\n data {\n attributes {\n name\n features {\n options\n serviceId\n }\n }\n }\n }\n } `}}).pipe((0,l.T)(n=>n.serviceOptions.data[0].attributes.features[0].options));return(0,S.p)([e(this.cmsService.langEN),e(this.cmsService.langAR)]).pipe((0,c.W)(this.errorHandl),(0,l.T)(([t,n])=>t.map((u,R)=>{const d=n[R],I="string"==typeof u?u:u.reasonEn??u.name??"";return{value:I,reasonEn:I,reasonAr:("string"==typeof d?d:d.reasonAr??d.reasonEn??d.name??"")||I}})))}setDigitalLifeSRResponse(e){this.digitalLifeSRResponse$.next(e)}getDigitalLifeSRResponse(){return this.digitalLifeSRResponse$.asObservable()}getLapsedPolicyList(){return this.httpLife.get(E.Sn.inquiry.lapsedPolicies).pipe((0,l.T)(e=>e.result),(0,c.W)(e=>{throw this.errorHandl(e),e}))}getServiceRequestFlags(){return this.httpLife.get("/service-request/check-kyc-status").pipe((0,l.T)(e=>e.result),(0,c.W)(e=>{throw this.errorHandl(e),e}))}getPolicyList(){return this.httpLife.get("/after-sales/apigee/policy-beneficiary-list").pipe((0,l.T)(e=>e.result.policies),(0,c.W)(e=>{throw this.errorHandl(e),e}))}getPolicy(e){return this.httpLife.get(`${E.Sn.inquiry.policies}?policyNumber=${e}&sequenceNumber=1`).pipe((0,l.T)(u=>u.result),(0,c.W)(u=>(this.errorHandl(u),(0,N.$)(()=>u))))}navigateToSuccessPage(e,t,n){this.serviceReqService.setPolicyData=e,n&&(this.serviceReqService.setWillPolicyCancel=n),this.router.navigate([this.languageService.translateRoute(D.g.TOP_UP_CONFIRMATION)])}handleServiceRequestData(e,t){this.serviceReqService.setDigitalLifeSRResponse(e),this.serviceReqService.setPolicyData=e?.serviceNo,this.router.navigate([this.languageService.translateRoute(D.g.SUBMITTED)])}executeServiceRequest(e,t,n,u,R){return this.httpLife.post(`/service-request/update?requestType=${e}`,t).pipe((0,A.M)(d=>{const I=d?.result?.serviceStatus;if(I===a.Success||I===a.inprogress){if("sumAssuredValue"!==e&&"contributionValue"!==e&&"coverage"!==e||!u){if("deathCoverageClaims"===e){sessionStorage.setItem(M.qm.REF_NUMBER,d.result.serviceNo),sessionStorage.setItem("submitRequest",this.translateService.instant("COMMON.SUBMITTED_SUCCESSFULLY"));const _=this.router.url.split("/");_[_.length-1]="death-coverage-confirmation";const q=_.join("/");this.router.navigateByUrl(q)}}else{const _=this.getDlpServiceReqFlags;_.isMQUpdated=!0,this.setDlpServiceReqFlags=_}"sumAssuredValue"===e?this.handleServiceRequestData(d?.result,n):d&&d.result&&d.result.isNeotekValidationPending?(localStorage.setItem(M.Hh.SHOW_PENDING_REQUEST_PAGE,"true"),this.router.navigate([this.languageService.translateRoute(D.g.SUBMITTED)])):this.navigateToSuccessPage(d?.result?.serviceNo,n,R)}else(0,c.W)(_=>{throw this.errorHandl(_),_})}),(0,c.W)(d=>{throw this.errorHandl(d),d}))}
1sendServiceRequest(e,t,n=!0){return this.http.post(this.dlpServicePrivateApi+`/service-request/update?requestType=${t}`,e,{context:(new v._y).set(f,!0)}).pipe((0,l.T)(u=>u.result),(0,c.W)(u=>{throw n&&this.errorHandl(u),u}))}uploadDocument(e){return this.httpLife.post("/file/after-sales/upload",e).pipe((0,l.T)(t=>t),(0,c.W)(t=>{throw this.errorHandl(t),t}))}getClaimQuestionnaire(e){return this.httpLife.get(`${E.Sn.serviceRequests.question}?serviceCode=${e}`).pipe((0,c.W)(t=>{throw this.errorHandl(t),t}))}getCoverageData(e){return this.httpLife.get(`${E.Sn.serviceRequests.claim}?policyNo=${e}`).pipe((0,l.T)(t=>t.result),(0,c.W)(t=>{throw this.errorHandl(t),t}))}getCoverage(e){return this.httpLife.post("/service-request/coverage",e).pipe((0,c.W)(t=>{throw this.errorHandl(t),t}))}updateCoverage(e){return this.httpLife.post("/service-request/update?requestType=coverage",e).pipe((0,c.W)(t=>{throw this.errorHandl(t),t}))}getCoveragQuestione(){return this.httpLife.get("/service-request/question?serviceCode=coverage").pipe((0,c.W)(e=>{throw this.errorHandl(e),e}))}fetchDownloadableContent(){const e="ar"===this.languageService.currentLang()?this.cmsService.langAR:this.cmsService.langEN;return this.cmsService.query({options:{query:`\n query {\n onlineServiceGuidDownload(\n locale: "${e}"\n ) {\n data {\n attributes {\n document {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n }\n `}}).pipe((0,c.W)(this.errorHandl)).pipe((0,l.T)(t=>{const n=t?.onlineServiceGuidDownload?.data?.attributes;if(!n)return null;const u=n.document?.data?.attributes?.url;return{fileUrl:u?m.c.cmsURL+u:null}}))}static \u0275fac=function(t){return new(t||o)(h.KVO(v.Qq),h.KVO(T.J),h.KVO(C.u),h.KVO(P.J),h.KVO(W.Ix),h.KVO(B.c$),h.KVO(H.b),h.KVO(s.Y),h.KVO(F.g))};static \u0275prov=h.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()}}]);
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.