1"use strict";(self.webpackChunknobleui_angular=self.webpackChunknobleui_angular||[]).push([[286],{64090:(le,N,a)=>{a.d(N,{d:()=>J});var i=a(92938),p=a(54724),T=a(86942),S=a(22560),U=a(19787),E=a(33507);let J=(()=>{class Z{constructor(x,D){this.authService=x,this.commonService=D}getMerchantKeys(){const x=this.authService.getUser.userType;return this.commonService.getCommonHttpClientQueryParams(p.D.getAuthKeys,{userId:"MERCHANT"===x?this.authService.getUser.merchantId:this.authService.getUser.customerId,userType:x}).pipe((0,T.U)(b=>{let g={apiKey:"",secretKey:"",maskedSecretKey:"",isKeyPresent:!1,buttontext:"Generate Keys",authId:""};return b?.data?.api_key&&b?.data?.secret_key&&(g.apiKey=b.data.api_key,g.secretKey=b.data.secret_key,(0,i.isEmpty)(g.secretKey)||(g.maskedSecretKey=((L,h=4)=>L&&"*".repeat(Math.max(L.length-h,0))+L.slice(-h))(g.secretKey)),g.isKeyPresent=!0,g.buttontext="Reset Secret Key",g.authId=b.data.id),g}))}createAuthKeys(x=!1,D=""){const b=this.authService.getUser.userType,g={userId:"MERCHANT"===b?this.authService.getUser.merchantId:this.authService.getUser.customerId,userType:b,updateSecretKey:x};return x&&(g.authId=D),this.commonService.postCommonHttpClient(p.D.postAuthKeys,g)}}return Z.\u0275fac=function(x){return new(x||Z)(S.LFG(U.e),S.LFG(E.v))},Z.\u0275prov=S.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})()},4241:(le,N,a)=>{a.d(N,{z:()=>ie});var i=a(22560),v=a(2508),p=a(71183),T=a(20177),S=a(54724),U=a(40929),E=a(33507),J=a(94666),Z=a(33935);function Q(l,u){if(1&l&&(i.TgZ(0,"h4"),i._uU(1),i.qZA()),2&l){const d=i.oxw();i.xp6(1),i.Oqu(d.amount)}}function x(l,u){if(1&l&&(i.TgZ(0,"span"),i._UZ(1,"strong",16),i.qZA()),2&l){const d=i.oxw(2);i.xp6(1),i.Q6J("innerHTML",d.body,i.oJD)}}function D(l,u){if(1&l&&i._UZ(0,"span",16),2&l){const d=i.oxw(2);i.Q6J("innerHTML",d.body,i.oJD)}}function b(l,u){if(1&l&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&l){const d=i.oxw(2);i.xp6(1),i.hij(" ",d.authGenreationInput," ")}}function g(l,u){if(1&l&&(i.TgZ(0,"p"),i.YNc(1,x,2,1,"span",14),i.YNc(2,D,1,1,"ng-template",null,15,i.W1O),i.YNc(4,b,2,1,"span",6),i.qZA()),2&l){const d=i.MAs(3),e=i.oxw();i.xp6(1),i.Q6J("ngIf",e.isAuthGeneration)("ngIfElse",d),i.xp6(3),i.Q6J("ngIf",e.isAuthGeneration)}}function F(l,u){if(1&l&&(i.TgZ(0,"ngb-alert",17),i._UZ(1,"i",18),i._uU(2),i.qZA()),2&l){const d=i.oxw();i.Q6J("dismissible",!1),i.xp6(2),i.hij(" ",d.body," ")}}function L(l,u){1&l&&(i.TgZ(0,"ngb-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&l&&(i.Q6J("dismissible",!1)("type","danger"),i.xp6(1),i.hij(" ",i.lcZ(2,3,"errorMsg.missingMail")," "))}function h(l,u){1&l&&(i.TgZ(0,"ngb-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&l&&(i.Q6J("dismissible",!1)("type","danger"),i.xp6(1),i.hij(" ",i.lcZ(2,3,"errorMsg.invalidMail")," "))}function O(l,u){if(1&l&&(i.TgZ(0,"div"),i.YNc(1,L,3,5,"ngb-alert",24),i.YNc(2,h,3,5,"ngb-alert",24),i.qZA()),2&l){const d=i.oxw(2);i.xp6(1),i.Q6J("ngIf",d.emailForm.get("email").errors.required),i.xp6(1),i.Q6J("ngIf",d.emailForm.get("email").errors.hasEmail)}}function f(l,u){if(1&l&&(i.TgZ(0,"ngb-alert",25),i._uU(1),i.qZA()),2&l){const d=i.oxw(2);i.Q6J("dismissible",!1)("type","danger"),i.xp6(1),i.hij(" ",d.errorMsg," ")}}function $(l,u){if(1&l&&(i.TgZ(0,"div",19)(1,"form",20)(2,"div",21)(3,"h5",22),i._uU(4),i.qZA(),i._UZ(5,"input",23),i.YNc(6,O,3,2,"div",6),i.TgZ(7,"div"),i.YNc(8,f,2,3,"ngb-alert",24),i.qZA()()()()),2&l){const d=i.oxw();i.xp6(1),i.Q6J("formGroup",d.emailForm),i.xp6(3),i.hij("",d.inputLabel," "),i.xp6(2),i.Q6J("ngIf",!d.emailForm.get("email").valid&&d.emailForm.get("email").dirty),i.xp6(2),i.Q6J("ngIf",d.errorMsg&&d.emailForm.get("email").valid)}}function W(l,u){1&l&&i._UZ(0,"span",28)}function H(l,u){if(1&l){const d=i.EpF();i.TgZ(0,"button",26),i.NdJ("click",function(){i.CHM(d);const y=i.oxw();return i.KtG(y.closeModal())}),i.YNc(1,W,1,0,"span",27),i._uU(2),i.qZA()}if(2&l){const d=i.oxw();i.xp6(1),i.Q6J("ngIf",d.enableConfirmSpinner),i.xp6(1),i.hij(" ",d.confirmButtonLabel,"")}}function z(l,u){1&l&&i._UZ(0,"span",28)}function G(l,u){if(1&l){const d=i.EpF();
1i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(d);const y=i.oxw();return i.KtG(y.saveEmail())}),i.YNc(1,z,1,0,"span",27),i._uU(2),i.qZA()}if(2&l){const d=i.oxw();i.Q6J("disabled",d.emailForm.get("email").invalid),i.xp6(1),i.Q6J("ngIf",d.enableConfirmSpinner),i.xp6(1),i.hij(" ",d.confirmButtonLabel,"")}}function X(l,u){if(1&l){const d=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(y){i.CHM(d);const Y=i.oxw();return i.KtG(Y.cancelModal(y))}),i._uU(1),i.qZA()}if(2&l){const d=i.oxw();i.xp6(1),i.Oqu(d.cancelButtonLabel)}}function ee(l,u){1&l&&(i.TgZ(0,"div",31)(1,"p"),i._UZ(2,"span",32),i._uU(3," Tip adjust is not possible after the batch has been closed"),i.qZA()())}const te=function(l,u){return{"justify-content-center":l," justify-content-between":u}};let ie=(()=>{class l{constructor(d,e,y,Y){this.modal=d,this.ngbModal=e,this.formBuilder=y,this.commonService=Y,this.confirmButtonLabel="Confirm",this.cancelButtonLabel="Cancel",this.confirmationSpinner=!1,this.hasAlternatePayment=!1,this.isAuthGeneration=!1,this.emitData=new i.vpe,this.enableConfirmSpinner=!1,this.errorMsg=""}ngOnInit(){this.emailForm=this.createEmailForm()}createEmailForm(){return this.formBuilder.group({email:["",[v.kI.required,p.d.PatternValidator(T.HN,{hasEmail:!0})]]})}closeModal(){this.enableConfirmSpinner=this.confirmationSpinner,this.confirmationSpinner?this.emitData.next("processing"):this.modal.close("confirm")}saveEmail(){let d=this.emailForm.get("email").value;this.enableConfirmSpinner=!0,this.commonService.getCommonHttpClientQueryParams(S.D.saveEmailForReportDownload,{jobId:this.jobId,email:d}).subscribe(y=>{this.modal.close("confirm"),this.enableConfirmSpinner=!1},y=>{this.errorMsg="An error occurred while saving the email.",this.enableConfirmSpinner=!1})}cancelModal(d){d.preventDefault(),console.log("----\x3ecancel button calling.."),this.modal.close("cancel")}}return l.\u0275fac=function(d){return new(d||l)(i.Y36(U.Kz),i.Y36(U.FF),i.Y36(v.QS),i.Y36(E.v))},l.\u0275cmp=i.Xpm({type:l,selectors:[["app-confirmation-dialog"]],inputs:{header:"header",body:"body",confirmMsg:"confirmMsg",amount:"amount",tipFlag:"tipFlag",isInput:"isInput",inputLabel:"inputLabel",jobId:"jobId",confirmButtonLabel:"confirmButtonLabel",cancelButtonLabel:"cancelButtonLabel",informationModal:"informationModal",confirmationSpinner:"confirmationSpinner",hasAlternatePayment:"hasAlternatePayment",isAuthGeneration:"isAuthGeneration",authGenreationInput:"authGenreationInput"},outputs:{emitData:"emitData"},decls:18,vars:14,consts:[[1,"modal-header","d-flex",3,"ngClass"],[1,"row","thumbs_icon"],[1,"ml-2"],["id","exampleModalLongTitle",1,"modal-title"],[1,"font-weight-bold","text_baseline"],[1,"modal-body","text-center","px-3","py-3"],[4,"ngIf"],[3,"dismissible",4,"ngIf"],["class","col-sm-12 mt-4",4,"ngIf"],[1,"card-footer"],["class","btn btn-primary float-right mb-2 mr-2",3,"click",4,"ngIf"],["class","btn btn-primary float-right mb-2 mr-2",3,"disabled","click",4,"ngIf"],["type","button","class","btn btn-danger mb-2 mr-2 float-right",3,"click",4,"ngIf"],["class","modal-body mb-2 mt-3",4,"ngIf"],[4,"ngIf","ngIfElse"],["normalBody",""],[3,"innerHTML"],[3,"dismissible"],[1,"feather","icon-alert-triangle"],[1,"col-sm-12","mt-4"],[3,"formGroup"],[1,"form-group"],[1,"control-label"],["type","email","formControlName","email","placeholder","[email protected]",1,"form-control","mt-2"],[3,"dismissible","type",4,"ngIf"],[3,"dismissible","type"],[1,"btn","btn-primary","float-right","mb-2","mr-2",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"btn","btn-primary","float-right","mb-2","mr-2",3,"disabled","click"],["type","button",1,"btn","btn-danger","mb-2","mr-2","float-right",3,"click"],[1,"modal-body","mb-2","mt-3"],[1,"tipClass","mdi","mdi-18px","mdi-alert-circle-outline"]],template:function(d,e){1&d&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5",3)(4,"span",4),i._uU(5),i.qZA()()()()(),i.TgZ(6,"div",5),i.YNc(7,Q,2,1,"h4",6),i.TgZ(8,"h6"),i._uU(9),i.qZA(),i.YNc(10,g,5,3,"p",6),i.YNc(11,F,3,2,"ngb-alert",7),i.YNc(12,$,9,4,"div",8),i.qZA(),i.TgZ(13,"div",9),i.YNc(14,H,3,2,"button",10),i.YNc(15,G,3,3,"button",11),i.YNc(16,X,2,1,"button",12),i.qZA(),i.YNc(17,ee,4,0,"div",13)),2&d&&(i.Q6J("ngClass",i.WLB(11,te,e.isAuthGeneration,!e.isAuthGeneration)),i.xp6(5),i.hij("",e.header," "),i.xp6(2),i.Q6J("ngIf",!e.hasAlternatePayment),i.xp6(2),i.Oqu(e.confirmMsg),i.xp6(1),i.Q6J("ngIf",!e.isInput),i.xp6(1),i.Q6J("ngIf",e.isInput),i.xp6(1),i.Q6J("ngIf",e.isInput),i.xp6(2),i.Q6J("ngIf",!e.isInput),i.xp6(1),i.Q6J("ngIf",e.isInput),i.xp6(1),i.Q6J("ngIf",!e.informationModal),i.xp6(1),i.Q6J("ngIf",e.tipFlag))},dependencies:[J.mk,J.O5,v._Y,v.Fj,v.JJ,v.JL,v.sg,v.u,U.xm,Z.X$],styles:[".tipClass[_ngcontent-%COMP%]{color:#dddd0f}"]}),l})()},70286:(le,N,a)=>{a.r(N),a.d(N,{CustomerSettingsModule:()=>mt});var i=a(94666),v=a(47073),p=a(2508),T=a(40929),S=a(18161),U=a(4524),E=a(33935),J=a(97212),Z=a(4403),Q=a(59462),x=a(22872),D=a(33937),b=a(41493),g=a(83918),F=a(46261),L=a(71183),h=a(54724),O=a(20177),f=a(92938),$=a(92218),W=a(47283),H=a(64139),z=a(80823),G=a(88759),X=a(59095),ee=a(86942),te=a(47418),ie=a(58987),l=a(91874),u=a(51073),d=a(4241),e=a(22560),y=a(33507),Y=a(54060),me=a(70866),ue=a(777),ge=a(19787),he=a(10092),_e=a(64090),ce=a(28424),R=a(92340),ne=a(92522),fe=a(65701);function ve(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"div",12),e.NdJ("change",function(s){e.CHM(t);const r=e.oxw(2);return e.KtG(r.onSelect(s))}
1),e.TgZ(2,"ngx-dropzone-label")(3,"div"),e._UZ(4,"i",13),e.TgZ(5,"h5"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"h6"),e._uU(9),e.ALo(10,"translate"),e.qZA()()()()()}2&o&&(e.xp6(1),e.Q6J("multiple",!1)("accept","image/png,image/jpeg,image/jpg"),e.xp6(5),e.Oqu(e.lcZ(7,4,"htmlText.addImage")),e.xp6(3),e.Oqu(e.lcZ(10,6,"htmlText.dragDrop")))}function xe(o,c){if(1&o&&(e.TgZ(0,"div",8)(1,"div",9)(2,"div",10),e.YNc(3,ve,11,8,"div",11),e.qZA()()()),2&o){const t=e.oxw();e.xp6(3),e.Q6J("ngIf",(null==t.files?null:t.files.length)<5)}}function be(o,c){1&o&&e._UZ(0,"app-loading")}function ye(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div",18)(1,"div",19)(2,"input",20),e.NdJ("change",function(){const s=e.CHM(t),r=s.index,m=s.$implicit,_=e.oxw(3);return e.KtG(_.setSelectedRadioIndex(r,m))}),e.qZA(),e.TgZ(3,"div",21)(4,"ngx-dropzone-image-preview",22),e.NdJ("removed",function(){const s=e.CHM(t),r=s.$implicit,m=s.index,_=e.oxw(3);return e.KtG(_.onRemove(r,_.currentIndex==m))}),e.qZA()()()()}if(2&o){const t=c.$implicit,n=c.index,s=e.oxw(3);e.xp6(2),e.Gre("form-check-input defaultImageIndex_",n,""),e.Q6J("checked",s.currentIndex==n),e.xp6(2),e.Q6J("file",t)("removable",!0)}}function Te(o,c){if(1&o&&(e.TgZ(0,"div",16),e.YNc(1,ye,5,6,"div",17),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.files)}}function Ie(o,c){if(1&o&&(e.TgZ(0,"div",14),e.YNc(1,be,1,0,"app-loading",11),e.YNc(2,Te,2,1,"div",15),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.isLoading),e.xp6(1),e.Q6J("ngIf",!t.isLoading)}}function Ce(o,c){1&o&&e._UZ(0,"span",23)}let Ae=(()=>{class o{constructor(t,n,s){this.CommonService=t,this.messageService=n,this.ngbModal=s,this.files=[],this.currentIndex=0,this.originalIndex=0,this.formDataImage=new FormData,this.formData=new FormData,this.dba="",this.customerId=(0,f.get)(JSON.parse(localStorage.getItem("current_user")),"customerId"),this.missingFileIndex=[1,2,3,4,5],this.existingFileIndex=[],this.spinLoader=!1,this.disableSaveButton=!0,this.getCustomerData=new e.vpe,this.infoMsg={general:()=>({header:"Delete Logo",body:"Are you sure want to delete selected ISO logo?",onlyCancelButton:!1}),isLogoUsed:r=>({header:"Delete Logo",body:`This logo has been configured as a Default logo for ${r} TPN(s). Do you want to delete this logo?`,onlyCancelButton:!1})}}ngOnInit(){this.getCustomerImages()}getCustomerImages(){var t=this;this.isLoading=!0,this.CommonService.getCommonHttpClientParams(`${h.D.getCustomerById}/${this.customerId}`).subscribe(function(){var n=(0,g.Z)(function*(s){t.getCustomerData.emit(s);let{logo1Image:r,logo1Index:m,logo1Label:_,logo2Image:P,logo2Index:k,logo2Label:C,logo3Image:A,logo3Index:q,logo3Label:se,logo4Image:ut,logo4Index:gt,logo4Label:ae,logo5Image:ht,logo5Index:_t,logo5Label:re,defaultImage:K,dba:ft}=s.data;t.dba=ft;let B=[];if(B.push(...null!=_?[{logo1Image:r,logo1Index:m,index:1,logo1Label:_,isEdit:!0,isDefaultLogo:!1,..._==K&&{defaultImage:K,isDefaultLogo:!0}}]:[],...null!=C?[{logo2Image:P,logo2Index:k,index:2,logo2Label:C,isEdit:!0,isDefaultLogo:!1,...C==K&&{defaultImage:K,isDefaultLogo:!0}}]:[],...null!=se?[{logo3Image:A,logo3Index:q,index:3,logo3Label:se,isEdit:!0,isDefaultLogo:!1,...se==K&&{defaultImage:K,isDefaultLogo:!0}}]:[],...null!=ae?[{logo4Image:ut,logo4Index:gt,index:4,logo4Label:ae,isEdit:!0,isDefaultLogo:!1,...ae==K&&{defaultImage:K,isDefaultLogo:!0}}]:[],...null!=re?[{logo5Image:ht,logo5Index:_t,index:5,logo5Label:re,isEdit:!0,isDefaultLogo:!1,...re==K&&{defaultImage:K,isDefaultLogo:!0}}]:[]),console.log("files def"),console.log(B),!(0,f.isEmpty)(B)){let j=[];t.files.length>0&&(j=t.files,t.files=[]),console.log("tempFiles"),console.log(j),t.disableSaveButton=!(t.files.length>0);for(let V=0;V<B.length;V++){let M=B[V],vt=`logo${M.index}Label`,pe=yield t.createFile(M[vt]),xt=`logo${M.index}Image`;t.existingFileIndex.push(M.index),(0,f.get)(M,"isDefaultLogo",!1)&&(t.originalIndex=t.currentIndex=V),Object.defineProperties(pe,{isEdit:{value:!0,writable:!0},logoIndexImage:{value:xt},fileLocation:{value:M[`logo${M.index}Image`]},index:{value:M.index}}),t.files.push(pe)}console.log("this.files before concat"),console.log(t.files),j.length>0&&(console.log("ion temp files"),t.files=t.files.concat(j)),console.log("aftr concat"),console.log(t.files),t.resetMissingIndex("NA",{})}t.isLoading=!1});return function(s){return n.apply(this,arguments)}}(),n=>{console.log(n),this.showAlert(n,"error")})}resetMissingIndex(t,n){if(console.log({missingFileIndex:this.missingFileIndex,existingFileIndex:this.existingFileIndex}),"add"==t){let s=this.missingFileIndex[0];return this.existingFileIndex.push(s),this.missingFileIndex.shift(),s}if("remove"==t){this.missingFileIndex.push(n.index);let s=this.existingFileIndex.indexOf(n.index);s>-1&&this.existingFileIndex.splice(s,1),this.missingFileIndex.sort()}(0,f.isEmpty)(this.existingFileIndex)||(this.missingFileIndex=this.missingFileIndex.filter(s=>!this.existingFileIndex.includes(s)),this.missingFileIndex.sort()),console.log({missingFileIndex:this.missingFileIndex,existingFileIndex:this.existingFileIndex}),console.log("this.files"),console.log(this.files)}onSelect(t){var n=this;return(0,g.Z)(function*(){if(console.log(t.addedFiles),yield n.CommonService.doubleExtensionCheck(t.addedFiles[0].name))return n.showAlert({status:"Double Extension",message:"Remove extension from file name"},"error"),!1;const m=yield n.isValidFileBySignature(t.addedFiles[0],[137,80,78,71,13,10,26,10]),P=yield n.isValidFileBySignature(t.addedFiles[0],[255,216,255]);if(!m&&!P)return n.showAlert({status:"Invalid Image",message:"Please upload a valid image file. Ensure that the file is not corrupted or incorrectly renamed"},"error"),!1;let k=n.resetMissingIndex("add",t);Object.defineProperties(t.addedFiles[0],{isEdit:{value:!1,writable:!0},logoIndexImage:{value:`logo${k}
1Image`},index:{value:k,writable:!0}}),n.files.push(...t.addedFiles),n.disableSaveButton=!1,console.log(n.files)})()}checklogo(t){return new Promise((n,s)=>{this.CommonService.postCommonHttpClient(h.D.countLogoImage,{logoImg:R.N.apiFullUrl+"/assets/images/"+t}).subscribe(m=>{n(m)},m=>{n(null)})})}onRemove(t,n){var s=this;return(0,g.Z)(function*(){if(t.isEdit){let r=s.ngbModal.open(l.s,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1});r.componentInstance.header="Delete Logo",r.componentInstance.isLoading=!0;let m=yield s.checklogo(t.name);const _=m.count;let P=_>0?s.infoMsg.isLogoUsed(_):s.infoMsg.general();r.componentInstance.isLoading=!1,r.componentInstance.body=P.body,r.componentInstance.commitButtonText="Sure",r.componentInstance.enableISOLogo=!0,r.componentInstance.showWarning=_>0,r.componentInstance.tpnsListForDeletion=m.tpns,r.componentInstance.deleteIsoLogo.subscribe(function(){var k=(0,g.Z)(function*(C){if(console.log(C),"success"==C){if(_){let q=R.N.apiFullUrl+"/assets/images/"+t.name;yield s.CommonService.deleteCommonHttpClient(h.D.deleteLogoFromTpns+`?logoUrl=${q}`).toPromise()}s.removeImageAndresetIndex(t);let A=new FormData;A.append("customerId",s.customerId),A.append("deleteLogo","true"),A.append("deletedIndex",t.logoIndexImage),A.append("fileName",t.name),s.files.length>0&&n&&1==s.files[0].isEdit?(A.append("defaultImage",s.files[0].name),s.currentIndex=0):0==s.files.length&&A.append("defaultImage",null),s.updateCustomerLogo(A,r)}});return function(C){return k.apply(this,arguments)}}()),r.result.then(k=>{console.log(k)})}else s.removeImageAndresetIndex(t)})()}removeImageAndresetIndex(t){console.log("removeImageAndresetIndex"),console.log(t),this.files.splice(this.files.indexOf(t),1),0==this.files.length?(this.currentIndex=0,this.disableSaveButton=!0):this.files.length<=this.currentIndex&&(this.currentIndex=this.currentIndex-1),0==this.files.filter(s=>0==s.isEdit).length&&(this.disableSaveButton=!0),this.resetMissingIndex("remove",t)}setSelectedRadioIndex(t,n){this.currentIndex=t,this.disableSaveButton=!1}getPath(t){return`${R.N.apiUrl}/assets/images/${t[`logo${t.index}Label`]}`}createFile(t){return(0,g.Z)(function*(){let n=yield fetch(`${R.N.apiUrl}/assets/images/${t}`);console.log("response"),console.log(n);let s=yield n.blob();return new File([s],t,{type:"image/jpeg"})})()}save(){this.spinLoader=!0;let t=new FormData;t.append("dba",this.dba),t.append("customerId",this.customerId),console.log(this.currentIndex),this.files.forEach((n,s)=>{let r=`logo${n.index}Image`;0==n.isEdit&&(t.append(n.logoIndexImage,n),t.append(r,`${s+1}`)),this.currentIndex==s&&t.append("defaultImage",`${n.name}`)}),this.updateCustomerLogo(t,void 0)}updateCustomerLogo(t,n){this.CommonService.postCommonHttpClient(h.D.editCustomerLogo,t).subscribe(s=>{console.log(s),this.showAlert({message:s.message,status:"Success"},"success"),this.spinLoader=!1,(0,f.isEmpty)(n)?this.resetData([]):(n.close("close"),this.resetData(this.files.filter(m=>!1===m.isEdit))),this.getCustomerImages()},s=>{console.log(s),this.showAlert(s,"error"),this.spinLoader=!1})}showAlert(t,n){this.messageService.add({severity:n,summary:t.status,detail:t.message})}resetData(t){this.files=t,this.currentIndex=0,this.missingFileIndex=[1,2,3,4,5],this.existingFileIndex=[]}isValidFileBySignature(t,n){return(0,g.Z)(function*(){const s=new Uint8Array(yield t.slice(0,n.length).arrayBuffer());return n.every((r,m)=>s[m]===r)})()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(y.v),e.Y36(F.ez),e.Y36(T.FF))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-iso-logo-upload"]],outputs:{getCustomerData:"getCustomerData"},decls:19,vars:18,consts:[["class","container-fluid mt-4",4,"ngIf"],["class","container",4,"ngIf"],[1,"mt-2"],[3,"dismissible","type"],[1,""],[1,"text-right"],["type","button",1,"btn","btn-primary","mr-2",3,"disabled","click"],["class","spinner-border spinner-border-sm ","role","status","aria-hidden","true",4,"ngIf"],[1,"container-fluid","mt-4"],[1,"row","justify-content-center"],[1,"col-md-6","col","align-self-center","mt-4"],[4,"ngIf"],["ngx-dropzone","",1,"custom-dropzone",2,"height","120px",3,"multiple","accept","change"],["data-feather","upload","appFeatherIcon","",1,"icon-lg",2,"margin","0px"],[1,"container"],["class","row",4,"ngIf"],[1,"row"],["class","col-md-2 mt-4 mb-4",4,"ngFor","ngForOf"],[1,"col-md-2","mt-4","mb-4"],[1,"card","card-margin","align_img_btn"],["type","radio","name","gob","value","i",2,"position","absolute","z-index","1","top","10px","left","26px",3,"checked","change"],[1,"card-body","p-1"],["ngProjectAs","ngx-dropzone-preview",5,["ngx-dropzone-preview"],1,"preview_img",3,"file","removable","removed"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"]],template:function(t,n){1&t&&(e.YNc(0,xe,4,1,"div",0),e.YNc(1,Ie,3,2,"div",1),e.TgZ(2,"div",2)(3,"ngb-alert",3)(4,"p"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"p"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"p"),e._uU(11),e.ALo(12,"translate"),e.qZA()()(),e.TgZ(13,"div",4)(14,"div",5)(15,"button",6),e.NdJ("click",function(){return n.save()}),e.YNc(16,Ce,1,0,"span",7),e._uU(17),e.ALo(18,"translate"),e.qZA()()()),2&t&&(e.Q6J("ngIf",!n.isLoading),e.xp6(1),e.Q6J("ngIf",(null==n.files?null:n.files.length)>0),e.xp6(2),e.Q6J("dismissible",!1)("type","secondary"),e.xp6(2),e.hij("# ",e.lcZ(6,10,"htmlText.imageInst1"),""),e.xp6(3),e.hij("# ",e.lcZ(9,12,"htmlText.imageInst2")," "),e.xp6(3),e.hij("# ",e.lcZ(12,14,"htmlText.imageInst3"),""),e.xp6(4),e.Q6J("disabled",n.disableSaveButton||n.spinLoader),e.xp6(1),e.Q6J("ngIf",n.spinLoader),e.xp6(1),e.hij(" ",e.lcZ(18,16,"htmlText.save")," "))},dependencies:[i.sg,i.O5,T.xm,ne._f,ne.NP,ne.sv,fe.R,ce.N,E.X$]}),o})();var oe=a(90413),de=a(51119),Ze=a(92836);function Le(o,c){1&o&&e._UZ(0,"app-loading")}function ke(o,c){1&o&&(e.TgZ(0,"ngb-alert",28),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.Q6J("dismissible",!1)("type","danger"),e.xp6(1),e.hij(" ",e.lcZ(2,3,"errorMsg.missingMail")," "))}function Ke(o,c){1&o&&(e.TgZ(0,"ngb-alert",28),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.Q6J("dismissible",!1)("type","danger"),e.xp6(1),e.hij(" ",e.lcZ(2,3,"errorMsg.invali
1dMail")," "))}function De(o,c){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,ke,3,5,"ngb-alert",27),e.YNc(2,Ke,3,5,"ngb-alert",27),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.helpdeskForm.get("helpDeskEmail").errors.required),e.xp6(1),e.Q6J("ngIf",t.helpdeskForm.get("helpDeskEmail").errors.hasEmail)}}function Se(o,c){1&o&&(e.TgZ(0,"ngb-alert",28),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.Q6J("dismissible",!1)("type","danger"),e.xp6(1),e.hij(" ",e.lcZ(2,3,"errorMsg.missingMail")," "))}function Ue(o,c){1&o&&(e.TgZ(0,"ngb-alert",28),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.Q6J("dismissible",!1)("type","danger"),e.xp6(1),e.hij(" ",e.lcZ(2,3,"errorMsg.invalidMail")," "))}function Fe(o,c){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,Se,3,5,"ngb-alert",27),e.YNc(2,Ue,3,5,"ngb-alert",27),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.helpdeskForm.get("techSupportEmail").errors.required),e.xp6(1),e.Q6J("ngIf",t.helpdeskForm.get("techSupportEmail").errors.hasEmail)}}function Me(o,c){1&o&&e._UZ(0,"span",29)}function Ee(o,c){1&o&&(e.TgZ(0,"span",30),e._uU(1,"Loading..."),e.qZA())}function Je(o,c){1&o&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"htmlText.save")))}function we(o,c){1&o&&(e.TgZ(0,"div",47),e._uU(1," *Enter valid URL. "),e.qZA())}function Pe(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"div",48)(2,"div",49)(3,"b"),e._uU(4,"HMAC"),e.qZA(),e._UZ(5,"hr",50),e.qZA()(),e.TgZ(6,"div",51)(7,"div",52)(8,"div",37)(9,"b",38),e._uU(10),e.ALo(11,"translate"),e.qZA()(),e.TgZ(12,"div",53),e._UZ(13,"input",54),e.TgZ(14,"span",55),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(4);return e.KtG(s.copyLink(s.feedForm.get("hmacKey").value))}),e.qZA()(),e.TgZ(15,"div",56)(16,"div")(17,"input",57),e.NdJ("change",function(s){e.CHM(t);const r=e.oxw(4);return e.KtG(r.onGenerateKeyChange(s))}),e.qZA(),e.TgZ(18,"label",58),e._uU(19),e.ALo(20,"translate"),e.qZA()()()()()()}2&o&&(e.xp6(10),e.hij("",e.lcZ(11,2,"ticket-setting.key"),"*"),e.xp6(9),e.Oqu(e.lcZ(20,4,"ticket-setting.generateKey")))}function Ne(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"div",48)(2,"div",49)(3,"b"),e._uU(4,"Basic Auth"),e.qZA(),e._UZ(5,"hr",50),e.qZA()(),e.TgZ(6,"div",51)(7,"div",52)(8,"div",37)(9,"b",38),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"button",39),e.ALo(13,"translate"),e._UZ(14,"i",40),e.qZA()(),e.TgZ(15,"div",53),e._UZ(16,"input",59),e.TgZ(17,"span",55),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(4);return e.KtG(s.copyLink(s.feedForm.get("clientKey").value))}),e.qZA()()(),e.TgZ(18,"div",36)(19,"div",37)(20,"b",38),e._uU(21),e.ALo(22,"translate"),e.qZA(),e.TgZ(23,"button",39),e.ALo(24,"translate"),e._UZ(25,"i",40),e.qZA()(),e.TgZ(26,"div",53),e._UZ(27,"input",60),e.TgZ(28,"span",55),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(4);return e.KtG(s.copyLink(s.feedForm.get("secretKey").value))}),e.qZA()(),e.TgZ(29,"div",61)(30,"div")(31,"input",57),e.NdJ("change",function(s){e.CHM(t);const r=e.oxw(4);return e.KtG(r.onGenerateKeyChange(s))}),e.qZA(),e.TgZ(32,"label",58),e._uU(33),e.ALo(34,"translate"),e.qZA()()()()()()}2&o&&(e.xp6(10),e.hij("",e.lcZ(11,5,"ticket-setting.clientKey"),"*"),e.xp6(2),e.Q6J("ngbPopover",e.lcZ(13,7,"ticket-setting.cKeyTip")),e.xp6(9),e.hij("",e.lcZ(22,9,"ticket-setting.secretKey"),"*"),e.xp6(2),e.Q6J("ngbPopover",e.lcZ(24,11,"ticket-setting.sKeyTip")),e.xp6(10),e.Oqu(e.lcZ(34,13,"ticket-setting.generateKey")))}function Qe(o,c){1&o&&e._UZ(0,"span",29)}function Oe(o,c){1&o&&(e.TgZ(0,"span",30),e._uU(1,"Loading..."),e.qZA())}function He(o,c){1&o&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ticket-setting.test")," "))}function Ye(o,c){1&o&&e._UZ(0,"span",29)}function qe(o,c){1&o&&(e.TgZ(0,"span",30),e._uU(1,"Loading..."),e.qZA())}function Be(o,c){1&o&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"htmlText.save")))}const Ge=function(o){return{"is-invalid":o}};function Re(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"div",1)(2,"div",32)(3,"div",33)(4,"div",34)(5,"div",35)(6,"div",36)(7,"div",37)(8,"b",38),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"button",39),e.ALo(12,"translate"),e._UZ(13,"i",40),e.qZA()(),e.TgZ(14,"div",41),e._UZ(15,"input",42),e.YNc(16,we,2,0,"div",43),e.qZA()(),e.TgZ(17,"div",36)(18,"div",44)(19,"b",38),e._uU(20),e.ALo(21,"translate"),e.qZA(),e.TgZ(22,"button",39),e.ALo(23,"translate"),e._UZ(24,"i",40),e.qZA()(),e.TgZ(25,"div",41)(26,"ng-select",45),e.NdJ("change",function(s){e.CHM(t);const r=e.oxw(3);return e.KtG(r.onChangeAuthType(s))}),e.qZA()()()(),e.YNc(27,Pe,21,6,"div",6),e.YNc(28,Ne,35,15,"div",6),e.qZA()()()(),e.TgZ(29,"div",17)(30,"div",18)(31,"button",46),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(3);return e.KtG(s.getTestResponse())}),e.YNc(32,Qe,1,0,"span",21),e.YNc(33,Oe,2,0,"span",22),e.YNc(34,He,3,3,"span",6),e.qZA(),e.TgZ(35,"button",20),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(3);return e.KtG(s.saveFeed())}),e.YNc(36,Ye,1,0,"span",21),e.YNc(37,qe,2,0,"span",22),e.YNc(38,Be,3,3,"span",6),e.qZA()()()()}if(2&o){const t=e.oxw(3);e.xp6(3),e.Q6J("formGroup",t.feedForm),e.xp6(6),e.hij("",e.lcZ(10,20,"ticket-setting.webHookUrl"),"*"),e.xp6(2),e.Q6J("ngbPopover",e.lcZ(12,22,"ticket-setting.urlTip")),e.xp6(4),e.Q6J("ngClass",e.VKq(28,Ge,t.feedForm.get("webhooksUrl").invalid&&(t.feedForm.get("webhooksUrl").dirty||t.feedForm.get("webhooksUrl").touched))
1),e.xp6(1),e.Q6J("ngIf",(null==t.feedForm.get("webhooksUrl").errors?null:t.feedForm.get("webhooksUrl").errors.hasUrl)&&(t.feedForm.get("webhooksUrl").dirty||t.feedForm.get("webhooksUrl").touched)),e.xp6(4),e.hij("",e.lcZ(21,24,"ticket-setting.authentication"),"*"),e.xp6(2),e.Q6J("ngbPopover",e.lcZ(23,26,"ticket-setting.authTip")),e.xp6(4),e.Q6J("items",t.authenticationType)("clearable",!0)("multiple",!1),e.xp6(1),e.Q6J("ngIf","HASH"==t.feedForm.get("authenticationType").value&&t.feedForm.get("webhooksUrl").valid),e.xp6(1),e.Q6J("ngIf","RSA"==t.feedForm.get("authenticationType").value&&t.feedForm.get("webhooksUrl").valid),e.xp6(3),e.Q6J("disabled",t.isTestLoader||!("RSA"==t.feedForm.get("authenticationType").value?t.feedForm.get("clientKey").value&&t.feedForm.get("secretKey").value:t.feedForm.get("hmacKey").value)||t.isTestBtn),e.xp6(1),e.Q6J("ngIf",t.isTestLoader),e.xp6(1),e.Q6J("ngIf",t.isTestLoader),e.xp6(1),e.Q6J("ngIf",!t.isTestLoader),e.xp6(1),e.Q6J("disabled",t.isSave||t.isSaveLoader),e.xp6(1),e.Q6J("ngIf",t.isSaveLoader),e.xp6(1),e.Q6J("ngIf",t.isSaveLoader),e.xp6(1),e.Q6J("ngIf",!t.isSaveLoader)}}function je(o,c){1&o&&(e.TgZ(0,"div")(1,"div",62)(2,"ngb-alert",28)(3,"p"),e._uU(4),e.ALo(5,"translate"),e.qZA()()()()),2&o&&(e.xp6(2),e.Q6J("dismissible",!1)("type","secondary"),e.xp6(2),e.Oqu(e.lcZ(5,3,"ticket-setting.enableFeed")))}function Ve(o,c){if(1&o&&(e.TgZ(0,"p-accordionTab",31),e.ALo(1,"translate"),e.YNc(2,Re,39,30,"div",6),e.YNc(3,je,6,5,"div",6),e.qZA()),2&o){const t=e.oxw(2);e.s9C("header",e.lcZ(1,3,"ticket-setting.feed")),e.xp6(2),e.Q6J("ngIf",t.isShowFeed),e.xp6(1),e.Q6J("ngIf",!t.isShowFeed)}}function $e(o,c){1&o&&e._UZ(0,"span",29)}function We(o,c){1&o&&(e.TgZ(0,"span",30),e._uU(1,"Loading..."),e.qZA())}function ze(o,c){1&o&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"merchant-setting.save")))}function Xe(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"p-accordionTab",31),e.ALo(1,"translate"),e.TgZ(2,"p-fieldset",63),e.ALo(3,"translate"),e.TgZ(4,"div",64)(5,"div",1)(6,"div",32)(7,"div",33)(8,"div",1)(9,"div",65)(10,"div",66)(11,"b",10),e._uU(12),e.ALo(13,"translate"),e.qZA(),e._UZ(14,"p-selectButton",67),e.qZA()()()()()(),e.TgZ(15,"div",62)(16,"ngb-alert",28)(17,"p"),e._uU(18),e.ALo(19,"translate"),e.qZA()()()(),e.TgZ(20,"div",17)(21,"div",18)(22,"button",46),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.saveProxyEmailAlert())}),e.YNc(23,$e,1,0,"span",21),e.YNc(24,We,2,0,"span",22),e.YNc(25,ze,3,3,"span",6),e.qZA()()()()()}if(2&o){const t=e.oxw(2);e.s9C("header",e.lcZ(1,14,"ticket-setting.proxyAlertText")),e.xp6(2),e.s9C("legend",e.lcZ(3,16,"merchant-setting.settings")),e.Q6J("toggleable",!1)("collapsed",!1),e.xp6(5),e.Q6J("formGroup",t.proxyAlertForm),e.xp6(5),e.Oqu(e.l
1cZ(13,18,"ticket-setting.merchantProxyEmail")),e.xp6(2),e.Q6J("options",t.stateOptions),e.xp6(2),e.Q6J("dismissible",!1)("type","secondary"),e.xp6(2),e.hij("# ",e.lcZ(19,20,"ticket-setting.proxyApplicableText"),""),e.xp6(4),e.Q6J("disabled",t.isProxyLoader||t.proxyAlertForm.pristine),e.xp6(1),e.Q6J("ngIf",t.isProxyLoader),e.xp6(1),e.Q6J("ngIf",t.isProxyLoader),e.xp6(1),e.Q6J("ngIf",!t.isProxyLoader)}}function et(o,c){if(1&o&&(e.TgZ(0,"div",73)(1,"h6"),e._uU(2),e.qZA()()),2&o){const t=c.item;e.xp6(2),e.Oqu(null==t?null:t.dba)}}function tt(o,c){if(1&o&&(e.TgZ(0,"span",74),e._uU(1),e.qZA()),2&o){const t=c.$implicit;e.Q6J("ngbPopover",t),e.xp6(1),e.Oqu(t)}}function it(o,c){1&o&&e._UZ(0,"span",29)}function nt(o,c){1&o&&(e.TgZ(0,"span",30),e._uU(1,"Loading..."),e.qZA())}function ot(o,c){1&o&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"merchant-setting.save")))}function st(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"p-accordionTab",31),e.ALo(1,"translate"),e.TgZ(2,"p-fieldset",63),e.ALo(3,"translate"),e.TgZ(4,"div",64)(5,"div",1)(6,"div",32)(7,"div",33)(8,"div",1)(9,"div",65)(10,"div",66)(11,"b",68),e._uU(12),e.ALo(13,"translate"),e.qZA(),e.TgZ(14,"ng-select",69),e.NdJ("change",function(s){e.CHM(t);const r=e.oxw(2);return e.KtG(r.merchantSelectionChange(s))}),e.ALo(15,"async"),e.YNc(16,et,3,1,"ng-template",70),e.qZA()()(),e.TgZ(17,"div",65)(18,"div",66)(19,"b",68),e._uU(20),e.ALo(21,"translate"),e.qZA(),e.TgZ(22,"p-chips",71),e.NdJ("onAdd",function(s){e.CHM(t);const r=e.oxw(2);return e.KtG(r.verifyDomainAddress(s))}),e.YNc(23,tt,2,2,"ng-template",72),e.qZA()()()()()()()(),e.TgZ(24,"div",17)(25,"div",18)(26,"button",46),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.saveMerchantDomains())}),e.YNc(27,it,1,0,"span",21),e.YNc(28,nt,2,0,"span",22),e.YNc(29,ot,3,3,"span",6),e.qZA()()()()()}if(2&o){const t=e.oxw(2);e.s9C("header",e.lcZ(1,24,"ticket-setting.whiteListedDomain")),e.xp6(2),e.s9C("legend",e.lcZ(3,26,"merchant-setting.settings")),e.Q6J("toggleable",!1)("collapsed",!1),e.xp6(5),e.Q6J("formGroup",t.whiteListFormGroup),e.xp6(5),e.Oqu(e.l
1cZ(13,28,"ticket-setting.merchant")),e.xp6(2),e.Q6J("items",e.lcZ(15,30,t.merchantList))("loading",t.merchantSearching)("clearSearchOnAdd",!1)("hideSelected",!0)("closeOnSelect",!0)("multiple",!1)("virtualScroll",!0)("placeholder","Please enter 4 or more characters")("typeahead",t.inputMerchants$),e.xp6(6),e.Oqu(e.lcZ(21,32,"ticket-setting.domain")),e.xp6(2),e.Q6J("allowDuplicate",!1)("max",10)("addOnTab",!0)("addOnBlur",!0),e.xp6(4),e.Q6J("disabled",(null==t.whiteListFormGroup?null:t.whiteListFormGroup.invalid)||t.isDomainLoader),e.xp6(1),e.Q6J("ngIf",t.isDomainLoader),e.xp6(1),e.Q6J("ngIf",t.isDomainLoader),e.xp6(1),e.Q6J("ngIf",!t.isDomainLoader)}}function at(o,c){1&o&&e._UZ(0,"span",29)}const rt=function(o){return{"pl-0":o}};function lt(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"p-accordionTab",75)(1,"p-fieldset",76)(2,"div",1)(3,"div",8)(4,"div")(5,"div",9)(6,"div",77)(7,"h5",78),e._uU(8,"API Key*"),e.qZA(),e._UZ(9,"input",79),e.TgZ(10,"button",80),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.copyToClipboard(s.apiKey))}),e.O4$(),e.TgZ(11,"svg",81),e._UZ(12,"rect",82)(13,"path",83),e.qZA()(),e.kcU(),e._UZ(14,"hr"),e.qZA(),e.TgZ(15,"div",77)(16,"h5",78),e._uU(17,"Secret Key*"),e.qZA(),e._UZ(18,"input",79),e.TgZ(19,"button",80),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.copyToClipboard(s.secretKey))}),e.O4$(),e.TgZ(20,"svg",81),e._UZ(21,"rect",82)(22,"path",83),e.qZA()(),e.kcU(),e.TgZ(23,"button",84),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.generateAuthKeysToken())}),e.YNc(24,at,1,0,"span",21),e._uU(25),e.qZA(),e._UZ(26,"hr"),e.qZA()()()()()()()}if(2&o){const t=e.oxw(2);e.Q6J("selected",!1),e.xp6(1),e.Q6J("toggleable",!1)("collapsed",!1),e.xp6(8),e.Q6J("value",t.apiKey),e.xp6(1),e.Q6J("disabled",!t.apiKey),e.xp6(8),e.Q6J("value",t.maskedSecretKey),e.xp6(1),e.Q6J("disabled",!t.maskedSecretKey),e.xp6(4),e.Q6J("ngClass",e.VKq(11,rt,t.isGenerateAuthKey))("disabled",t.isGenerateAuthKey),e.xp6(1),e.Q6J("ngIf",t.isGenerateAuthKey),e.xp6(1),e.hij(" ",t.buttontext," ")}}function ct(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"p-accordion"),e.ynx(2),e.TgZ(3,"p-accordionTab",7),e.ALo(4,"translate"),e.TgZ(5,"div",1)(6,"div",8)(7,"div")(8,"div",9)(9,"b",10),e._uU(10),e.ALo(11,"translate"),e.qZA(),e._UZ(12,"p-selectButton",11),e.TgZ(13,"div",12)(14,"div",1)(15,"div",13)(16,"div",14),e._UZ(17,"input",15),e.qZA(),e.YNc(18,De,3,2,"div",6),e.qZA(),e.TgZ(19,"div",13)(20,"div",14),e._UZ(21,"input",16),e.qZA(),e.YNc(22,Fe,3,2,"div",6),e.qZA()()()()()()(),e.TgZ(23,"div",17)(24,"div",18)(25,"button",19),e.NdJ("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.reset())}),e._uU(26),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"button",20),e.NdJ("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.posthelpdeskEmails())}),e.YNc(29,Me,1,0,"span",21),e.YNc(30,Ee,2,0,"span",22),e.YNc(31,Je,3,3,"span",6),e.qZA()()()(),e.YNc(32,Ve,4,5,"p-accordionTab",23),e.YNc(33,Xe,26,22,"p-accordionTab",23),e.YNc(34,st,30,34,"p-accordionTab",23),e.YNc(35,lt,27,13,"p-accordionTab",24),e.BQk(),e.ynx(36),e.TgZ(37,"p-accordionTab",25),e.ALo(38,"translate"),e.TgZ(39,"app-iso-logo-upload",26),e.NdJ("getCustomerData",function(s){e.CHM(t);const r=e.oxw();return e.KtG(r.handleCustomerData(s))}),e.qZA()(),e.BQk(),e.qZA()()}if(2&o){const t=e.oxw();e.xp6(3),e.s9C("header",e.lcZ(4,18,"ticket-setting.helpDesk")),e.Q6J("selected",!1),e.xp6(7),e.Oqu(e.l
1cZ(11,20,"ticket-setting.helpDeskEmails")),e.xp6(2),e.Q6J("options",t.stateOptions),e.xp6(1),e.Q6J("ngClass",0==t.helpdeskForm.get("enableHelpDesk").value?"invisible":""),e.xp6(5),e.Q6J("ngIf",!t.helpdeskForm.get("helpDeskEmail").valid&&(t.helpdeskForm.get("helpDeskEmail").dirty||t.helpdeskForm.get("helpDeskEmail").touched)),e.xp6(4),e.Q6J("ngIf",!t.helpdeskForm.get("techSupportEmail").valid&&(t.helpdeskForm.get("techSupportEmail").dirty||t.helpdeskForm.get("techSupportEmail").touched)),e.xp6(4),e.Oqu(e.lcZ(27,22,"htmlText.reset")),e.xp6(2),e.Q6J("disabled",t.helpdeskForm.get("enableHelpDesk").value&&t.helpdeskForm.invalid),e.xp6(1),e.Q6J("ngIf",t.isLoader),e.xp6(1),e.Q6J("ngIf",t.isLoader),e.xp6(1),e.Q6J("ngIf",!t.isLoader),e.xp6(1),e.Q6J("ngIf","ISO"==t.userType),e.xp6(1),e.Q6J("ngIf","ISO"==t.userType),e.xp6(1),e.Q6J("ngIf","ISO"==t.userType||"SUB_ISO"==t.userType),e.xp6(1),e.Q6J("ngIf",("ISO"===t.userType||"SUB_ISO"===t.userType)&&t.defaultUser),e.xp6(2),e.MGl("header","",e.lcZ(38,24,t.agentOfficeRoleChange(t.currentUser.userType))," Logo "),e.Q6J("selected",!0)}}var I=(()=>{return(o=I||(I={})).RSA="RSA",o.HASH="HASH",I;var o})(),w=(()=>{return(o=w||(w={})).success="Success",o.close="close",w;var o})();const dt=[{path:"settings",component:(()=>{class o{constructor(t,n,s,r,m,_,P,k,C,A,q){this.formBuilder=t,this.commonService=n,this.myTicketsService=s,this.messageService=r,this.handleError=m,this.dashboard=_,this.authService=P,this.clipboard=k,this.ngbModal=C,this.authKeysService=A,this.modalService=q,this.isProxyLoader=!1,this.isDomainLoader=!1,this.customerId=(0,f.get)(JSON.parse(localStorage.getItem("current_user")),"customerId"),this.isLoading=!1,this.isLoader=!1,this.isTestLoader=!1,this.isTest=!1,this.isSave=!0,this.isSaveLoader=!1,this.isTestBtn=!1,this.isShowFeed=!1,this.stateOptions=[{label:"Enable",value:!0},{label:"Disable",value:!1}],this.authenticationType=[{key:"HMAC",value:"HASH"},{key:"Basic Auth",value:"RSA"}],this.currentUser={userType:""},this.inputMerchants$=new $.xQ,this.merchantSearching=!1,this.responseData=null,this.whiteListFormGroup=new p.nJ({merchantId:new p.NI(null,[p.kI.required]),originUrl:new p.NI("",[p.kI.required])}),this.apiKey="",this.secretKey="",this.maskedSecretKey="",this.authId="",this.buttontext="Generate Keys",this.isKeyPresent=!1,this.isGenerateAuthKey=!1}ngOnInit(){this.helpdeskForm=this.formBuilder.group({enableHelpDesk:[!1,[p.kI.required]],techSupportEmail:["",[L.d.PatternValidator(O.HN,{hasEmail:!0})]],helpDeskEmail:["",[p.kI.required,L.d.PatternValidator(O.HN,{hasEmail:!0})]]}),this.proxyAlertForm=this.formBuilder.group({proxyLoginAlert:[!0,[p.kI.required]],isMerchantLoginAs:[!0,[p.kI.required]]}),this.feedForm=this.formBuilder.group({webhooksUrl:["",[p.kI.required,L.d.PatternValidator(O.yV,{hasUrl:!0})]],authenticationType:[null,[p.kI.required]],clientKey:[{value:"",disabled:!1},[p.kI.required]],secretKey:[{value:"",disabled:!1},[p.kI.required]],generateKey:[!1,[p.kI.required]],hmacKey:[{value:"",disabled:!1},[p.kI.required]]}),this.gethelpdeskEmails(),this.getProxyAlertValues(),this.userType=(0,f.get)(this.authService.getUser,"userType"),this.defaultUser=(0,f.get)(this.authService.getUser,"defaultUser",!1),this.getCurrentuser(),this.merchantSearch(),this.getwebhookData(this.responseData),this.getMerchantKeys(),this.feedForm.valueChanges.subscribe(t=>{this.isTestBtn=!1,this.isSave=!0})}gethelpdeskEmails(){this.isLoading=!0,this.commonService.getCommonHttpClientParams(h.D.getHelpdeskEmails).subscribe(t=>{this.isLoading=!1,this.resData=t.data,this.helpdeskForm.patchValue(t.data),null==t.data.enableHelpDesk&&this.helpdeskForm.get("enableHelpDesk").patchValue(!1)},t=>{this.isLoading=!1})}posthelpdeskEmails(){let t;this.isLoader=!0,t=this.helpdeskForm.get("enableHelpDesk").value?this.helpdeskForm.value:{enableHelpDesk:this.helpdeskForm.get("enableHelpDesk").value},this.myTicketsService.updatehelpdeskEmails(t).subscribe(n=>{this.isLoader=!1,this.showAlert({status:"success",message:n.message},"success")},n=>{this.isLoader=!1,this.showAlert(n,"error")})}reset(){this.helpdeskForm.patchValue(this.resData),null==this.resData.enableHelpDesk&&this.helpdeskForm.get("enableHelpDesk").patchValue(!1)}showAlert(t,n){this.messageService.add({severity:n,summary:t.status,detail:t.message})}getProxyAlertValues(){this.isLoading=!0,this.commonService.getCommonHttpClientParams(h.D.getProxyAlertDetails+"/"+this.customerId).subscribe(t=>{this.isLoading=!1,t.data&&(this.proxyAlertForm.get("proxyLoginAlert").patchValue("ACTIVE"==t.data.find(n=>"proxyLoginAlert"==n.isoPreferences_to_isoPreferenceMapping?.code)?.status),this.proxyAlertForm.get("isMerchantLoginA
1s").patchValue("ACTIVE"==t.data.find(n=>"isMerchantLoginAs"==n.isoPreferences_to_isoPreferenceMapping?.code)?.status))},t=>{this.isLoading=!1})}getMerchantKeys(){this.authKeysService.getMerchantKeys().subscribe(t=>{this.apiKey=t.apiKey,this.secretKey=t.secretKey,this.maskedSecretKey=t.maskedSecretKey,this.isKeyPresent=t.isKeyPresent,this.buttontext=t.buttontext,this.authId=t.authId},t=>{this.showAlert(t,"error")})}generateAuthKeysToken(){if(this.isGenerateAuthKey=!0,this.isKeyPresent){let t="Reset secret key",n="This action is permanent.",s=" The application will stop working until you update it with the new key.",r=this.ngbModal.open(d.z,{backdrop:"static",keyboard:!1,size:"x1",centered:!0});r.componentInstance.header=t,r.componentInstance.body=n,r.componentInstance.authGenreationInput=s,r.componentInstance.isAuthGeneration=!0,r.componentInstance.confirmButtonLabel="Reset",r.result.then(m=>{"confirm"==m?this.createAuthKeys(!0):"cancel"==m&&(this.isGenerateAuthKey=!1)})}else this.createAuthKeys()}createAuthKeys(t=!1){this.authKeysService.createAuthKeys(t,this.authId).subscribe(n=>{this.apiKey=n?.data?.apiKey||this.apiKey,this.secretKey=n?.data?.secretKey||this.secretKey,this.maskedSecretKey="*".repeat(this.secretKey.length-4)+this.secretKey.slice(-4),t||(this.authId=n?.data?.authId||this.authId),this.isKeyPresent=!0,this.buttontext="Reset Secret Key",this.isGenerateAuthKey=!1;let s="Auth keys generated successfully";t&&(s="Secret key reset successfully"),this.showAlertMessage("success","Success",s)},n=>{this.isGenerateAuthKey=!1,this.showAlert(n,"error")})}copyToClipboard(t){this.clipboard.copy(t),this.messageService.clear(),this.messageService.add({severity:"info",detail:"Copied To Clipboard!",life:7e3})}showAlertMessage(t,n,s){this.messageService.add({severity:t,summary:n,detail:s,life:5e3})}saveProxyEmailAlert(){this.isProxyLoader=!0;let t={isProxyLoginAlert:this.proxyAlertForm.get("proxyLoginAlert").value,isoId:this.customerId};this.commonService.postCommonHttpClient(h.D.proxyEmailLoginAlertConfig,t).subscribe(n=>{this.isProxyLoader=!1,this.showAlert({status:"success",message:"Data Updated successfully"},"success")},n=>{this.isProxyLoader=!1,this.showAlert(n,"error")})}getCurrentuser(){this.currentUser=this.authService.getUser}agentOfficeRoleChange(t){return(0,f.replace)(this.authService.subIsoToAgentOffice(t),"_"," ")}merchantSelectionChange(t){this.whiteListFormGroup.controls.originUrl.reset(),t?.id&&this.getMerchantDomains(t?.id)}merchantSearch(){this.merchantList=(0,W.z)((0,H.of)([]),this.inputMerchants$.pipe((0,z.b)(400),(0,G.b)(()=>this.merchantSearching=!0),(0,X.w)(t=>null==t||t.trim().length<4?(this.merchantSearching=!1,(0,H.of)([])):this.commonService.getCommonHttpClientQueryParams(this.dashboard.getAllMerchantUrl,{queryString:t?.trim(),isFilter:!0}).pipe((0,ee.U)(n=>n?.dropDownValues||[]),(0,te.K)(()=>(0,H.of)([])),(0,G.b)(()=>this.merchantSearching=!1)))))}getMerchantDomains(t){this.commonService.getCommonHttpClientParams(`${h.D.getAllDomainNames}?merchantId=${t}`).subscribe(n=>{this.whiteListFormGroup.controls.originUrl.setValue(n)},n=>{this.showAlert(n,"error")})}verifyDomainAddress(t){const n=t.value?.trim(),s=this.whiteListFormGroup.controls.originUrl;if(!O.yV.test(n)){const r=s.value;if(r){const m=(0,f.pull)(r,n);s.setValue(m,{emitEvent:!1})}}s.updateValueAndValidity({emitEvent:!1})}saveMerchantDomains(){if(this.isDomainLoader=!0,this.whiteListFormGroup.invalid)return;const t={headers:new ie.WM({Authorization:`${this.authService.getUser.pgAccessToken}`,withCredentials:"false"})};this.commonService.postCommonHttpClient(h.D.registerDomains,this.whiteListFormGroup.value,t).subscribe(n=>(this.isDomainLoader=!1,n&&this.showAlert({message:"Domains saved successfully!",status:"Success"},"success"),n),n=>(this.isDomainLoader=!1,this.showAlert({message:"Failed !",status:"Error"},"error"),this.handleError.handleError(n)))}handleCustomerData(t){this.customerData=t,this.isoFeed=this.customerData.data.isoPreferenceMappings.filter(n=>n.status===u.q.ACTIVE),this.existingPreferenceData=this.isoFeed.filter(n=>"isIsoFeed"===n.isoPreferences_to_isoPreferenceMapping.code),this.isShowFeed=this.existingPreferenceData.length>0}onGenerateKeyChange(t){t.target.checked?this.generateKey():this.resetKeys(["clientKey","secretKey","hmacKey"])}onChangeAuthType(t){this.feedForm.get("generateKey").reset(),t===I.HASH?this.resetKeys(["hmacKey"]):t===I.RSA&&this.resetKeys(["clientKey","secretKey"])}resetKeys(t){t.forEach(n=>{this.feedForm.get(n)?.reset(),this.feedForm.controls[n]?.enable()})}generateKey(){const t=this.feedForm.value;this.commonService.getCommonHttpClientQueryParams(h.D.getWebhookUrl,{url:t.webhooksUrl,authenticationType:t.authenticationType}).subscribe(s=>{this.generateKeyResponse=s,s.authenticationType==I.HASH&&s.responseMessage==w.success?(this.feedForm.get(["hmacKey"]).patchValue(s.hmacKey),this.feedForm.controls.hmacKey.disable(),this.isTest=!0):s.authenticationType==I.RSA&&s.responseMessage==w.success&&(this.feedForm.get(["clientKey"]).patchValue(s.clientKey),this.feedForm.get(["secretKey"]).patchValue(s.secretKey),this.feedForm.controls.clientKey.disable(),this.feedForm.controls.secretKey.disable(),this.isTest=!0)})}getTestResponse(){if(this.isTestLoader=!0,this.responseData){const t="You've updated your authentication settings. FEED will now be sent according to your new configuration.";let n=this.modalService.open(l.s,{ariaLabelledBy:"modal-basic-title",centered:!0,backdrop:"static",keyboard:!1});n.componentInstance.header="Warning",n.componentInstance.body=t,n.componentInstance.proceedBtn=!0,n.componentInstance.onlyCancelButton=!1,n.componentInstance.btnNamePreceed="Proceed",n.componentInstance.confirmTest.subscribe(s=>{s==w.success&&(n.close(),this.webHooktest())}),n.result.then(s=>{s==w.close&&(this.getwebhookData(this.responseData),this.isTestLoader=!1)})}else this.webHooktest()}webHooktest(){const t=this.feedForm.value;let n={userType:this.userType,authenticationType:t.authenticationType,webhooksUrl:t.webhooksUrl,...t.authenticationType===I.RSA?{secretKey:t.secretKey||this.generateKeyResponse.secretKey,clientKey:t.clientKey||this.generateKeyResponse.clientKey}:{hmacKey:t.hmacKey||this.generateKeyResponse.hmacKey}};this.commonService.getCommonHttpClientQueryParams(h.D.preAuthenticationUrl,n).subscribe(s=>{this.testedData=s,this.isTestLoader=!1,this.isTestBtn=!0,this.isSave=!1,s&&this.showAlert({message:"Tested the URL Successfully!",status:"Success"},"success")},s=>{const r={};r.message=(0,f.get)(s,"responseMessage","Invalid Credentials"),r.status=(0,f.get)(s,"status","400"),this.showAlert(r,"error"),this.isTestLoader=!1})}copyLink(t){this.clipboard.copy(t)}saveFeed(){this.isSaveLoader=!0;const t=s=>{this.isSaveLoader=!1,this.isSave=!0,this.showAlert({message:s,status:"Success"},"success"),this.feedForm.reset(),this.resetKeys(["clientKey","secretKey","hmacKey"]),this.isTestBtn=!1},n=s=>(this.showAlert(s,"error"),this.isSaveLoader=!1,this.handleError.handleError(s));if(this.responseData){const s=this.feedForm.value,r={registerId:this.responseData?.registration_id,userId:this.customerId,userType:this.userType,webhooksUrl:s.webhooksUrl,authenticationType:s.authenticationType,...s.authenticationType===I.RSA?{clientKey:s.
1clientKey||this.generateKeyResponse.clientKey,secretKey:s.secretKey||this.generateKeyResponse.secretKey}:{hmacKey:s.hmacKey||this.generateKeyResponse.hmacKey}};this.commonService.postCommonHttpClient(h.D.updateFeedUrl,r).subscribe(m=>{this.savedData=m,t("Updated successfully!"),this.getwebhookData(null)},n)}else this.commonService.postCommonHttpClient(h.D.saveUrl,{preRegisterId:this.testedData?.preRegisterId,userId:this.authService.getUser.customerId,userType:this.userType}).subscribe(r=>{this.savedData=r,t("Saved successfully!"),this.getwebhookData(this.responseData)},n)}getwebhookData(t){var n=this;return(0,g.Z)(function*(){t?n.feedPatchData(n.responseData):yield n.commonService.getCommonHttpClientParams(`${h.D.getwebhookData}/${n.customerId}`).subscribe(s=>{n.responseData=s.data[0],(0,f.isUndefined)(n.responseData)?n.isTestBtn=!1:(n.feedPatchData(n.responseData),n.isTestBtn=!0)})})()}feedPatchData(t){const n={webhooksUrl:t.integration_details?.webhooksUrl,authenticationType:t.authenticationType};t.authenticationType===I.RSA?(n.clientKey=t.integration_details?.clientKey,n.secretKey=t.integration_details?.secretKey):t.authenticationType===I.HASH&&(n.hmacKey=t.integration_details?.hmacKey),this.feedForm.patchValue(n)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(p.QS),e.Y36(y.v),e.Y36(Y.Z),e.Y36(F.ez),e.Y36(me.q),e.Y36(ue.s),e.Y36(ge.e),e.Y36(he.TU),e.Y36(T.FF),e.Y36(_e.d),e.Y36(T.FF))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-tickets"]],features:[e._Bn([F.ez])],decls:8,vars:3,consts:[["position","top-right"],[1,"row"],[1,"col-md-12","grid-margin","stretch-card"],[1,"card","card-list-bg","shadow-none"],[1,"card-body"],[1,"forms-sample",3,"formGroup"],[4,"ngIf"],["aria-expanded","true",3,"header","selected"],[1,"w-100","px-4"],[1,"card","shadow","p-3","bg-white","rounded","d-fl"],[1,"p-2"],["formControlName","enableHelpDesk",1,"m-2","p-2",3,"options"],[3,"ngClass"],[1,"col-md-6","p-4"],[1,"d-flex"],["type","email","placeholder","Please Enter Help Desk Email 1","formControlName","helpDeskEmail",1,"input-text","w-100","custom-style"],["type","email","placeholder","Please Enter Help Desk Email 2","formControlName","techSupportEmail",1,"input-text","w-100","custom-style"],[1,"pt-4"],[1,"text-right"],["type","button",1,"btn","btn-primary","mr-2",3,"click"],["type","submit",1,"btn","btn-primary","mr-2",3,"disabled","click"],["class","spinner-border spinner-border-sm","aria-hidden","true",4,"ngIf"],["class","ml-2",4,"ngIf"],[3,"header",4,"ngIf"],["header","Generate API & Secret Key","aria-expanded","true",3,"selected",4,"ngIf"],[3,"header","selected"],[3,"getCustomerData"],[3,"dismissible","type",4,"ngIf"],[3,"dismissible","type"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"ml-2"],[3,"header"],[1,"col-12","px-4"],[3,"formGroup"],[1,"card","shadow","p-4","bg-white","rounded"],[1,"pb-4"],[1,"row","align-items-center","my-2"],[1,"col-12","col-md-3","pl-md-5","mb-2"],[1,"d-block","d-md-inline"],["type","button","placement","top","container","body","triggers","mouseenter:mouseleave",1,"btn",3,"ngbPopover"],[1,"link-icon","feather","icon-help-circle"],[1,"col-12","col-md-5"],["type","text","pInputText","","placeholder","Enter Url","formControlName","webhooksUrl",1,"form-control",3,"ngClass"],["class","invalid-feedback",4,"ngIf"],[1,"col-12","col-md-3","pl-md-5","my-2"],["bindValue","value","bindLabel","key","placeholder","Select Authentication","formControlName","authenticationType",1,"w-100",3,"items","clearable","multiple","change"],["type","button",1,"btn","btn-primary","mr-2",3,"disabled","click"],[1,"invalid-feedback"],[1,"row","align-items-center","my-md-2"],[1,"col-12","col-md-12","px-md-5"],[2,"border-color","#e0dcdc"],[1,"py-md-3"],[1,"row","align-items-center","mb-2"],[1,"col-12","col-md-5","position-relative"],["type","text","pInputText","","placeholder","Enter Key","formControlName","hmacKey",1,"form-control"],["triggers","click","ngbPopover","Copied",1,"mdi","mdi-content-copy","position-absolute","copy-icon",3,"click"],[1,"col-12","col-md-4","pl-md-5","mt-3"],["type","checkbox","formControlName","generateKey",3,"change"],[1,"pl-2"],["type","text","pInputText","","placeholder","Enter Client key","formControlName","clientKey",1,"form-control","pr-4"],["type","text","pInputText","","placeholder","Enter Secret Key","formControlName","secretKey",1,"form-control"],[1,"col-12","col-md-4","pl-md-5"],[1,"mt-3"],[1,"p-0","m-0",3,"legend","toggleable","collapsed"],[1,"container"],[1,"col-12","col-md-6","p-1"],[1,"card","shadow","p-3","bg-white","rounded"],["formControlName","proxyLoginAlert",1,"m-2","p-2",3,"options"],[1,"p-1"],["formControlName","merchantId","bindValue","id","bindLabel","dba","notFoundText","No Users found","typeToSearchText","Please enter 4 or more characters",3,"items","loading","clearSearchOnAdd","hideSelected","closeOnSelect","multiple","virtualScroll","placeholder","typeahead","change"],["ng-option-tmp",""],["formControlName","originUrl","placeholder","Enter domains",1,"p-fluid",3,"allowDuplicate","max","addOnTab","addOnBlur","onAdd"],["pTemplate","item"],[1,"list-typehead"],["triggers","mouseenter:mouseleave",3,"ngbPopover"],["header","Generate API & Secret Key","aria-expanded","true",3,"selected"],["legend","Generate Keys",1,"p-0","m-0",3,"toggleable","collapsed"],[1,"d-flex","align-items-center","pb-3"],[1,"col-2","pr-0"],["type","text","readonly","",1,"key-input","col-6","p-0",3,"value"],["title","Copy to clipboard",1,"copy-button",3,"disabled","click"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["x","9","y","9","
1width","13","height","13","rx","2","ry","2"],["d","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"],["type","button",1,"btn","btn-primary","ml-3","col-2",3,"ngClass","disabled","click"]],template:function(t,n){1&t&&(e._UZ(0,"p-toast",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"form",5),e.YNc(6,Le,1,0,"app-loading",6),e.YNc(7,ct,40,26,"div",6),e.qZA()()()()()),2&t&&(e.xp6(5),e.Q6J("formGroup",n.helpdeskForm),e.xp6(1),e.Q6J("ngIf",n.isLoading),e.xp6(1),e.Q6J("ngIf",!n.isLoading))},dependencies:[i.mk,i.O5,v.UQ,v.US,F.jx,p._Y,p.Fj,p.Wl,p.JJ,p.JL,p.sg,p.u,T.xm,T.o8,S.UN,U.p,J.FN,ce.N,Ae,oe.w9,oe.Z2,de.cL,Ze.o,i.Ov,E.X$],styles:["input.custom-style[_ngcontent-%COMP%]{border-top:none!important;border-left:none!important;border-right:none!important;border-bottom:1.5px solid #424242!important;margin-bottom:0!important;padding-bottom:0!important;text-indent:3px}input.custom-style[_ngcontent-%COMP%]:focus{border-bottom:1.5px solid #424242!important}hr[_ngcontent-%COMP%]{padding:none!important;background-color:#424242;margin-top:0!important}.display[_ngcontent-%COMP%]{display:none}.abc[_ngcontent-%COMP%]{height:200px}.border[_ngcontent-%COMP%]{border:0px!important;border-right:1px solid #424242!important}.card[_ngcontent-%COMP%]{background-color:#fff}.form-control.is-invalid[_ngcontent-%COMP%]{background-image:none}.copy-icon[_ngcontent-%COMP%]{color:#86888a;top:50%;right:-7px;transform:translateY(-50%);cursor:pointer}.key-input[_ngcontent-%COMP%]{height:35px;border:1px solid #ccc!important;padding-left:10px!important;background:none!important;pointer-events:none!important}.key-input[_ngcontent-%COMP%]:focus{border:1px solid #ccc!important}.copy-button[_ngcontent-%COMP%]{margin-left:8px;background:none;border:none;padding:4px;cursor:pointer;align-items:center;justify-content:center;transition:color .2s ease}.copy-button[_ngcontent-%COMP%]:hover{color:#9333ea}.copy-button[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px}.copy-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;color:#ccc}"]}),o})(),canActivate:[b.R],data:{module:x.j.ISO_SETTINGS,privilege:D.R.HELP_DESK}}];let pt=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[Q.Bz.forChild(dt),Q.Bz]}),o})(),mt=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[i.ez,pt,v.fx,p.UX,p.u5,T.IJ,S.Qy,U.L,E.aw,J.EV,Z.m,oe.A0,de.Gg]}),o})()}}]); 2//# sourceMappingURL=286.a8aaa03568e6ade2.js.map
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.