1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_privacy_dsar_dsar-smtp-config_dsar-smtp-config_module_ts"],{1260:(R,I,m)=>{m.d(I,{$:()=>q});var Z=m(94650),l=m(92340),f=m(61737),M=m(5254),_=m(80096),h=m(27221),y=m(24850),t=m(28597),U=m(85740),O=m(80529),P=m(46262);let q=(()=>{const x=class{constructor(o,r){this.http=o,this.lokiService=r,this.onClickCancelBtn=new Z.vpe}getDsarRequestList(o,r,p,a,i,n,c,C){let T="/ccpa/data/"+p+"/"+a+i;return void 0===n&&null==C?this.http.get(l.N.apiUrl+T).pipe((0,_.d)(1),(0,h.K)(v=>(this.onSendLogs(t.o.INFO,v,t.X.getDsarRequestList,o,r,T),(0,f._)(v)))):""!==c&&void 0!==c&&null==C?this.http.get(l.N.apiUrl+T+c).pipe((0,_.d)(1),(0,h.K)(v=>(this.onSendLogs(t.o.INFO,v,t.X.getDsarRequestList,o,r,T),(0,f._)(v)))):void 0===C?(T="/ccpa/data/"+p+"/"+a+i+n,this.http.get(l.N.apiUrl+T).pipe((0,_.d)(1),(0,h.K)(v=>(this.onSendLogs(t.o.INFO,v,t.X.getDsarRequestList,o,r,T),(0,f._)(v))))):C.includes("true")?this.http.get(l.N.apiUrl+T+c+C,{responseType:"blob"}).pipe((0,_.d)(1),(0,h.K)(v=>(this.onSendLogs(t.o.INFO,v,t.X.getDsarRequestList,o,r,T),(0,f._)(v)))):void 0}getDsarRequestFilter(o,r,p,a){const i="/ccpa/filter/"+o+"/"+r;return this.http.get(l.N.apiUrl+i).pipe((0,_.d)(1),(0,h.K)(n=>(this.onSendLogs(t.o.INFO,n,t.X.getDsarRequestFilter,p,a,i),(0,f._)(n))))}getDsarRequestFilterList(o,r,p,a,i){const n="/ccpa/data/"+o+"/"+r+p;return this.http.get(l.N.apiUrl+n).pipe((0,_.d)(1),(0,h.K)(c=>(this.onSendLogs(t.o.INFO,c,t.X.getDsarRequestFilterList,a,i,n),(0,f._)(c))))}getDSARRequestDetails(o,r,p,a,i){const n="/ccpa/data/"+o+"/"+r+"/"+p;return this.http.get(l.N.apiUrl+n).pipe((0,_.d)(1),(0,h.K)(c=>(this.onSendLogs(t.o.INFO,c,t.X.getDSARRequestDetails,a,i,n),(0,f._)(c))))}CreateEmailConfig(o,r,p,a){let i=U.R.CREATE_CUSTOMIZED_TEMPLATE.replace(":oid",a);return this.http.post(l.N.apiUrl+i,p).pipe((0,y.U)(n=>n),(0,h.K)(n=>(this.onSendLogs(t.o.INFO,n,t.X.billing,o,r,i),(0,f._)(n))))}Gettemplates(o,r,p){let a=U.R.CREATE_CUSTOMIZED_TEMPLATE.replace(":oid",p);return this.http.get(l.N.apiUrl+a).pipe((0,y.U)(i=>i),(0,h.K)(i=>(this.onSendLogs(t.o.INFO,i,t.X.billing,o,r,a),(0,f._)(i))))}edittemplates(o,r,p,a,i){let n=U.R.EDIT_CUSTOMIZED_TEMPLATE.replace(":oid",a);return n=n.replace(":id",i),this.http.put(l.N.apiUrl+n,p).pipe((0,y.U)(c=>c),(0,h.K)(c=>(this.onSendLogs(t.o.INFO,c,t.X.billing,o,r,n),(0,f._)(c))))}deleteTemplates(o,r,p,a){let i=U.R.EDIT_CUSTOMIZED_TEMPLATE.replace(":oid",p);return i=i.replace(":id",a),this.http.delete(l.N.apiUrl+i).pipe((0,y.U)(n=>n),(0,h.K)(n=>(this.onSendLogs(t.o.INFO,n,t.X.billing,o,r,i),(0,f._)(n))))}getEmailTemplate(o,r,p){let a="/email/template"+o;return this.http.get(l.N.apiUrl+"/email/template",{params:{oid:o}}).pipe((0,h.K)(i=>(this.onSendLogs(t.o.INFO,i,t.X.emailTemplate,r,p,a),(0,f._)(i))))}getDSARRequestDetailsByID(o,r,p,a,i){const n="/ccpa/data/"+o+"/"+r+"/"+p+"?edit_fields=true";return this.http.get(l.N.apiUrl+n).pipe((0,_.d)(1),(0,h.K)(c=>(this.onSendLogs(t.o.INFO,c,t.X.getDSARRequestDetailsByID,a,i,n),(0,f._)(c))))}updateDSARRequestDetailsByID(o,r,p,a,i,n){const c="/ccpa/data/"+o+"/"+r+"/"+p;return this.http.put(l.N.apiUrl+c,a).pipe((0,_.d)(1),(0,h.K)(C=>(this.onSendLogs(t.o.INFO,C,t.X.updateDSARRequestDetailsByID,i,n,c),(0,f._)(C))))}addSubTask(o,r,p,a,i,n){const c="/ccpa/subtask/"+o+"/"+r+"/"+p;return this.http.post(l.N.apiUrl+c,a).pipe((0,_.d)(1),(0,h.K)(C=>(this.onSendLogs(t.o.INFO,C,t.X.addSubTask,i,n,c),(0,f._)(C))))}updateSubTask(o,r,p,a,i){const n="/ccpa/subtask/edit/"+o+"/"+r;return this.http.put(l.N.apiUrl+n,p).pipe((0,_.d)(1),(0,h.K)(c=>(this.onSendLogs(t.o.INFO,c,t.X.updateSubTask,a,i,n),(0,f._)(c))))}addSubTaskResponse(o,r,p,a,i,n,c){const C="/ccpa/subtask/response/"+r+"/"+p+"/"+a+"/"+o;return this.http.put(l.N.apiUrl+C,i).pipe((0,_.d)(1),(0,h.K)(T=>(this.onSendLogs(t.o.INFO,T,t.X.addSubTaskResponse,n,c,C),(0,f._)(T))))}getSubTask(o,r,p,a,i){if(i){const n="/ccpa/subtask/"+p+"/"+a+"/"+i;return this.http.get(l.N.apiUrl+n).pipe((0,_.d)(1),(0,h.K)(c=>(this.onSendLogs(t.o.INFO,c,t.X.getSubTask,o,r,n),(0,f._)(c))))}{const n="/ccpa/subtask/"+p+"/"+a;return this.http.get(l.N.apiUrl+n).pipe((0,_.d)(1),(0,h.K)(c=>(this.onSendLogs(t.o.INFO,c,t.X.getSubTask,o,r,n),(0,f._)(c))))}}viewUserUploadedFile(o,r,p){const i="/dsar/user/file/"+o;return this.http.get(l.N.apiUrl+i).pipe((0,y.U)(n=>n.response),(0,_.d)(1),(0,h.K)(n=>(this.onSendLogs(t.o.INFO,n,t.X.viewUserUploadedFile,r,p,i),(0,f._)(n))))}getSubTaskByWorkflowID(o,r,p,a){const n="/ccpa/subtask/"+o+"?workflow_stage="+r;return this.http.get(l.N.apiUrl+n).pipe((0,y.U)(c=>c.response),(0,_.d)(1),(0,h.K)(c=>(this.onSendLogs(t.o.INFO,c,t.X.getSubTaskByWorkflowID,p,a,n),(0,f._)(c))))}verifyClientEmailID(o,r,p){const a="/dsar/email/verify/"+o;return this.http.post(l.N.apiUrl+a,{}).pipe((0,h.K)(i=>(this.onSendLogs(t.o.INFO,i,t.X.verifyClientEmailID,r,p,a),(0,f._)(i))))}onSendLogs(o,r,p,a,i,n){this.lokiService.onSendErrorLogs(o,r,p,a,i,n).subscribe()}viewClientsFileAttachments(o,r,p){const a="/dsar/file/"+o;return this.http.get(l.N.apiUrl+a,{}).pipe((0,h.K)(i=>(this.onSendLogs(t.o.INFO,i,t.X.viewClientsFileAttachments,r,p,a),(0,f._)(i))))}getSubtaskFileAttachements(o,r,p){const a="/upload/file?id="+o;return this.http.get(l.N.apiUrl+a,{}).pipe((0,h.K)(i=>(this.onSendLogs(t.o.INFO,i,t.X.viewSubtaskFileAttachements,r,p,a),(0,f._)(i))))}getClientsEmailAttachments(o,r,p){const a="/ccpa/file/email?email_activity_id="+o;return this.http.get(l.N.apiUrl+a,{}).pipe((0,h.K)(i=>(this.onSendLogs(t.o.INFO,i,t.X.viewClientsFileAttachments,r,p,a),(0,f._)(i))))}getRejectionReason(){return(0,M.D)([{id:1,reason:"Excessive request"},{id:2,reason:"Frivolous / unfounded request"},{id:3,reason:"Incomplete / partial request"},{id:4,reason:"No response verification"},{id:5,reason:"Not a privacy related request"},{id:6,reason:"Non-EU request"},{id:7,reason:"Repetitive request"}])}rejectDSARRequest(o,r,p,a){const i="/ccpa/activity/reject/"+o;return this.http.put(l.N.apiUrl+i,r).pipe((0,_.d)(1),(0,h.K)(n=>(this.onSendLogs(t.o.INFO,n,t.X.rejectDSARRequest,p,a,i),(0,f._)(n))))}reopenDeletedDSARRequest(o,r,p,a,i){const n="/ccpa/reopenrequest/"+o+"/"+r+"/"+p;return this.http.put(l.N.apiUrl+n,{}).pipe((0,_.d)(1),(0,h.K)(c=>(this.onSendLogs(t.o.INFO,c,t.X.reopenRejectedDSARRequest,a,i,n),(0,f._)(c))))}};let D=x;return x.\u0275fac=function(r){return new(r||x)(Z.LFG(O.eN),Z.LFG(P.L))},x.\u0275prov=Z.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),D})()},97454:(R,I,m)=>{m.r(I),m.d(I,{DsarSmtpConfigModule:()=>at});var Z=m(36895),l=m(24006),f=m(19119),M=m(51692),_=m(85493),h=m(3940),y=m(92340),t=m(94650),U=m(20388),O=m(45887),P=m(37407),q=m(59922),D=m(11481),x=m(1260),L=m(62976),o=m(32320),r=m(4358),p=m(12553),a=m(96923),i=m(42111),n=m(38611),c=m(2854);const C=["edittemplate"],T=["confirmTemplate"];function v(s,g){1&s&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Template ID"),t.qZA(),t.TgZ(3,"th"),t._uU(4,"Template Name"),t.qZA(),t.TgZ(5,"th"),t._uU(6,"Created At"),t.qZA(),t.TgZ(7,"th"),t._uU(8,"Updated At"),t.qZA(),t.TgZ(9,"th"),t._uU(10,"Action"),t.qZA()())}function E(s,g){if(1&s){const e=t.EpF();t.TgZ(0,"tr")(1,"td",20)(2,"a",21),t._uU(3),t.qZA()(),t.TgZ(4,"td",20),t._uU(5),t.qZA(),t.TgZ(6,"td",20),t._uU(7),t.ALo(8,"date"),t.qZA(),t.TgZ(9,"td",20),t._uU(10),t.ALo(11,"date"),t.qZA(),t.TgZ(12,"td",20)(13,"button",22),t.NdJ("click",function(){const b=t.CHM(e).$implicit,S=t.oxw();return t.KtG(S.edittemp(b))}),t.qZA(),t.TgZ(14,"button",23),t.NdJ("click",function(){const b=t.CHM(e).$implicit,S=t.oxw();return t.KtG(S.deleteTemp(b))}),t.qZA()()()}if(2&s){const e=g.$implicit;t.xp6(3),t.Oqu(e.id),t.xp6(2),t.Oqu(e.name),t.xp6(2),t.Oqu(t.lcZ(8,4,e.created_at)),t.xp6(3),t.Oqu(t.lcZ(11,6,e.updated_at))}}function k(s,g){1&s&&(t.TgZ(0,"tr")(1,"td",24),t._uU(2," No records foun
1d "),t.qZA()()),2&s&&(t.xp6(1),t.uIk("colspan",5))}function K(s,g){1&s&&(t.TgZ(0,"div"),t._uU(1,"Template name is required"),t.qZA())}function J(s,g){if(1&s&&(t.TgZ(0,"div",43),t.YNc(1,K,2,0,"div",44),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.f.name.errors.required)}}function w(s,g){1&s&&(t.TgZ(0,"div"),t._uU(1,"Template Body is required"),t.qZA())}function B(s,g){if(1&s&&(t.TgZ(0,"div",43),t.YNc(1,w,2,0,"div",44),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.f.body.errors.required)}}const A=function(s){return{"is-invalid":s}};function G(s,g){if(1&s){const e=t.EpF();t.TgZ(0,"div",25)(1,"h5",26),t._uU(2,"Custom Template"),t.qZA(),t.TgZ(3,"button",27),t.NdJ("click",function(){t.CHM(e);const u=t.oxw();return t.KtG(u.onReset())}),t.TgZ(4,"span",28),t._uU(5,"\xd7"),t.qZA()()(),t.TgZ(6,"div",29)(7,"div",30)(8,"div",31)(9,"div",32)(10,"h6"),t._uU(11,"List of Macros available"),t.qZA(),t.TgZ(12,"p")(13,"b"),t._uU(14,"[Consumer Name]"),t.qZA(),t._uU(15," -- return name of request raiser"),t.qZA(),t.TgZ(16,"p")(17,"b"),t._uU(18,"[Data Subject Name] "),t.qZA(),t._uU(19," -- return name of request raiser"),t.qZA(),t.TgZ(20,"p")(21,"b"),t._uU(22,"[Company name privacy team]"),t.qZA(),t._uU(23," -- return Organization name"),t.qZA()(),t.TgZ(24,"form",33),t.NdJ("ngSubmit",function(){t.CHM(e);const u=t.oxw();return t.KtG(u.onSubmit())}),t.TgZ(25,"div",34)(26,"label",35),t._uU(27,"Template Name"),t._UZ(28,"i",36),t.qZA(),t._UZ(29,"input",37),t.YNc(30,J,2,1,"div",38),t.qZA(),t.TgZ(31,"div",34)(32,"label"),t._uU(33,"Template Body"),t._UZ(34,"i",36),t.qZA(),t._UZ(35,"quill-editor",39),t.YNc(36,B,2,1,"div",38),t.qZA(),t.TgZ(37,"div",40)(38,"button",41),t.NdJ("click",function(){t.CHM(e);const u=t.oxw();return t.KtG(u.onReset())}),t._uU(39,"Cancel"),t.qZA(),t.TgZ(40,"button",42),t._uU(41,"Save"),t.qZA()()()()()()}if(2&s){const e=t.oxw();
1t.xp6(24),t.Q6J("formGroup",e.SMTPConfigurationForm),t.xp6(5),t.Q6J("ngClass",t.VKq(7,A,e.SMTPConfigurationForm.controls.name.invalid&&(e.SMTPConfigurationForm.controls.name.dirty||e.SMTPConfigurationForm.controls.name.touched)||e.submitted&&e.f.name.errors)),t.xp6(1),t.Q6J("ngIf",e.SMTPConfigurationForm.controls.name.invalid&&(e.SMTPConfigurationForm.controls.name.dirty||e.SMTPConfigurationForm.controls.name.touched)||e.submitted&&e.f.name.errors),t.xp6(5),t.Q6J("modules",e.quillConfig)("ngClass",t.VKq(9,A,e.SMTPConfigurationForm.controls.body.invalid&&(e.SMTPConfigurationForm.controls.body.dirty||e.SMTPConfigurationForm.controls.body.touched)||e.submitted&&e.f.body.errors)),t.xp6(1),t.Q6J("ngIf",e.SMTPConfigurationForm.controls.body.invalid&&(e.SMTPConfigurationForm.controls.body.dirty||e.SMTPConfigurationForm.controls.body.touched)||e.submitted&&e.f.body.errors),t.xp6(4),t.Q6J("disabled",e.SMTPConfigurationForm.invalid)}}function X(s,g){1&s&&(t.TgZ(0,"div"),t._uU(1,"Template name is required"),t.qZA())}function Q(s,g){if(1&s&&(t.TgZ(0,"div",43),t.YNc(1,X,2,0,"div",44),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.s.name.errors.required)}}function Y(s,g){1&s&&(t.TgZ(0,"div"),t._uU(1,"Template Body is required"),t.qZA())}function j(s,g){if(1&s&&(t.TgZ(0,"div",43),t.YNc(1,Y,2,0,"div",44),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.s.body.errors.required)}}function z(s,g){if(1&s){const e=t.EpF();t.TgZ(0,"div",25)(1,"h5",26),t._uU(2,"Edit Custom Template"),t.qZA(),t.TgZ(3,"button",27),t.NdJ("click",function(){t.CHM(e);const u=t.oxw();return t.KtG(u.oneditCancel())}),t.TgZ(4,"span",28),t._uU(5,"\xd7"),t.qZA()()(),t.TgZ(6,"div",29)(7,"div",30)(8,"div",31)(9,"div",32)(10,"h6"),t._uU(11,"List of Macros available"),t.qZA(),t.TgZ(12,"p")(13,"b"),t._uU(14,"[Consumer Name]"),t.qZA(),t._uU(15," -- return name of request raiser"),t.qZA(),t.TgZ(16,"p")(17,"b"),t._uU(18,"[Data Subject Name] "),t.qZA(),t._uU(19," -- return name of request raiser"),t.qZA(),t.TgZ(20,"p")(21,"b"),t._uU(22,"[Company name privacy team]"),t.qZA(),t._uU(23," -- return Organization name"),t.qZA()(),t.TgZ(24,"form",33),t.NdJ("ngSubmit",function(){t.CHM(e);const u=t.oxw();return t.KtG(u.onEdit())}),t.TgZ(25,"div",34)(26,"label",35),t._uU(27,"Template Name"),t._UZ(28,"i",36),t.qZA(),t._UZ(29,"input",37),t.YNc(30,Q,2,1,"div",38),t.qZA(),t.TgZ(31,"div",34)(32,"label"),t._uU(33,"Template Body"),t._UZ(34,"i",36),t.qZA(),t._UZ(35,"quill-editor",39),t.YNc(36,j,2,1,"div",38),t.qZA(),t.TgZ(37,"div",40)(38,"button",41),t.NdJ("click",function(){t.CHM(e);const u=t.oxw();return t.KtG(u.oneditCancel())}),t._uU(39,"Cancel"),t.qZA(),t.TgZ(40,"button",42),t._uU(41,"Save"),t.qZA()()()()()()}if(2&s){const e=t.oxw();
1t.xp6(24),t.Q6J("formGroup",e.editSMTPConfigurationForm),t.xp6(5),t.Q6J("ngClass",t.VKq(7,A,e.editSMTPConfigurationForm.controls.name.invalid&&(e.editSMTPConfigurationForm.controls.name.dirty||e.editSMTPConfigurationForm.controls.name.touched)||e.editsubmitted&&e.s.name.errors)),t.xp6(1),t.Q6J("ngIf",e.editSMTPConfigurationForm.controls.name.invalid&&(e.editSMTPConfigurationForm.controls.name.dirty||e.editSMTPConfigurationForm.controls.name.touched)||e.editsubmitted&&e.s.name.errors),t.xp6(5),t.Q6J("modules",e.quillConfig)("ngClass",t.VKq(9,A,e.editSMTPConfigurationForm.controls.body.invalid&&(e.editSMTPConfigurationForm.controls.body.dirty||e.editSMTPConfigurationForm.controls.body.touched)||e.editsubmitted&&e.s.body.errors)),t.xp6(1),t.Q6J("ngIf",e.editSMTPConfigurationForm.controls.body.invalid&&(e.editSMTPConfigurationForm.controls.body.dirty||e.editSMTPConfigurationForm.controls.body.touched)||e.editsubmitted&&e.s.body.errors),t.xp6(4),t.Q6J("disabled",e.editSMTPConfigurationForm.invalid)}}function H(s,g){1&s&&(t.TgZ(0,"div",53),t._uU(1," Enter appropriate text "),t.qZA())}function W(s,g){if(1&s){const e=t.EpF();t.TgZ(0,"div",25)(1,"h5",45),t._uU(2,"Delete Custom Template"),t.qZA(),t.TgZ(3,"button",46),t.NdJ("click",function(){t.CHM(e);const u=t.oxw();return t.KtG(u.onCanceled())}),t.TgZ(4,"span",47),t._uU(5,"\xd7"),t.qZA()()(),t.TgZ(6,"div",48)(7,"form",33),t.NdJ("ngSubmit",function(){t.CHM(e);const u=t.oxw();return t.KtG(u.onSubmitConfirmation())}),t.TgZ(8,"p",49),t._uU(9,"Please type "),t.TgZ(10,"strong"),t._uU(11,"'Delete'"),t.qZA(),t._uU(12," to confirm"),t.qZA(),t._UZ(13,"input",50),t.YNc(14,H,2,0,"div",51),t.TgZ(15,"button",52),t._uU(16,"I understand the consequences, delete this template "),t.qZA()()()}if(2&s){const e=t.oxw();
1t.xp6(7),t.Q6J("formGroup",e.confirmationForm),t.xp6(6),t.Q6J("ngClass",t.VKq(3,A,e.isconfirmationsubmitted&&"Delete"!==e.confirmDelete.userInput.value)),t.xp6(1),t.Q6J("ngIf",e.isconfirmationsubmitted&&"Delete"!==e.confirmDelete.userInput.value)}}function V(s,g){if(1&s&&(t.TgZ(0,"alert",54),t._UZ(1,"span",55),t.qZA()),2&s){const e=t.oxw();t.Q6J("type",e.alertType),t.xp6(1),t.Q6J("innerHTML",e.alertMsg,t.oJD)}}const $=function(){return[10,20,30]},tt=function(s){return{hide:s}},et=[{path:"",component:(()=>{const g=class{constructor(d,u,b,S,N,F,st,lt,pt){this.formBuilder=d,this.modalService=u,this.activatedRouter=b,this.router=S,this.ConsentPreferenceService=N,this.loading=F,this.dataService=st,this.titleService=lt,this.service=pt,this.senderList=[],this.cities=[],this.items=[{label:"Active",icon:"pi pi-check"}],this.step=1,this.submitted=!1,this.isOpen=!1,this.verficationError=!1,this.senderID="",this.emailConfigList=[],this.modalConfig={class:"modal-lg",backdrop:!0,keyboard:!1,ignoreBackdropClick:!0},this.tLoading=!0,this.templatesList=[],this.RecordCount=0,this.isconfirmationsubmitted=!1}ngOnInit(){this.titleService.setTitle("Custom Template - "+y.N.portalPrefix),this.onGetPropsAndOrgId(),this.onInitForm(),this.onCreateSendForm()}onGetPropsAndOrgId(){this.activatedRouter.queryParams.subscribe(d=>{let u=d.oid,b=d.pid;null!=this.currentManagedOrgID&&(this.currentManagedOrgID!=u||this.currrentManagedPropID!=b)&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.navigateByUrl(this.router.url)),this.currentManagedOrgID=u,this.currrentManagedPropID=b})}onGetTemplates(d){this.tLoading=!0,this.eventRows=d.rows,this.firstone=0===d.first?1:d.first/d.rows+1,this.pagelimit="?limit="+this.eventRows+"&page="+this.firstone,this.onGettemplates()}onGettemplates(){this.loading.start(),this.service.Gettemplates(this.constructor.name,h.e.consentSolutionModule,this.currentManagedOrgID).subscribe(d=>{this.loading.stop(),this.templatesList=d.response,this.RecordCount=d.count},d=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=d,this.alertType="danger"})}onInitForm(){this.SMTPConfigurationForm=this.formBuilder.group({name:["DSAR Template",l.kI.required],body:["<p>Hey <strong>[Consumer Name]</strong>,</p>\n<p><br></p>\n<p><i>Create your own customized template.</i></p>\n",l.kI.required]}),this.editSMTPConfigurationForm=this.formBuilder.group({name:["",l.kI.required],body:["<p>Hey [Consumer Name],</p>\n<p><br></p>\n<p>Content of email template</p>\n<p><br></p>\n",l.kI.required]}),this.confirmationForm=this.formBuilder.group({userInput:["",[l.kI.required]]})}deleteTemp(d){this.id=d.id,this.openModal(this.confirmModal)}confirmPlanDelete(){this.modalRef.hide(),this.service.deleteTemplates(this.constructor.name,h.e.loginModule,this.currentManagedOrgID,this.id).subscribe(d=>{d&&(this.isOpen=!0,this.alertMsg=d.response,this.alertType="success",this.onGettemplates(),this.onCanceled())},d=>{this.isOpen=!0,this.alertMsg=d,this.alertType="danger",this.onCanceled()})}onCanceled(){this.isconfirmationsubmitted=!1,this.modalRef.hide(),this.confirmationForm.reset()}onCreateSendForm(){const d="^[a-zA-Z]+$";this.SenderForm=this.formBuilder.group({name:["",l.kI.required],from_email:["",[l.kI.required,l.kI.pattern]],from_name:["",l.kI.required],reply_email:["",[l.kI.required,l.kI.pattern]],address:["",l.kI.required],city:["",[l.kI.required,l.kI.pattern(d)]],country:["",[l.kI.required,l.kI.pattern(d)]]})}get f(){return this.SMTPConfigurationForm.controls}get s(){return this.editSMTPConfigurationForm.controls}get confirmDelete(){return this.confirmationForm.controls}onSubmit(){if(this.submitted=!0,this.isOpen=!1,this.SMTPConfigurationForm.invalid)return;const d={name:this.SMTPConfigurationForm.value.name,template:this.SMTPConfigurationForm.value.body};this.loading.start(),this.service.CreateEmailConfig(this.constructor.name,h.e.consentSolutionModule,d,this.currentManagedOrgID).subscribe(u=>{this.loading.stop(),200===u.status||201===u.status?(this.isOpen=!0,this.alertMsg=u.response,this.alertType="success",this.modalRef.hide(),this.onGettemplates(),this.onReset()):this.verficationError=!0},u=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=u,this.alertType="danger"})}onSubmitConfirmation(){return this.isconfirmationsubmitted=!0,this.isOpen=!1,!this.confirmationForm.invali
1d&&("Delete"!==this.confirmationForm.value.userInput?(this.confirmationForm.reset(),this.isconfirmationsubmitted=!1,!1):void this.confirmPlanDelete())}edittemp(d){this.id=d.id,this.editSMTPConfigurationForm.patchValue({name:d.name,body:d.template}),this.openModal(this.edittemplate)}onEdit(){if(this.editsubmitted=!0,this.isOpen=!1,this.editSMTPConfigurationForm.invalid)return;const d={name:this.editSMTPConfigurationForm.value.name,template:this.editSMTPConfigurationForm.value.body};this.loading.start(),this.service.edittemplates(this.constructor.name,h.e.dsarRequestModule,d,this.currentManagedOrgID,this.id).subscribe(u=>{this.loading.stop(),200===u.status||201===u.status?(this.isOpen=!0,this.alertMsg=u.response,this.alertType="success",this.editSMTPConfigurationForm.reset(),this.modalRef.hide(),this.onGettemplates()):this.verficationError=!0},u=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=u,this.alertType="danger",this.onGettemplates(),this.modalRef.hide()})}onReset(){this.submitted=!1,this.modalRef?.hide(),this.SMTPConfigurationForm.patchValue({name:"DSAR Template",body:"<p>Hey <strong>[Consumer Name]</strong>,</p>\n<p><br></p>\n<p><i>Create your own customized template.</i></p>\n"})}oneditCancel(){this.submitted=!1,this.editSMTPConfigurationForm.reset(),this.modalRef.hide()}openModal(d){this.modalRef=this.modalService.show(d,this.modalConfig)}};let s=g;return g.\u0275fac=function(u){return new(u||g)(t.Y36(l.QS),t.Y36(U.tT),t.Y36(M.gz),t.Y36(M.F0),t.Y36(O.e),t.Y36(P.LA),t.Y36(q.D),t.Y36(D.Dx),t.Y36(x.$))},g.\u0275cmp=t.Xpm({type:g,selectors:[["app-dsar-smtp-config"]],viewQuery:function(u,b){if(1&u&&(t.Gf(C,5),t.Gf(T,5)),2&u){let S;t.iGM(S=t.CRH())&&(b.edittemplate=S.first),t.iGM(S=t.CRH())&&(b.confirmModal=S.first)}},decls:31,vars:14,consts:[["appTheme","",1,"dsar-smtp-wrapper"],[1,"d-sm-flex","align-items-center","justify-content-between","mg-b-5","mg-lg-b-10","mg-xl-b-15"],["aria-label","breadcrumb"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],[1,"breadcrumb-item","active"],[2,"display","flex","justify-content","space-between","align-items","center","background-color","white"],[1,"ml-2"],["type","button",1,"btn","btn-sm","btn-primary","mb-3","mt-3","mr-2",3,"click"],[1,"fa","fa-plus"],["scrollHeight","450px","currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries","styleClass","p-datatable-sm",1,"cookie-tracking-table",3,"value","scrollable","lazy","responsive","paginator","rows","showCurrentPageReport","totalRecords","rowsPerPageOptions","onLazyLoad"],["dt",""],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["template",""],["edittemplate",""],["confirmTemplate",""],[1,"col-sm-5","mr-0","float-right","flotingdiv",3,"ngClass"],["dismissOnTimeout","5000",3,"type",4,"ngIf"],[1,"al"],["href","javascript:;"],["pButton","","type","button","tooltip","Edit","icon","pi pi-pencil",1,"p-button-sm",2,"border","none","font-size","11px","color","#0168fa","background-color","white",3,"click"],["pButton","","type","button","tooltip","Delete Record","icon","pi pi-trash",1,"p-button-sm",2,"border","none","margin-left","10px","font-size","11px","color","red","background-color","white",3,"click"],[1,"text-center"],[1,"modal-header"],[1,"modal-title","pull-left"],["type","button","aria-label","Close",1,"btn-close","close","pull-right",3,"click"],["aria-hidden","true",1,"visually-hidden"],["appTheme","",1,"modal-body"],[1,"smtp-config","card",2,"width","100%"],[1,"card-body"],[1,"alert","alert-info"],[3,"formGroup","ngSubmit"],[1,"form-group"],["for","emailSubject"],["aria-hidden","true",1,"tx-8","fa","fa-asterisk","tx-danger","ml-1",2,"vertical-align","super"],["type","text","id","emailSubject","formControlName","name","placeholder","Enter name of template",1,"form-control",3,"ngClass"],["class","invalid-feedback",4,"ngIf"],["formControlName","body",3,"modules","ngClass"],[2,"text-align","center"],["type","button",1,"btn","btn-secondary","mr-2",3,"click"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"invalid-feedback"],[4,"ngIf"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["appTheme","",1,"modal-body","text-center"],[1,"mt-2"],["type","text","formControlName","userIn
1put","name","userInput","required","",1,"form-control",3,"ngClass"],["class","invalid-feedback text-left",4,"ngIf"],[1,"btn","btn-xs","btn-primary","btn-block","mt-3"],[1,"invalid-feedback","text-left"],["dismissOnTimeout","5000",3,"type"],[3,"innerHTML"]],template:function(u,b){if(1&u){const S=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"nav",2)(4,"ol",3)(5,"li",4),t._uU(6,"Privacy"),t.qZA(),t.TgZ(7,"li",4),t._uU(8,"Privacy Rights"),t.qZA(),t.TgZ(9,"li",5),t._uU(10,"Custom Template"),t.qZA()()()()(),t.TgZ(11,"section",6)(12,"h5",7),t._uU(13," Custom Email Template "),t.qZA(),t.TgZ(14,"button",8),t.NdJ("click",function(){t.CHM(S);const F=t.MAs(24);return t.KtG(b.openModal(F))}),t._UZ(15,"i",9),t._uU(16," Create template\xa0"),t.qZA()(),t.TgZ(17,"div")(18,"p-table",10,11),t.NdJ("onLazyLoad",function(F){return b.onGetTemplates(F)}),t.YNc(20,v,11,0,"ng-template",12),t.YNc(21,E,15,8,"ng-template",13),t.YNc(22,k,3,1,"ng-template",14),t.qZA()()(),t.YNc(23,G,42,11,"ng-template",null,15,t.W1O),t.YNc(25,z,42,11,"ng-template",null,16,t.W1O),t.YNc(27,W,17,5,"ng-template",null,17,t.W1O),t.TgZ(29,"div",18),t.YNc(30,V,2,2,"alert",19),t.qZA()}2&u&&(t.xp6(18),t.Q6J("value",b.templatesList)("scrollable",!0)("lazy",!0)("responsive",!0)("paginator",!0)("rows",10)("showCurrentPageReport",!0)("totalRecords",b.RecordCount)("rowsPerPageOptions",t.DdM(11,$)),t.xp6(11),t.Q6J("ngClass",t.VKq(12,tt,!b.isOpen)),t.xp6(1),t.Q6J("ngIf",b.isOpen))},dependencies:[Z.mk,Z.O5,l._Y,l.Fj,l.JJ,l.JL,l.Q7,l.sg,l.u,L.g6,o.i9,r.wx,p.mh,a.iA,i.jx,n.Hq,c.E,Z.uU],styles:[".smtp-config[_ngcontent-%COMP%]{margin:auto;width:35%}.alert-info[_ngcontent-%COMP%]{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-success[_ngcontent-%COMP%]{background-color:#10b759;border-color:#10b759;color:#fff}.alert-danger[_ngcontent-%COMP%]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.flotingdiv[_ngcontent-%COMP%]{position:fixed;bottom:0;top:84%;right:0;overflow-x:hidden;overflow-y:auto}.status-btn[_ngcontent-%COMP%]{padding:4px 18px;font-size:10px}.flexdiv[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center} .dsar-smtp-wrapper .p-datatable.p-datatable-sm .p-datatable-header{display:flex;width:100%;border-radius:5px 5px 0 0} .dsar-smtp-wrapper .p-datatable{position:relative;border:1px solid #ccc;border-radius:5px} .dsar-smtp-wrapper .p-datatable .p-datatable-header{border-bottom:1px solid #ccc;border-top:1px solid #ccc} .dsar-smtp-wrapper .p-datatable .p-datatable-thead>tr>th{font-size:11px} .dsar-smtp-wrapper .p-datatable.p-datatable-sm .p-datatable-tbody>tr>td>a:hover{text-decoration:underline} .dsar-smtp-wrapper .p-datatable .p-sortable-column .p-sortable-column-icon{margin-left:0;font-size:.6rem} .dsar-smtp-wrapper .p-datatable.p-datatable-sm .p-datatable-thead>tr>th{padding:.8rem .3rem} .dsar-smtp-wrapper .p-datatable.p-datatable-sm .p-datatable-thead>tr>th:first-child{padding:.8rem .5rem} .dsar-smtp-wrapper .p-multiselect .p-multiselect-label{padding:.3rem}.cookie-tracking-table[_ngcontent-%COMP%] .p-datatable{border:1px solid rgba(72,94,144,.16);border-top:0}.cookie-tracking-table[_ngcontent-%COMP%] .p-datatable .p-paginator-bottom{border-top:0;display:flex;justify-content:center}.cookie-tracking-table[_ngcontent-%COMP%] .p-paginator-bottom .p-paginator{display:flex;position:relative}.cookie-tracking-table[_ngcontent-%COMP%] .p-paginator-current{position:absolute;right:0}.cookie-tracking-table[_ngcontent-%COMP%] .p-inputwrapper-filled{position:absolute;left:0}.cookie-tracking-table[_ngcontent-%COMP%] .p-datatable .p-paginator-bottom{border-top:1px solid #ccc;border-radius:0 0 10px 10px;border-bottom:0;justify-content:center}"]}),s})(),canActivate:[_.a1]}];let it=(()=>{const g=class{};let s=g;return g.\u0275fac=function(u){return new(u||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[M.Bz.forChild(et),M.Bz]}),s})();var nt=m(23501),ot=m(55466),rt=m(91742);let at=(()=>{const g=class{};let s=g;return g.\u0275fac=function(u){return new(u||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[Z.ez,it,l.u5,l.UX,f.J,a.U$,n.hJ,nt.O.forRoot({themes:[ot.W,rt.$],active:y.N.theme})]}),s})()}}]);
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.