1"use strict";(self.webpackChunkbotpenguin=self.webpackChunkbotpenguin||[]).push([[847],{33847:(ae,F,c)=>{c.r(F),c.d(F,{SettingsModule:()=>kn});var b=c(60177),r=c(51188),m=c(10467),V=c(9846),T=c(52422),O=c(74097),E=c(45312),R=c(56928),B=c(47577),z=c(5797),Y=c(83780),e=c(54438),A=c(30639),N=c(74276),p=c(59982),C=c(59640),u=c(79950),f=c(95684),g=c(36762),M=c(52371),v=c(81628),se=c(63891),re=c(41413),ce=c(14116),le=c(31626),G=c(42578),P=c(89417),de=c(78294),pe=c(65222),L=c(91290),me=c(72958),ue=c(33035);function ge(o,s){1&o&&e.nrm(0,"img",7)}function he(o,s){if(1&o&&e.nrm(0,"img",8),2&o){const t=e.XpG();e.Y8G("appToolTip",t.staticText.appTooltip.weSuggestUsingYourCompanyLogo)("src",t.initialSelectedImage,e.B4B)}}let fe=(()=>{class o{constructor(t,i,n,a){this.uploadService=t,this.languageService=i,this.sharedService=n,this.store=a,this.initialSelectedImage="",this.uploadedImage=new e.bkB,this.staticText=this.languageService.getStaticText().shared.profileIcon,this.storeSubscription$=this.store.select(l=>l).subscribe(l=>{this.initialSelectedImage=l?.profile?.picture||""})}ngOnDestroy(){this.storeSubscription$?.unsubscribe()}showFolder(){document.getElementById("upload-input").click()}uploadImage(t){this.uploadService.uploadImage(t,!1).then(i=>{setTimeout(()=>{this.initialSelectedImage=i,this.uploadedImage.emit(i)},2e3)}).catch(i=>this.sharedService.showToast("error","","Image upload failed. Try again!"))}static#e=this.\u0275fac=function(i){return new(i||o)(e.rXU(M.B),e.rXU(f.g),e.rXU(p.d),e.rXU(C.il))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-profile-image"]],inputs:{initialSelectedImage:"initialSelectedImage"},outputs:{uploadedImage:"uploadedImage"},decls:8,vars:2,consts:[[1,"icons-container"],[1,"avatar-container","d-flex"],[1,"avatar-content","upload-img","position-relative",3,"click"],["id","upload-input","type","file","hidden","","name","image","accept",".png, .jpg, .jpeg",1,"file-input",3,"change"],["class","avatar-img","src","/assets/images/new-images/upload-full.svg","alt","",4,"ngIf"],["class","avatar-img","onerror","this.src","alt","",3,"appToolTip","src",4,"ngIf"],["src","/assets/images/new-images/upload-full.svg","alt","",1,"upload-icon"],["src","/assets/images/new-images/upload-full.svg","alt","",1,"avatar-img"],["onerror","this.src","alt","",1,"avatar-img",3,"appToolTip","src"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"div",1),e.qex(2),e.j41(3,"div",2),e.bIt("click",function(){return n.showFolder()}),e.j41(4,"input",3),e.bIt("change",function(l){return n.uploadImage(l)}),e.k0s(),e.DNE(5,ge,1,0,"img",4)(6,he,1,2,"img",5),e.nrm(7,"img",6),e.k0s(),e.bVm(),e.k0s()()),2&i&&(e.R7$(5),e.Y8G("ngIf",!n.initialSelectedImage),e.R7$(),e.Y8G("ngIf",n.initialSelectedImage))},dependencies:[b.bT,ue.d],styles:[".icons-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;margin-bottom:10px}.icons-container[_ngcontent-%COMP%] .avatar-container[_ngcontent-%COMP%]{width:100%;overflow:scroll;-ms-overflow-style:none;scrollbar-width:none}.icons-container[_ngcontent-%COMP%] .avatar-img[_ngcontent-%COMP%]{border:1.5px solid #cbdcec;background-color:#f2f9ff;height:50px!important;width:50px!important;max-width:50px;margin-inline-end:5px;border-radius:50%;cursor:pointer}.icons-container[_ngcontent-%COMP%] .upload-img[_ngcontent-%COMP%] .file-input[_ngcontent-%COMP%]{width:50px;height:50px;opacity:0;inset-inline-start:0;cursor:pointer!important}.icons-container[_ngcontent-%COMP%] .upload-icon[_ngcontent-%COMP%]{width:50px;height:50px;max-width:50px;position:absolute;cursor:pointer;top:0;inset-inline-start:0;display:none}.icons-container[_ngcontent-%COMP%] .avatar-content[_ngcontent-%COMP%]:hover .upload-icon[_ngcontent-%COMP%]{display:block}.avatar-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:13px;display:none!important}"]})}return o})();var _e=c(74960),y=c(43928),J=c(36883),$=c(34813),k=c(72838),ve=c(32570),Ce=c(52160);const xe=(o,s)=>s.key;function ye(o,s){if(1&o&&(e.j41(0,"span",7),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.JRh(t.confirmEmoji)}}function Te(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",14),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.onDiscard())}),e.j41(1,"span",15),e.EFF(2,"close"),e.k0s()()}}function Me(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){const n=e.eBV(t).$index,a=e.XpG(2);return e.Njj(a.selectRating(n+1))}),e.j41(1,"span",30),e.EFF(2),e.k0s(),e.j41(3,"span",31),e.EFF(4),e.k0s()()}if(2&o){const t=s.$implicit,i=s.$index,n=e.XpG(2);e.AVh("fb2-rating-selected",n.ratingPoint===i+1),e.R7$(2),e.JRh(t),e.R7$(2),e.JRh(i+1)}}function Pe(o,s){if(1&o&&(e.j41(0,"p",26),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.reasonsPlaceholder," ")}}function ke(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",32),e.bIt("click",function(){const n=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.selectReason(n))}),e.EFF(1),e.k0s()}if(2&o){const t=s.$implicit,i=e.XpG(2);e.AVh("fb2-chip-active",i.isReasonSelected(t)),e.R7$(),e.SpI(" ",t.title," ")}}function we(o,s){if(1&o){const t=e.RV6();e.j41(0,"p",33),e.EFF(1),e.j41(2,"span",22),e.EFF(3,"*"),e.k0s()(),e.j41(4,"app-bp-mui-text-area",34),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onOtherReasonInput(n))}),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.otherReasonPlaceholder," "),e.R7$(3),e.Y8G("showLabel",!1)("required",!0)("value",t.otherReasonText)("placeholder",t.otherReasonPlaceholder)("minWords",t.otherReasonMinWords)}}function Oe(o,s){if(1&o&&(e.j41(0,"div",16)(1,"p",17),e.EFF(2),e.j41(3,"span",18),e.EFF(4),e.k0s()(),e.j41(5,"p",19),e.EFF(6),e.k0s()(),e.j41(7,"div",20)(8,"p",21),e.EFF(9),e.j41(10,"span",22),e.EFF(11,"*"),e.k0s()(),e.j41(12,"div",23),e.Z7z(13,Me,5,4,"button",24,e.fX1),e.k0s()(),e.j41(15,"div",20)(16,"p",21),e.EFF(17),e.j41(18,"span",22),e.EFF(19,"*"),e.k0s()(),e.j41(20,"div",25),e.DNE(21,Pe,2,1,"p",26),e.j41(22,"div",27),e.Z7z(23,ke,2,3,"button",28,xe),e.k0s(),e.DNE(25,we,5,6),e.k0s()()),2&o){const t=e.XpG();e.R7$(2),e.SpI(" ",t.feedbackSubtitle," "),e.R7$(2),e.JRh(t.feedbackSubtitleEmoji),e.R7$(2),e.JRh(t.feedbackDescription),e.R7$(3),e.SpI(" ",t.ratingLabel," "),e.R7$(4),e.Dyx(t.ratingSentiments),e.R7$(4),e.SpI(" ",t.reasonsLabel," "),e.R7$(4),e.vxM(21,t.hasReasons?-1:21),e.R7$(),e.AVh("mt-2",!t.hasReasons),e.R7$(),e.Dyx(t.deletionReasons),e.R7$(2),e.vxM(25,t.isOtherSelected?25:-1)}}function Ee(o,s){if(1&o&&(e.j41(0,"li",43),e.EFF(1),e.k0s()),2&o){const t=s.$implicit;e.R7$(),e.JRh(t)}}function Re(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",35)(1,"div",36)(2,"span",37),e.EFF(3,"error_outline"),e.k0s(),e.j41(4,"div",38)(5,"p",39),e.EFF(6),e.k0s()()(),e.j41(7,"p",40),e.EFF(8),e.k0s()(),e.j41(9,"div",20)(10,"p",41),e.EFF(11),e.k0s(),e.j41(12,"ul",42),e.Z7z(13,Ee,2,1,"li",43,e.fX1),e.k0s()(),e.j41(15,"div",44)(16,"label",45),e.EFF(17),e.k0s(),e.j41(18,"app-bp-mui-input",46),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.onConfirmationInput(n))}),e.k0s()(),e.j41(19,"app-bp-checkbox",47),e.bIt("clickEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.onAcknowledgeChange(n))}),e.k0s()}if(2&o){const t=e.XpG();e.R7$(6),e.JRh(t.warningTitle),e.R7$(2),e.JRh(t.warningDescription),e.R7$(3),e.JRh(t.impactListHeading),e.R7$(2),e.Dyx(t.impactList),e.R7$(3),e.BMQ("for",t.modalId+"-confirm-input"),e.R7$(),e.SpI(" ",t.confirmationInputLabel," "),e.R7$(),e.Y8G("id",t.modalId+"-confirm-input")("showLabel",!1)("placeholder",t.confirmationPhrase)("value",t.confirmationInput),e.R7$(),e.Y8G("labelText",t.acknowledgementLabel)("isMultiCheckbox",!1)("isChecked",t.acknowledged)("marginTop","0px")}}const X="others";let W=(()=>{class o{constructor(t){this.languageService=t,this.showModal=!1,this.showCloseButton=!0,this.confirmButtonType="danger-fill",this.feedbackTitle="Delete Account Permanently",this.feedbackSubtitle="We\u2019re sorry to see you go",this.feedbackSubtitleEmoji="\u{1f614}",this.feedbackDescription="We\u2019d love to understand what led to your decision",this.ratingLabel="How satisfied are you with platform?",this.reasonsLabel="What made you delete your account?",this.reasonsPlaceholder="Please select a reason",this.otherReasonPlaceholder="Tell us more about your reason",this.otherReasonMaxLength=500,this.otherReasonMinWords=15,this.confirmTitle="Delete Account Permanently",this.confirmEmoji="\u{1f614}",this.warningTitle="This action cannot be undone!",this.warningDescription="Your entire account and ALL associated data will be permanently deleted.",this.impactListHeading="Deleting your account will permanently remove:",this.impactList=["All bots and automations","All conversations and chat history","All analytics and reports","Team members and access","A
1ctive subscriptions (billing stops)","All integrations and API tokens"],this.confirmationPhrase="DELETE MY ACCOUNT",this.confirmationInputLabel='Type "DELETE MY ACCOUNT" to confirm',this.acknowledgementLabel="I understand this action is permanent and cannot be reversed",this.discardLabel="Discard",this.confirmLabel="Request Delete Account",this.deletionReasons=[{title:"Too Expensive",key:"tooExpensive"},{title:"Feature Not working properly",key:"featureBroken"},{title:"Required Feature not available",key:"missingFeature"},{title:"No longer need the product",key:"noLongerNeed"},{title:"Support Gap/Lack of support",key:"lackOfSupport"},{title:"Others",key:X}],this.userInput=new e.bkB,this.ratingSentiments=["sentiment_very_dissatisfied","sentiment_dissatisfied","sentiment_neutral","sentiment_satisfied","sentiment_very_satisfied"],this.modalId=`feedback-v2-${(0,J.A)()}`,this.step="feedback",this.ratingPoint=-1,this.selectedReasonKeys=[],this.selectedReasonTitles=[],this.otherReasonText="",this.confirmationInput="",this.acknowledged=!1,this.staticText={},this.staticText=this.languageService.getStaticText().shared.feedbackV2??{},this.reinitializeStaticText()}ngOnChanges(t){t.showModal&&(t.showModal.currentValue?(this.resetState(),setTimeout(()=>{(0,k.Jr)(this.modalId,{backdrop:"static",keyboard:!1})},0)):t.showModal.previousValue&&(0,k.W5)(this.modalId))}reinitializeStaticText(){this.feedbackTitle=this.staticText.feedbackTitle,this.feedbackSubtitle=this.staticText.feedbackSubtitle,this.feedbackSubtitleEmoji=this.staticText.feedbackSubtitleEmoji,this.feedbackDescription=this.staticText.feedbackDescription,this.ratingLabel=this.staticText.ratingLabel,this.reasonsLabel=this.staticText.reasonsLabel,this.reasonsPlaceholder=this.staticText.reasonsPlaceholder,this.otherReasonPlaceholder=this.staticText.otherReasonPlaceholder,this.confirmTitle=this.staticText.confirmTitle,this.confirmEmoji=this.staticText.confirmEmoji,this.warningTitle=this.staticText.warningTitle,this.warningDescription=this.staticText.warningDescription,this.impactListHeading=this.staticText.impactListHeading,this.impactList=function be(o){return Object.entries(o).sort(([s],[t])=>Number(s)-Number(t)).map(([,s])=>s)}(this.staticText.impactList),this.confirmationPhrase=this.staticText.confirmationPhrase,this.confirmationInputLabel=this.staticText.confirmationInputLabel,this.acknowledgementLabel=this.staticText.acknowledgementLabel,this.discardLabel=this.staticText.discardLabel,this.confirmLabel=this.staticText.confirmLabel,this.deletionReasons=[{title:this.staticText.deletionReasons.tooExpensive,key:"tooExpensive"},{title:this.staticText.deletionReasons.featureBroken,key:"featureBroken"},{title:this.staticText.deletionReasons.missingFeature,key:"missingFeature"},{title:this.staticText.deletionReasons.noLongerNeed,key:"noLongerNeed"},{title:this.staticText.deletionReasons.lackOfSupport,key:"lackOfSupport"},{title:this.staticText.deletionReasons.others,key:X}]}selectRating(t){this.ratingPoint=t}selectReason(t){const i=this.selectedReasonKeys.indexOf(t.key);i>-1?(this.selectedReasonKeys.splice(i,1),this.selectedReasonTitles.splice(i,1),t.key===X&&(this.otherReasonText="")):(this.selectedReasonKeys.push(t.key),this.selectedReasonTitles.push(t.title))}isReasonSelected(t){return this.selectedReasonKeys.includes(t.key)}get hasReasons(){return this.selectedReasonKeys.length>0}get isOtherSelected(){return this.selectedReasonKeys.includes(X)}get canProceed(){return!(this.ratingPoint<=0||!this.hasReasons||this.isOtherSelected&&this.otherReasonWordCount<this.otherReasonMinWords)}get otherReasonWordCount(){const t=this.otherReasonText.trim();return t?t.split(/\s+/).length:0}get canConfirmDelete(){return this.confirmationInput.trim()===this.confirmationPhrase&&this.acknowledged}onConfirmationInput(t){this.confirmationInput=t.target.value}onOtherReasonInput(t){this.otherReasonText=t.target.value}onAcknowledgeChange(t){this.acknowledged=t?.checked??!this.acknowledged}onConfirmClick(){if("feedback"!==this.step)this.canConfirmDelete&&this.userInput.emit({rating:this.ratingPoint,reasons:this.selectedReasonTitles,reasonKeys:this.selectedReasonKeys,otherReasonText:this.isOtherSelected?this.otherReasonText.trim():"",acknowledged:!0});else{if(!this.canProceed)return;this.step="confirm"}}onDiscard(){this.userInput.emit(null)}trackByKey(t,i){return i.key}resetState(){this.step="feedback",this.ratingPoint=-1,this.selectedReasonKeys=[],this.selectedReasonTitles=[],this.otherReasonText="",this.confirmationInput="",this.acknowledged=!1}static#e=this.\u0275fac=function(i){return new(i||o)(e.rXU(f.g))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-feedback-v2"]],inputs:{showModal:"showModal",showCloseButton:"showCloseButton",confirmButtonType:"confirmButtonType",feedbackTitle:"feedbackTitle",feedbackSubtitle:"feedbackSubtitle",feedbackSubtitleEmoji:"feedbackSubtitleEmoji",feedbackDescription:"feedbackDescription",ratingLabel:"ratingLabel",reasonsLabel:"reasonsLabel",reasonsPlaceholder:"reasonsPlaceholder",otherReasonPlaceholder:"otherReasonPlaceholder",otherReasonMaxLength:"otherReasonMaxLength",otherReasonMinWords:"otherReasonMinWords",confirmTitle:"confirmTitle",confirmEmoji:"confirmEmoji",warningTitle:"warningTitle",warningDescription:"warningDescription",impactListHeading:"impactListHeading",impactList:"impactList",confirmationPhrase:"confirmationPhrase",confirmationInputLabel:"confirmationInputLabel",acknowledgementLabel:"acknowledgementLabel",discardLabel:"discardLabel",confirmLabel:"confirmLabel",deletionReasons:"deleti
1onReasons"},outputs:{userInput:"userInput"},standalone:!0,features:[e.OA$,e.aNF],decls:17,vars:11,consts:[["modal",""],["tabindex","-1","role","dialog","aria-modal","true",1,"modal","fade","fb2-modal",3,"click","id"],["role","document",1,"modal-dialog","modal-dialog-centered","fb2-dialog","d-flex","flex-column","justify-content-center"],[1,"modal-content","fb2-container"],[1,"fb2-header-container","d-flex","flex-column","items-start","w-100"],[1,"d-flex","align-items-center","justify-content-between","fb2-header","w-100"],[1,"fb2-title","m-0"],[1,"fb2-title-emoji"],["type","button","aria-label","Close",1,"fb2-close","d-flex","align-items-center","justify-content-center"],[1,"fb2-content","d-flex","flex-column",3,"click"],[1,"d-flex","justify-content-end","align-items-center","fb2-footer","gap"],["type","outlined","borderRadius","4px","buttonSize","sm","labelFontWeight","semibold",3,"clickEvent","label"],[1,"fb2-confirm-btn"],["borderRadius","4px","buttonSize","auto","labelFontWeight","semibold",3,"clickEvent","type","label","disabled"],["type","button","aria-label","Close",1,"fb2-close","d-flex","align-items-center","justify-content-center",3,"click"],[1,"material-icons"],[1,"fb2-subheader","text-center","d-flex","flex-column"],[1,"fb2-subtitle","m-0"],[1,"fb2-subtitle-emoji"],[1,"fb2-description","m-0"],[1,"fb2-section","d-flex","flex-column","gap"],[1,"fb2-label","m-0"],[1,"fb2-required"],[1,"d-flex","justify-content-between","align-items-center","fb2-rating-row"],["type","button",1,"d-flex","flex-column","align-items-center","justify-content-center","fb2-rating",3,"fb2-rating-selected"],[1,"fb2-reasons"],[1,"fb2-reasons-placeholder","m-0"],[1,"d-flex","flex-wrap","fb2-reason-chip-group"],["type","button",1,"fb2-chip",3,"fb2-chip-active"],["type","button",1,"d-flex","flex-column","align-items-center","justify-content-center","fb2-rating",3,"click"],[1,"material-icons","fb2-rating-icon"],[1,"fb2-rating-label","mt-1"],["type","button",1,"fb2-chip",3,"click"],[1,"fb2-label","m-0","mt-3"],[1,"d-block","w-100","my-2",3,"keyupEvent","showLabel","required","value","placeholder","minWords"],[1,"fb2-warning","d-flex","align-items-start","flex-column"],[1,"d-flex","fb2-warning-header"],[1,"material-icons","fb2-warning-icon"],[1,"fb2-warning-text"],[1,"fb2-warning-title","m-0"],[1,"fb2-warning-desc","m-0"],[1,"fb2-impact-heading","m-0"],[1,"fb2-impact-list","mb-0"],[1,"fb2-impact-item"],[1,"fb2-confirm-box","d-flex","flex-column"],[1,"fb2-confirm-label"],["type","text",1,"w-100",3,"keyupEvent","id","showLabel","placeholder","value"],[1,"fb2-acknowledge-checkbox",3,"clickEvent","labelText","isMultiCheckbox","isChecked","marginTop"]],template:function(i,n){if(1&i){const a=e.RV6();e.j41(0,"div",1,0),e.bIt("click",function(){return e.eBV(a),e.Njj(n.onDiscard())}),e.j41(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h2",6),e.EFF(7),e.DNE(8,ye,2,1,"span",7),e.k0s(),e.DNE(9,Te,3,0,"button",8),e.k0s()(),e.j41(10,"div",9),e.bIt("click",function(h){return e.eBV(a),e.Njj(h.stopPropagation())}),e.DNE(11,Oe,26,9)(12,Re,20,13),e.j41(13,"div",10)(14,"app-bp-button-v2",11),e.bIt("clickEvent",function(){return e.eBV(a),e.Njj(n.onDiscard())}),e.k0s(),e.j41(15,"span",12)(16,"app-bp-button-v2",13),e.bIt("clickEvent",function(){return e.eBV(a),e.Njj(n.onConfirmClick())}),e.k0s()()()()()()()}2&i&&(e.Y8G("id",n.modalId),e.R7$(7),e.SpI(" ","confirm"===n.step?n.confirmTitle:n.feedbackTitle," "),e.R7$(),e.vxM(8,"confirm"===n.step?8:-1),e.R7$(),e.vxM(9,n.showCloseButton?9:-1),e.R7$(2),e.vxM(11,"feedback"===n.step?11:12),e.R7$(3),e.Y8G("label",n.discardLabel),e.R7$(),e.AVh("fb2-confirm-btn-enabled","confirm"===n.step&&n.canConfirmDelete),e.R7$(),e.Y8G("type",n.confirmButtonType)("label",n.confirmLabel)("disabled","feedback"===n.step&&!n.canProceed||"confirm"===n.step&&!n.canConfirmDelete))},dependencies:[$.G,L.v,ve.P,Ce.l,y.s],styles:[".fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%]{width:640px;max-width:calc(100% - 32px)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%]{border:none;background:var(--white-bg);box-shadow:0 10px 32px #0000001f}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-header-container[_ngcontent-%COMP%]{border-top-left-radius:12px;border-top-right-radius:12px;background:var(--white-bg);padding:20px 28px;border-bottom:1px solid var(--bp-dark-border)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-header-container[_ngcontent-%COMP%] .fb2-header[_ngcontent-%COMP%] .fb2-title[_ngcontent-%COMP%]{font-family:Matter-Bold;font-size:20px;color:var(--bp-text-dark);letter-spacing:-.2px}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-header-container[_ngcontent-%COMP%] .fb2-header[_ngcontent-%COMP%] .fb2-title[_ngcontent-%COMP%] .fb2-title-emoji[_ngcontent-%COMP%]{margin-left:6px;font-size:20px}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-header-container[_ngcontent-%COMP%] .fb2-header[_ngcontent-%COMP%] .fb2-close[_ngcontent-%COMP%]{width:28px;height:28px;border:none;background:transparent;border-radius:6px;color:var(--black-66);cursor:pointer;padding:0}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-header-container[_ngcontent-%COMP%] .fb2-header[_ngcontent-%COMP%] .fb2-close[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:22px}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%]{gap:1.5rem;padding:24px 28px;background:var(--white-bg);border:none;border-bottom-left-radius:12px;border-bottom-right-radius:12px}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-subheader[_ngcontent-%COMP%]{gap:4px}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-subheader[_ngcontent-%COMP%] .fb2-subtitle[_ngcontent-%COMP%]{font-family:Matter-SemiBold;font-size:18px;color:var(--dark-grey)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-subheader[_ngcontent-%COMP%] .fb2-subtitle[_ngcontent-%COMP%] .fb2-subtitle-emoji[_ngcontent-%COMP%]{margin-left:4px}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-subheader[_ngcontent-%COMP%] .fb2-description[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:16px;color:var(--background-neutral-700)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-label[_ngcontent-%COMP%]{font-family:Matter-SemiBold;font-size:16px;color:var(--background-neutral-800)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-label[_ngcontent-%COMP%] .fb2-required[_ngcontent-%COMP%]{color:var(--error-color);margin-left:2px}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-rating-row[_ngcontent-%COMP%]{gap:10px}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-rating[_ngcontent-%COMP%]{flex:1;padding:12px 8px;border:1px solid var(--mercury-grey);border-radius:10px;background:var(--white-bg);color:var(--black-66);cursor:pointer;transition:border-color .15s ease,color .15s ease,box-shadow .15s ease}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-rating[_ngcontent-%COMP%]:hover{border-color:var(--theme-color);color:var(--theme-color)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-rating.fb2-rating-selected[_ngcontent-%COMP%]{border-color:var(--theme-color);color:var(--theme-color);box-shadow:0 0 0 3px #226cf41f}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-rating[_ngcontent-%COMP%] .fb2-rating-icon[_ngcontent-%COMP%]{font-size:28px}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-rating[_ngcontent-%COMP%] .fb2-rating-label[_ngcontent-%COMP%]{font-family:Matter-SemiBold;font-size:13px}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-reasons[_ngcontent-%COMP%]{border:1px solid var(--mercury-grey);border-radius:10px;padding:14px;background:var(--white-bg)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-reasons[_ngcontent-%COMP%] .fb2-reasons-placeholder[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:13px;color:var(--background-neutral-700);margin-bottom:10px}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-reasons[_ngcontent-%COMP%] .fb2-reason-chip-group[_ngcontent-%COMP%]{gap:8px}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-reasons[_ngcontent-%COMP%] .fb2-chip[_ngcontent-%COMP%]{border:1px solid transparent;padding:6px 14px;border-radius:999px;font-family:Matter-Regular;font-size:13px;background:var(--background-base-secondary);color:var(--black-66);cursor:pointer}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-reasons[_ngcontent-%COMP%] .fb2-chip[_ngcontent-%COMP%]:hover{background:var(--chip-background);color:var(--theme-color)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-reasons[_ngcontent-%COMP%] .fb2-chip.fb2-chip-active[_ngcontent-%COMP%]{background:#226cf41f;color:var(--theme-color);border-color:var(--theme-color)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-reasons[_ngcontent-%COMP%] .fb2-other
1-counter[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:11px;color:var(--black-66)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-impact-heading[_ngcontent-%COMP%]{font-family:Matter-SemiBold;font-size:14px;color:var(--dark-grey)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-impact-list[_ngcontent-%COMP%]{padding-left:20px;list-style:disc}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-section[_ngcontent-%COMP%] .fb2-impact-list[_ngcontent-%COMP%] .fb2-impact-item[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:13px;color:var(--background-neutral-700);line-height:1.8}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-warning[_ngcontent-%COMP%]{padding:14px 16px;border-radius:10px;background:var(--bp-background-sentiment-rejected);border:1px solid var(--bp-background-sentiment-rejected)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-warning[_ngcontent-%COMP%] .fb2-warning-header[_ngcontent-%COMP%]{gap:10px}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-warning[_ngcontent-%COMP%] .fb2-warning-icon[_ngcontent-%COMP%]{color:var(--danger-color);font-size:20px;margin-top:1px}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-warning[_ngcontent-%COMP%] .fb2-warning-title[_ngcontent-%COMP%]{font-family:Matter-SemiBold;font-size:14px;color:var(--bp-text-sentiment-rejected)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-warning[_ngcontent-%COMP%] .fb2-warning-desc[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:13px;color:var(--bp-text-sentiment-rejected)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-confirm-box[_ngcontent-%COMP%]{padding:14px 16px;border:1px solid var(--mercury-grey);border-radius:10px;background:var(--white-bg)}.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%] .fb2-container[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-confirm-box[_ngcontent-%COMP%] .fb2-confirm-label[_ngcontent-%COMP%]{font-family:Matter-SemiBold;font-size:13px;color:var(--background-neutral-700)}@media (max-width: 576px){.fb2-modal[_ngcontent-%COMP%] .fb2-dialog[_ngcontent-%COMP%]{width:95%;margin:auto}.fb2-modal[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%]{border:none;border-radius:12px;padding:24px 28px;background:var(--white-bg);box-shadow:0 10px 32px #0000001f}.fb2-modal[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-subheader[_ngcontent-%COMP%]{margin-bottom:20px}.fb2-modal[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-subheader[_ngcontent-%COMP%] .fb2-subtitle[_ngcontent-%COMP%]{font-family:Matter-SemiBold;font-size:16px;color:var(--bp-text-dark)}.fb2-modal[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-subheader[_ngcontent-%COMP%] .fb2-subtitle[_ngcontent-%COMP%] .fb2-subtitle-emoji[_ngcontent-%COMP%]{margin-left:4px}.fb2-modal[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-subheader[_ngcontent-%COMP%] .fb2-description[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:13px;color:var(--black-66)}.fb2-modal[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-header[_ngcontent-%COMP%]{margin-bottom:20px}.fb2-modal[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-header[_ngcontent-%COMP%] .fb2-title[_ngcontent-%COMP%]{font-family:Matter-Bold;font-size:20px;color:var(--bp-text-dark);letter-spacing:-.2px}.fb2-modal[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-header[_ngcontent-%COMP%] .fb2-title[_ngcontent-%COMP%] .fb2-title-emoji[_ngcontent-%COMP%]{margin-left:6px;font-size:20px}.fb2-modal[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-header[_ngcontent-%COMP%] .fb2-close[_ngcontent-%COMP%]{width:28px;height:28px;border:none;background:transparent;border-radius:6px;color:var(--black-66);cursor:pointer;padding:0}.fb2-modal[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-header[_ngcontent-%COMP%] .fb2-close[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:22px}.fb2-modal[_ngcontent-%COMP%] .fb2-content[_ngcontent-%COMP%] .fb2-header[_ngcontent-%COMP%] .fb2-close[_ngcontent-%COMP%]:hover{background:var(--background-base-secondary);color:var(--bp-text-dark)}.fb2-modal[_ngcontent-%COMP%] .fb2-title[_ngcontent-%COMP%]{font-size:18px}.fb2-modal[_ngcontent-%COMP%] .fb2-rating-icon[_ngcontent-%COMP%]{font-size:24px}}"]})}return o}
1)();const I=o=>({"install-expand":o}),D=o=>({"toggle-icon":o}),S=o=>({"d-none":o}),H=()=>["PROCESSING","PENDING"];function Ie(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",50)(1,"app-bp-mui-input",57),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG(3);return e.Njj(a.poweredBy=n.target.value)}),e.k0s()()}if(2&o){const t=e.XpG(3);e.R7$(),e.Y8G("labelText",t.staticText.chatBotBrandName)("placeholder",t.staticText.placeholders.chatBotBrandName)("value",t.poweredBy)("disabled",t.isReseller)}}function De(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",24)(1,"div",48)(2,"app-bp-mui-input",58),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG(3);return e.Njj(a.handleTermsUrlChange(n))}),e.k0s()(),e.j41(3,"div",50)(4,"app-bp-mui-input",59),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG(3);return e.Njj(a.handlePrivacyUrlChange(n))}),e.k0s()()()}if(2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("labelText",t.staticText.termsUrl)("placeholder",t.staticText.termsUrlPlaceholder)("value",t.brandDetails.signupConsent.termsUrl)("required",null==t.brandDetails.signupConsent?null:t.brandDetails.signupConsent.enabled)("disabled",t.isReseller),e.R7$(2),e.Y8G("labelText",t.staticText.privacyUrl)("placeholder",t.staticText.privacyUrlPlaceholder)("value",t.brandDetails.signupConsent.privacyUrl)("required",null==t.brandDetails.signupConsent?null:t.brandDetails.signupConsent.enabled)("disabled",t.isReseller)}}function Se(o,s){if(1&o){const t=e.RV6();e.j41(0,"section",21)(1,"div",20)(2,"p",23),e.EFF(3),e.k0s(),e.j41(4,"div",24)(5,"div",44)(6,"app-bp-mui-input",45),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.brandDetails.brand=n.target.value)}),e.k0s()(),e.j41(7,"div",46)(8,"app-bp-mui-input",47),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.brandDetails.websiteUrl=n.target.value)}),e.k0s()(),e.j41(9,"div",48)(10,"app-bp-mui-input",49),e.bIt("uploadEvent",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.uploadImage(n,"logo"))})("keyupEvent",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.uploadImage(n,"logo"))}),e.k0s()(),e.j41(11,"div",50)(12,"app-bp-mui-input",51),e.bIt("uploadEvent",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.uploadImage(n,"rectangularLogo"))})("keyupEvent",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.uploadImage(n,"rectangularLogo"))}),e.k0s()(),e.j41(13,"div",48)(14,"app-bp-mui-input",52),e.bIt("uploadEvent",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.uploadImage(n,"loginBackgroundImage"))})("inputChange",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.validateAndSetImageUrl(n,"loginBackgroundImage"))})("keyupEvent",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.uploadImage(n,"loginBackgroundImage"))}),e.k0s()(),e.DNE(15,Ie,2,4,"div",53),e.k0s(),e.j41(16,"div",54)(17,"div",55)(18,"app-bp-toggle",56),e.bIt("inputChange",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.handleSignupConsentToggle(n))}),e.k0s()()(),e.DNE(19,De,5,10,"div",24),e.k0s()()}if(2&o){const t=e.XpG(2);e.R7$(3),e.JRh(t.staticText.myAccountDetails.brandDetails),e.R7$(3),e.Y8G("labelText",t.staticText.myAccountDetails.brandName)("placeholder",t.staticText.placeholders.chatBotBrandName)("maxLength",1e3)("value",t.brandDetails.brand)("disabled",t.isReseller),e.R7$(2),e.Y8G("labelText",t.staticText.myAccountDetails.brandWebsiteUrl)("placeholder",t.staticText.placeholders.brandWebsiteUrl)("value",t.brandDetails.websiteUrl)("disabled",t.isReseller),e.R7$(2),e.Y8G("showUploadIcon",!0)("acceptValues",t.acceptValues)("labelText",t.staticText.myAccountDetails.squareBrandLogo+" (512*512px)")("required",!0)("placeholder",t.staticText.myAccountDetails.squareBrandLogo+" (512*512px)")("required",!0)("disabled",t.isReseller)("value",t.brandDetails.logo),e.R7$(2),e.Y8G("showUploadIcon",!0)("acceptValues",t.acceptValues)("labelText",t.staticText.myAccountDetails.rectangularBrandLogo+" (160*52px)")("required",!0)("placeholder",t.staticText.myAccountDetails.rectangularBrandLogo+" (160*52px)")("required",!0)("disabled",t.isReseller)("value",null==t.brandDetails?null:t.brandDetails.rectangularLogo),e.R7$(2),e.Y8G("showUploadIcon",!0)("acceptValues",t.acceptValues)("labelText",t.staticText.loginBackgroun
1dImage+" (1920*1080px)")("placeholder",t.staticText.loginBackgroundImage+" (1920*1080px)")("disabled",t.isReseller)("value",null==t.brandDetails?null:t.brandDetails.loginBackgroundImage),e.R7$(),e.Y8G("ngIf",t.isPoweredByConfig),e.R7$(3),e.Y8G("labelText",t.staticText.enableSignupConsent)("value",null==t.brandDetails.signupConsent?null:t.brandDetails.signupConsent.enabled)("showTooltip",!0)("tooltipText",t.staticText.enableSignupConsentTooltip),e.R7$(),e.vxM(19,null!=t.brandDetails.signupConsent&&t.brandDetails.signupConsent.enabled?19:-1)}}function je(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",27)(1,"div",29)(2,"div")(3,"label",60)(4,"span"),e.EFF(5),e.k0s(),e.j41(6,"span",31),e.EFF(7,"\xa0*"),e.k0s()()()(),e.j41(8,"input",61),e.mxI("ngModelChange",function(n){e.eBV(t);const a=e.XpG(2);return e.DH7(a.commissionPercentage,n)||(a.commissionPercentage=n),e.Njj(n)}),e.k0s()()}if(2&o){const t=e.XpG(2);e.R7$(5),e.JRh(t.staticText.myAccountDetails.commissionPercentage),e.R7$(3),e.R50("ngModel",t.commissionPercentage)}}function Fe(o,s){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"div",20),e.DNE(2,Se,20,38,"section",21),e.j41(3,"section",22)(4,"div")(5,"p",23),e.EFF(6),e.k0s(),e.j41(7,"div",24)(8,"div",25)(9,"app-bp-mui-input",26),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.agencyDetails.name=n.target.value)}),e.k0s()(),e.j41(10,"div",27)(11,"app-bp-mui-phone-input",28),e.bIt("inputChange",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.handlePhoneInput(n,"agency"))}),e.k0s()(),e.j41(12,"div",25)(13,"div",29)(14,"div")(15,"label",30)(16,"span"),e.EFF(17),e.k0s(),e.j41(18,"span",31),e.EFF(19,"\xa0*"),e.k0s()()(),e.j41(20,"div",32)(21,"a",33),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.toggleChangeEmailModal())}),e.EFF(22),e.k0s()()(),e.j41(23,"input",34),e.mxI("ngModelChange",function(n){e.eBV(t);const a=e.XpG();return e.DH7(a.agencyDetails.contact.email,n)||(a.agencyDetails.contact.email=n),e.Njj(n)}),e.k0s()(),e.DNE(24,je,9,2,"div",27),e.j41(25,"div",35)(26,"app-bp-mui-dropdown",36),e.bIt("clickEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.setLanguage(n,"agency"))})("searchEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.searchLanguage=n)}),e.k0s()()()()(),e.j41(27,"section",37)(28,"div",38)(29,"p",23),e.EFF(30),e.k0s(),e.j41(31,"div",24)(32,"div",25)(33,"app-bp-mui-input",39),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG();
1return e.Njj(a.contactPersonDetails.name=n.target.value)}),e.k0s()(),e.j41(34,"div",27)(35,"app-bp-mui-phone-input",40),e.bIt("inputChange",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.handlePhoneInput(n,"contact"))}),e.k0s()(),e.j41(36,"div",25)(37,"app-bp-mui-input",41),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.contactPersonDetails.contact.email=n.target.value)}),e.k0s()()()()(),e.j41(38,"div",18)(39,"div",42)(40,"button",43),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.submitAgencyProfile())}),e.EFF(41),e.k0s()()()(),e.bVm()}if(2&o){const t=e.XpG();e.R7$(2),e.vxM(2,t.agencyService.isSubPartner?-1:2),e.R7$(4),e.JRh(t.staticText.myAccountDetails.agencyDetails),e.R7$(3),e.Y8G("labelText",t.staticText.myAccountDetails.agencyName)("placeholder",t.staticText.placeholders.agencyName)("value",t.agencyDetails.name),e.R7$(2),e.Y8G("labelText",t.staticText.myAccountDetails.agencyPhoneNumber)("placeholder",t.staticText.placeholders.phoneNumber)("maxLength",15)("minLength",7)("selectedCode",t.getAgencyCountryCode())("value",t.getPhoneValue()),e.R7$(6),e.JRh(t.staticText.myAccountDetails.agencyEmailId),e.R7$(5),e.SpI(" ",t.staticText.changeEmail.changeLabel," "),e.R7$(),e.R50("ngModel",t.agencyDetails.contact.email),e.Y8G("placeholder",t.staticText.placeholders.agencySupportEmail),e.R7$(),e.vxM(24,t.isSpReseller?24:-1),e.R7$(),e.Y8G("ngClass",t.isSpReseller?"col-md-4":"col-md-5"),e.R7$(),e.Y8G("labelText",t.staticText.selectLanguage)("value",t.getLanguage())("optionList",t.getLanguageList())("showSearch",!0),e.R7$(4),e.JRh(t.staticText.myAccountDetails.contactPersonDetail
1s),e.R7$(3),e.Y8G("labelText",t.staticText.myAccountDetails.contactName)("placeholder",t.staticText.placeholders.agencyContactPersonName)("value",t.contactPersonDetails.name),e.R7$(2),e.Y8G("labelText",t.staticText.myAccountDetails.agencyPhoneNumber)("placeholder",t.staticText.placeholders.phoneNumber)("maxLength",15)("minLength",7)("value",t.getContactPersonDetailsPhoneValue())("selectedCode",t.getContactCountryCode()),e.R7$(2),e.Y8G("labelText",t.staticText.myAccountDetails.contactEmailId)("placeholder",t.staticText.placeholders.agencyContactPersonEmailId)("value",t.contactPersonDetails.contact.email),e.R7$(4),e.SpI(" ",t.staticText.myAccountDetails.updateDetails,"")}}function Ve(o,s){if(1&o){const t=e.RV6();e.j41(0,"div")(1,"div",66)(2,"app-bp-mui-input",75),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.poweredBy=n.target.value)}),e.k0s()()()}if(2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("labelText",t.staticText.chatBotBrandName)("placeholder",t.staticText.placeholders.chatBotBrandName)("value",t.poweredBy)}}function Be(o,s){if(1&o&&(e.j41(0,"span",80),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.Lme("\xa0\xa0","("+t.time.minutes+":"," ",t.time.seconds<10?"0"+t.time.seconds+")":t.time.seconds+")","")}}function Ae(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",66)(1,"div",76)(2,"app-bp-mui-input",77),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.otp=n.target.value)}),e.k0s(),e.j41(3,"p",78),e.EFF(4),e.j41(5,"span")(6,"u",79),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.resendOtp())}),e.EFF(7),e.k0s()(),e.DNE(8,Be,2,2,"span",17),e.k0s()()()}if(2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("labelText",t.staticText.otpSentToMail)("placeholder",t.staticText.enterOTP)("value",t.otp),e.R7$(2),e.SpI("",t.staticText.didnotRecieve,"\xa0\xa0 "),e.R7$(2),e.Y8G("ngClass",t.time.minutes||t.time.seconds?"text-secondary":"text-primary cursor-pointer"),e.R7$(),e.JRh(t.staticText.resendOtp),e.R7$(),e.Y8G("ngIf",t.time.minutes||t.time.seconds)}}function Ne(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",83),e.bIt("click",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.discardChanges())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.staticText.discard," ")}}function Ge(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",84),e.bIt("click",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.submit())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.staticText.submit,"")}}function Le(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",84),e.bIt("click",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.verifyOtp())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.staticText.verify," ")}}function $e(o,s){if(1&o&&(e.j41(0,"div",42),e.DNE(1,Ne,2,1,"button",81)(2,Ge,2,1,"button",82)(3,Le,2,1,"button",82),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.showEnterOtp),e.R7$(),e.Y8G("ngIf",!t.showEnterOtp),e.R7$(),e.Y8G("ngIf",t.showEnterOtp)}}function Xe(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",62)(1,"div",63)(2,"div",64)(3,"h2"),e.EFF(4),e.k0s(),e.j41(5,"p",65),e.EFF(6),e.k0s(),e.j41(7,"div",66)(8,"app-bp-mui-input",67),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.onFirstNameKeyup(n))}),e.k0s()(),e.DNE(9,Ve,3,3,"div",2),e.j41(10,"div",66)(11,"app-bp-mui-input",68),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.email=n.target.value)}),e.k0s()(),e.DNE(12,Ae,9,7,"div",69),e.j41(13,"div",70)(14,"app-bp-mui-dropdown",71),e.bIt("clickEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.setLanguage(n,"rootAgency"))})("searchEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.searchLanguage=n)}),e.k0s()(),e.j41(15,"div",72)(16,"app-bp-mui-input",73),e.bIt("uploadEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.uploadImage(n,"loginBackgroundImage"))})("inputChange",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.validateAndSetImageUrl(n,"loginBackgroundImage"))})("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.uploadImage(n,"loginBackgroundImage"))}),e.k0s()(),e.DNE(17,$e,4,3,"div",74),e.k0s()()()}if(2&o){const t=e.XpG();e.R7$(4),e.JRh(t.staticText.profileInfo),e.R7$(2),e.JRh(t.staticText.managePersonalInfo),e.R7$(2),e.Y8G("labelText",t.staticText.name)("placeholder",t.staticText.placeholders.john)("value",t.firstName)("maxLength",50)("errorMessage",t.firstNameError),e.R7$(),e.Y8G("ngIf",t.isPoweredByConfig),e.R7$(2),e.Y8G("labelText",t.staticText.emailId)("placeholder",t.staticText.placeholders.agencyName)("value",t.email)("disabled",t.showEnterOtp),e.R7$(),e.Y8G("ngIf",t.showEnterOtp),e.R7$(2),e.Y8G("labelText",t.staticText.selectLanguage)("value",t.getLanguage())("optionList",t.getLanguageList(
1))("showSearch",!0),e.R7$(2),e.Y8G("showUploadIcon",!0)("acceptValues",t.acceptValues)("labelText",t.staticText.loginBackgroundImage+" (1920*1080px)")("placeholder",t.staticText.loginBackgroundImage+" (1920*1080px)")("disabled",t.isReseller)("value",t.loginBackgroundImage),e.R7$(),e.Y8G("ngIf","CUSTOMER"!==t.profile.type)}}function Ue(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",86)(1,"div",124)(2,"span",125),e.EFF(3,"schedule"),e.k0s(),e.j41(4,"p",126)(5,"strong"),e.EFF(6),e.k0s(),e.EFF(7),e.j41(8,"button",127),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.viewDeletionStatus())}),e.EFF(9),e.k0s()()(),e.j41(10,"button",128),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.showDeletionBanner=!1)}),e.j41(11,"span",94),e.EFF(12,"close"),e.k0s()()()}if(2&o){const t=e.XpG(2);e.R7$(6),e.JRh(t.staticText.deletionInProgressBanner),e.R7$(),e.SpI("\xa0 ",t.staticText.notifyOnceComplete,"\xa0 "),e.R7$(2),e.JRh(t.staticText.viewStatus)}}function ze(o,s){if(1&o&&(e.j41(0,"span",80),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.Lme("\xa0\xa0","("+t.time.minutes+":"," ",t.time.seconds<10?"0"+t.time.seconds+")":t.time.seconds+")","")}}function Ye(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",66)(1,"div",76)(2,"app-bp-mui-input",129),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.otp=n.target.value)}),e.k0s(),e.j41(3,"p",78),e.EFF(4),e.j41(5,"span")(6,"u",130),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.resendOtp())}),e.EFF(7),e.k0s()(),e.DNE(8,ze,2,2,"span",17),e.k0s()()()}if(2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("labelText",t.staticText.otpSentToMail)("placeholder",t.staticText.enterOTP)("value",t.otp),e.R7$(2),e.SpI("",t.staticText.didnotRecieve,"\xa0\xa0 "),e.R7$(2),e.Y8G("ngClass",t.time.minutes||t.time.seconds?"text-secondary":"text-primary cursor-pointer"),e.R7$(),e.JRh(t.staticText.resendOtp),e.R7$(),e.Y8G("ngIf",t.time.minutes||t.time.seconds)}}function Je(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",70)(1,"app-bp-mui-dropdown",131),e.bIt("clickEvent",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.setSidebarVersion(n))}),e.k0s()()}if(2&o){const t=e.XpG(2);e.R7$(),e.Y8G("labelText",t.staticText.selectSidebarVersion)("value",t.sidebarVersion||"v1")("optionList",t.sidebarVersionOptions)}}function qe(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",83),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.discardChanges())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.staticText.discard," ")}}function We(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",132),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.submitCustomerAccountDetails("profile"))}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.staticText.submit,"")}}function He(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",133),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.verifyOtp())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.staticText.verify," ")}}function Ke(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",134),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.discardChanges())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.staticText.discard," ")}}function Qe(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",135),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.submitCustomerAccountDetails("primaryContact"))}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.staticText.submit,"")}}function Ze(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",136),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.verifyOtp())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.staticText.verify," ")}}function et(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",66)(1,"app-bp-mui-input",137),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.handleOthersInput(n))}),e.k0s()()}if(2&o){const t=e.XpG(2);e.R7$(),e.Y8G("labelText",t.staticText.customIndustry)("placeholder",t.staticText.placeholders.customIndustry)("value",t.getIndustryValue)("maxLength",t.CUSTOM_INDUSTRY_MAX_LENGTH)}}function tt(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",138),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.discardChanges())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.staticText.discard," ")}}function nt(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",139),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.submitCustomerAccountDetails("companyDetails"))}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.staticText.submit,"")}}function it(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",140),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.verifyOtp())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.staticText.verify," ")}}function ot(o,s){if(1&o&&(e.j41(0,"span",150),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,1,null==t.activeExportRequest?null:t.activeExportRequest.status))}}function at(o,s){if(1&o&&(e.j41(0,"span",151),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.JRh(t.staticText.deliveredStatus)}}
1function st(o,s){if(1&o&&(e.j41(0,"p",152),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.staticText.getCopyOfPersonalData,"")}}function rt(o,s){if(1&o&&(e.j41(0,"p",153),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.staticText.exportBeingProcessed," ")}}function ct(o,s){if(1&o&&(e.j41(0,"p",153),e.EFF(1),e.k0s(),e.j41(2,"p",162)(3,"span",163),e.EFF(4,"schedule"),e.k0s(),e.EFF(5),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.staticText.exportReady," "),e.R7$(4),e.SpI(" ",t.staticText.linkExpiresIn7Days," ")}}function lt(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",164),e.bIt("click",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.goToDataExport())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(),e.JRh(t.staticText.requestExport)}}function dt(o,s){if(1&o){const t=e.RV6();e.j41(0,"button",164),e.bIt("click",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.viewExportStatus())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(),e.JRh(t.staticText.viewExportStatus)}}function pt(o,s){if(1&o&&(e.j41(0,"h3",149),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.JRh(t.staticText.requestDataDeletion)}}function mt(o,s){if(1&o&&(e.j41(0,"h3",149),e.EFF(1),e.k0s(),e.j41(2,"span",150),e.EFF(3),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.JRh(t.staticText.dataDeletionInProgress),e.R7$(2),e.JRh(t.formatStatus(t.activeDeletionRequest.status))}}function ut(o,s){if(1&o&&(e.j41(0,"p",152),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.JRh(t.staticText.deleteAccountWarning)}}function gt(o,s){if(1&o&&(e.j41(0,"p",159),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.JRh(t.staticText.requestUnderReview)}}function ht(o,s){if(1&o){const t=e.RV6();e.j41(0,"app-bp-button-v2",165),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.goToDataDeletion())}),e.k0s()}if(2&o){const t=e.XpG(3);e.Y8G("label",t.staticText.deleteData)}}function ft(o,s){if(1&o){const t=e.RV6();e.j41(0,"app-bp-button-v2",166),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.viewDeletionStatus())}),e.k0s()}if(2&o){const t=e.XpG(3);e.Y8G("label",t.staticText.viewRequestStatus)}}function _t(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",87)(1,"div",88),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.setActiveTab("manage-data"))}),e.j41(2,"div",89)(3,"span",141)(4,"span",142),e.EFF(5,"lock"),e.k0s()(),e.j41(6,"div",92)(7,"h2"),e.EFF(8),e.k0s(),e.j41(9,"p",65),e.EFF(10),e.k0s()()(),e.j41(11,"div",93)(12,"span",94),e.EFF(13,"expand_more"),e.k0s()()(),e.j41(14,"div",143)(15,"div",144)(16,"div",145)(17,"span",146),e.nrm(18,"img",147),e.k0s(),e.j41(19,"div",148)(20,"div",124)(21,"h3",149),e.EFF(22),e.k0s(),e.DNE(23,ot,3,3,"span",150)(24,at,2,1,"span",151),e.k0s(),e.DNE(25,st,2,1,"p",152)(26,rt,2,1,"p",153)(27,ct,6,2),e.k0s()(),e.j41(28,"div",154),e.DNE(29,lt,2,1,"button",155)(30,dt,2,1,"button",155),e.k0s()(),e.j41(31,"div",156)(32,"div",145)(33,"span",157),e.nrm(34,"img",158),e.k0s(),e.j41(35,"div",148)(36,"div",124),e.DNE(37,pt,2,1,"h3",149)(38,mt,4,2),e.k0s(),e.DNE(39,ut,2,1,"p",152)(40,gt,2,1,"p",159),e.k0s()(),e.j41(41,"div",154),e.DNE(42,ht,1,1,"app-bp-button-v2",160)(43,ft,1,1,"app-bp-button-v2",161),e.k0s()()()()}if(2&o){const t=e.XpG(2);e.Y8G("ngClass",e.eq3(19,I,"manage-data"===t.activeTab)),e.R7$(8),e.JRh(t.staticText.manageAccountAndData),e.R7$(2),e.JRh(t.staticText.manageAccountAndDataDesc),e.R7$(),e.Y8G("ngClass",e.eq3(21,D,"manage-data"===t.activeTab)),e.R7$(3),e.Y8G("ngClass",e.eq3(23,S,"manage-data"!==t.activeTab)),e.R7$(8),e.JRh(t.staticText.downloadYourData),e.R7$(),e.vxM(23,e.lJ4(25,H).includes(null==t.activeExportRequest?null:t.activeExportRequest.status)?23:-1),e.R7$(),e.vxM(24,"DELIVERED"===(null==t.activeExportRequest?null:t.activeExportRequest.status)?24:-1),e.R7$(),e.vxM(25,t.activeExportRequest?-1:25),e.R7$(),e.vxM(26,e.lJ4(26,H).includes(null==t.activeExportRequest?null:t.activeExportRequest.status)?26:-1),e.R7$(),e.vxM(27,"DELIVERED"===(null==t.activeExportRequest?null:t.activeExportRequest.status)?27:-1),e.R7$(2),e.vxM(29,t.activeExportRequest?-1:29),e.R7$(),e.vxM(30,t.activeExportRequest?30:-1),e.R7$(7),e.vxM(37,t.activeDeleti
1onRequest?-1:37),e.R7$(),e.vxM(38,t.activeDeletionRequest?38:-1),e.R7$(),e.vxM(39,t.activeDeletionRequest?-1:39),e.R7$(),e.vxM(40,t.activeDeletionRequest?40:-1),e.R7$(2),e.vxM(42,t.activeDeletionRequest?-1:42),e.R7$(),e.vxM(43,t.activeDeletionRequest?43:-1)}}function bt(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",123)(1,"div",167),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.setActiveTab("delete"))}),e.j41(2,"div",89)(3,"span",168)(4,"span",94),e.EFF(5,"delete"),e.k0s()(),e.j41(6,"div",92)(7,"h2"),e.EFF(8),e.k0s(),e.j41(9,"p",65),e.EFF(10),e.k0s()()(),e.j41(11,"div",93)(12,"span",94),e.EFF(13,"expand_more"),e.k0s()()(),e.j41(14,"div",169)(15,"div",170)(16,"div",89)(17,"span",171)(18,"span",94),e.EFF(19,"warning_amber"),e.k0s()(),e.j41(20,"div",92)(21,"h3",149),e.EFF(22),e.k0s(),e.j41(23,"p",152),e.EFF(24),e.k0s()()(),e.j41(25,"app-bp-button-v2",172),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.feedback.open=!0)}),e.k0s()()()()}if(2&o){const t=e.XpG(2);e.Y8G("ngClass",e.eq3(8,I,"delete"===t.activeTab)),e.R7$(8),e.JRh(t.staticText.deleteAccountPermanently),e.R7$(2),e.JRh(t.staticText.deleteAccountWarning),e.R7$(),e.Y8G("ngClass",e.eq3(10,D,"delete"===t.activeTab)),e.R7$(3),e.Y8G("ngClass",e.eq3(12,S,"delete"!==t.activeTab)),e.R7$(8),e.JRh(t.staticText.actionUndoWarning),e.R7$(2),e.JRh(t.staticText.deleteAccountDescWarning),e.R7$(),e.Y8G("label",(null==t.staticText?null:t.staticText.deleteMyAccountBtn)||"Delete Account")}}function vt(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",85),e.DNE(1,Ue,13,3,"div",86),e.j41(2,"div",87)(3,"div",88),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.setActiveTab("profile"))}),e.j41(4,"div",89)(5,"span",90),e.nrm(6,"img",91),e.k0s(),e.j41(7,"div",92)(8,"h2"),e.EFF(9),e.k0s(),e.j41(10,"p",65),e.EFF(11),e.k0s()()(),e.j41(12,"div",93)(13,"span",94),e.EFF(14,"expand_more"),e.k0s()()(),e.j41(15,"div",95)(16,"div",96)(17,"div")(18,"label",97),e.EFF(19),e.k0s(),e.j41(20,"app-profile-image",98),e.bIt("uploadedImage",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.uploadProfileImage(n))}),e.k0s()()(),e.j41(21,"div",66)(22,"app-bp-mui-input",99),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.onFirstNameKeyup(n))}),e.k0s()(),e.j41(23,"div",66)(24,"app-bp-mui-input",100),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.onLastNameKeyup(n))}),e.k0s()(),e.j41(25,"div",66)(26,"app-bp-mui-input",101),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.email=n.target.value)}),e.k0s()(),e.DNE(27,Ye,9,7,"div",69),e.j41(28,"div",70)(29,"app-bp-mui-phone-input",102),e.bIt("inputChange",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.handlePhoneInput(n,"profile"))}),e.k0s()(),e.j41(30,"div",70)(31,"app-bp-mui-dropdown",103),e.bIt("clickEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.setCustomerLanguage(n))})("searchEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.searchLanguage=n)}),e.k0s()(),e.DNE(32,Je,2,3,"div",70),e.j41(33,"div",104)(34,"div",42),e.DNE(35,qe,2,1,"button",81)(36,We,2,1,"button",105)(37,He,2,1,"button",106),e.k0s()()()(),e.j41(38,"div",87)(39,"div",88),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.setActiveTab("primary"))}),e.j41(40,"div",89)(41,"span",90),e.nrm(42,"img",107),e.k0s(),e.j41(43,"div",92)(44,"h2"),e.EFF(45),e.k0s(),e.j41(46,"p",65),e.EFF(47),e.k0s()()(),e.j41(48,"div",93)(49,"span",94),e.EFF(50,"expand_more"),e.k0s()()(),e.j41(51,"div",95)(52,"div",66)(53,"app-bp-mui-input",108),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.primaryContactDetails.name=n.target.value)}),e.k0s()(),e.j41(54,"div",66)(55,"app-bp-mui-dropdown",109),e.bIt("clickEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.handleDropdownData(n,"businessTitle"))}),e.k0s()(),e.j41(56,"div",66)(57,"app-bp-mui-input",110),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.primaryContactDetails.contact.email=n.target.value)}),e.k0s()(),e.j41(58,"div",66)(59,"app-bp-mui-phone-input",111),e.bIt("inputChange",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.handlePhoneInput(n,"primaryContact"))}),e.k0s()(),e.j41(60,"div",104)(61,"div",42),e.DNE(62,Ke,2,1,"button",112)(63,Qe,2,1,"button",113)(64,Ze,2,1,"button",114),e.k0s()()()(),e.j41(65,"div",87)(66,"div",88),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.setActiveTab("company"))}),e.j41(67,"div",89)(68,"span",90),e.nrm(69,"img",115),e.k0s(),e.j41(70,"div",92)(71,"h2"),e.EFF(72),e.k0s(),e.j41(73,"p",65),e.EFF(74),e.k0s()()(),e.j41(75,"div",93)(76,"span",94),e.EFF(77,"expand_more"),e.k0s()()(),e.j41(78,"div",95)(79,"div",66)(80,"app-bp-mui-input",116),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.customerCompanyDetails.name=n.target.value)}
1),e.k0s()(),e.j41(81,"div",66)(82,"app-bp-mui-dropdown",117),e.bIt("clickEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.handleDropdownData(n,"industry"))}),e.k0s()(),e.DNE(83,et,2,4,"div",69),e.j41(84,"div",66)(85,"app-bp-mui-dropdown",118),e.bIt("clickEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.handleDropdownData(n,"companySize"))}),e.k0s()(),e.j41(86,"div",66)(87,"app-bp-mui-input",119),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.customerCompanyDetails.companyWebsite=n.target.value)}),e.k0s()(),e.j41(88,"div",104)(89,"div",42),e.DNE(90,tt,2,1,"button",120)(91,nt,2,1,"button",121)(92,it,2,1,"button",122),e.k0s()()()(),e.DNE(93,_t,44,27,"div",87)(94,bt,26,14,"div",123),e.k0s()}if(2&o){const t=e.XpG();e.R7$(),e.vxM(1,t.activeDeletionRequest&&t.showDeletionBanner?1:-1),e.R7$(),e.Y8G("ngClass",e.eq3(85,I,"profile"===t.activeTab)),e.R7$(7),e.JRh(t.staticText.profileInfo),e.R7$(2),e.JRh(t.staticText.managePersonalInfo),e.R7$(),e.Y8G("ngClass",e.eq3(87,D,"profile"===t.activeTab)),e.R7$(3),e.Y8G("ngClass",e.eq3(89,S,"profile"!==t.activeTab)),e.R7$(4),e.JRh(t.staticText.profileImage),e.R7$(),e.Y8G("initialSelectedImage",t.picture),e.R7$(2),e.Y8G("labelText",t.staticText.firstName||"First Name")("placeholder",t.staticText.placeholders.john)("maxLength",50)("value",t.firstName)("errorMessage",t.firstNameError),e.R7$(2),e.Y8G("labelText",t.staticText.lastName||"Last Name")("placeholder",t.staticText.placeholders.doe||"Doe")("maxLength",50)("value",t.lastName)("errorMessage",t.lastNameError),e.R7$(2),e.Y8G("labelText",t.staticText.emailId)("placeholder",t.staticText.placeholders.agencyName)("value",t.email)("disabled",t.showEnterOtp),e.R7$(),e.Y8G("ngIf",t.showEnterOtp),e.R7$(2),e.Y8G("labelText",t.staticText.profilePhoneNumber)("placeholder",t.staticText.placeholders.phoneNumber)("maxLength",15)("minLength",7)("value",t.getUserProfilePhoneValue())("selectedCode",t.getProfileCountryCode()),e.R7$(2),e.Y8G("labelText",t.staticText.selectLanguage)("value",t.getCustomerLanguage())("optionList",t.getLanguageList())("showSearch",!0),e.R7$(),e.vxM(32,t.shouldShowSidebarToggle?32:-1),e.R7$(3),e.Y8G("ngIf",t.showEnterOtp),e.R7$(),e.Y8G("ngIf",!t.showEnterOtp),e.R7$(),e.Y8G("ngIf",t.showEnterOtp),e.R7$(),e.Y8G("ngClass",e.eq3(91,I,"primary"===t.activeTab)),e.R7$(7),e.JRh(t.staticText.primaryContactInfo),e.R7$(2),e.JRh(t.staticText.primaryContactInfoDesc),e.R7$(),e.Y8G("ngClass",e.eq3(93,D,"primary"===t.activeTab)),e.R7$(3),e.Y8G("ngClass",e.eq3(95,S,"primary"!==t.activeTab)),e.R7$(2),e.Y8G("labelText",t.staticText.primaryContactName)("maxLength",50)("placeholder",t.staticText.placeholders.primaryContactName)("value",t.primaryContactDetails.name),e.R7$(2),e.Y8G("labelText",t.staticText.primaryContactTitle)("value",t.primaryContactDetails.title)("optionList",t.contactTitleOptions),e.R7$(2),e.Y8G("labelText",t.staticText.primaryContactEmail)("placeholder",t.staticText.placeholders.primaryContactEmail)("type",t.email)("value",t.primaryContactDetails.contact.email),e.R7$(2),e.Y8G("labelText",t.staticText.primaryContactPhone)("placeholder",t.staticText.placeholders.primaryContactPhone)("maxLength",15)("minLength",7)("value",t.getPrimaryContactPhoneValue())("selectedCode",t.getPrimaryContactCountryCode()),e.R7$(3),e.Y8G("ngIf",t.showEnterOtp),e.R7$(),e.Y8G("ngIf",!t.showEnterOtp),e.R7$(),e.Y8G("ngIf",t.showEnterOtp),e.R7$(),e.Y8G("ngClass",e.eq3(97,I,"company"===t.activeTab)),e.R7$(7),e.JRh(t.staticText.companyInfo),e.R7$(2),e.JRh(t.staticText.companyInfoDesc),e.R7$(),e.Y8G("ngClass",e.eq3(99,D,"company"===t.activeTab)),e.R7$(3),e.Y8G("ngClass",e.eq3(101,S,"company"!==t.activeTab)),e.R7$(2),e.Y8G("labelText",t.staticText.companyName)("placeholder",t.staticText.placeholders.company)("value",null==t.customerCompanyDetails?null:t.customerCompanyDetails.name)("maxLength",30),e.R7$(2),e.Y8G("labelText",t.staticText.industryName)("value",t.selectedIndustry)("optionList",t.industryListOptions),e.R7$(),e.Y8G("ngIf","Other"===t.selectedIndustry),e.R7$(2),e.Y8G("labelText",t.staticText.companySize)("value",null==t.customerCompanyDetails?null:t.customerCompanyDetails.companySize)("optionList",t.companySizeOptions),e.R7$(2),e.Y8G("labelText",t.staticText.companyWebsite)("value",null==t.customerCompanyDetails?null:t.customerCompanyDetails.companyWebsite),e.R7$(3),e.Y8G("ngIf",t.showEnterOtp),e.R7$(),e.Y8G("ngIf",!t.showEnterOtp),e.R7$(),e.Y8G("ngIf",t.showEnterOtp),e.R7$(),e.vxM(93,"CUSTOMER"===t.profile.type?93:-1),e.R7$(),e.vxM(94,t.shouldShowDeleteAccount?94:-1)}}function Ct(o,s){if(1&o){const t=e.RV6();e.j41(0,"app-feedback-v2",173),e.bIt("userInput",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.saveFeedbackAndDeleteAccount(n))}),e.k0s()}if(2&o){const t=e.XpG();
1e.Y8G("showModal",t.feedback.open)}}function xt(o,s){if(1&o&&(e.j41(0,"small",80),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.Lme("\xa0\xa0","("+t.time.minutes+":"," ",t.time.seconds<10?"0"+t.time.seconds+")":t.time.seconds+")","")}}let yt=(()=>{class o{constructor(t,i,n,a,l,h,_,x,j,q,w,wn,On,En){this.commonService=t,this.networkService=i,this.sharedService=n,this.router=a,this.store=l,this.authService=h,this.languageService=_,this.errorMessageService=x,this.uploadService=j,this.mixpanel=q,this.subscriptionService=w,this.agencyService=wn,this.serviceRegionService=On,this.dataRequestService=En,this.CUSTOM_INDUSTRY_MAX_LENGTH=100,this.openDeleteAccount=!1,this.feedback={open:!1,title:"Account Delete Feedback Form",headingOne:"Sad to see you go",headingTwo:"Rate your experience with BotPenguin",deleteReasonHeading:"What made you delete your account?",accountDeletionReasons:[{title:"I created by mistake",key:"mistake"},{title:"I want to create another Bot",key:"anotherBot"},{title:"Couldn't find features that I need",key:"missingFeatures"},{title:"UI was hard to navigate",key:"uiHardToNavigate"},{title:"I don't want to tell",key:"secret"},{title:"Other",key:"other"}],textAreaPlaceholder:" Please help us know more and be better.",confirmText:"Save and Delete",cancelText:"Cancel"},this.plans=[],this.overImage="/assets/version2/images/edit-button.svg",this.url="/assets/version2/images/uploader-image.svg",this.filterLanguage=!1,this.filterDropdown=!1,this.selectedCode="in",this.countryName="India",this.selectedLanguage="Select your language",this.showSpinner=!1,this.showImage=!0,this.king=!1,this.country=[],this.userProfile={picture:""},this.data=[],this.firstNameError="",this.lastName="",this.lastNameError="",this.originalLastName="",this.oldEmail="",this.loginBackgroundImage="",this.roleDropdown=!1,this.useCaseDropdown=!1,this.onboardingDropdown=!1,this.industryDropdown=!1,this.toolTip=O.v1,this.showButtonValue=!1,this.isAgencyLanguageChanged=!1,this.isCustomerLanguageChanged=!1,this.isSidebarVersionChanged=!1,this.picture="",this.isProfilePicUploaded=!1,this.isWhitelabelAgency=!1,this.industry=["E-Commerce Business","Education Industry","Health Industry","Agriculture Industry","Travel Industry","IT support & Tech ","News Media Industry","Food Industry","Telecommunication Industry","Other"],this.showEnterOtp=!1,this.time={minutes:0,seconds:59},this.languageOptions=[],this.searchLanguage="",this.languageDropDown=!1,this.brandDetails={brand:"",websiteUrl:"",logo:"",rectangularLogo:"",loginBackgroundImage:"",signupConsent:{enabled:!1,termsUrl:"",privacyUrl:""}},this.agencyDetails={name:"",contact:{phone:{prefix:"",number:""},email:""}}
1,this.contactPersonDetails={name:"",contact:{phone:{prefix:"",number:""},email:""}},this.contact={phone:{number:"",prefix:""},email:""},this.changeEmailModal=!1,this.verifyEmailModal=!1,this.newAgencyEmailId="",this.customerCompanyDetails={name:"",industry:"",companySize:"",companyWebsite:""},this.primaryContactDetails={name:"",title:"",contact:{phone:{prefix:"",number:""},email:""},isCommunicationPreferred:!1},this.industryListOptions=[{title:"Automotive",value:"Automotive"},{title:"Beauty, Spa and Salon",value:"Beauty, Spa and Salon"},{title:"Clothing and Apparel",value:"Clothing and Apparel"},{title:"Education",value:"Education"},{title:"Entertainment",value:"Entertainment"},{title:"Event Planning and Service",value:"Event Planning and Service"},{title:"Finance and Banking",value:"Finance and Banking"},{title:"Food and Grocery",value:"Food and Grocery"},{title:"Public Service",value:"Public Service"},{title:"Hotel and Lodging",value:"Hotel and Lodging"},{title:"Medical and Health",value:"Medical and Health"},{title:"Non Profit",value:"Non Profit"},{title:"Professional Service",value:"Professional Service"},{title:"Shopping and Retail",value:"Shopping and Retail"},{title:"Travel and Transportation",value:"Travel and Transportation"},{title:"Restaurant",value:"Restaurant"},{title:"Other",value:"Other"}],this.contactTitleOptions=B.b.map(d=>({title:d.defaultTitle,value:d.value})),this.deleteConfirmationText="",this.botCount=0,this.contactCount=0,this.companySizeOptions=z.J.map(d=>({title:d.defaultTitle,value:d.value})),this.selectedIndustry="",this.industryInput="",this.activeTab="",this.activeExportRequest=null,this.activeDeletionRequest=null,this.showDeletionBanner=!0,this.emailRegex=/^(([^<>()[\]\\.,;:\s@']+(\.[^<>()[\]\\.,;:\s@']+)*)|('.+'))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,this.urlRegex=/^(ftp|http|https|HTTP|HTTPS):\/\/[^ "]+$/,this.isReseller=!1,this.sidebarVersion="v1",this.sidebarBotTabVersion="v1",this.acceptValues=[".png",".jpg",".jpeg",".svg",".webp",".gif",".avif",".bmp",".ico"],this.staticText=_.getStaticText().settings.details,this.reInitializeStaticText(),this.industryListOptions=this.reInitializeIndustryListOptions(),this.contactTitleOptions=this.reInitializeContactTitleOptions(),this.initializeFeedbackModalText(),this.closePopup$=this.sharedService.closePopups.subscribe(()=>{this.roleDropdown=!1,this.useCaseDropdown=!1,this.onboardingDropdown=!1,this.industryDropdown=!1}),this.mixpanel.trackEvent("My account page view",{distinct_id:this.authService.customerProfileId}),this.storeSubscription$=this.store.select(d=>d).subscribe(d=>{this.userPlan=d.profile.plan,this.profile=d.profile,this.botCount=d.bots?.length||0,this.contactCount=d.customers?.length||0,this.sidebarVersion=this.profile?.sidebarVersion,this.sidebarBotTabVersion=this.profile?.sidebarBotTabVersion||"v1",this.subscription=d.subscription,this.firstName=this.resolveFirstName(this.profile),this.originalFirstName=this.firstName,this.lastName=this.resolveLastName(this.profile),this.originalLastName=this.lastName,this.email=this.profile?.contact?.email,this.isReseller=this.profile?.isResellerWhiteLabeled,this.originalEmail=this.email,this.loginBackgroundImage=d.profile?.meta?.loginBackgroundImage||"",this.originalPicture=d?.profile?.picture,this.picture=d?.profile?.picture,this.phone=this.profile?.contact?.phone.number,this.prefix=this.profile?.contact?.phone?.prefix,(this.userPlan?._plan?.featureAvailability||[]).map(oe=>{"storage"===oe.name&&(this.storage=oe.limit)}),this.agencyToken=!!d.tokens.agencyToken,this.poweredBy="AGENCY"===this.profile?.type?d.agencyDetails?.meta?.poweredBy:this.profile?.meta?.poweredBy,this.originalAgencyDetails=d.agencyDetails,d.profile&&"CUSTOMER"===d.profile.type&&(d.profile.companyInfo&&(this.customerCompanyDetails=JSON.parse(JSON.stringify(d.profile.companyInfo)),this.selectedIndustry=this.getSelectedIndustry(d.profile.companyInfo.industry),"Other"===this.selectedIndustry&&(this.industryInput=this.customerCompanyDetails.industry)),d.profile.primaryContact&&(this.primaryContactDetails=this.normalizePrimaryContact(d.profile.primaryContact))),this.isWhitelabelAgency=!("AGENCY"!==d.profile.type||!this.agencyService.isWhiteLabel),this.initialiseAgencyDetails(),this.subscriptionDetail
1s=d.partnerSubscription.subscription}),this.setCurrentAgencyLanguage(),this.setCurrentCustomerLanguage(),history.state?.openAccordion&&this.profile&&this.setActiveTab("profile")}ngOnInit(){this.commonService.getCountries().then(t=>{this.countries=t}),setTimeout(()=>{},2e3),this.resetTimer(),localStorage.getItem("customer-language")&&localStorage.getItem("impersonate")&&localStorage.setItem("impersonateLanguage","true"),this.loadActiveDataRequests()}loadActiveDataRequests(){var t=this;return(0,m.A)(function*(){try{const i=yield t.dataRequestService.getMyRequests(),n=["PENDING","UNDER_REVIEW","PROCESSING","DELIVERED","COMPLETED"];t.activeExportRequest=i.find(a=>"EXPORT"===a.type&&n.includes(a.status))||null,t.activeDeletionRequest=i.find(a=>"DELETION"===a.type&&n.includes(a.status))||null}catch{}})()}formatStatus(t){return t?t.replace(/_/g," ").toLowerCase().replace(/\b\w/g,i=>i.toUpperCase()):this.staticText.pendingStatus}ngOnDestroy(){this.storeSubscription$?.unsubscribe(),this.closePopup$?.unsubscribe(),this.timerId&&clearInterval(this.timerId)}reInitializeStaticText(){this.toolTip=this.staticText.appTooltip,this.languageOptions=[{title:"English",localValue:"English",value:"en"},{title:"Hindi",localValue:"\u0939\u093f\u0902\u0926\u0940",value:"hi"},{title:"German",localValue:"Deutsch",value:"de"},{title:"French",localValue:"Fran\xe7ais",value:"fr"},{title:"Portuguese",localValue:"Portugu\xeas",value:"pt"},{title:"Spanish",localValue:"Espa\xf1ol",value:"es"},{title:"Italian",localValue:"Italiano",value:"it"},{title:"Russian",localValue:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",value:"ru"},{title:"Romanian",localValue:"rom\xe2n\u0103",value:"ro"},{title:"Dutch",localValue:"Nederlands",value:"nl"},{title:"Arabic",localValue:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",value:"ar"},{title:"Turkish",localValue:"T\xfcrk\xe7e",value:"tr"},{title:"Hebrew",localValue:"\u05e2\u05d1\u05e8\u05d9\u05ea",value:"he"},{title:"Japanese",localValue:"\u65e5\u672c\u8a9e",value:"jp"},{title:"Croatian",localValue:"Hrvatski",value:"hrv"},{title:"Albanian",localValue:"shqiptare",value:"sq"},{title:"Chinese",localValue:"\u4e2d\u56fd\u4eba",value:"zh-cn"},{title:"Swedish",localValue:"Svenska",value:"swv"},{title:"Indonesian",localValue:"Bahasa Indonesia",value:"id"},{title:"Hungarian",localValue:"Magyar",value:"hu"},{title:"Welsh",localValue:"Cymraeg",value:"cy"},{title:"Persian",localValue:"\u0641\u0627\u0631\u0633\u06cc",value:"fa"},{title:"Chinese (Traditional)",localValue:"\u7e41\u9ad4\u4e2d\u6587",value:"zh-Hant"},{title:"Polish",localValue:"Polski",value:"pl"},{title:"Thai",localValue:"\u0e44\u0e17\u0e22",value:"th"},{title:"Vietnamese",localValue:"Ti\u1ebfng Vi\u1ec7t",value:"vi"},{title:"Ukrainian",localValue:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",value:"uk"},{title:"Venda",localValue:"Tshiven\u1e13a",value:"ve"},{title:"Sotho",localValue:"Sesotho",value:"st"},{title:"Xhosa",localValue:"isiXhosa",value:"xh"},{title:"Zulu",localValue:"isiZulu",value:"zu"}]}initializeFeedbackModalText(){this.feedback={title:this.staticText.feedbackFormTitle,open:!1,headingOne:this.staticText.headingOne,headingTwo:this.staticText.headingTwo,deleteReasonHeading:this.staticText.deleteReasonHeading,accountDeletionReasons:[{title:this.staticText.accountDeletionReasons?.createdMistake,key:"mistake"},{title:this.staticText.accountDeletionReasons?.anotherBot,key:"anotherBot"},{title:this.staticText.accountDeletionReasons?.missingFeatures,key:"missingFeatures"},{title:this.staticText.accountDeletionReasons?.uiHardToNavigate,key:"uiHardToNavigate"},{title:this.staticText.accountDeletionReasons?.secret,key:"secret"},{title:this.staticText.accountDeletionReasons?.other,key:"other"}],textAreaPlaceholder:this.staticText.pleaseHelpUsKnowMore,confirmText:this.staticText.saveFeedbackAndDeleteAccount,cancelText:this.staticText.cancelText}}reInitializeIndustryListOptions(){return Y.W.map(t=>({title:this.staticText.industryListOptions?.[t.key]||t.defaultTitle,value:t.value}))}reInitializeContactTitleOptions(){return B.b.map(t=>({title:this.staticText.contactTitleOptions?.[t.key]||t.defaultTitle,value:t.value}))}setCurrentAgencyLanguage(){try{const t=this.profile?.defaultLanguage?this.languageOptions.find(n=>n.value===this.profile.defaultLanguage):null,i=localStorage.getItem("language")?JSON.parse(localStorage.getItem("language")):null;this.currentAgencyLanguage=t||i||{title:"English",value:"en"}}catch{this.currentAgencyLanguage={title:"English",value:"en"}}}setCurrentCustomerLanguage(){try{const t=localStorage.getItem("language")?JSON.parse(localStorage.getItem("language")):null,i=this.profile?.defaultLanguage?this.languageOptions.find(n=>n.value===this.profile.defaultLanguage):null;this.customerLanguage=i||t||{title:"English",value:"en"}}catch{this.customerLanguage={title:"English",value:"en"}}}getLanguage(){const t=this.currentAgencyLanguage;if(t&&("undefined"!==t||"null"!==t))return t.value}getAgencyLanguage(){const t=this.currentAgencyLanguage;if(t&&("undefined"!==t||"null"!==t))return t.localValue||t.title}getCustomerLanguage(){const t=this.customerLanguage;if(t&&("undefined"!==t||"null"!==t))return t.value||t.title}setLanguage(t,i){const n=t?.item;"agency"===i?(this.currentAgencyLanguage=n,this.isAgencyLanguageChanged=!0):(localStorage.setItem("language",JSON.stringify(n||{title:"English",value:"en"})),localStorage.setItem("customer-language",JSON.stringify(n)),localStorage.setItem("impersonateLanguage","false"),window.location.reload())}setCustomerLanguage(t){const i=t?.item;
1this.customerLanguage=i,this.isCustomerLanguageChanged=!0}getLanguageList(){return this.languageOptions.filter(t=>(t.title||"").match(new RegExp(this.searchLanguage,"gi")))}getSelectedIndustry(t){if(""===t)return"Other";const i=this.industryListOptions.find(n=>n.value.toLowerCase()===t.toLowerCase());return i?i.value:"Other"}getFirstNameError(){return(this.firstName||"").trim()?this.commonService.isValidName(this.firstName)?"":this.staticText.invalidNameFormat||"Name must be 1-50 characters, contain at least one letter, and use only letters, numbers, spaces, apostrophes, hyphens or periods":this.staticText.nameRequired||"Name is required"}onFirstNameKeyup(t){this.firstName=t.target.value,this.firstNameError=this.getFirstNameError()}getLastNameError(){return(this.lastName||"").trim()&&!this.commonService.isValidName(this.lastName)?this.staticText.invalidNameFormat||"Name must be 1-50 characters, contain at least one letter, and use only letters, numbers, spaces, apostrophes, hyphens or periods":""}onLastNameKeyup(t){this.lastName=t.target.value,this.lastNameError=this.getLastNameError()}submit(){var t=this;return(0,m.A)(function*(){if(t.firstNameError=t.getFirstNameError(),t.firstNameError)return;if(!t.email)return t.sharedService.showToast("warning","",t.staticText.emailRequired||"Email is required");if(!t.commonService.isValidEmail(t.email.toLowerCase()))return t.sharedService.showToast("warning","",t.staticText.invalidEmailFormat||"Invalid email format");if(t.isPoweredByConfig&&!t.poweredBy)return t.sharedService.showToast("warning","",t.staticText.pleaseProvideChatBotBrandName||"Please provide Chat Bot Brand Name");if(t.loginBackgroundImage=(t.loginBackgroundImage||"").trim(),t.loginBackgroundImage&&!(0,R.VP)(t.loginBackgroundImage))return t.sharedService.showToast("warning","",t.staticText.pleaseProvideValidImage||"Please provide a valid image");if(t.firstName=t.firstName.trim(),t.lastName=(t.lastName||"").trim(),t.email=t.email.toLowerCase().trim(),t.poweredBy=(t.poweredBy||"").trim(),t.originalEmail.toLowerCase()===t.email.toLowerCase()&&"CUSTOMER"!==t.profile.type&&t.originalFirstName===t.firstName&&!t.isPoweredByConfig&&!t.isProfilePicUploaded)return t.sharedService.showToast("warning","","CUSTOMER"===t.profile.type?t.staticText.noChangesDetectedInProfileInformation||"No changes detected in Profile Information":t.staticText.noChangesDetectedInNameOrEmail||"No changes detected in name or email");try{if(t.originalEmail.toLowerCase()!==t.email.toLowerCase()){if(yield t.authService.checkEmail(t.email))return t.sharedService.showToast("warning","",t.staticText.theProvidedEmailIsAlreadyRegisteredWithUs||"The provided email is already registered with us");t.originalEmail=t.email,yield t.networkService.httpRequest(`auth/send-change-email-otp/${t.profile._id}/${t.profile.type}`,{email:`${t.email}`},"POST"),t.showEnterOtp=!0,t.resetTimer(),t.timerId=setInterval(()=>{t.time=t.showTimer(t.time),t.time&&0===t.time.seconds&&0===t.time.minutes&&(clearInterval(t.timerId),t.timerId=null)},1e3),t.sharedService.showToast("success","",t.staticText.otpHasBeenSentToYourEmail||"OTP has been sent to your email")}}catch(n){return t.sharedService.showToast("error","",n??n?.message??t.staticText.thereWasProblemUpdatingCheckValues??"There was a problem while Updating please check values or try again later")}const i={..."CUSTOMER"===t.profile.type?{firstName:t.firstName,lastName:t.lastName}:{name:t.firstName},loginBackgroundImage:t.loginBackgroundImage||"",...t.poweredBy&&{poweredBy:t.poweredBy},...t.picture&&{picture:t.picture}};try{t.sharedService.loader("start");const n=yield t.networkService.httpRequest("customer/profile",i,"PUT");if(t.profile?.meta?.poweredBy&&(t.profile.meta.poweredBy=t.poweredBy||""),!t.showEnterOtp){t.sharedService.showToast("success","",t.staticText.updatedSuccessfully||"Updated Successfully"),t.isProfilePicUploaded=!1;const a={...t.profile.meta,loginBackgroundImage:n?.meta?.loginBackgroundImage,poweredBy:t.poweredBy};t.store.dispatch((0,T.r7)({update:{...t.profile,name:n?.name??t.firstName,firstName:n?.firstName,lastName:n?.lastName,picture:t.picture,meta:a}})),t.originalFirstName=t.firstName,t.originalLastName=t.lastName,t.store.dispatch((0,V.nQ)({update:{...t.originalAgencyDetails,meta:{...t.originalAgencyDetails.meta,loginBackgroun
1dImage:n?.meta?.loginBackgroundImage}}}))}}catch{return t.sharedService.showToast("error","",t.staticText.thereWasProblemUpdatingCheckValues??"There was a problem while Updating please check values or try again later")}finally{t.sharedService.loader("stop")}})()}normalizeWebsiteUrl(t=""){const i=(t||"").trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");return i?`https://${i}`:""}submitCustomerAccountDetails(t){var i=this;return(0,m.A)(function*(){let n={};switch(t){case"profile":if(i.firstNameError=i.getFirstNameError(),i.firstNameError)return;if(!i.email)return i.sharedService.showToast("warning","",i.staticText.emailRequired||"Email is required");if(i.phone&&i.prefix&&!i.sharedService.isPhoneNumberValid(i.prefix,i.phone))return i.sharedService.showToast("warning","",i.staticText.pleaseEnterValidPhoneNumber||"Please enter a valid phone number");if(!i.isProfilePicUploaded&&i.originalPicture&&(i.picture=i.originalPicture),i.originalEmail.toLowerCase()===i.email.toLowerCase()&&i.originalFirstName===i.firstName&&i.originalLastName===i.lastName&&!i.isProfilePicUploaded&&!i.isCustomerLanguageChanged&&i.profile?.contact?.phone.number===i.phone&&i.profile?.contact?.phone?.prefix===i.prefix&&i.sidebarVersion===i.profile?.sidebarVersion&&i.sidebarBotTabVersion===i.profile?.sidebarBotTabVersion)return i.sharedService.showToast("warning","",i.staticText.noChangesDetectedInNameEmailOrProfileImage||"No changes detected in name, email, sidebar version or profile image");i.firstName=i.firstName.trim(),i.lastName=(i.lastName||"").trim(),i.email=i.email.toLowerCase().trim(),localStorage.setItem("language",JSON.stringify(i.customerLanguage||{title:"English",value:"en"})),n={firstName:i.firstName,lastName:i.lastName,...i.poweredBy&&{poweredBy:i.poweredBy},...i.picture&&{picture:i.picture},defaultLanguage:(i.customerLanguage||{value:"en"}).value,...i.sidebarVersion&&{sidebarVersion:i.sidebarVersion},...i.sidebarBotTabVersion&&{sidebarBotTabVersion:i.sidebarBotTabVersion},contact:{phone:i.phone&&i.prefix?{number:i.phone,prefix:i.prefix}:{number:"",prefix:""}}},i.contact={phone:i.phone&&i.prefix?{number:i.phone,prefix:i.prefix}:{number:"",prefix:""},email:i.originalEmail};break;case"primaryContact":if(i.profile.primaryContact&&!i.checkIfCardsDataChanged("primaryContact"))return i.sharedService.showToast("warning","",i.staticText.noChangesDetectedInPrimaryContactInformation||"No changes detected in Primary Contact Information");if(i.primaryContactDetails.contact.email&&!i.emailRegex.test(i.primaryContactDetails.contact.email.trim()))return i.sharedService.showToast("warning","",i.staticText.validEmailMessage||"Please provide valid email address");if(i.primaryContactDetails.contact.phone.number&&i.primaryContactDetails.contact.phone.prefix&&!i.sharedService.isPhoneNumberValid(i.primaryContactDetails.contact.phone.prefix,i.primaryContactDetails.contact.phone.number))return i.sharedService.showToast("warning","",i.staticText.pleaseEnterValidPhoneNumber||"Please enter a valid phone number");n={name:i.firstName||"",primaryContact:{name:i.primaryContactDetails.name.trim()||"",title:i.primaryContactDetails.title.trim()||"",contact:{phone:{prefix:i.primaryContactDetails.contact.phone.prefix,number:i.primaryContactDetails.contact.phone.number},email:i.primaryContactDetails.contact.email?.trim()||""},isCommunicationPreferred:i.primaryContactDetails.isCommunicationPreferred}};break;case"companyDetails":if(i.customerCompanyDetails.companyWebsite=i.normalizeWebsiteUrl(i.customerCompanyDetails?.companyWebsite),i.profile.companyInfo&&!i.checkIfCardsDataChanged("companyDetails"))return i.sharedService.showToast("warning","",i.staticText.noChangesDetectedInCompanyInformation||"No changes detected in Company Information");n={name:i.firstName||"",companyInfo:{name:i.customerCompanyDetails?.name?.trim()||"",industry:"Other"===i.customerCompanyDetails.industry?i.industryInput:i.customerCompanyDetails.industry,companySize:i.customerCompanyDetails.companySize,companyWebsite:i.customerCompanyDetails?.companyWebsite||""}}}try{if(i.originalEmail.toLowerCase()!==i.email.toLowerCase()){if(yield i.authService.checkEmail(i.email))return i.sharedService.showToast("warning","",i.staticText.theProvidedEmailIsAlreadyRegisteredWithUs||"The provided email is already registered with us");i.oldEmail=i.originalEmail,i.originalEmail=i.email,yield i.networkService.httpRequest(`auth/send-change-email-otp/${i.profile._id}/${i.profile.type}`,{email:`${i.email}`},"POST"),i.showEnterOtp=!0,i.resetTimer(),i.timerId=setInterval(()=>{i.time=i.showTimer(i.time),i.time&&0===i.time.seconds&&0===i.time.minutes&&(clearInterval(i.timerId),i.timerId=null)},1e3),i.sharedService.showToast("success","",i.staticText.otpHasBeenSentToYourEmail||"OTP has been sent to your email")}}catch(a){return i.sharedService.showToast("error","",a??a?.message??i.staticText.thereWasProblemUpdatingCheckValues??"There was a problem while Updating please check values or try again later")}try{i.sharedService.loader("start");const a=yield i.networkService.httpRequest("customer/profile",n,"PUT");if(!i.showEnterOtp)switch(i.sharedService.showToast("success","",i.staticText.updatedSuccessfully||"Updated Successfully"),i.isProfilePicUploaded=!1,t){case"profile":i.store.dispatch((0,T.r7)({update:{...i.profile,...n,name:a?.name??i.firstName,firstName:a?.firstName??i.firstName,lastName:a?.lastName??i.lastName,picture:i.picture,contact:i.contact}})),i.originalFirstName=i.firstName,i.originalLastName=i.lastName,i.mixpanel.trackEvent("Profile Information Updated"),i.sidebarVersion&&n?.sidebarVersion&&i.sidebarVersion!==n?.sidebarVersion&&window.location.reload();break;case"primaryContact":i.store.dispatch((0,T.r7)({update:{...i.profile,primaryContact:i.primaryContactDetails,name:i.firstName}})),i.mixpanel.trackEvent("Primary Contact Information Updated");break;case"companyDetails":i.store.dispatch((0,T.r7)({update:{...i.profile,companyInfo:n.companyInfo,name:i.firstName}})),i.mixpanel.trackEvent("Company Information Updated")}i.isCustomerLanguageChanged&&(i.isCustomerLanguageChanged=!1,window.location.reload()),i.isSidebarVersionChanged&&(i.isSidebarVersionChanged=!1,window.location.reload())}catch{return i.sharedService.showToast("error","",i.staticText.thereWasProblemUpdatingCheckValues??"There was a problem while Updating please check values or try again later")}finally{i.sharedService.loader("stop")}})()}routeToSubscription(){if(!this.profile.canAccessPayment)return this.sharedService.showToast("warning","",this.staticText.insufficientPermissionsToAccessSubscriptions||"You have insufficient permissions to access subscriptions"),this.router.navigate(["/home"]);const t=this.getSubscriptionRoute();return this.router.navigate([t])}getSubscriptionRoute(){return"v2"===this.profile?.subscriptionType?"subscription-v2":"subscription"}deleteAccount(t){if(this.openDeleteAccount=!1,t)return this.sharedService.loader("start"),this.networkService.httpRequest(`customer/${this.profile._id}`,{},"DELETE").then(i=>(localStorage.removeItem("token"),localStorage.removeItem("impersonate"),sessionStorage.clear(),window.location.href="/authentication")).catch(i=>this.sharedService.showToast("error","",i.message||i)).finally(()=>this.sharedService.loader("stop"))}saveFeedbackAndDeleteAccount(t){if(this.feedback.open=!1,t){const i=t.otherReasonText?.trim()||"",n=t.reasons.filter((_,x)=>"others"!==t.reasonKeys[x]);let a="Account Deleted by User",l=[];i?(a=i,l=n):1===n.length?[a]=n:n.length>1&&([a,...l]=n);const h={rating:t.rating,description:i,reason:a,subReason:l,type:"account-delete"};this.sharedService.loader("start"),this.authService.createFeedback(h
1).catch(_=>{console.error(this.getErrorMessage(_))}).then(()=>{this.deleteAccount(!0)}).finally(()=>this.sharedService.loader("stop"))}}requestDeleteAccount(){"DELETE MY ACCOUNT"===this.deleteConfirmationText?(this.openDeleteAccount=!1,this.feedback.open=!0,this.mixpanel.trackEvent("account_delete_submitted",{user_id:this.profile?._id||"",panel:"my_account",current_plan:this.userPlan?._plan?.name||"",bot_count:this.botCount,contact_count:this.contactCount,agent_count:0})):this.sharedService.showToast("warning","",this.staticText.deleteMyAccountMessageInput)}resolveFirstName(t){return"CUSTOMER"!==t?.type?t?.name||"":t?.firstName||(t?.name||"").trim().split(" ")[0]||""}resolveLastName(t){return"CUSTOMER"!==t?.type?"":void 0!==t?.lastName?t.lastName:(t?.name||"").trim().split(" ").slice(1).join(" ")}get ifRootAgency(){return E.c.rootAgencyDomain.includes(window.location.host)}get isImpersonate(){return!!localStorage.getItem("impersonate")}get shouldShowDeleteAccount(){return"CUSTOMER"===this.profile?.type&&!this.isImpersonate}discardChanges(){this.firstName=this.originalFirstName,this.firstNameError="",this.email=this.originalEmail,this.otp=void 0,this.showEnterOtp=!1,this.timerId&&(clearInterval(this.timerId),this.timerId=null)}resendOtp(t){this.time&&(this.time.seconds||this.time.minutes)||(this.otp=void 0,this.sharedService.loader("start"),this.resetTimer(),this.timerId=setInterval(()=>{this.time=this.showTimer(this.time),0===this.time.seconds&&0===this.time.minutes&&(clearInterval(this.timerId),this.timerId=null)},1e3),this.networkService.httpRequest(`auth/send-change-email-otp/${this.profile._id}/${this.profile.type}`,{email:t?`${this.newAgencyEmailId}`:`${this.email}`},"POST").then(i=>{this.sharedService.showToast("success","",this.staticText.otpHasBeenSentToYourEmail||"OTP has been sent to your email")}).catch(i=>{this.sharedService.showToast("error","",i.message||i)}).finally(()=>this.sharedService.loader("stop")))}resetTimer(){this.time={minutes:0,seconds:59}}showTimer(t){if(t&&(t.minutes||t.seconds))return 0===t.seconds&&(t.seconds=60),60===t.seconds&&t.minutes--,t.seconds--,t}verifyOtp(){this.sharedService.loader("start"),this.networkService.httpRequest(`auth/verify-otp/${this.profile._id}/${this.profile.type}`,{otp:`${this.otp}`,oldEmail:this.oldEmail?this.oldEmail:this.originalEmail},"PUT").then(t=>{this.sharedService.showToast("success","",this.staticText.updatedSuccessfully||"Updated successfully"),this.otp=void 0,this.showEnterOtp=!1,this.store.dispatch((0,T.r7)({update:{...this.profile,contact:{...this.profile.contact,email:this.email.toLowerCase()},picture:this.picture,name:this.firstName}}))}).catch(t=>{const i=this.errorMessageService.resolveErrorMessage(t,this.staticText.invalidOTP||"Invalid OTP");this.sharedService.showToast("error","",i)}).finally(()=>this.sharedService.loader("stop"))}initialiseAgencyDetails(){const t=this.originalAgencyDetails,i=this.originalAgencyDetails.meta,n=this.originalAgencyDetails.agencyOwner;this.brandDetails={brand:i.brand,websiteUrl:i.websiteUrl,logo:i.logo,rectangularLogo:i.rectangularLogo||"",loginBackgroundImage:i?.loginBackgroundImage||"",signupConsent:{enabled:i?.signupConsent?.enabled||!1,termsUrl:i?.signupConsent?.termsUrl||"",privacyUrl:i?.signupConsent?.privacyUrl||""}},this.agencyDetails={name:t.name,contact:{phone:{prefix:t.contact.phone.prefix,number:t.contact.phone.number},email:t.contact.email}}
1,this.contactPersonDetails={name:n.name,contact:{phone:{prefix:n.contact.phone.prefix,number:n.contact.phone.number},email:n.contact.email}}}handlePhoneInput(t,i){switch(i){case"agency":this.agencyDetails.contact.phone.number=(t.number||"").trim(),this.agencyDetails.contact.phone.prefix=t.prefix;break;case"contact":this.contactPersonDetails.contact.phone.number=(t.number||"").trim(),this.contactPersonDetails.contact.phone.prefix=t.prefix;break;case"profile":this.phone=(t.number||"").trim(),this.prefix=t.prefix;break;case"primaryContact":this.primaryContactDetails.contact.phone.number=(t.number||"").trim(),this.primaryContactDetails.contact.phone.prefix=t.prefix}}getContactCountryCode(){if(this.contactPersonDetails?.contact?.phone?.number&&this.contactPersonDetails?.contact?.phone?.prefix)return this.contactPersonDetails.contact.phone.prefix}getProfileCountryCode(){return this.phone&&this.prefix?this.prefix:this.getDefaultDialCode()}getPrimaryContactCountryCode(){const t=this.getDefaultDialCode();return this.primaryContactDetails.contact.phone.number&&this.primaryContactDetails.contact.phone.prefix&&this.primaryContactDetails.contact.phone.prefix||t}getDefaultDialCode(){return this.serviceRegionService.agencyCountries().find(n=>n.isDefault)?.dialCode||"91"}normalizePrimaryContact(t){return{name:t?.name||"",title:t?.title||"",contact:{phone:{prefix:t?.contact?.phone?.prefix||"",number:t?.contact?.phone?.number||""},email:t?.contact?.email||""},isCommunicationPreferred:t?.isCommunicationPreferred||!1}}getAgencyCountryCode(){if(this.agencyDetails?.contact?.phone?.number&&this.agencyDetails?.contact?.phone?.prefix)return this.agencyDetails.contact.phone.prefix}handleAgencyEmailChange(){var t=this;return(0,m.A)(function*(){if(!t.commonService.isValidEmail(t.newAgencyEmailId.toLowerCase()))return t.sharedService.showToast("warning","",t.staticText.invalidEmailId||"Invalid email Id");if(t.newAgencyEmailId===t.agencyDetails.contact.email)return t.sharedService.showToast("error","",t.staticText.thisEmailIsSameAsYourCurrentEmail||"This email is same as your current Email");try{if(yield t.authService.checkEmail(t.newAgencyEmailId))return t.sharedService.showToast("warning","",t.staticText.theProvidedEmailIsAlreadyRegisteredWithUs||"The provided email is already registered with us");yield t.networkService.httpRequest(`auth/send-change-email-otp/${t.profile._id}/${t.profile.type}`,{email:`${t.newAgencyEmailId}`},"POST"),t.resetTimer(),t.timerId=setInterval(()=>{t.time=t.showTimer(t.time),t.time&&0===t.time.seconds&&0===t.time.minutes&&(clearInterval(t.timerId),t.timerId=null)},1e3),t.sharedService.showToast("success","",t.staticText.otpHasBeenSentToYourEmail||"OTP has been sent to your email"),t.toggleVerifyEmailModal()}catch(i){return t.sharedService.showToast("error","",i??i?.message??t.staticText.thereWasProblemUpdatingCheckValues??"There was a problem while Updating please check values or try again later")}})()}discardAgencyProfileChanges(){this.initialiseAgencyDetails(),this.timerId&&(clearInterval(this.timerId),this.timerId=null)}validateAgencyProfileForm(){return this.brandDetails.brand?.trim()?this.brandDetails.logo?this.brandDetails.rectangularLogo?this.isPoweredByConfig&&!this.poweredBy?.trim()?(this.sharedService.showToast("warning","",this.staticText.chatBotBrandNameRequired||"Chat Bot Brand Name is required"),!1):/^https?:\/\//.test((this.brandDetails.websiteUrl||"").toLowerCase())?!(this.brandDetails.signupConsent?.enabled&&!this.validateSignupConsent()||(this.agencyDetails.name?.trim()?this.contactPersonDetail
1s.name?.trim()?!this.commonService.isValidEmail(this.contactPersonDetails.contact.email.toLowerCase())&&(this.sharedService.showToast("warning","",this.staticText.invalidContactPersonEmailId||"Invalid contact person email Id"),1):(this.sharedService.showToast("warning","",this.staticText.contactPersonNameRequired||"Contact Person Name is required"),1):(this.sharedService.showToast("warning","",this.staticText.agencyNameRequired||"Agency Name is required"),1))):(this.sharedService.showToast("warning","",this.staticText.invalidBrandUrl||"Invalid brand Url"),!1):(this.sharedService.showToast("warning","",this.staticText.rectangularBrandLogoRequired||"Rectangular Brand Logo is required"),!1):(this.sharedService.showToast("warning","",this.staticText.squareBrandLogoRequired||"Square Brand Logo is required"),!1):(this.sharedService.showToast("warning","",this.staticText.brandNameRequired||"Brand Name is required"),!1)}submitAgencyProfile(){var t=this;return(0,m.A)(function*(){if(!t.validateAgencyProfileForm())return;if(t.brandDetails.loginBackgroundImage=(t.brandDetails.loginBackgroundImage||"").trim(),t.brandDetails.loginBackgroundImage&&!(0,R.VP)(t.brandDetails.loginBackgroundImage))return t.sharedService.showToast("warning","",t.staticText.pleaseProvideValidImage||"Please provide a valid image");const{brand:i,logo:n,websiteUrl:a,rectangularLogo:l,loginBackgroundImage:h,signupConsent:_}=t.brandDetails,{email:x,phone:j}=t.agencyDetails.contact,q={agencyOwner:{name:t.originalAgencyDetails?.agencyOwner?.name||"",contact:t.originalAgencyDetails?.agencyOwner?.contact||{}
1,...t.contactPersonDetails},meta:{brand:i,logo:n,rectangularLogo:l,loginBackgroundImage:h,websiteUrl:a,poweredBy:t.poweredBy,defaultLanguage:t.currentAgencyLanguage?.value,..._&&{signupConsent:_}},contact:{email:x,phone:j},name:t.agencyDetails.name};localStorage.setItem("language",JSON.stringify(t.currentAgencyLanguage||{title:"English",value:"en"}));try{t.sharedService.loader("start");const w=yield t.networkService.httpRequest("agencies/profile",q,"PUT");t.store.dispatch((0,V.nQ)({update:{...w,type:"AGENCY"}})),t.isAgencyLanguageChanged&&(t.isAgencyLanguageChanged=!1,window.location.reload()),t.sharedService.showToast("success","",t.staticText.updatedSuccessfully||"Updated Successfully")}catch(w){return t.sharedService.showToast("error","","string"==typeof w?w:t.staticText.thereWasProblemUpdatingCheckValues??"There was a problem while Updating please check values or try again later")}finally{t.sharedService.loader("stop")}})()}verifyOtpAgency(){this.sharedService.loader("start"),this.networkService.httpRequest(`auth/verify-otp/${this.profile._id}/${this.profile.type}`,{otp:`${this.otp}`,oldEmail:this.originalEmail},"PUT").then(t=>{this.sharedService.showToast("success","",this.staticText.updatedSuccessfully||"Updated successfully"),this.otp=void 0,this.verifyEmailModal=!1,this.originalAgencyDetails.contact.email=this.newAgencyEmailId.toLowerCase(),this.agencyDetails.contact.email=this.newAgencyEmailId.toLowerCase(),this.store.dispatch((0,T.r7)({update:{...this.profile,contact:{...this.profile.contact,email:this.newAgencyEmailId.toLowerCase()}}}))}).catch(t=>{const i=this.errorMessageService.resolveErrorMessage(t,this.staticText.invalidOTP||"Invalid OTP");this.sharedService.showToast("error","",i)}).finally(()=>this.sharedService.loader("stop"))}showFolder(){document.getElementById("upload-input").click()}uploadImage(t,i){if(this.brandDetails[i]="",this.loginBackgroundImage="",t.fileName)return this.brandDetails[i]=t.url,"loginBackgroundImage"===i&&(this.loginBackgroundImage=t.url),void this.sharedService.showToast("info","",this.staticText.clickOnUpdateDetailsToSaveChanges||"Click on Update Details to save your changes");"loginBackgroundImage"===i&&(this.loginBackgroundImage=t.target?.value.trim()||""),this.brandDetails[i]=t.target?.value.trim()||"",this.sharedService.showToast("info","",this.staticText.clickOnUpdateDetailsToSaveChanges||"Click on Update Details to save your changes")}uploadProfileImage(t){this.isProfilePicUploaded=!0,this.picture=t||""}get isUserCanAccessPayment(){return!(!this.profile.canAccessPayment&&!this.agencyToken)}getPlansName(){return"baby"!==this.userPlan?._plan?.name||this.profile?.planMaster?.plans?.whatsapp?.finalAmount?.value?this.sharedService.plansDisplayName.value.king:this.sharedService.plansDisplayName.value.baby}get isPoweredByConfig(){return this.profile?.isAgencyConfigurationEnabled?.poweredBy&&"AGENCY"===this.profile?.type}toggleChangeEmailModal(){this.changeEmailModal=!0}toggleVerifyEmailModal(){this.changeEmailModal=!1,this.verifyEmailModal=!0}modalHandler(t){this.changeEmailModal=!1,this.verifyEmailModal=!1}getPhoneValue(){return this.agencyDetails.contact.phone.number&&this.agencyDetails.contact.phone.prefix?{prefix:this.agencyDetails.contact.phone.prefix,number:this.agencyDetails.contact.phone.number}:{prefix:this.agencyDetails.contact.phone.prefix,number:""}}
1getContactPersonDetailsPhoneValue(){return this.contactPersonDetails.contact.phone.number&&this.contactPersonDetails.contact.phone.prefix?{prefix:this.contactPersonDetails.contact.phone.prefix,number:this.contactPersonDetails.contact.phone.number}:{prefix:this.contactPersonDetails.contact.phone.prefix,number:""}}getUserProfilePhoneValue(){return this.phone&&this.prefix?{prefix:this.prefix||"91",number:this.phone}:{prefix:this.prefix||"91",number:""}}getPrimaryContactPhoneValue(){return this.primaryContactDetails.contact.phone.number&&this.primaryContactDetails.contact.phone.prefix?{prefix:this.primaryContactDetails.contact.phone.prefix,number:this.primaryContactDetails.contact.phone.number}:{prefix:this.primaryContactDetails.contact.phone.prefix||"91",number:""}}handlePrimaryCommunication(t){this.primaryContactDetails.isCommunicationPreferred=t.target.checked||!1}handleSignupConsentToggle(t){this.brandDetails.signupConsent.enabled=t.target?.checked||!1}handleTermsUrlChange(t){this.brandDetails.signupConsent.termsUrl=t.target?.value||""}handlePrivacyUrlChange(t){this.brandDetails.signupConsent.privacyUrl=t.target?.value||""}handleDropdownData(t,i){switch(i){case"industry":this.customerCompanyDetails.industry=t.item.value,this.selectedIndustry=t.item.value;break;case"companySize":this.customerCompanyDetails.companySize=t.item.value;break;case"businessTitle":this.primaryContactDetails.title=t.item.value}}handleOthersInput(t){this.industryInput=t.target.value}get getIndustryValue(){return"Other"===this.selectedIndustry?this.industryInput:""}setActiveTab(t){const i=this.activeTab!==t;this.activeTab=i?t:"",this.reInitializeCardData(t),"delete"===t&&i&&this.mixpanel.trackEvent("account_delete_button_clicked",{user_id:this.profile?._id||"",panel:"my_account",current_plan:this.userPlan?._plan?.name||"",bot_count:this.botCount,contact_count:this.contactCount,agent_count:0})}reInitializeCardData(t){switch(t){case"profile":this.firstName=this.resolveFirstName(this.profile),this.lastName=this.resolveLastName(this.profile),this.profile.picture&&(this.picture=this.profile.picture),this.profile?.contact?.phone.number&&(this.phone=this.profile.contact.phone.number),this.profile?.contact?.phone?.prefix&&(this.prefix=this.profile.contact.phone.prefix),this.profile?.contact?.email&&(this.email=this.profile.contact.email),this.setCurrentCustomerLanguage();break;case"company":this.profile.companyInfo&&Object.keys(this.profile.companyInfo).length?(this.customerCompanyDetails=JSON.parse(JSON.stringify(this.profile.companyInfo)),this.selectedIndustry=this.getSelectedIndustry(this.profile.companyInfo.industry),"Other"===this.selectedIndustry&&(this.industryInput=this.customerCompanyDetails.industry)):(this.customerCompanyDetails={name:"",industry:"",companySize:"",companyWebsite:""},this.selectedIndustry="");break;case"primary":this.primaryContactDetails=this.normalizePrimaryContact(this.profile.primaryContact)}}checkIfCardsDataChanged(t){let i=!1;switch(t){case"primaryContact":this.profile.primaryContact&&this.profile.primaryContact?.name?.trim()!==this.primaryContactDetails?.name?.trim()&&(i=!0),this.profile.primaryContact&&this.profile.primaryContact?.title?.trim()!==this.primaryContactDetails.title?.trim()&&(i=!0),this.profile.primaryContact&&this.profile.primaryContact?.contact?.phone?.prefix!==this.primaryContactDetails.contact.phone.prefix&&(i=!0),this.profile.primaryContact&&this.profile.primaryContact?.contact?.phone?.number!==this.primaryContactDetails.contact.phone.number&&(i=!0),this.profile.primaryContact&&this.profile.primaryContact?.contact?.email?.trim()!==this.primaryContactDetails.contact.email?.trim()&&(i=!0);break;case"companyDetails":this.profile.companyInfo&&this.profile.companyInfo?.name?.trim()!==this.customerCompanyDetails?.name?.trim()&&(i=!0),this.profile.companyInfo&&"Other"===this.customerCompanyDetails.industry?.trim()&&this.profile.companyInfo?.industry?.trim()!==this.industryInput&&(i=!0),this.profile.companyInfo&&this.profile.companyInfo?.industry?.trim()!==this.customerCompanyDetails.industry?.trim()&&(i=!0),this.profile.companyInfo&&this.profile.companyInfo?.companySize?.trim()!==this.customerCompanyDetails?.companySize?.trim()&&(i=!0),this.profile.companyInfo&&this.profile.companyInfo?.companyWebsite?.trim()!==this.customerCompanyDetails?.companyWebsite?.trim()&&(i=!0);break;default:return i}return i}setSidebarVersion(t,i){"sidebarBotTabVersion"===i?this.sidebarBotTabVersion=t.item.value:(this.sidebarVersion=t.item.value,"v1"===this.sidebarVersion?this.isSidebarVersionChanged=!0:"v2"===this.sidebarVersion&&(this.sidebarBotTabVersion="v2",this.isSidebarVersionChanged=!0))}
1get commissionPercentage(){return`${this.subscriptionDetails?._plan?.commissionPercentage||0}%`}get isSpReseller(){return"AGENCY"===this.profile.type&&"SP_RESELLER"===this.profile.permission}get shouldShowSidebarToggle(){return this.profile?.canToggleSidebar||!("canToggleSidebar"in this.profile)}get sidebarVersionOptions(){return[{title:"Classic - Deprecated",localValue:"V1",value:"v1"},{title:"Latest",localValue:"V2",value:"v2"}]}get sidebarBotTabVersionOptions(){return[{title:this.staticText.sidebarBotTabV1Title||"Classic - Deprecated",localValue:"V1",value:"v1"},{title:this.staticText.sidebarBotTabV2Title||"Latest",localValue:"V2",value:"v2"}]}validateSignupConsent(){const t=/^https:\/\/.+/i;return this.brandDetails.signupConsent.termsUrl&&this.brandDetails.signupConsent.privacyUrl?t.test((this.brandDetails.signupConsent.termsUrl||"").toLowerCase())?!!t.test((this.brandDetails.signupConsent.privacyUrl||"").toLowerCase())||(this.sharedService.showToast("warning","",this.staticText.invalidPrivacyUrl||"The Privacy Policy URL entered is invalid. Please provide a valid URL starting with https://."),!1):(this.sharedService.showToast("warning","",this.staticText.invalidTermsUrl||"The Terms & Conditions URL entered is invalid. Please provide a valid URL starting with https://."),!1):(this.sharedService.showToast("warning","",this.staticText.termsAndPrivacyUrlsRequired||"To enable checkbox on sign-up, both the Terms & Conditions URL and Privacy Policy URL are required."),!1)}handleDeleteFeedback(t){this.openDeleteAccount=!1,t&&this.deleteAccount({rating:t.rating,reasons:t.reasons,reasonKeys:t.reasonKeys,otherReasonText:t.otherReasonText,acknowledged:t.acknowledged})}getErrorMessage(t){return t instanceof Error?t.message:"string"==typeof t?t:"object"==typeof t&&null!==t&&"message"in t&&"string"==typeof t.message?t.message:this.staticText.somethingWentWrong}copyUserId(){this.commonService.copyId(this.profile._id)}goToDataExport(){this.router.navigate(["/settings/data-export"])}viewExportStatus(){this.router.navigate(["/settings/data-export/status"],{queryParams:{id:this.activeExportRequest?._id}})}goToDataDeletion(){this.router.navigate(["/settings/data-deletion"])}viewDeletionStatus(){this.router.navigate(["/settings/data-deletion/status"],{queryParams:{id:this.activeDeletionRequest?._id}})}validateAndSetImageUrl(t,i){const n=t.target?.value.trim()||"";if(n&&!(0,R.VP)(n))return this.sharedService.showToast("warning","",this.staticText.pleaseProvideValidImage);this.brandDetails[i]=n,"loginBackgroundImage"===i&&(this.loginBackgroundImage=n)}static#e=this.\u0275fac=function(i){return new(i||o)(e.rXU(A.h),e.rXU(N.A),e.rXU(p.d),e.rXU(r.Ix),e.rXU(C.il),e.rXU(u.k),e.rXU(f.g),e.rXU(g.P),e.rXU(M.B),e.rXU(v.U),e.rXU(se.n),e.rXU(re.j),e.rXU(ce.F),e.rXU(le.h))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-details"]],decls:26,vars:25,consts:[[1,"mt-3","details-section"],[1,"container-control"],[4,"ngIf"],["class","container-row row pb-4 m-start-1",4,"ngIf"],["class","pb-2",4,"ngIf"],[3,"showModal"],["face","hide",3,"userInput","showModal","title","description","showButton"],[1,"mx-4","px-3","mb-4","pb-3"],["id","acc-inp-chg-eml","type","text","name","email","required","true",3,"keyupEvent","labelText","placeholder","value"],[1,"mt-4"],["id","acc-btn-chg-eml-sub","width","100%",3,"click","label"],[1,"text-center","mb-3"],[1,"text-center","mb-4"],["id","acc-inp-chg-eml-vrf-eml","type","text","required","true",3,"keyupEvent","labelText","placeholder","maxLength","value"],[1,"mt-2"],[2,"color","#118cfc"],["id","acc-btn-vrf-eml-rsnd-otp",3,"click","ngClass"],["id","timer","class","text-danger",4,"ngIf"],[1,"mt-3"],["id","acc-btn-vrf-eml-vrf-otp","width","100%",3,"click","label"],[1,"d-flex","flex-column"],["id","brandSection",1,"mb-3"],["id","agencyDetailsSection",1,"mb-3"],[1,"details-sub-heading"],[1,"row"],[1,"col-md-4","mt-3"],["id","acc-inp-agy-nm","type","text","name","agencyName","required","true",3,"keyupEvent","labelText","placeholder","value"],[1,"col-md-5","mt-3"],["id","acc-inp-agy-phn","name","agencyPhoneNumber",3,"inputChange","labelText","placeholder","maxLength","minLength","selectedCode","value"],[1,"d-flex","justify-content-between"],["for","agencyEmailId",1,"input-box-label"],[1,"required-field"],[2,"margin","auto 0"],[1,"change-link",3,"click"],["id","agencyEmailId","name","agencyEmailId","type","text","required","","readonly","","role","contentinfo",1,"agency-read-only-input","bp-agent-input-box","bp-input-box",3,"ngModelChange","ngModel","placeholder"],[1,"col-md-4","mt-3",3,"ngClass"],["
1id","acc-dd-agy-lang",3,"clickEvent","searchEvent","labelText","value","optionList","showSearch"],["id","contactPersonSection"],[1,""],["id","acc-inp-agy-cnt-nm","type","text","name","agencyContactName","required","true",3,"keyupEvent","labelText","placeholder","value"],["id","acc-inp-agy-cnt-phn","name","agencyContactPersonPhone",3,"inputChange","labelText","placeholder","maxLength","minLength","value","selectedCode"],["id","acc-inp-agy-cnt-emlb","type","text","name","agencyContactPersonEmailId","required","true",3,"keyupEvent","labelText","placeholder","value"],[1,"d-flex"],["id","acc-btn-upd",1,"btn","bp-primary-btn",3,"click"],[1,"col-md-4","col-sm-4","col-sx-4","mt-3"],["id","acc-inp-wl-brnd-nm","type","text","name","brand","required","true",3,"keyupEvent","labelText","placeholder","maxLength","value","disabled"],[1,"col-md-5","col-sm-6","col-xs-4","mt-3"],["id","acc-inp-wl-brnd-web","type","text","name","websiteUrl","required","true",3,"keyupEvent","labelText","placeholder","value","disabled"],[1,"col-md-4","col-sm-6","mt-3"],["id","acc-inp-wl-brnd-sqr-logo",3,"uploadEvent","keyupEvent","showUploadIcon","acceptValues","labelText","required","placeholder","disabled","value"],[1,"col-md-5","col-sm-6","mt-3"],["id","acc-inp-wl-brnd-rec-logo",3,"uploadEvent","keyupEvent","showUploadIcon","acceptValues","labelText","required","placeholder","disabled","value"],["id","acc-inp-wl-lg-bg-img",3,"uploadEvent","inputChange","keyupEvent","showUploadIcon","acceptValues","labelText","placeholder","disabled","value"],["class","col-md-5 col-sm-6 mt-3",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-4","col-sm-4","terms-toggle"],[3,"inputChange","labelText","value","showTooltip","tooltipText"],["id","acc-inp-wl-chb-brnd-nm","type","text","name","poweredBy","required","true",3,"keyupEvent","labelText","placeholder","value","disabled"],["type","text","name","termsUrl",3,"keyupEvent","labelText","placeholder","value","required","disabled"],["type","text","name","privacyUrl",3,"keyupEvent","labelText","placeholder","value","required","disabled"],["for","commissionPercentage",1,"input-box-label"],["id","commissionPercentage","name","commissionPercentage","type","text","required","","readonly","","role","contentinfo",1,"agency-read-only-input","bp-agent-input-box","bp-input-box",3,"ngModelChange","ngModel"],[1,"container-row","row","pb-4","m-start-1"],[1,"d-flex","flex-row","mb-4"],[1,"content-div"],[1,"sub-heading","text-align-start"],[1,"form-start","mt-4","flex-column","position-relative"],["id","acc-inp-rt-agy-nm","type","text","name","firstName","required","true",3,"keyupEvent","labelText","placeholder","value","maxLength","errorMessage"],["id","acc-inp-rt-agy-eml","type","text","name","email","required","true",3,"keyupEvent","labelText","placeholder","value","disabled"],["class","form-start mt-4 flex-column position-relative",4,"ngIf"],[1,"form-start","my-4","flex-column","position-relative"],["id","acc-dd-rt-agy-lang",3,"clickEvent","searchEvent","labelText","value","optionList","showSearch"],[1,"background-image","mb-4"],[3,"uploadEvent","inputChange","keyupEvent","showUploadIcon","acceptValues","labelText","placeholder","disabled","value"],["class","d-flex",4,"ngIf"],["id","acc-inp-rt-agy-chb-brnd-nm","type","text","name","poweredBy","required","true",3,"keyupEvent","labelText","placeholder","value"],[1,"input-container"],["id","acc-inp-rt-agy-otp","type","text","name","otp","required","true",3,"keyupEvent","labelText","placeholder","value"],[1,"my-2","custom-size-error"],["id","acc-btn-rsnd-otp",3,"click","ngClass"],["id","timer",1,"text-danger"],["class","btn bp-disable-btn m-end-2",3,"click",4,"ngIf"],["class","btn bp-primary-btn",3,"click",4,"ngIf"],[1,"btn","bp-disable-btn","m-end-2",3,"click"],[1,"btn","bp-primary-btn",3,"click"],[1,"pb-2"],[1,"manage-data__deletion-banner","d-flex","align-items-center","justify-content-between","mb-3","gap-2"],[1,"configuration","col-lg-12","d-flex","flex-column",3,"ngClass"],[1,"d-flex","justify-content-between","cursor-pointer",3,"click"],[1,"d-flex","align-items-center"],[1,"accordian-image"],["src","/assets/icons/profile.svg","alt","configuration","srcset",""],[1,"d-flex","flex-column","m-start-4","text-align-start"],[1,"expand-box",3,"ngClass"],[1,"material-icons"],[1,"col-lg-4","mt-3",3,"ngClass"],[1,"firstClass"],["for","",1,"member-name-text","input-box-label"],[3,"uploadedImage","initialSelectedImage"],["id","acc-inp-cust-fn","type","text","name","firstName","required","true",3,"keyupEvent","labelText","placeholder","maxLength","value","errorMessage"],["id","acc-inp-cust-ln","type","text","name","lastName",3,"keyupEvent","labelText","placeholder","maxLength","value","errorMessage"],["id","acc-inp-cust-eml","type","text","name","email","required","true",3,"keyupEvent","labelText","placeholder","value","disabled"],["id","acc-inp-cust-phone","name","profilePhone",3,"inputChange","labelText","placeholder","maxLength","minLength","value","selectedCode"],["id","acc-dd-cust-lang",3,"clickEvent","searchEvent","labelText","value","o
1ptionList","showSearch"],[1,"col-lg-6","p-start-0","mt-4"],["id","acc-btn-cust-sub-acc-dtl","class","btn bp-primary-btn",3,"click",4,"ngIf"],["id","acc-btn-cust-vrf-otp","class","btn bp-primary-btn",3,"click",4,"ngIf"],["src","/assets/icons/primaryContact.svg","alt","configuration","srcset",""],["id","acc-inp-pri-nm","type","text","name","primaryContactName",3,"keyupEvent","labelText","maxLength","placeholder","value"],["id","acc-dd-pri-biz-ttl",3,"clickEvent","labelText","value","optionList"],["id","acc-inp-pri-eml","name","email",3,"keyupEvent","labelText","placeholder","type","value"],["id","acc-inp-pri-phone","name","primaryContactPhone",3,"inputChange","labelText","placeholder","maxLength","minLength","value","selectedCode"],["id","acc-btn-pri-dsc","class","btn bp-disable-btn m-end-2",3,"click",4,"ngIf"],["id","acc-btn-pri-sub-acc-dtl","class","btn bp-primary-btn",3,"click",4,"ngIf"],["id","acc-btn-pri-vrf-otp","class","btn bp-primary-btn",3,"click",4,"ngIf"],["src","/assets/icons/companyInfo.svg","alt","configuration","srcset",""],["id","acc-inp-cmp-cmp-nm","type","text","name","companyName",3,"keyupEvent","labelText","placeholder","value","maxLength"],["id","acc-dd-cmp-ind",3,"clickEvent","labelText","value","optionList"],["id","acc-inp-cmp-cmp-sz",3,"clickEvent","labelText","value","optionList"],["id","acc-inp-cmp-cmp-web","placeholder","https://website.com","type","text","name","companyWebsite",3,"keyupEvent","labelText","value"],["id","acc-btn-cmp-dsc","class","btn bp-disable-btn m-end-2",3,"click",4,"ngIf"],["id","acc-btn-cmp-sub-acc-dtl","class","btn bp-primary-btn",3,"click",4,"ngIf"],["id","acc-btn-cmp-vrf-otp","class","btn bp-primary-btn",3,"click",4,"ngIf"],[1,"configuration","col-lg-12","d-flex","flex-column","delete-account-accordion",3,"ngClass"],[1,"d-flex","align-items-center","gap-2"],[1,"material-icons","manage-data__deletion-banner-icon"],[1,"mb-0","manage-data__deletion-banner-text"],["type","button",1,"manage-data__deletion-banner-link",3,"click"],[1,"manage-data__deletion-banner-close",3,"click"],["id","acc-inp-cust-otp","type","text","name","otp","required","true",3,"keyupEvent","labelText","placeholder","value"],[3,"click","ngClass"],["id","acc-dd-cust-sb-ver",3,"clickEvent","labelText","value","optionList"],["id","acc-btn-cust-sub-acc-dtl",1,"btn","bp-primary-btn",3,"click"],["id","acc-btn-cust-vrf-otp",1,"btn","bp-primary-btn",3,"click"],["id","acc-btn-pri-dsc",1,"btn","bp-disable-btn","m-end-2",3,"click"],["id","acc-btn-pri-sub-acc-dtl",1,"btn","bp-primary-btn",3,"click"],["id","acc-btn-pri-vrf-otp",1,"btn","bp-primary-btn",3,"click"],["id","acc-inp-cmp-cst-ind","type","text","name","industryName",3,"keyupEvent","labelText","placeholder","value","maxLength"],["id","acc-btn-cmp-dsc",1,"btn","bp-disable-btn","m-end-2",3,"click"],["id","acc-btn-cmp-sub-acc-dtl",1,"btn","bp-primary-btn",3,"click"],["id","acc-btn-cmp-vrf-otp",1,"btn","bp-primary-btn",3,"click"],[1,"accordian-image","manage-data__icon-box"],[1,"material-icons","manage-data__icon"],[1,"mt-3","delete-account-accordion",3,"ngClass"],[1,"manage-data__row","d-flex","align-items-center","delete-account-content","justify-content-between","py-4"],[1,"d-flex","align-items-center","delete-account-warning"],[1,"manage-data__row-icon-box","manage-data__row-icon-box--success","me-3"],["src","assets/version2/icons/download-green.svg","alt","",1,"download"],[1,"m-start-4"],[1,"delete-account-warning-h3","m-0"],[1,"badge","manage-data__badge","manage-data__badge--processing"],[1,"badge","manage-data__badge","manage-data__badge--delivered"],[1,"delete-account-warning-p","m-0","mt-1"],[1,"manage-data__row-desc","mb-1","mt-1"],[1,"ms-3"],[1,"btn","manage-data__export-btn"],[1,"manage-data__row","d-flex","align-items-center","justify-content-between","delete-account-content","py-3"],[1,"manage-data__row-icon-box","manage-data__row-icon-box--danger","me-3"],["src","assets/version2/icons/delete-v2.svg","alt",""],[1,"manage-data__row-desc","mb-0","mt-1"],["type","danger-fill",3,"label"],["type","primary",3,"label"],[1,"manage-data__row-expiry","mb-0","mt-1"],[1,"material-icons","manage-data__expiry-icon"],[1,"btn","manage-data__export-btn",3,"click"],["type","danger-fill",3,"clickEvent","label"],["type","primary",3,"clickEvent","label"],[1,"d-flex","justify-content-between","cursor-pointer","p-4",3,"click"],[1,"accordian-image","delete-icon-box","d-flex","align-items-center","justify-content-center"],[1,"delete-account-content","p-4",3,"ngClass"],[1,"delete-account-warning","d-flex","align-items-center","justify-content-between"],[1,"warning-icon-box","d-flex","align-items-center","justify-content-center"],["id","au-btn-del-acc","type","danger-fill","buttonSize","auto","borderRadius","12px",3,"clickEvent","label"],[3,"userIn
1put","showModal"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,Fe,42,35,"ng-container",2),e.k0s(),e.DNE(3,Xe,18,24,"div",3)(4,vt,95,103,"div",4),e.k0s(),e.DNE(5,Ct,1,1,"app-feedback-v2",5),e.j41(6,"app-modal",6),e.bIt("userInput",function(l){return n.modalHandler(l)}),e.j41(7,"div",7)(8,"div")(9,"app-bp-mui-input",8),e.bIt("keyupEvent",function(l){return n.newAgencyEmailId=l.target.value}),e.k0s()(),e.j41(10,"div",9)(11,"app-bp-button",10),e.bIt("click",function(){return n.handleAgencyEmailChange()}),e.k0s()()()(),e.j41(12,"app-modal",6),e.bIt("userInput",function(l){return n.modalHandler(l)}),e.j41(13,"div",7)(14,"div",11)(15,"small",12),e.EFF(16),e.k0s()(),e.j41(17,"div")(18,"app-bp-mui-input",13),e.bIt("keyupEvent",function(l){return n.otp=l.target.value}),e.k0s()(),e.j41(19,"p",14)(20,"small",15)(21,"u",16),e.bIt("click",function(){return n.resendOtp("AGENCY")}),e.EFF(22),e.k0s()(),e.DNE(23,xt,2,2,"small",17),e.k0s(),e.j41(24,"div",18)(25,"app-bp-button",19),e.bIt("click",function(){return n.verifyOtpAgency()}),e.k0s()()()()),2&i&&(e.R7$(2),e.Y8G("ngIf",n.isWhitelabelAgency),e.R7$(),e.Y8G("ngIf",!n.isWhitelabelAgency&&"CUSTOMER"!==n.profile.type),e.R7$(),e.Y8G("ngIf",!n.isWhitelabelAgency&&"CUSTOMER"===n.profile.type),e.R7$(),e.vxM(5,"CUSTOMER"===n.profile.type?5:-1),e.R7$(),e.Y8G("showModal",n.changeEmailModal)("title",n.staticText.changeEmail.sendVerificationCodeModal.changeEmail)("description",n.staticText.changeEmail.sendVerificationCodeModal.changeEmailDescription)("showButton",!1),e.R7$(3),e.Y8G("labelText",n.staticText.changeEmail.sendVerificationCodeModal.newEmailLabel)("placeholder",n.staticText.changeEmail.sendVerificationCodeModal.changeEmailPlaceholder)("value",n.newAgencyEmailId),e.R7$(2),e.Y8G("label",n.staticText.changeEmail.sendVerificationCodeModal.sendVerificationCode),e.R7$(),e.Y8G("showModal",n.verifyEmailModal)("title",n.staticText.changeEmail.verifyEmailModal.verifyEmail)("description",n.staticText.changeEmail.verifyEmailModal.verifyDescription)("showButton",!1),e.R7$(4),e.SpI(" ",n.staticText.changeEmail.verifyEmailModal.checkSpam," "),e.R7$(2),e.Y8G("labelText",n.staticText.changeEmail.verifyEmailModal.labelText)("placeholder","****")("maxLength",4)("value",n.otp),e.R7$(3),e.Y8G("ngClass",n.time.minutes||n.time.seconds?"text-secondary":"text-primary cursor-pointer"),e.R7$(),e.JRh(n.staticText.changeEmail.verifyEmailModal.resendText),e.R7$(),e.Y8G("ngIf",n.time.minutes||n.time.seconds),e.R7$(2),e.Y8G("label",n.staticText.changeEmail.verifyEmailModal.submitText))},dependencies:[b.YU,b.bT,G.z,P.me,P.BC,P.YS,P.vS,de.o,pe.k,L.v,me.u,fe,_e.b,y.s,W,b.PV],styles:['.line-divider[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.0784313725);margin-top:1.1rem}.form-start[_ngcontent-%COMP%]{display:flex;width:100%}.random-div[_ngcontent-%COMP%]{background-image:url(/assets/version2/images/sidebar/setting-babyPlan.svg);background-repeat:no-repeat;width:450px;height:480px;background-size:28rem 34rem;margin-top:-4rem}.terms-toggle[_ngcontent-%COMP%] .label div{font-size:14px;font-family:Matter-Regular}.bp-input-box[_ngcontent-%COMP%]{width:341px;height:40px;font-family:Matter-Regular;border-color:transparent;background-color:#f3f4f5;border-radius:4px;padding:9px;color:#666;border:none;resize:none;outline:none;border:1px solid #DFE1E4}.bp-input-box[_ngcontent-%COMP%]::placeholder{color:#a9a9ac;font-family:Matter-Regular}.bp-agent-input-box[_ngcontent-%COMP%]{width:100%!important}.content[_ngcontent-%COMP%]{padding-inline-start:4.1rem;padding-top:8.1rem}.upgrade-style[_ngcontent-%COMP%]{color:#000;background-color:#fff;border-radius:25px;border:none;font-family:Matter-semiBold;padding-top:.4rem;padding-bottom:8.5px;padding-inline-start:1.3rem;padding-inline-end:1.3rem}ul[_ngcontent-%COMP%]{padding-inline-start:13px}.content-style[_ngcontent-%COMP%]{color:#a9a9ac;font-family:Matter-Regular}.content-styles[_ngcontent-%COMP%]{color:#fff;font-family:Matter-Bold}.para-style[_ngcontent-%COMP%]{color:#dfe1e4;font-family:Matter-Regular;margin-top:-11px}select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]:hover{background-color:#a9a9ac}.contents-style[_ngcontent-%COMP%]{color:#f3f4f5;font-family:Matter-Regular;margin-inline-start:13px}select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]:hover{background-color:#a9a9ac!important}.shadow-box[_ngcontent-%COMP%]{background-image:url(/assets/version2/images/sidebar/setting-kingPlan.svg);background-repeat:no-repeat;width:541px;height:501px;background-size:28rem 32rem;margin-top:-4rem}.container-control[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap}
1.circle[_ngcontent-%COMP%]{height:66px;width:69px;background-color:#226cf4;border-radius:50%;display:inline-block}.plus-icon[_ngcontent-%COMP%]{position:relative;inset-inline-start:26px;top:40px}.profile-image-style[_ngcontent-%COMP%]{height:60px;border-radius:59px;width:60px}.bp-input-select-box[_ngcontent-%COMP%]{width:40%;height:616px;top:-392px;border:1px solid #cccccc;border-radius:5px;font-family:Matter-Regular;resize:none;overflow:hidden;background-color:#fff;position:absolute;z-index:1;outline:none;min-width:165px;overflow-y:scroll;box-shadow:0 4px 3px #0000000d,1px 1px 19px 1px #00000026}.bp-phone-option-box[_ngcontent-%COMP%]{margin-inline-start:10px;cursor:pointer;padding:7px;margin-inline-end:10px}.bp-phone-option-box[_ngcontent-%COMP%]:hover{background-color:#f1f3f4}.phone-number-input-box[_ngcontent-%COMP%]{padding-inline-start:80px}.circle[_ngcontent-%COMP%]{position:absolute;z-index:-1}.pop-up[_ngcontent-%COMP%]{top:-223px}.cloud-icon[_ngcontent-%COMP%]{position:relative;inset-inline-start:24px;top:21px}.profile-section[_ngcontent-%COMP%]{display:flex}.dropdown-content[_ngcontent-%COMP%]{border:1px solid #cfcbcb;display:block;height:100px;overflow:hidden;position:absolute;z-index:1;background-color:#fff;width:21.3rem}.dropdown-header[_ngcontent-%COMP%] .active[_ngcontent-%COMP%] + .dropdown-content[_ngcontent-%COMP%]{display:block}.dropdown-content[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]{display:block;padding:5px 12px}.dropdown-content[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]:hover{background-color:#bfbfc5}.border-header[_ngcontent-%COMP%]:after{content:"";background:red;height:20px;width:20px;position:absolute;inset-inline-end:0;border-inline-start:1px solid black;border-bottom:1px solid black}.profile-theme[_ngcontent-%COMP%]{padding-inline-start:2rem}.details-sub-heading[_ngcontent-%COMP%]{font-size:1.25rem;font-family:Matter-Bold;margin-bottom:0}.dropdown-header[_ngcontent-%COMP%]{width:341px;height:40px;font-family:Matter-Regular;border-color:transparent;background-color:#ccc;border-radius:4px;padding:9px;color:#ccc;border:none;resize:none;outline:none;border:1px solid #DFE1E4}.dropdown-header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#333;font-family:Matter-Regular}.theme-style[_ngcontent-%COMP%]{color:#9999;font-family:Matter-Regular;font-size:.9rem}.button-uploader[_ngcontent-%COMP%]{border:none;color:transparent;border-radius:34px;background-color:transparent;position:relative}input[_ngcontent-%COMP%]{width:100%}.profile-image[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{position:absolute;top:0;inset-inline-end:0;opacity:0}.firstClass[_ngcontent-%COMP%]{padding-inline-end:1.5rem}.firstClass[_ngcontent-%COMP%] .custom-size-error[_ngcontent-%COMP%]{font-size:13px}.button-style[_ngcontent-%COMP%]{width:7rem;height:3rem;padding-top:9px;background-color:#226cf4;color:#f2ecec;font-family:Matter-Regular}.main-dropdown-box[_ngcontent-%COMP%]{position:absolute;width:340px;background-color:#fff;inset-inline-start:0;top:80px;border-radius:8px;padding:11px;z-index:11;box-shadow:0 1px 3px #00000005,1px 1px 2px 2px #0000001a;max-height:250px;overflow:scroll}.select[_ngcontent-%COMP%]{cursor:pointer}.select[_ngcontent-%COMP%]:hover{background-color:#e4def5;border-radius:4px}.filter-text[_ngcontent-%COMP%]{padding:5px;cursor:pointer;margin-top:2px;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.filter-text[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{height:13px;width:13px;border-radius:50%;display:inline-block;margin-inline-end:4px}.required-field[_ngcontent-%COMP%]{color:red}.input-box-label[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px;display:block;position:relative}.bp-input-language-box[_ngcontent-%COMP%]{width:40%;max-height:250px;border:1px solid #DFE1E4;border-radius:5px;font-family:Matter-Regular;resize:none;overflow:hidden;background-color:#fff;position:absolute;z-index:1;outline:none;overflow-y:scroll}.plan-name[_ngcontent-%COMP%]{font-size:30px;font-family:Matter-SemiBold;padding:0;margin:0}.your-plan[_ngcontent-%COMP%]{color:#fff;opacity:.5}.bp-primary-btn[_ngcontent-%COMP%]{max-width:120px}.bp-primary-btn[_ngcontent-%COMP%]:hover{color:#fff;background-color:var(--theme-color);border-color:var(--theme-color)}.dropdown-btn[_ngcontent-%COMP%]{width:340px;display:flex;justify-content:space-between;align-items:center;padding:6px 12px!important;background-color:#f3f4f5;color:#333;font-size:14px!important;height:38px;background-color:#dfe1e4;font-family:Matter-Regular}.dropdown-list[_ngcontent-%COMP%]{margin-top:5px;width:100%;padding:.4rem .5rem;position:absolute;z-index:9;background-color:var(--white-bg);max-height:200px;height:-moz-fit-content;height:fit-content;box-shadow:0 3px 6px #00000029;overflow-y:auto}.selected-text[_ngcontent-%COMP%]{font-size:14px;font-family:Matter-Regular}.list-item[_ngcontent-%COMP%]{display:block;padding:.4rem .5rem;color:#666;font-family:Matter-Regular;font-size:14px}.list-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:18px;height:18px;display:inline}.list-item[_ngcontent-%COMP%]:hover{background-color:#f3f4f5;cursor:pointer;color:#333}.arrow[_ngcontent-%COMP%]{position:absolute;inset-inline-end:3px}.down-arrow[_ngcontent-%COMP%]{inset-inline-end:0}.details-section[_ngcontent-%COMP%] .container-control[_ngcontent-%COMP%] .content-section[_ngcontent-%COMP%]{margin-bottom:4rem}.details-section[_ngcontent-%COMP%] .container-control[_ngcontent-%COMP%] .content-section[_ngcontent-%COMP%] .bp-disable-btn[_ngcontent-%COMP%], .details-section[_ngcontent-%COMP%] .container-control[_ngcontent-%COMP%] .content-section[_ngcontent-%COMP%] .bp-primary-btn[_ngcontent-%COMP%]{width:150px;min-width:150px}.details-section[_ngcontent-%COMP%] .container-row[_ngcontent-%COMP%] .content-div[_ngcontent-%COMP%]{width:400px}.details-section[_ngcontent-%COMP%] .container-row[_ngcontent-%COMP%] .primary-margin[_ngcontent-%COMP%]{margin-top:7.2rem}.details-section[_ngcontent-%COMP%] .container-row[_ngcontent-%COMP%] .content-margin[_ngcontent-%COMP%]{margin-inline-start:15rem;min-width:500px}.details-section[_ngcontent-%COMP%] .container-row[_ngcontent-%COMP%] .content-margin[_ngcontent-%COMP%] .no-left-margin[_ngcontent-%COMP%]{margin-inline-start:0!important}.details-section[_ngcontent-%COMP%] .container-row[_ngcontent-%COMP%] .bp-disable-btn[_ngcontent-%COMP%], .details-section[_ngcontent-%COMP%] .container-row[_ngcontent-%COMP%] .bp-primary-btn[_ngcontent-%COMP%]{width:150px;min-width:150px}.details-section[_ngcontent-%COMP%] .delete-account-accordion[_ngcontent-%COMP%]{padding:0!important;margin:0!important}.details-section[_ngcontent-%COMP%] .delete-account-accordion[_ngcontent-%COMP%] .delete-icon-box[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:10px;background:var(--bp-background-sentiment-rejected)}.details-section[_ngcontent-%COMP%] .delete-account-accordion[_ngcontent-%COMP%] .delete-icon-box[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--bp-text-sentiment-rejected);font-size:22px}.details-section[_ngcontent-%COMP%] .delete-account-accordion[_ngcontent-%COMP%] .delete-account-content[_ngcontent-%COMP%]{border-top:1px solid var(--icon-disable);margin-inline:-20px;padding-inline:20px}.details-section[_ngcontent-%COMP%] .delete-account-accordion[_ngcontent-%COMP%] .delete-account-content[_ngcontent-%COMP%] .delete-account-warning[_ngcontent-%COMP%]{gap:16px;font-size:.875rem}.details-section[_ngcontent-%COMP%] .delete-account-accordion[_ngcontent-%COMP%] .delete-account-content[_ngcontent-%COMP%] .delete-account-warning[_ngcontent-%COMP%] .warning-icon-box[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:10px;flex-shrink:0;background-color:var(--yellow-light-color)}.details-section[_ngcontent-%COMP%] .delete-account-accordion[_ngcontent-%COMP%] .delete-account-content[_ngcontent-%COMP%] .delete-account-warning[_ngcontent-%COMP%] .warning-icon-box[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--yellow-color);font-size:16px}.details-section[_ngcontent-%COMP%] .delete-account-accordion[_ngcontent-%COMP%] .delete-account-content[_ngcontent-%COMP%] .delete-account-warning-h3[_ngcontent-%COMP%]{font-family:Matter-SemiBold;font-size:16px;color:var(--background-neutral-700)}.details-section[_ngcontent-%COMP%] .delete-account-accordion[_ngcontent-%COMP%] .delete-account-content[_ngcontent-%COMP%] .delete-account-warning-p[_ngcontent-%COMP%]{font-family:Matter-Regular;
1color:var(--millon-grey)}.details-phone[_ngcontent-%COMP%]{border:none;outline:none;background:transparent;padding-inline-start:5%}.delete-account-accordion[_ngcontent-%COMP%] .delete-icon-box[_ngcontent-%COMP%]{width:54px;height:54px;border-radius:16px}.delete-account-accordion[_ngcontent-%COMP%] .delete-icon-box[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--bp-text-sentiment-rejected);font-size:24px}.delete-account-accordion[_ngcontent-%COMP%] .delete-account-content[_ngcontent-%COMP%]{border-top:1px solid var(--icon-disable);padding-top:24px}.delete-account-accordion[_ngcontent-%COMP%] .delete-account-action[_ngcontent-%COMP%]{padding-bottom:8px}.bp-danger-btn[_ngcontent-%COMP%]{min-width:170px;background:var(--bp-text-sentiment-rejected);color:var(--white-bg);border:none;border-radius:12px;padding:12px 24px;font-family:Matter-SemiBold}.bp-danger-btn[_ngcontent-%COMP%]:hover{color:var(--white-bg);background:var(--danger-color)}.logo-content[_ngcontent-%COMP%]{width:80px;height:80px;position:relative}.rectangular-logo-content[_ngcontent-%COMP%]{width:190px;height:80px}.rectangular-logo-content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:contain;object-position:left}.logo-img[_ngcontent-%COMP%]{width:100%;height:100%;background:#00000014;border-radius:10px;padding:10px}.logo-img-container[_ngcontent-%COMP%]{width:100%;height:100%;background:#f3f4f5;border-radius:10px;padding:10px}.overlay[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;inset-inline-start:0;inset-inline-end:0;height:100%;width:100%;opacity:0;transition:.5s ease;background-color:#f3f4f5;border-radius:10px}.overlay-img[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;vertical-align:bottom;width:100%;height:100%;font-size:30px;opacity:.5;color:gray}.logo-content[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{opacity:1}.change-link[_ngcontent-%COMP%]{text-decoration:underline;cursor:pointer;font-size:14px}.agency-read-only-input[_ngcontent-%COMP%]{background-color:#fff!important;outline:none!important;border:none!important;padding-inline-start:0!important}@media (max-width: 576px){.details-section[_ngcontent-%COMP%] .container-control[_ngcontent-%COMP%] .content-section[_ngcontent-%COMP%] .form-start[_ngcontent-%COMP%] .firstClass[_ngcontent-%COMP%] .bp-input-box[_ngcontent-%COMP%]{width:265px}.details-section[_ngcontent-%COMP%] .container-control[_ngcontent-%COMP%] .content-section[_ngcontent-%COMP%] .main-dropdown-box[_ngcontent-%COMP%]{width:265px;top:90px}.details-section[_ngcontent-%COMP%] .container-control[_ngcontent-%COMP%] .content-section[_ngcontent-%COMP%] .bp-disable-btn[_ngcontent-%COMP%], .details-section[_ngcontent-%COMP%] .container-control[_ngcontent-%COMP%] .content-section[_ngcontent-%COMP%] .bp-primary-btn[_ngcontent-%COMP%]{width:110px;min-width:110px}.details-section[_ngcontent-%COMP%] .container-control[_ngcontent-%COMP%] .image-section[_ngcontent-%COMP%]{overflow:auto;margin-top:2rem}}h2[_ngcontent-%COMP%]{margin-top:.5rem;font-size:1.25rem;font-family:Matter-Bold}.sub-heading[_ngcontent-%COMP%]{color:#999;font-size:14px;font-family:Matter-Regular}.configuration[_ngcontent-%COMP%]{margin-bottom:1rem;width:100%;border:1px solid #E5E5E5;border-radius:10px;padding:20px;animation-name:ease;animation-duration:.5s;transition:height .5s}.configuration[_ngcontent-%COMP%] .toggle-icon[_ngcontent-%COMP%]{transform:rotate(180deg);transition:transform .5s ease}.configuration[_ngcontent-%COMP%] .accordian-image[_ngcontent-%COMP%]{width:40px;height:40px;text-align:center;background:#f3f4f5;display:flex;justify-content:center;align-items:center;border-radius:10px}.configuration[_ngcontent-%COMP%] .accordian-image.manage-data__icon-box[_ngcontent-%COMP%]{background:var(--warning-bg, #FEF3E2)}.configuration[_ngcontent-%COMP%] .accordian-image.manage-data__icon-box[_ngcontent-%COMP%] .manage-data__icon[_ngcontent-%COMP%]{color:var(--warning-fg, #F4A228);font-size:22px}.configuration[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{font-size:18px}.configuration[_ngcontent-%COMP%] .sub-heading[_ngcontent-%COMP%]{font-size:14px;color:#999;padding-inline-end:35px}.configuration[_ngcontent-%COMP%] .expand-box[_ngcontent-%COMP%]{display:flex;align-items:center}.configuration[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%]{align-items:baseline}.manage-data__row[_ngcontent-%COMP%]{gap:.75rem}.manage-data__row-icon-box[_ngcontent-%COMP%] .download[_ngcontent-%COMP%]{width:18px;height:18px}.manage-data__row-icon-box--success[_ngcontent-%COMP%]{background-color:var(--bp-background-sentiment-success)}.manage-data__row-icon-box--success[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--bp-text-sentiment-success)}.manage-data__row-icon-box--danger[_ngcontent-%COMP%]{background-color:var(--bp-background-sentiment-rejected)}.manage-data__row-icon-box--danger[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--bp-text-sentiment-rejected)}.manage-data__row-title[_ngcontent-%COMP%]{font-size:.9375rem;font-family:var(--font-family-semibold, "Matter-SemiBold");color:var(--text-primary, #333333)}.manage-data__row-desc[_ngcontent-%COMP%]{font-size:14px;line-height:1.5;color:var(--text-tertiary, #999999);max-width:480px;margin-bottom:0}.manage-data__row-expiry[_ngcontent-%COMP%]{font-size:.75rem;display:flex;align-items:center;gap:.25rem;color:var(--text-tertiary, #999999)}
1.manage-data__expiry-icon[_ngcontent-%COMP%]{font-size:.875rem}.manage-data__divider[_ngcontent-%COMP%]{border-bottom:2px solid var(--border-default, #E5E5E5)}.manage-data__export-btn[_ngcontent-%COMP%]{background-color:var(--brand-subtle, rgb(218, 224, 253));color:var(--brand);border:none;border-radius:8px;padding:8px 20px;font-family:var(--font-family-base, "Matter-Regular");font-size:14px;white-space:nowrap}.manage-data__export-btn[_ngcontent-%COMP%]:hover{background-color:var(--brand-subtle, rgba(34, 108, 244, .18));color:var(--brand)}.manage-data__badge[_ngcontent-%COMP%]{font-size:12px;font-family:var(--font-family-semibold, "Matter-SemiBold");padding:.2em .6em;border-radius:20px}.manage-data__badge--processing[_ngcontent-%COMP%]{background-color:var(--bp-background-sentiment-pending);color:var(--bp-text-sentiment-pending)}.manage-data__badge--delivered[_ngcontent-%COMP%]{background-color:var(--bp-background-sentiment-success);color:var(--bp-text-sentiment-success)}.manage-data__row-icon-box[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.manage-data__row-icon-box[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:20px}.manage-data__row-icon-box--primary[_ngcontent-%COMP%]{background-color:var(--brand-subtle, rgba(34, 108, 244, .1));color:var(--brand, #226cf4)}.manage-data__icon-box[_ngcontent-%COMP%]{background:var(--surface-sunken, #F3F4F5)}.manage-data__icon[_ngcontent-%COMP%]{font-size:20px;color:var(--text-secondary, #555)}.manage-data__deletion-banner[_ngcontent-%COMP%]{background:var(--warning-bg, #fff3cd);border:1px solid var(--warning-fg, rgba(255, 193, 7, .35));border-radius:8px;padding:.75rem 1rem;flex-wrap:wrap;gap:.5rem}.manage-data__deletion-banner-icon[_ngcontent-%COMP%]{font-size:1.125rem;color:var(--warning-fg, #856404);flex-shrink:0}.manage-data__deletion-banner-text[_ngcontent-%COMP%]{font-size:14px;color:var(--warning-fg, #856404)}.manage-data__deletion-banner-link[_ngcontent-%COMP%]{background:none;border:0;padding:0;font-family:inherit;font-size:inherit;color:var(--brand, #226cf4);font-weight:500;cursor:pointer;text-decoration:underline}.manage-data__deletion-banner-close[_ngcontent-%COMP%]{background:none;border:none;padding:.125rem;cursor:pointer;color:var(--warning-fg, #856404);line-height:1;flex-shrink:0}.manage-data__deletion-banner-close[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:1.125rem}']})}return o})();var Tt=c(75125),Mt=c(5650),Pt=c(13006);function kt(o,s){if(1&o){const t=e.RV6();e.j41(0,"app-bp-button-v2",13),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.onCancel())}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("label",t.cancelLabel)("disabled",t.confirming)}}const U={neutral:{icon:"info",iconBackground:"var(--bp-edit-bot-info-container-color)",iconColor:"var(--bp-brand-secondary)",confirmButtonType:"primary"},warning:{icon:"warning",iconBackground:"var(--bp-background-sentiment-pending)",iconColor:"var(--bp-text-sentiment-pending)",confirmButtonType:"primary"},danger:{icon:"delete",iconBackground:"var(--bp-background-sentiment-rejected)",iconColor:"var(--bp-text-sentiment-rejected)",confirmButtonType:"danger-fill"},success:{icon:"check_circle",iconBackground:"var(--bp-background-sentiment-success)",iconColor:"var(--bp-text-sentiment-success)",confirmButtonType:"success"}};let K=(()=>{class o{constructor(){this.showModal=!1,this.variant="neutral",this.title="",this.description="",this.cancelLabel="Cancel",this.confirmLabel="Confirm",this.showCancelButton=!0,this.confirming=!1,this.userInput=new e.bkB,this.instanceId=(0,J.A)(),this.modalId=`bp-confirm-modal-${this.instanceId}`,this.titleId=`bp-confirm-modal-title-${this.instanceId}`,this.descriptionId=`bp-confirm-modal-description-${this.instanceId}`}get effectiveIcon(){return this.icon??U[this.variant].icon}get effectiveIconBackground(){return this.iconBackground??U[this.variant].iconBackground}get effectiveIconColor(){return this.iconColor??U[this.variant].iconColor}get effectiveConfirmButtonType(){return this.confirming?"load":this.confirmButtonType??U[this.variant].confirmButtonType}
1ngOnChanges(t){if(t.showModal){if(t.showModal.currentValue)return void setTimeout(()=>{(0,k.Jr)(this.modalId,{backdrop:"static",keyboard:!1})},0);t.showModal.previousValue&&(0,k.W5)(this.modalId)}}onCancel(){this.confirming||this.userInput.emit(!1)}onConfirm(){this.confirming||this.userInput.emit(!0)}static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-bp-confirm-modal"]],inputs:{showModal:"showModal",variant:"variant",icon:"icon",iconBackground:"iconBackground",iconColor:"iconColor",title:"title",description:"description",cancelLabel:"cancelLabel",confirmLabel:"confirmLabel",confirmButtonType:"confirmButtonType",showCancelButton:"showCancelButton",confirming:"confirming"},outputs:{userInput:"userInput"},standalone:!0,features:[e.OA$,e.aNF],decls:18,vars:16,consts:[["tabindex","-1","role","alertdialog","aria-modal","true",1,"modal","fade","bp-confirm-modal",3,"click","id"],["role","document",1,"modal-dialog","modal-dialog-centered","bp-confirm-modal-dialog"],[1,"modal-content","bp-confirm-modal-content",3,"click"],[1,"bp-confirm-modal-section"],["type","button","aria-label","Close",1,"bp-confirm-modal-close","d-flex","align-items-center","justify-content-center",3,"click"],[1,"material-icons"],[1,"bp-confirm-modal-header","d-flex","align-items-center"],[1,"bp-confirm-modal-icon","d-flex","align-items-center","justify-content-center"],[1,"bp-confirm-modal-title","m-0",3,"id"],[1,"bp-confirm-modal-description","m-0",3,"id"],[1,"d-flex","justify-content-end","bp-confirm-modal-footer"],["type","secondary","buttonSize","auto","fontSize","14px",3,"label","disabled"],["buttonSize","auto","fontSize","14px",3,"clickEvent","label","type","disabled"],["type","secondary","buttonSize","auto","fontSize","14px",3,"clickEvent","label","disabled"]],template:function(i,n){1&i&&(e.j41(0,"div",0),e.bIt("click",function(){return n.onCancel()}),e.j41(1,"div",1)(2,"div",2),e.bIt("click",function(l){return l.stopPropagation()}),e.j41(3,"div",3)(4,"button",4),e.bIt("click",function(){return n.onCancel()}),e.j41(5,"span",5),e.EFF(6,"close"),e.k0s()(),e.j41(7,"div",6)(8,"div",7)(9,"span",5),e.EFF(10),e.k0s()(),e.j41(11,"h2",8),e.EFF(12),e.k0s()(),e.j41(13,"p",9),e.EFF(14),e.k0s()(),e.j41(15,"div",10),e.DNE(16,kt,1,2,"app-bp-button-v2",11),e.j41(17,"app-bp-button-v2",12),e.bIt("clickEvent",function(){return n.onConfirm()}),e.k0s()()()()()),2&i&&(e.Y8G("id",n.modalId),e.BMQ("aria-labelledby",n.titleId)("aria-describedby",n.descriptionId),e.R7$(8),e.xc7("background",n.effectiveIconBackground),e.R7$(),e.xc7("color",n.effectiveIconColor),e.R7$(),e.JRh(n.effectiveIcon),e.R7$(),e.Y8G("id",n.titleId),e.R7$(),e.JRh(n.title),e.R7$(),e.Y8G("id",n.descriptionId),e.R7$(),e.JRh(n.description),e.R7$(2),e.vxM(16,n.showCancelButton?16:-1),e.R7$(),e.Y8G("label",n.confirmLabel)("type",n.effectiveConfirmButtonType)("disabled",n.confirming))},dependencies:[y.s],styles:[".bp-confirm-modal[_ngcontent-%COMP%] .bp-confirm-modal-dialog[_ngcontent-%COMP%]{width:450px;max-width:calc(100% - 32px)}.bp-confirm-modal[_ngcontent-%COMP%] .bp-confirm-modal-dialog[_ngcontent-%COMP%] .bp-confirm-modal-content[_ngcontent-%COMP%]{position:relative;border:none;border-radius:.75rem;background:var(--white-bg);box-shadow:0 10px 32px #0000001f}.bp-confirm-modal[_ngcontent-%COMP%] .bp-confirm-modal-dialog[_ngcontent-%COMP%] .bp-confirm-modal-section[_ngcontent-%COMP%]{padding:1.75rem 1.25rem}.bp-confirm-modal[_ngcontent-%COMP%] .bp-confirm-modal-dialog[_ngcontent-%COMP%] .bp-confirm-modal-close[_ngcontent-%COMP%]{position:absolute;top:16px;right:16px;width:28px;height:28px;border:none;background:transparent;border-radius:6px;color:var(--background-neutral-700);cursor:pointer;padding:0}.bp-confirm-modal[_ngcontent-%COMP%] .bp-confirm-modal-dialog[_ngcontent-%COMP%] .bp-confirm-modal-close[_ngcontent-%COMP%]:hover{background:var(--background-base-secondary);color:var(--background-neutral-800)}.bp-confirm-modal[_ngcontent-%COMP%] .bp-confirm-modal-dialog[_ngcontent-%COMP%] .bp-confirm-modal-header[_ngcontent-%COMP%]{gap:12px;margin-bottom:16px}.bp-confirm-modal[_ngcontent-%COMP%] .bp-confirm-modal-dialog[_ngcontent-%COMP%] .bp-confirm-modal-icon[_ngcontent-%COMP%]{width:36px;height:36px;padding:6px;border-radius:.5rem;flex-shrink:0}.bp-confirm-modal[_ngcontent-%COMP%] .bp-confirm-modal-dialog[_ngcontent-%COMP%] .bp-confirm-modal-title[_ngcontent-%COMP%]{font-family:Matter-SemiBold;font-size:18px;line-height:28px;color:var(--background-neutral-800);text-align:left}.bp-confirm-modal[_ngcontent-%COMP%] .bp-confirm-modal-dialog[_ngcontent-%COMP%] .bp-confirm-modal-description[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:14px;line-height:20px;color:var(--background-neutral-700);text-align:left}.bp-confirm-modal[_ngcontent-%COMP%] .bp-confirm-modal-dialog[_ngcontent-%COMP%] .bp-confirm-modal-footer[_ngcontent-%COMP%]{width:100%;gap:12px;border-top:1px solid var(--bp-dark-border);padding:1.25rem}@media (max-width: 576px){.bp-confirm-modal[_ngcontent-%COMP%] .bp-confirm-modal-dialog[_ngcontent-%COMP%]{width:95%;margin:auto}.bp-confirm-modal[_ngcontent-%COMP%] .bp-confirm-modal-dialog[_ngcontent-%COMP%] .bp-confirm-modal-content[_ngcontent-%COMP%]{padding:24px 18px}}"],changeDetection:0})}return o}
1)();function wt(o,s){if(1&o){const t=e.RV6();e.j41(0,"div")(1,"div",10)(2,"app-bp-mui-input",16),e.bIt("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.passwordData.oldPassword=n.target.value)}),e.k0s()()()}if(2&o){const t=e.XpG();e.R7$(2),e.FS9("placeholder",t.staticText.placeholders.enterYourCurrentPassword),e.Y8G("labelText",t.staticText.currentPassword)("value",t.passwordData.oldPassword)("showTooltip",!0)("maxLength",64)("tooltipMessage",t.toolTip.TOOLTIP_CURRENT_PASSWORD)("showPasswordIcon",!0)}}let Q=(()=>{class o{constructor(t,i,n,a,l,h,_){this.sharedService=t,this.authService=i,this.networkService=n,this.store=a,this.languageService=l,this.mixpanel=h,this.oauthService=_,this.openDeleteAccount=!1,this.passwordData={oldPassword:"",newPassword:"",confirmPassword:""},this.showChangePasswordConfirmModal=!1,this.showPassword=!1,this.showNewPassword=!1,this.showConfirmPassword=!1,this.toolTip=O.v1,this.feedback={open:!1,title:"Account Delete Feedback Form",headingOne:"Sad to see you go",headingTwo:"Rate your experience with BotPenguin",deleteReasonHeading:"What made you delete your account?",accountDeletionReasons:[{title:"I created by mistake",key:"mistake"},{title:"I want to create another Bot",key:"anotherBot"},{title:"Couldn't find features that I need",key:"missingFeatures"},{title:"UI was hard to navigate",key:"uiHardToNavigate"},{title:"I don't want to tell",key:"secret"},{title:"Other",key:"other"}],textAreaPlaceholder:" Please help us know more and be better.",confirmText:"Save and Delete",cancelText:"Cancel"},this.mixpanel.trackEvent("Password page view",{distinct_id:this.authService.customerProfileId}),this.staticText=this.languageService.getStaticText().settings.password,this.toolTip=this.staticText.appTooltip,this.storeSubscribe$=a.select(x=>x).subscribe(({profile:x,agencyDetails:j})=>{this.brandName=j.meta?.brand||"BotPenguin",this.profileType=x.type,this.profile=x,this.toolTip.TOOLTIP_DELETE_ACCOUNT=this.toolTip.TOOLTIP_DELETE_ACCOUNT.replace("null",this.brandName)}),this.initializeFeedbackModalText()}ngOnDestroy(){this.storeSubscribe$?.unsubscribe()}get ifRootAgency(){return E.c.rootAgencyDomain.includes(window.location.host)}get isImpersonate(){return!!localStorage.getItem("impersonate")}initializeFeedbackModalText(){this.feedback={title:this.staticText.feedbackFormTitle,open:!1,headingOne:this.staticText.headingOne,headingTwo:this.staticText.headingTwo,deleteReasonHeading:this.staticText.deleteReasonHeading,accountDeletionReasons:[{title:this.staticText.accountDeletionReasons?.createdMistake,key:"mistake"},{title:this.staticText.accountDeletionReasons?.anotherBot,key:"anotherBot"},{title:this.staticText.accountDeletionReasons?.missingFeatures,key:"missingFeatures"},{title:this.staticText.accountDeletionReasons?.uiHardToNavigate,key:"uiHardToNavigate"},{title:this.staticText.accountDeletionReasons?.secret,key:"secret"},{title:this.staticText.accountDeletionReasons?.other,key:"other"}],textAreaPlaceholder:this.staticText.pleaseHelpUsKnowMore,confirmText:this.staticText.saveFeedbackAndDeleteAccount,cancelText:this.staticText.cancelText}}setPassword(){this.profile.social&&!this.profile.isPasswordChanged?this.saveNewPassword():this.changePassword()}changePassword(){return this.passwordData.oldPassword||this.profile.social||this.profile.isPasswordChanged?this.passwordData.newPassword&&this.passwordData.confirmPassword?this.validatePassword(this.passwordData.newPassword)?this.sharedService.showToast("error","",this.validatePassword(this.passwordData.newPassword)):this.passwordData.oldPassword&&this.passwordData.oldPassword===this.passwordData.newPassword?this.sharedService.showToast("error","",this.staticText.newPasswordSameAsOldPassword):this.passwordData.newPassword!==this.passwordData.confirmPassword?this.sharedService.showToast("error","",this.staticText.passwordDoesntMatch||"Password doesn't match"):void(this.showChangePasswordConfirmModal=!0):this.sharedService.showToast("error","",this.staticText.passwordRequired||"Password required"):this.sharedService.showToast("error","",this.staticText.currentPasswordRequired||"Current password required")}handleChangePasswordConfirmation(t){var i=this;return(0,m.A)(function*(){if(i.showChangePasswordConfirmModal=!1,t)try{yield i.authService.changePassword(i.passwordData),i.sharedService.showToast("success","",i.staticText.yourPasswordH
1asBeenChanged||"Your password has been changed"),localStorage.removeItem("token"),i.oauthService.logOut(!0),window.location.href="/authentication"}catch(n){i.sharedService.showToast("error","","string"==typeof n?n:i.staticText.passChangeFailure||"Something went wrong while changing password")}})()}validatePassword(t){return!t||t.length<8?this.staticText.passwordLengthMustBe8OrMoreCharactersLong||"Password must be 8 or more characters long":/(?=.*[A-Z])/.test(t)?/[!@#$%^&*()_\-+=\[\]{};:'",.<>\/?\\|~]/.test(t)?/(?=.*[0-9])/.test(t)?/(?=.*[a-z])/.test(t)?null:this.staticText.passwordContainLowerCase||"Password must contain at least one lowercase letter":this.staticText.oneNumber||"Password must contain at least one number":this.staticText.passwordContainSpecialCharacter:this.staticText.passwordContainUpperCase}saveNewPassword(){if(!this.passwordData.newPassword||!this.passwordData.confirmPassword)return this.sharedService.showToast("info","",this.staticText.passwordRequired||"Password required");if(this.passwordData.newPassword!==this.passwordData.confirmPassword)return this.sharedService.showToast("info","",this.staticText.passwordDoNotMatch);const t=this.validatePassword(this.passwordData.newPassword);if(t)return this.sharedService.showToast("info","",t);this.sharedService.loader("start"),this.authService.setNewPassword({newPassword:this.passwordData.newPassword,confirmPassword:this.passwordData.confirmPassword}).then(()=>{this.sharedService.showToast("success","",this.staticText.yourPasswordSet),setTimeout(()=>{window.location.href="settings/password"},1e3)}).catch(n=>{this.sharedService.showToast("error","",n)}).finally(()=>this.sharedService.loader("stop"))}cancel(){this.passwordData.confirmPassword="",this.passwordData.newPassword="",this.passwordData.oldPassword=""}deleteAccount(t){if(this.openDeleteAccount=!1,t)return this.sharedService.loader("start"),this.mixpanel.trackEvent("Account deleted",{distinct_id:this.authService.customerProfileId}),this.networkService.httpRequest(`customer/${this.profile._id}`,{},"DELETE").then(i=>localStorage.getItem("impersonate")?(localStorage.removeItem("impersonate"),window.location.href="/agency/dashboard"):(localStorage.removeItem("token"),this.authService.customerProfileId="",this.mixpanel.resetMixpanel(),window.location.href="/authentication")).catch(i=>this.sharedService.showToast("error","",i.message||i)).finally(()=>this.sharedService.loader("stop"))}saveFeedbackAndDeleteAccount(t){this.feedback.open=!1,t&&(this.sharedService.loader("start"),this.authService.createFeedback({...t,type:"account-delete"}).then(()=>{this.deleteAccount(!0)}).catch(i=>{this.sharedService.showToast("error","",i.message||i)}).finally(()=>this.sharedService.loader("stop")))}handleDeleteAccountClick(){"CUSTOMER"===this.profileType?this.feedback.open=!0:this.openDeleteAccount=!0}static#e=this.\u0275fac=function(i){return new(i||o)(e.rXU(p.d),e.rXU(u.k),e.rXU(N.A),e.rXU(C.il),e.rXU(f.g),e.rXU(v.U),e.rXU(Tt.TC))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-password"]],decls:24,vars:39,consts:[["title","Delete Account","description","Are you sure you want to delete your account?",3,"userInput","showModal"],[3,"userInput","title","cancelText","showModal","confirmText","firstHeading","secondHeading","dropdownLabelText","deletionReasons","textAreaPlaceholder"],["variant","warning","icon","lock",3,"userInput","showModal","title","description","cancelLabel","confirmLabel"],[1,"mt-4","password-section"],[1,"password-heading-section"],[1,"password-header","mt-2"],[1,"password-header"],[1,"password"],[1,"add-member-small-text"],[4,"ngIf"],[1,"input-div","mt-2"],["type","password","name","newPassword",3,"keyupEvent","labelText","placeholder","value","maxLength","showTooltip","tooltipMessage","showPasswordIcon"],["type","password","name","confirmPassword",3,"keyupEvent","labelText","placeholder","value","maxLength","showTooltip","tooltipMessage","showPasswordIcon"],["type","info-v3",3,"message"],[1,"buttons"],[3,"clickEvent","label","type"],["type","password","name","confirmPassword",3,"keyupEvent","labelText","placeholder","value","showTooltip","maxLength","tooltipMessage","showPasswordIcon"]],template:function(i,n){1&i&&(e.j41(0,"app-modal",0),e.bIt("userInput",function(l){return n.deleteAccount(l)}),e.k0s(),e.j41(1,"app-feedback",1),e.bIt("userInput",function(l){return n.saveFeedbackAndDeleteAccount(l)}),e.k0s(),e.j41(2,"app-bp-confirm-modal",2),e.bIt("userInput",function(l){return n.handleChangePasswordConfirmation(l)}),e.k0s(),e.j41(3,"div",3)(4,"div",4)(5,"div",5)(6,"h1",6),e.EFF(7),e.k0s()(),e.j41(8,"div",7)(9,"p",8),e.EFF(10),e.k0s()()(),e.j41(11,"div"),e.DNE(12,wt,3,7,"div",9),e.j41(13,"div")(14,"div",10)(15,"app-bp-mui-input",11),e.bIt("keyupEvent",function(l){return n.passwordData.newPassword=l.target.value}),e.k0s()()(),e.j41(16,"div")(17,"div",10)(18,"app-bp-mui-input",12),e.bIt("keyupEvent",function(l){return n.passwordData.confirmPassword=l.target.value}),e.k0s()(),e.nrm(19,"app-bp-banner",13),e.j41(20,"div")(21,"div",14)(22,"app-bp-button-v2",15),e.bIt("clickEvent",function(){return n.cancel()}),e.k0s(),e.j41(23,"app-bp-button-v2",15),e.bIt("clickEvent",function(){return n.setPassword()}),e.k0s()()()()()()),2&i&&(e.Y8G("showModal",n.openDeleteAccount),e.R7$(),e.Y8G("title",n.feedback.title)("cancelText",n.feedback.cancelText)("showModal",n.feedback.open
1)("confirmText",n.feedback.confirmText)("firstHeading",n.feedback.headingOne)("secondHeading",n.feedback.headingTwo)("dropdownLabelText",n.feedback.deleteReasonHeading)("deletionReasons",n.feedback.accountDeletionReasons)("textAreaPlaceholder",n.feedback.textAreaPlaceholder),e.R7$(),e.Y8G("showModal",n.showChangePasswordConfirmModal)("title",n.staticText.changePasswordConfirmTitle||"Change Password?")("description",n.staticText.changePasswordConfirmDescription||"Changing your password will sign you out from all logged-in devices. Do you want to proceed?")("cancelLabel",n.staticText.noCancel||"No, cancel")("confirmLabel",n.staticText.yesProceed||"Yes, Proceed"),e.R7$(5),e.JRh(n.profile.social&&!n.profile.isPasswordChanged?n.staticText.setPassword:n.staticText.changePassword),e.R7$(3),e.E5c("",n.staticText.aSecurePasswordHelpsProtectYour,"",n.brandName," ",n.staticText.account,""),e.R7$(2),e.Y8G("ngIf",!n.profile.social||n.profile.social&&n.profile.isPasswordChanged),e.R7$(3),e.FS9("placeholder",n.staticText.placeholders.enterYourNewPassword),e.Y8G("labelText",n.staticText.newPassword)("value",n.passwordData.newPassword)("maxLength",64)("showTooltip",!0)("tooltipMessage",n.toolTip.TOOLTIP_NEW_PASSWORD)("showPasswordIcon",!0),e.R7$(3),e.FS9("placeholder",n.staticText.placeholders.enterYourConfirmPassword),e.Y8G("labelText",n.staticText.confirmPassword)("value",n.passwordData.confirmPassword)("maxLength",64)("showTooltip",!0)("tooltipMessage",n.toolTip.TOOLTIP_CONFIRM_PASSWORD)("showPasswordIcon",!0),e.R7$(),e.Y8G("message",n.staticText.youWillBeLoggedOutText),e.R7$(3),e.Y8G("label",n.staticText.cancel)("type","secondary"),e.R7$(),e.Y8G("label",n.profile.social&&!n.profile.isPasswordChanged?n.staticText.setPassword:n.staticText.updatePassword)("type","primary"))},dependencies:[b.bT,G.z,Mt.p,L.v,Pt.i,y.s,K],styles:[".password-header[_ngcontent-%COMP%]{font-size:1.25rem;font-family:Matter-Bold}.input-div[_ngcontent-%COMP%]{max-width:360px}.password-tagline[_ngcontent-%COMP%]{font-family:Matter-Regular;color:#e4def5}label[_ngcontent-%COMP%]{display:block;font-family:Matter-Regular}.add-member-small-text[_ngcontent-%COMP%]{font-size:.84rem;font-weight:500;font-family:Matter-Regular;color:#999}.bp-input-box[_ngcontent-%COMP%]{width:31%;height:40px;font-family:Matter-Regular;border-color:transparent;background-color:#f3f4f5;border-radius:4px;padding:13px;color:#666;border:none;resize:none;outline:none;border:1px solid #DFE1E4}.bp-input-box[_ngcontent-%COMP%]::placeholder{color:#bebebe;font-family:Matter-Regular}.continue-btn[_ngcontent-%COMP%]{align-items:center;color:#999;background-color:#dfe1e4;height:38px;border-color:transparent;margin-top:25px;border-radius:4px;padding-inline-end:15px;padding-inline-start:15px;margin-inline-end:12px}.update-btn[_ngcontent-%COMP%]{background-color:#226cf4;color:#f1f3f4;height:38px;border-color:transparent;margin-top:25px;border-radius:4px;padding-inline-end:15px;padding-inline-start:15px}.buttons[_ngcontent-%COMP%]{display:flex;gap:10px;margin-top:25px}.eye[_ngcontent-%COMP%]{position:absolute;top:-15px;inset-inline-end:5px;border-color:transparent;height:45px;border-radius:4px;padding:13px;color:#666;border:none;resize:none;outline:none;cursor:pointer}@media (max-width: 576px){.password-header[_ngcontent-%COMP%]{font-size:1.1rem}.bp-input-box[_ngcontent-%COMP%]{width:95%}.buttons[_ngcontent-%COMP%]{flex-wrap:wrap}.buttons[_ngcontent-%COMP%] .continue-btn[_ngcontent-%COMP%]{margin-inline-start:10px;padding:.35rem .75rem}.buttons[_ngcontent-%COMP%] .update-btn[_ngcontent-%COMP%]{padding:.35rem .75rem}}@media (min-width: 577px) and (max-width: 768px){.bp-input-box[_ngcontent-%COMP%]{width:50%}}"]})}return o})();var Ot=c(5964),Z=c(63278);function Et(o,s){if(1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),e.EFF(5),e.k0s(),e.j41(6,"p",5),e.EFF(7),e.k0s()()(),e.nrm(8,"app-bp-navbar",6)(9,"router-outlet"),e.k0s()()),2&o){const t=e.XpG();e.R7$(5),e.JRh(t.staticText.myAccount),e.R7$(2),e.SpI(" ",t.staticText.yourProfileAndPasswordSecurity," "),e.R7$(),e.Y8G("navItems",t.settingsNavItems)}}function Rt(o,s){1&o&&e.nrm(0,"router-outlet")}let It=(()=>{class o{constructor(t,i,n,a){this.store=t,this.langugageService=i,this.commonService=n,this.router=a,this.isFullPageRoute=!1,this.toolTip=O.v1,this.settingsNavItems=[],this.staticText=this.langugageService.getStaticText().settings,this.toolTip=this.staticText.appTooltip,this.storeSubscription$=this.store.select(l=>l).subscribe(l=>{!l.profile?.type||this.profileType||(this.profileType=l.profile.type,this.initializeSettingsNavItems())})}ngOnInit(){this.isFullPageRoute=this.router.url.includes("data-export")||this.router.url.includes("data-deletion"),this.routerSub$=this.router.events.pipe((0,Ot.p)(t=>t instanceof r.wF)).subscribe(()=>{this.isFullPageRoute=this.router.url.includes("data-export")||this.router.url.includes("data-deletion")})}ngOnDestroy(){this.storeSubscription$?.unsubscribe(),this.routerSub$?.unsubscribe()}initializeSettingsNavItems(){this.settingsNavItems=[{title:this.staticText.accountHeader,route:"../settings/details",tooltipText:this.toolTip.TOOLTIP_DETAILS_HEADING,conditional:!0,showLockIcon:!1,permissions:""}],this.shouldShowSecurityTab&&this.settingsNavItems.push({title:this.staticText.securityHeader,route:["../settings/security"],tooltipText:this.toolTip.TOOLTIP_SECURITY_HEADING,conditional:!0,showLockIcon:!1,permissions:""})}get ifRootAgency(){return E.c.rootAgencyDomain.includes(window.location.host)}get isImpersonate(){return!!localStorage.getItem("impersonate")}get shouldShowSecurityTab(){return!this.isImpersonate}static#e=this.\u0275fac=function(i){return new(i||o)(e.rXU(C.il),e.rXU(f.g),e.rXU(A.h),e.rXU(r.Ix))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-settings"]],decls:2,vars:2,consts:[[1,"all-content-wrapper","flex-grow-1","custom-scroll-bar"],[1,"content-container","text-align-start"],[1,"d-flex"],[1,"setting-header","pt-2"],[1,"setting-style"],[1,"add-member-small-text"],[3,"navItems"]],template:function(i,n){1&i&&e.DNE(0,Et,10,3,"div",0)(1,Rt,1,0,"router-outlet"),2&i&&(e.vxM(0,n.isFullPageRoute?-1:0),e.R7$(),e.vxM(1,n.isFullPageRoute?1:-1))},dependencies:[r.n3,Z.C],styles:[".setting-header[_ngcontent-%COMP%] .setting-style[_ngcontent-%COMP%]{font-size:1.75rem;font-family:Matter-Bold;text-align:start}.setting-header[_ngcontent-%COMP%] .add-member-small-text[_ngcontent-%COMP%]{font-size:14px;font-family:Matter-Regular;color:#999}.headers[_ngcontent-%COMP%]{text-align:start}.line-divider[_ngcontent-%COMP%]{margin-top:.7rem;border-bottom:1px solid rgba(0,0,0,.0784313725)}
1ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0}.list-handle[_ngcontent-%COMP%]{position:relative;z-index:3}li[_ngcontent-%COMP%]{display:inline}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-inline-end:3.6rem}a[_ngcontent-%COMP%]{color:#000;font-family:Matter SemiBold}.active[_ngcontent-%COMP%]{border-bottom:3px solid black;padding-bottom:.8rem;font-family:Matter-Bold!important}.style-li[_ngcontent-%COMP%]{font-family:Matter-Regular}.back-button[_ngcontent-%COMP%]{background-color:#dfe1e4;display:flex;padding:5px;border-radius:27px;cursor:pointer}@media (max-width: 576px){.setting-header[_ngcontent-%COMP%] .setting-style[_ngcontent-%COMP%]{font-size:1.3rem}}@media (max-width: 992px){.setting-header[_ngcontent-%COMP%]{padding:0!important}.setting-header[_ngcontent-%COMP%] .setting-style[_ngcontent-%COMP%]{padding-inline-start:30px}.headers[_ngcontent-%COMP%]{height:40px;overflow-x:auto}.headers[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{min-width:397px}.headers[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.line-divider[_ngcontent-%COMP%]{margin-top:-.2rem}}"]})}return o})();var Dt=c(91993),ee=c(10579),te=c(81359),St=c(79033),ne=c(1838);let jt=(()=>{class o{constructor(){this.showModal=!1,this.title="",this.description="",this.buttonLabel="Close",this.width="400",this.closed=new e.bkB}onClose(){this.closed.emit()}static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-bp-status-modal"]],inputs:{showModal:"showModal",title:"title",description:"description",buttonLabel:"buttonLabel",width:"width"},outputs:{closed:"closed"},standalone:!0,features:[e.aNF],decls:13,vars:10,consts:[[3,"userInput","showText","showModal","showCloseButton","showFace","showButton","width"],[1,"status-modal","position-relative","p-4"],[1,"material-icons","status-modal-close","position-absolute","cursor-pointer",3,"click"],[1,"status-modal-content","d-flex","flex-column","align-items-center","justify-content-center","text-center","gap"],[1,"status-modal-icon","d-flex","align-items-center","justify-content-center"],[1,"material-icons"],[1,"status-modal-title","mb-0"],[1,"status-modal-desc","mb-0"],["fontSize","14px","buttonSize","xs",3,"clickEvent","label","type"]],template:function(i,n){1&i&&(e.j41(0,"app-modal",0),e.bIt("userInput",function(){return n.onClose()}),e.j41(1,"div",1)(2,"span",2),e.bIt("click",function(){return n.onClose()}),e.EFF(3,"close"),e.k0s(),e.j41(4,"div",3)(5,"div",4)(6,"span",5),e.EFF(7,"check_circle"),e.k0s()(),e.j41(8,"h5",6),e.EFF(9),e.k0s(),e.j41(10,"p",7),e.EFF(11),e.k0s(),e.j41(12,"app-bp-button-v2",8),e.bIt("clickEvent",function(){return n.onClose()}),e.k0s()()()()),2&i&&(e.Y8G("showText",!1)("showModal",n.showModal)("showCloseButton",!1)("showFace",!1)("showButton",!1)("width",n.width),e.R7$(9),e.JRh(n.title),e.R7$(2),e.JRh(n.description),e.R7$(),e.Y8G("label",n.buttonLabel)("type","primary"))},dependencies:[$.G,G.z,y.s],styles:[".status-modal[_ngcontent-%COMP%] .status-modal-close[_ngcontent-%COMP%]{top:16px;right:16px;font-size:18px;color:var(--background-neutral-700)}.status-modal[_ngcontent-%COMP%] .status-modal-content[_ngcontent-%COMP%]{padding:12px 0 4px}.status-modal[_ngcontent-%COMP%] .status-modal-icon[_ngcontent-%COMP%]{width:48px;height:48px;border-radius:12px;background:var(--background-base-light)}.status-modal[_ngcontent-%COMP%] .status-modal-icon[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--success-color);font-size:28px}.status-modal[_ngcontent-%COMP%] .status-modal-title[_ngcontent-%COMP%]{font-family:Matter-SemiBold;font-size:18px;color:var(--background-neutral-800)}.status-modal[_ngcontent-%COMP%] .status-modal-desc[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:12px;color:var(--background-neutral-700);max-width:320px}"]})}return o})();function Ft(o,s){if(1&o&&(e.j41(0,"div",10),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.JRh(t.warningText)}}let Vt=(()=>{class o{constructor(){this.showModal=!1,this.title="",this.description="",this.warningText="",this.cancelLabel="Cancel",this.confirmLabel="Confirm",this.userInput=new e.bkB,this.modalId=`mfa-remove-confirm-${(0,J.A)()}`}ngOnChanges(t){if(t.showModal){if(t.showModal.currentValue)return void setTimeout(()=>{(0,k.Jr)(this.modalId,{backdrop:"static",keyboard:!1})},0);t.showModal.previousValue&&(0,k.W5)(this.modalId)}}onCancel(){this.userInput.emit(!1)}onConfirm(){this.userInput.emit(!0)}static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-mfa-remove-confirm"]],inputs:{showModal:"showModal",title:"title",description:"description",warningText:"warningText",cancelLabel:"cancelLabel",confirmLabel:"confirmLabel"},outputs:{userInput:"userInput"},standalone:!0,features:[e.OA$,e.aNF],decls:19,vars:6,consts:[["tabindex","-1","role","dialog","aria-modal","true",1,"modal","fade","mfa-remove-confirm-modal",3,"click","id"],["role","document",1,"modal-dialog","modal
1-dialog-centered","mfa-remove-confirm-dialog"],[1,"modal-content","mfa-remove-confirm-content","d-flex","align-items-center","justify-content-center",3,"click"],[1,"modal-section-content","d-flex","flex-column","align-items-center","justify-content-center"],["type","button","aria-label","Close",1,"mfa-remove-confirm-close","d-flex","align-items-center","justify-content-center",3,"click"],[1,"material-icons"],[1,"mfa-remove-confirm-icon","d-flex","align-items-center","justify-content-center"],[1,"d-flex","justify-content-center","align-items-center","gap","flex-column"],[1,"mfa-remove-confirm-title","m-0"],[1,"mfa-remove-confirm-description","m-0"],[1,"mfa-remove-confirm-warning"],[1,"d-flex","justify-content-end","mfa-remove-confirm-footer"],["type","secondary","buttonSize","auto","fontSize","14px",3,"clickEvent","label"],["type","danger-fill","buttonSize","auto","fontSize","14px",3,"clickEvent","label"]],template:function(i,n){1&i&&(e.j41(0,"div",0),e.bIt("click",function(){return n.onCancel()}),e.j41(1,"div",1)(2,"div",2),e.bIt("click",function(l){return l.stopPropagation()}),e.j41(3,"div",3)(4,"button",4),e.bIt("click",function(){return n.onCancel()}),e.j41(5,"span",5),e.EFF(6,"close"),e.k0s()(),e.j41(7,"div",6)(8,"span",5),e.EFF(9,"info"),e.k0s()(),e.j41(10,"div",7)(11,"h2",8),e.EFF(12),e.k0s(),e.j41(13,"p",9),e.EFF(14),e.k0s()(),e.DNE(15,Ft,2,1,"div",10),e.k0s(),e.j41(16,"div",11)(17,"app-bp-button-v2",12),e.bIt("clickEvent",function(){return n.onCancel()}),e.k0s(),e.j41(18,"app-bp-button-v2",13),e.bIt("clickEvent",function(){return n.onConfirm()}),e.k0s()()()()()),2&i&&(e.Y8G("id",n.modalId),e.R7$(12),e.JRh(n.title),e.R7$(2),e.JRh(n.description),e.R7$(),e.vxM(15,n.warningText?15:-1),e.R7$(2),e.Y8G("label",n.cancelLabel),e.R7$(),e.Y8G("label",n.confirmLabel))},dependencies:[y.s],styles:[".mfa-remove-confirm-modal[_ngcontent-%COMP%] .mfa-remove-confirm-dialog[_ngcontent-%COMP%]{width:450px;max-width:calc(100% - 32px)}.mfa-remove-confirm-modal[_ngcontent-%COMP%] .mfa-remove-confirm-dialog[_ngcontent-%COMP%] .mfa-remove-confirm-content[_ngcontent-%COMP%]{position:relative;border:none;border-radius:.75rem;background:var(--white-bg);box-shadow:0 10px 32px #0000001f}.mfa-remove-confirm-modal[_ngcontent-%COMP%] .mfa-remove-confirm-dialog[_ngcontent-%COMP%] .mfa-remove-confirm-content[_ngcontent-%COMP%] .modal-section-content[_ngcontent-%COMP%]{padding:1.25rem;gap:1.5rem}.mfa-remove-confirm-modal[_ngcontent-%COMP%] .mfa-remove-confirm-dialog[_ngcontent-%COMP%] .mfa-remove-confirm-close[_ngcontent-%COMP%]{position:absolute;top:16px;right:16px;width:28px;height:28px;border:none;background:transparent;border-radius:6px;color:var(--background-neutral-700);cursor:pointer;padding:0}.mfa-remove-confirm-modal[_ngcontent-%COMP%] .mfa-remove-confirm-dialog[_ngcontent-%COMP%] .mfa-remove-confirm-close[_ngcontent-%COMP%]:hover{background:var(--background-base-secondary);color:var(--background-neutral-800)}.mfa-remove-confirm-modal[_ngcontent-%COMP%] .mfa-remove-confirm-dialog[_ngcontent-%COMP%] .mfa-remove-confirm-icon[_ngcontent-%COMP%]{width:36px;height:36px;padding:6px;border-radius:.5rem;background:var(--bp-background-sentiment-rejected)}.mfa-remove-confirm-modal[_ngcontent-%COMP%] .mfa-remove-confirm-dialog[_ngcontent-%COMP%] .mfa-remove-confirm-icon[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--bp-text-sentiment-rejected)}.mfa-remove-confirm-modal[_ngcontent-%COMP%] .mfa-remove-confirm-dialog[_ngcontent-%COMP%] .mfa-remove-confirm-title[_ngcontent-%COMP%]{font-family:Matter-SemiBold;font-size:18px;line-height:28px;color:var(--background-neutral-800);text-align:center}.mfa-remove-confirm-modal[_ngcontent-%COMP%] .mfa-remove-confirm-dialog[_ngcontent-%COMP%] .mfa-remove-confirm-description[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:14px;line-height:20px;color:var(--background-neutral-700);text-align:center}.mfa-remove-confirm-modal[_ngcontent-%COMP%] .mfa-remove-confirm-dialog[_ngcontent-%COMP%] .mfa-remove-confirm-warning[_ngcontent-%COMP%]{width:100%;min-height:72px;padding:16px;border-radius:8px;background:var(--bp-background-sentiment-rejected);color:var(--bp-text-sentiment-rejected);font-family:Matter-Regular;font-size:14px;line-height:20px;text-align:left;display:flex;align-items:center;gap:8px}.mfa-remove-confirm-modal[_ngcontent-%COMP%] .mfa-remove-confirm-dialog[_ngcontent-%COMP%] .mfa-remove-confirm-footer[_ngcontent-%COMP%]{width:100%;gap:12px;border-top:1px solid var(--bp-dark-border);padding:1.25rem}@media (max-width: 576px){.mfa-remove-confirm-modal[_ngcontent-%COMP%] .mfa-remove-confirm-dialog[_ngcontent-%COMP%]{width:95%;margin:auto}.mfa-remove-confirm-modal[_ngcontent-%COMP%] .mfa-remove-confirm-dialog[_ngcontent-%COMP%] .mfa-remove-confirm-content[_ngcontent-%COMP%]{padding:24px 18px}}"]})}return o}
1)();var Bt=c(64655),At=c(47198);const Nt=o=>({"platform-modal-bottom-border":o}),Gt=o=>({"platform-modal-padding-top":o}),Lt=(o,s)=>({"recovery-banner-archived":o,"recovery-banner-downloadable":s});function $t(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",1)(1,"div",15)(2,"span",16),e.nrm(3,"img",17),e.k0s(),e.j41(4,"div",18)(5,"div",19)(6,"span",20),e.EFF(7),e.k0s(),e.nrm(8,"app-bp-chip",21),e.k0s(),e.j41(9,"span",22),e.EFF(10),e.k0s()()(),e.j41(11,"app-bp-button-v2",23),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.removeEmailMfa())}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(7),e.JRh(t.staticText.emailTitle),e.R7$(),e.Y8G("text",t.staticText.active),e.R7$(2),e.JRh(t.staticText.emailDesc),e.R7$(),e.Y8G("label",t.staticText.remove)("type","outlined-red")}}function Xt(o,s){if(1&o){const t=e.RV6();e.j41(0,"app-bp-button-v2",23),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.removeAppMfa())}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",t.staticText.remove)("type","outlined-red")}}function Ut(o,s){if(1&o){const t=e.RV6();e.j41(0,"app-bp-button-v2",29),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.startAuthenticatorSetup())}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",t.staticText.continueSetup)("type","secondary")}}function zt(o,s){if(1&o&&(e.j41(0,"div",1)(1,"div",24)(2,"span",16),e.nrm(3,"img",25),e.k0s(),e.j41(4,"div",18)(5,"div",26)(6,"span",20),e.EFF(7),e.k0s(),e.nrm(8,"app-bp-chip",27),e.k0s(),e.j41(9,"span",22),e.EFF(10),e.k0s()()(),e.DNE(11,Xt,1,2,"app-bp-button-v2",28)(12,Ut,1,2),e.k0s()),2&o){const t=e.XpG();e.R7$(7),e.JRh(t.staticText.appTitle),e.R7$(),e.Y8G("text",t.mfaAppActive?t.staticText.active:t.staticText.pending)("variant",t.mfaAppActive?"success":"warning"),e.R7$(2),e.JRh(t.staticText.appDesc),e.R7$(),e.vxM(11,t.mfaAppActive?11:12)}}function Yt(o,s){if(1&o&&(e.j41(0,"p",2),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.SpI(" ",t.staticText.mfaDesc," ")}}function Jt(o,s){if(1&o&&(e.j41(0,"div",32)(1,"small",35),e.EFF(2),e.k0s()()),2&o){const t=e.XpG(2);e.R7$(2),e.SpI(" ",t.staticText.recoveryDownloadWarning," ")}}function qt(o,s){if(1&o&&(e.j41(0,"div",32)(1,"small",36),e.EFF(2),e.k0s()()),2&o){const t=e.XpG(2);e.R7$(2),e.JRh(t.staticText.regenerateHint)}}function Wt(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",3)(1,"div",30)(2,"div",31),e.EFF(3),e.k0s(),e.DNE(4,Jt,3,1,"div",32)(5,qt,3,1,"div",32),e.k0s(),e.j41(6,"div",33)(7,"app-bp-button-v2",34),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.downloadRecoveryCodes())}),e.k0s()()()}if(2&o){const t=e.XpG();e.Y8G("ngClass",e.l_i(7,Lt,"archived"===t.recoveryCodesCardState,"downloadable"===t.recoveryCodesCardState)),e.R7$(3),e.JRh(t.staticText.recoveryCodesBanner||"These codes will not be available to download once you leave this page."),e.R7$(),e.vxM(4,"downloadable"===t.recoveryCodesCardState?4:-1),e.R7$(),e.vxM(5,"archived"===t.recoveryCodesCardState?5:-1),e.R7$(2),e.Y8G("label",t.getRecoveryCodeActionLabel())("type","outlined")("disabled","downloadable"!==t.recoveryCodesCardState)}}function Ht(o,s){if(1&o){const t=e.RV6();e.j41(0,"app-bp-button-v2",37),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.onModalDisplay("open"))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("label",t.staticText.addMfaMethod)("type","primary")}}function Kt(o,s){1&o&&e.nrm(0,"p",9)}function Qt(o,s){if(1&o&&(e.j41(0,"p",10),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.JRh(t.staticText.emailSetupDesc)}}function Zt(o,s){if(1&o&&(e.j41(0,"p",10),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.JRh(t.staticText.emailVerifyDesc)}}function en(o,s){if(1&o&&(e.j41(0,"p",10),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.JRh(t.staticText.appSetupDesc)}}function tn(o,s){if(1&o&&(e.j41(0,"p",10),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.JRh(t.staticText.disableDesc)}}function nn(o,s){if(1&o){const t=e.RV6();e.j41(0,"app-bp-radio-card-group-component",38),e.bIt("selectionChange",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.selectInModal(n))}),e.k0s(),e.j41(1,"div",39)(2,"app-bp-button-v2",40),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.confirmSelection())}),e.k0s()()}if(2&o){const t=e.XpG();e.Y8G("options",t.methodOptions)("selectedValue",t.selectedMethod),e.R7$(2),e.Y8G("label",t.staticText.continue)("disabled",!t.selectedMethod)}}function on(o,s){if(1&o){const t=e.RV6();e.j41(0,"p",41),e.EFF(1),e.k0s(),e.nrm(2,"app-bp-mui-input",42),e.j41(3,"div",43)(4,"app-bp-button-v2",29),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.closeModal())}),e.k0s(),e.j41(5,"app-bp-button-v2",29),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.sendEmailSetupCode())}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(),e.JRh(t.staticText.emailSetupInfo),e.R7$(),e.Y8G("labelText",t.staticText.emailIdLabel)("value",t.profileEmail)("disabled",!0),e.R7$(2),e.Y8G("label",t.staticText.discard)("type","secondary"),e.R7$(),e.Y8G("label",t.staticText.sendCode)("type","primary")}}function an(o,s){if(1&o){const t=e.RV6();e.j41(0,"p",41),e.EFF(1),e.j41(2,"strong",44),e.EFF(3),e.k0s()(),e.j41(4,"app-bp-mui-input",45),e.bIt("inputChange",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.verificationCode=null==n||null==n.target?null:n.target.value)})("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return a.verificationCode=null==n||null==n.target?null:n.target.value,e.Njj(a.onEnterSubmit(n,"verify"))}),e.k0s(),e.j41(5,"div",43)(6,"app-bp-button-v2",29),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.closeModal())}),e.k0s(),e.j41(7,"app-bp-button-v2",46),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.verifyEmailSetup())}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(),e.SpI(" ",t.staticText.emailEnterCodeInfo||"Enter the verification code sent to"," "),e.R7$(2),e.JRh(t.profileEmail||"-"),e.R7$(),e.Y8G("labelText",t.staticText.emailCodeLabel)("placeholder",t.staticText.emailCodePlaceholder||"Eg: ABC123")("value",t.verificationCode)("inputmode","numeric")("maxLength",6),e.R7$(2),e.Y8G("label",t.staticText.discard)("type","secondary"),e.R7$(),e.Y8G("label",t.staticText.verify)("type","primary")("disabled",!t.verificationCode)}}function sn(o,s){if(1&o&&e.nrm(0,"img",61),2&o){const t=e.XpG(2);e.Y8G("src",t.qrDataUrl,e.B4B)}}function rn(o,s){if(1&o&&(e.j41(0,"span",75),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.JRh(t.staticText.qrUnavailable)}}function cn(o,s){if(1&o){const t=e.RV6();e.j41(0,"div",47)(1,"div",48)(2,"span",49),e.EFF(3,"1"),e.k0s(),e.j41(4,"div",50)(5,"div",51),e.EFF(6),e.k0s(),e.j41(7,"div",52),e.EFF(8),e.k0s()()(),e.j41(9,"div",48)(10,"span",49),e.EFF(11,"2"),e.k0s(),e.j41(12,"div",50)(13,"div",51),e.EFF(14),e.k0s()()()(),e.j41(15,"div",53)(16,"div",54)(17,"div",55)(18,"span",56),e.nrm(19,"img",57
1),e.k0s(),e.j41(20,"div",58),e.EFF(21),e.k0s()(),e.j41(22,"div",59),e.EFF(23),e.k0s(),e.j41(24,"div",60),e.DNE(25,sn,1,1,"img",61)(26,rn,2,1),e.k0s()(),e.j41(27,"span",62),e.EFF(28),e.k0s(),e.j41(29,"div",54)(30,"div",63)(31,"span",56),e.nrm(32,"img",64),e.k0s(),e.j41(33,"div",58),e.EFF(34),e.k0s()(),e.j41(35,"div",59),e.EFF(36),e.k0s(),e.j41(37,"div",65),e.EFF(38),e.k0s(),e.j41(39,"div",66)(40,"app-bp-button-v2",67),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.copySecretKey())}),e.k0s()()()(),e.j41(41,"div",68)(42,"span",49),e.EFF(43,"3"),e.k0s(),e.j41(44,"div",69)(45,"div",70),e.EFF(46),e.k0s(),e.j41(47,"div",71)(48,"div")(49,"app-bp-mui-input",72),e.bIt("inputChange",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.authAppCode=null==n||null==n.target?null:n.target.value)})("keyupEvent",function(n){e.eBV(t);const a=e.XpG();return a.authAppCode=null==n||null==n.target?null:n.target.value,e.Njj(a.onEnterSubmit(n,"authApp"))}),e.k0s()(),e.j41(50,"div",73)(51,"app-bp-button-v2",74),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.completeAppVerification())}),e.k0s()()()()()}if(2&o){const t=e.XpG();e.R7$(6),e.JRh(t.staticText.stepOne),e.R7$(2),e.JRh(t.staticText.stepOneHint),e.R7$(6),e.JRh(t.staticText.stepTwo),e.R7$(7),e.JRh(t.staticText.scanQrTitle),e.R7$(2),e.JRh(t.staticText.scanQrDesc),e.R7$(2),e.vxM(25,t.qrDataUrl?25:26),e.R7$(3),e.JRh(t.staticText.or),e.R7$(6),e.JRh(t.staticText.enterCodeTitle),e.R7$(2),e.JRh(t.staticText.enterCodeDesc),e.R7$(2),e.JRh(t.secretKey),e.R7$(2),e.Y8G("label",t.secretKeyCopied?t.staticText.copied||"Copied!":t.staticText.copyCode)("type","outlined"),e.R7$(6),e.JRh(t.staticText.verifyAppCodeLabel),e.R7$(3),e.Y8G("labelText",t.staticText.enterCode)("placeholder",t.staticText.enterCodePlaceholder)("showLabel",!1)("value",t.authAppCode)("inputmode","numeric")("maxLength",6),e.R7$(2),e.Y8G("label",t.staticText.verify)("type","primary")("disabled",!t.authAppCode)}}function ln(o,s){if(1&o){const t=e.RV6();e.j41(0,"app-bp-radio-card-group-component",38),e.bIt("selectionChange",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.selectDisableVerificationMethod(n))}),e.k0s(),e.j41(1,"div",76)(2,"app-bp-button-v2",46),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.proceedDisableSelection())}),e.k0s()()}if(2&o){const t=e.XpG(2);e.Y8G("options",t.disableVerificationOptions)("selectedValue",t.disableVerificationMethod),e.R7$(2),e.Y8G("label",t.staticText.continue)("type","primary")("disabled",!t.disableVerificationMethod)}}function dn(o,s){if(1&o){const t=e.RV6();e.j41(0,"p",41),e.EFF(1),e.k0s(),e.nrm(2,"app-bp-mui-input",42),e.j41(3,"div",43)(4,"app-bp-button-v2",29),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.closeModal())}),e.k0s(),e.j41(5,"app-bp-button-v2",29),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.sendDisableEmailCode())}),e.k0s()()}if(2&o){const t=e.XpG(2);e.R7$(),e.JRh(t.staticText.emailSetupInfo),e.R7$(),e.Y8G("labelText",t.staticText.emailIdLabel)("value",t.profileEmail)("disabled",!0),e.R7$(2),e.Y8G("label",t.staticText.discard)("type","secondary"),e.R7$(),e.Y8G("label",t.staticText.sendCode)("type","primary")}}function pn(o,s){if(1&o){const t=e.RV6();e.j41(0,"p",41),e.EFF(1),e.j41(2,"strong",44),e.EFF(3),e.k0s()(),e.j41(4,"app-bp-mui-input",77),e.bIt("inputChange",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.disableCode=null==n||null==n.target?null:n.target.value)})("keyupEvent",function(n){e.eBV(t);const a=e.XpG(2);return a.disableCode=null==n||null==n.target?null:n.target.value,e.Njj(a.onEnterSubmit(n,"disable"))}),e.k0s(),e.j41(5,"div",43)(6,"app-bp-button-v2",29),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.closeModal())}),e.k0s(),e.j41(7,"app-bp-button-v2",46),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.confirmDisableMethod())}),e.k0s()()}if(2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.staticText.emailEnterCodeInfo||"Enter the verification code sent to"," "),e.R7$(2),e.JRh(t.profileEmail||"-"),e.R7$(),e.Y8G("labelText",t.staticText.emailCodeLabel)("placeholder",t.staticText.emailCodePlaceholder||"Eg: ABC123")("value",t.disableCode)("maxLength",6),e.R7$(2),e.Y8G("label",t.staticText.discard)("type","secondary"),e.R7$(),e.Y8G("label",t.staticText.verify)("type","primary")("disabled",!t.disableCode)}}function mn(o,s){if(1&o){const t=e.RV6();e.j41(0,"a",79),e.bIt("click",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.toggleAppRecoveryMode())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.appRecoveryToggleLabel," ")}}function un(o,s){if(1&o){const t=e.RV6();e.j41(0,"app-bp-mui-input",45),e.bIt("inputChange",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.disableCode=null==n||null==n.target?null:n.target.value)})("keyupEvent",function(n){e.eBV(t);const a=e.XpG(2);return a.disableCode=null==n||null==n.target?null:n.target.value,e.Njj(a.onEnterSubmit(n,"disable"))}),e.k0s(),e.DNE(1,mn,2,1,"a",78),e.j41(2,"div",43)(3,"app-bp-button-v2",29),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.closeModal())}),e.k0s(),e.j41(4,"app-bp-button-v2",46),e.bIt("clickEvent",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.confirmDisableMethod())}),e.k0s()()}if(2&o){const t=e.XpG(2);e.Y8G("labelText",t.disableCodeLabel)("placeholder",t.disableCodeLabel)("value",t.disableCode)("inputmode",t.isVerifyingWithRecoveryCode?null:"numeric")("maxLength",t.isVerifyingWithRecoveryCode?4096:6),e.R7$(),e.vxM(1,t.canUseRecoveryCode?1:-1),e.R7$(2),e.Y8G("label",t.staticText.discard)("type","secondary"),e.R7$(),e.Y8G("label",t.staticText.verify)("type","primary")("disabled",!t.disableCode)}}function gn(o,s){if(1&o&&e.DNE(0,ln,3,5)(1,dn,6,8)(2,pn,8,11)(3,un,5,11),2&o){const t=e.XpG();e.vxM(0,"select"===t.disableView?0:-1),e.R7$(),e.vxM(1,"sendEmail"===t.disableView?1:-1),e.R7$(),e.vxM(2,"verifyEmail"
1===t.disableView?2:-1),e.R7$(),e.vxM(3,"verifyApp"===t.disableView?3:-1)}}let ie=(()=>{class o{constructor(t,i,n,a,l){this.languageService=t,this.store=i,this.authService=n,this.sharedService=a,this.mixpanel=l,this.modalConfig={isOpen:!1,showText:!1,showCloseButton:!1,showFace:!1,showButton:!1,title:""},this.showSuccessModal=!1,this.successTitle="",this.successDesc="",this.mfaEmailActive=!1,this.mfaAppActive=!1,this.mfaAppPending=!1,this.recoveryCodesGenerated=!1,this.recoveryCodesRemaining=0,this.recoveryCodes=[],this.recoveryCodesGeneratedAt="",this.modalStep="select",this.selectedMethod="email",this.methodOptions=[],this.profileEmail="",this.verificationCode="",this.authAppCode="",this.secretKey="",this.qrDataUrl="",this.disableTargetMethod=null,this.disableVerificationMethod=null,this.disableVerificationOptions=[],this.disableCode="",this.hasSentDisableOtp=!1,this.disableView="select",this.showFinalRemoveConfirmModal=!1,this.finalRemoveConfirmTitle="",this.finalRemoveConfirmDescription="",this.finalRemoveConfirmWarning="",this.mfaSettings=null,this.isProcessing=!1,this.agencySupportEmail="",this.secretKeyCopied=!1,this.userId="",this.copyCodeTimer=null,this.statusChange=new e.bkB,this.staticText=this.languageService.getStaticText().settings.mfa,this.modalConfig.title=this.staticText.modalTitle,this.buildMethodOptions(),this.storeSubscription$=this.store.select(h=>h).subscribe(({profile:h,agencyDetails:_})=>{this.profileEmail=h?.contact?.email||"",this.agencySupportEmail=_?.contact?.email||"",this.userId=h?._id||""})}ngOnInit(){this.refreshSettings()}ngOnDestroy(){this.storeSubscription$?.unsubscribe(),this.copyCodeTimer&&clearTimeout(this.copyCodeTimer)}refreshSettings(){var t=this;return(0,m.A)(function*(){try{const i=yield t.authService.getMfaSettings();t.mfaSettings=i,t.mfaEmailActive=!!i?.methods?.email?.enabled,t.mfaAppActive="ACTIVE"===i?.methods?.totp?.enrollmentStatus,t.mfaAppPending="PENDING"===i?.methods?.totp?.enrollmentStatus,t.recoveryCodesGenerated=!!i?.recoveryCodes?.generated,t.recoveryCodesRemaining=i?.recoveryCodes?.remainingCount||0,t.recoveryCodesGenerated||(t.recoveryCodes=[],t.recoveryCodesGeneratedAt=""),t.buildMethodOptions(),t.emitStatus()}catch(i){t.sharedService.showToast("error","",i?.message||i||t.staticText.unabletoFetch)}})()}onModalDisplay(t){if("open"===t){if(this.buildMethodOptions(),!this.methodOptions.some(n=>!n.disabled))return;return this.modalConfig.isOpen=!0,this.modalStep="select",void(this.modalConfig.title=this.staticText.modalTitle)}this.closeModal()}selectInModal(t){this.selectedMethod=t}selectDisableVerificationMethod(t){this.disableVerificationMethod=t,this.disableCode="",this.hasSentDisableOtp=!1}confirmSelection(){var t=this;return(0,m.A)(function*(){if(t.selectedMethod){if(t.mixpanel.trackEvent("security_mfa_setup_initiated",{user_id:t.userId,panel:"security",method:"app"===t.selectedMethod?"authenticator":"email"}),"email"===t.selectedMethod)return t.modalStep="emailSetup",void(t.modalConfig.title=t.staticText.emailSetupTitle);yield t.startAuthenticatorSetup()}})()}sendEmailSetupCode(){var t=this;return(0,m.A)(function*(){t.isProcessing=!0,t.sharedService.loader("start");try{yield t.authService.sendMfaEmailSetupOtp(),t.sharedService.showToast("success","",t.staticText.verificationCodeSent||"Verification code sent. Please check your email"),t.modalStep="verify",t.modalConfig.title=t.staticText.emailVerifyTitle}catch{t.sharedService.showToast("error","",t.buildSendCodeErrorMessage())}finally{t.isProcessing=!1,t.sharedService.loader("stop")}})()}onEnterSubmit(t,i){if("Enter"===t.key){if("verify"===i&&this.verificationCode.trim())return void this.verifyEmailSetup();if("authApp"===i&&this.authAppCode.trim())return void this.completeAppVerification();"disable"===i&&this.disableCode.trim()&&this.disableVerificationMethod&&this.confirmDisableMethod()}}verifyEmailSetup(){var t=this;return(0,m.A)(function*(){t.verificationCode&&(yield t.runAction((0,m.A)(function*(){yield t.authService.verifyMfaEmailSetupOtp(t.verificationCode.trim()),yield t.refreshSettings(),t.modalConfig.isOpen=!1,t.successTitle=t.staticText.emailSuccessTitle,t.successDesc=t.staticText.emailSuccessDesc,t.showSuccessModal=!0,t.verificationCode="",t.mixpanel.trackEvent("security_mfa_setup_completed",{user_id:t.userId,panel:"security",method:"email"}),t.sharedService.showToast("success","",t.staticText.mfaEnabledSuccess||"Multi-factor authentication enabled successfully. Verification will be required during future sign-ins.")}
1)))})()}startAuthenticatorSetup(){var t=this;return(0,m.A)(function*(){yield t.runAction((0,m.A)(function*(){const i=yield t.authService.beginMfaTotpEnrollment();t.secretKey=i.manualEntryKey,t.qrDataUrl=i.qrDataUrl,t.modalStep="authApp",t.modalConfig.title=t.staticText.appSetupTitle,t.modalConfig.isOpen=!0}))})()}completeAppVerification(){var t=this;return(0,m.A)(function*(){t.authAppCode&&(yield t.runAction((0,m.A)(function*(){const i=yield t.authService.confirmMfaTotpEnrollment(t.authAppCode.trim()),n=yield t.authService.generateMfaRecoveryCodes(i.recoveryCodeGrantToken);t.recoveryCodes=n.codes||[],t.recoveryCodesGeneratedAt=n.generatedAt||"",yield t.refreshSettings(),t.modalConfig.isOpen=!1,t.successTitle=t.staticText.appSuccessTitle,t.successDesc=t.staticText.appSuccessDesc,t.showSuccessModal=!0,t.authAppCode="",t.mixpanel.trackEvent("security_mfa_setup_completed",{user_id:t.userId,panel:"security",method:"authenticator"}),t.sharedService.showToast("success","",t.staticText.mfaEnabledSuccess||"Multi-factor authentication enabled successfully. Verification will be required during future sign-ins.")})))})()}openDisableModal(t){var i=this;return(0,m.A)(function*(){if(i.disableTargetMethod=t,i.disableVerificationOptions=i.getDisableVerificationOptions(t),!i.disableVerificationOptions.length)return void i.sharedService.showToast("warning","",i.staticText.noVerificationMethod);i.modalConfig.isOpen=!0,i.modalStep="disable",i.disableView="select",i.modalConfig.title=i.getDisableModalTitle(t);const n=t,a=i.disableVerificationOptions.find(l=>l.value===n);i.disableVerificationMethod=a?.value??i.disableVerificationOptions[0].value,i.disableCode="",i.hasSentDisableOtp=!1,1===i.disableVerificationOptions.length&&i.proceedDisableSelection()})()}proceedDisableSelection(){if(this.disableVerificationMethod){if(this.disableCode="",this.modalConfig.title=this.getDisableModalTitle(this.disableTargetMethod),"EMAIL_OTP"===this.disableVerificationMethod)return void(this.disableView="sendEmail");this.disableView="verifyApp"}}getDisableModalTitle(t){return"EMAIL_OTP"===t?this.staticText.removeEmailTitle||this.staticText.disableTitle:"TOTP"===t&&this.staticText.removeTotpTitle||this.staticText.disableTitle}sendDisableEmailCode(){var t=this;return(0,m.A)(function*(){if(t.disableTargetMethod&&"EMAIL_OTP"===t.disableVerificationMethod){t.isProcessing=!0,t.sharedService.loader("start");try{yield t.authService.sendMfaDisableVerificationOtp(t.disableTargetMethod),t.sharedService.showToast("success","",t.staticText.verificationCodeSent||"Verification code sent. Please check your email"),t.hasSentDisableOtp=!0,t.disableView="verifyEmail"}catch{t.sharedService.showToast("error","",t.buildSendCodeErrorMessage())}finally{t.isProcessing=!1,t.sharedService.loader("stop")}}})()}confirmDisableMethod(){!this.disableTargetMethod||!this.disableVerificationMethod||!this.disableCode||(this.finalRemoveConfirmTitle="TOTP"===this.disableTargetMethod?this.staticText.removeTotpTitle:this.staticText.removeEmailTitle,this.finalRemoveConfirmDescription="TOTP"===this.disableTargetMethod?this.staticText.removeTotpDesc:this.staticText.removeEmailDesc,this.finalRemoveConfirmWarning=this.staticText.removeSecurityWarning,this.modalConfig.isOpen=!1,this.showFinalRemoveConfirmModal=!0)}handleFinalRemoveConfirmation(t){var i=this;return(0,m.A)(function*(){if(i.showFinalRemoveConfirmModal=!1,t)if(i.disableTargetMethod&&i.disableVerificationMethod&&i.disableCode){i.isProcessing=!0,i.sharedService.loader("start");try{yield i.authService.disableMfaMethod({targetMethod:i.disableTargetMethod,verificationMethod:i.disableVerificationMethod,code:i.disableCode.trim()}),i.mixpanel.trackEvent("security_mfa_removed",{user_id:i.userId,panel:"security",method:"TOTP"===i.disableTargetMethod?"authenticator":"email"}),yield i.refreshSettings(),i.closeModal()}catch(n){i.sharedService.showToast("error","",i.getErrorMessage(n)),i.disableCode="",i.modalConfig.isOpen=!0}finally{i.isProcessing=!1,i.sharedService.loader("stop")}}else i.closeModal();else i.closeModal()})()}copySecretKey(){navigator.clipboard.writeText(this.secretKey),this.sharedService.showToast("success","",this.staticText.secretKeyCopied),this.secretKeyCopied=!0,this.copyCodeTimer&&clearTimeout(this.copyCodeTimer),this.copyCodeTimer=setTimeout(()=>{this.secretKeyCopied=!1,this.copyCodeTimer=null},5e3)}copyRecoveryCodes(){this.recoveryCodes.length&&(navigator.clipboard.writeText(this.recoveryCodes.join("\n")),this.sharedService.showToast("success","",this.staticText.recoveryCodeCopied))}downloadRecoveryCodes(){if(!this.recoveryCodes.length)return;const t=new Blob([this.recoveryCodes.join("\n")],{type:"text/plain;charset=utf-8"}),i=document.createElement("a");i.href=URL.createObjectURL(t),i.download="mfa-recovery-codes.txt",i.click(),URL.revokeObjectURL(i.href)}getRecoveryCodeActionLabel(){return this.staticText.downloadRecoveryCode||this.staticText.downloadRecovery}closeModal(){this.modalConfig.isOpen=!1,this.modalStep="select",this.modalConfig.title=this.staticText.modalTitle,this.verificationCode="",this.authAppCode="";const t=this.methodOptions.find(i=>!i.disabled);this.selectedMethod=t?t.value:"email",this.secretKey="",this.qrDataUrl="",this.disableTargetMethod=null,this.disableVerificationMethod=null,this.disableVerificationOptions=[],this.disableCode="",this.hasSentDisableOtp=!1,this.disableView="select",this.show
1FinalRemoveConfirmModal=!1}closeSuccessModal(){this.showSuccessModal=!1}removeEmailMfa(){this.openDisableModal("EMAIL_OTP")}removeAppMfa(){this.openDisableModal("TOTP")}get showAddMfaButton(){return!this.mfaEmailActive||!this.mfaAppActive&&!this.mfaAppPending}get showRecoveryCodesCard(){return"hidden"!==this.recoveryCodesCardState}get recoveryCodesCardState(){return!this.recoveryCodesGenerated||this.isMfaFullyDisabled?"hidden":this.recoveryCodes.length?"downloadable":"archived"}get isMfaFullyDisabled(){return!this.mfaEmailActive&&!this.mfaAppActive&&!this.mfaAppPending}get hasDownloadableRecoveryCodes(){return"downloadable"===this.recoveryCodesCardState}get disableModalSubtitle(){return"EMAIL_OTP"===this.disableTargetMethod?this.staticText.targetEmail:this.staticText.targetApp}get disableCodeLabel(){return"RECOVERY_CODE"===this.disableVerificationMethod?this.staticText.recoveryVerifyTitle:this.staticText.verificationCode}emitStatus(){this.statusChange.emit({emailActive:this.mfaEmailActive,appActive:this.mfaAppActive})}buildMethodOptions(){this.methodOptions=[{title:this.staticText.emailTitle,value:"email",description:this.staticText.emailDesc,svgIcon:"assets/icons/email-icon.svg",iconSize:"24px",disabled:this.mfaEmailActive,chipText:this.mfaEmailActive?this.staticText.active:"",chipVariant:"success"},{title:this.staticText.appTitle,value:"app",description:this.staticText.appDesc,svgIcon:"assets/version2/icons/lock-icon.svg",iconSize:"24px",disabled:this.mfaAppActive||this.mfaAppPending,chipText:this.mfaAppActive?this.staticText.active:this.mfaAppPending?this.staticText.pending:"",chipVariant:this.mfaAppActive?"success":"warning"}];const i=this.methodOptions.find(a=>!a.disabled);!this.methodOptions.some(a=>a.value===this.selectedMethod&&!a.disabled)&&i&&(this.selectedMethod=i.value)}getDisableVerificationOptions(t){const i=[];return("EMAIL_OTP"===t||this.mfaEmailActive)&&i.push({title:this.staticText.emailOtpTitle,value:"EMAIL_OTP",description:this.staticText.emailOtpDesc,svgIcon:"assets/icons/email-icon.svg",iconSize:"24px"}),("TOTP"===t||this.mfaAppActive)&&i.push({title:this.staticText.totpVerifyTitle,value:"TOTP",description:this.staticText.totpVerifyDesc,svgIcon:"assets/version2/icons/lock-icon.svg",iconSize:"24px"}),i}toggleAppRecoveryMode(){this.disableVerificationMethod="RECOVERY_CODE"===this.disableVerificationMethod?"TOTP":"RECOVERY_CODE",this.disableCode=""}get canUseRecoveryCode(){return this.recoveryCodesGenerated&&this.recoveryCodesRemaining>0}get isVerifyingWithRecoveryCode(){return"RECOVERY_CODE"===this.disableVerificationMethod}get appRecoveryToggleLabel(){return this.isVerifyingWithRecoveryCode?this.staticText.useAuthCode||this.staticText.totpVerifyTitle:this.staticText.useRecoveryCode||this.staticText.recoveryVerifyTitle}runAction(t){var i=this;return(0,m.A)(function*(){i.isProcessing=!0,i.sharedService.loader("start");try{yield t()}catch(n){i.sharedService.showToast("error","",i.getErrorMessage(n))}finally{i.isProcessing=!1,i.sharedService.loader("stop")}})()}buildSendCodeErrorMessage(){return this.agencySupportEmail?`${this.staticText.sendCodeFailedWithSupport||"Failed to send verification code. Please try again later, or contact support at"} ${this.agencySupportEmail}`:this.staticText.sendCodeFailed||"Failed to send verification code. Please try again later."}getErrorMessage(t){return t instanceof Error?t.message:"string"==typeof t?t:"object"==typeof t&&null!==t&&"message"in t&&"string"==typeof t.message?t.message:this.staticText.somethingWentWrong}static#e=this.\u0275fac=function(i){return new(i||o)(e.rXU(f.g),e.rXU(C.il),e.rXU(u.k),e.rXU(p.d),e.rXU(v.U))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-mfa"]],outputs:{statusChange:"statusChange"},standalone:!0,features:[e.aNF],decls:27,vars:39,consts:[[1,"d-flex","flex-column","h-100","padding-lg","mfa-main-container",3,"ngClass"],[1,"mfa-method-row","d-flex","align-items-center","justify-content-between","flex-wrap","w-100"],[1,"mfa-helper-text","text-center"],[1,"recovery-banner","w-100","d-flex","align-items-center","justify-content-between","gap",3,"ngClass"],["
1icon","add","fontSize","14px","iconPosition","left","iconSize","18px",3,"label","type"],[3,"userInput","showText","showModal","showCloseButton","showFace","showButton","width"],[1,"platform-modal","position-relative"],[1,"d-flex","justify-content-between","align-items-start","platform-modal-header","pe-5",3,"ngClass"],[1,"platform-modal-title","d-flex","align-items-center","mb-0"],[1,"platform-modal-subtitle","mb-0"],[1,"platform-modal-subtitle","mt-1","mb-0"],[1,"material-icons","cursor-pointer","text-muted","position-absolute","platform-modal-close",3,"click"],[1,"platform-modal-container","d-flex","flex-column","gap",3,"ngClass"],[3,"userInput","showModal","title","description","warningText","cancelLabel","confirmLabel"],["width","400",3,"closed","showModal","title","description","buttonLabel"],[1,"d-flex","align-items-start","gap-2"],[1,"mfa-method-icon","d-flex","align-items-center","justify-content-center"],["src","assets/icons/email-icon.svg","alt","Email",1,"mfa-method-icon-image"],[1,"d-flex","flex-column"],[1,"d-flex","align-items-center","gap-2","mb-1"],[1,"mfa-method-title"],["variant","success",3,"text"],[1,"mfa-method-desc"],["borderRadius","0.125rem","fontSize","14px",3,"clickEvent","label","type"],[1,"d-flex","align-items-center","gap"],["src","assets/version2/icons/lock-icon.svg","alt","Authenticator"],[1,"d-flex","align-items-center","gap","mb-1"],[3,"text","variant"],["borderRadius","0.125rem","fontSize","14px",3,"label","type"],["fontSize","14px",3,"clickEvent","label","type"],[1,"flex-fill","min-w-0"],[1,"recovery-banner-message"],[1,"recovery-banner-hint"],[1,"recovery-banner-actions"],["icon","download","iconPosition","left","iconSize","18px","buttonSize","auto","fontSize","14px",3,"clickEvent","label","type","disabled"],[1,"d-block","recovery-banner-hint-small","recovery-banner-hint-warning"],[1,"d-block","recovery-banner-hint-small"],["icon","add","fontSize","14px","iconPosition","left","iconSize","18px",3,"clickEvent","label","type"],["direction","vertical","radioPosition","right",3,"selectionChange","options","selectedValue"],[1,"platform-modal-footer","platform-modal-footer-bordered","d-flex","justify-content-end"],["fontSize","14px",3,"clickEvent","label","disabled"],[1,"email-setup-info","mb-0"],["type","text",3,"labelText","value","disabled"],[1,"platform-modal-footer","d-flex","justify-content-end","mt-3","gap"],[1,"email-setup-info-email"],["type","text",3,"inputChange","keyupEvent","labelText","placeholder","value","inputmode","maxLength"],["fontSize","14px",3,"clickEvent","label","type","disabled"],[1,"auth-steps","d-flex","flex-column"],[1,"auth-step","d-flex","align-items-start"],[1,"auth-step-index","d-flex","align-items-center","justify-content-center"],[1,"auth-step-text"],[1,"auth-step-title"],[1,"auth-step-hint"],[1,"auth-panels","d-flex","align-items-stretch","position-relative"],[1,"auth-panel","d-flex","flex-column"],[1,"auth-panel-header","d-flex","align-items-center","gap"],[1,"auth-panel-icon","d-inline-flex","align-items-center","justify-content-center"],["src","assets/version2/icons/qr-code-icon.svg","alt","QR code",1,"auth-panel-icon-image"],[1,"auth-panel-title"],[1,"auth-panel-desc"],[1,"auth-qr-box","d-flex","align-items-center","justify-content-center"],["alt","QR",1,"auth-qr-box-image",3,"src"],[1,"auth-panels-divider","d-flex","align-items-center","justify-content-center"],[1,"auth-panel-header","d-flex","align-items-center"],["src","assets/version2/icons/key-icon.svg","alt","Secret key"],[1,"auth-code-box"],[1,"auth-buttons","d-flex"],["fontSize","14px","icon","content_copy","iconPosition","left","iconSize","16px",3,"clickEvent","label","type"],[1,"auth-step","auth-step-verify","d-flex","align-items-start"],[1,"auth-step-text","w-100","d-flex","flex-column"],[1,"auth-step-title","mb-2"],[1,"auth-verify","d-flex","align-items-center"],["type","text",1,"auth-verify-input",3,"inputChange","keyupEvent","labelText","placeholder","showLabel","value","inputmode","maxLength"],[1,"mb-1"],["fontSize","14px","buttonSize","auto",3,"clickEvent","label","type","disabled"],[1,"auth-panel-empty"],[1,"platform-modal-footer","d-flex","justify-content-end","mt-3"],["type","text",3,"inputChange","keyupEvent","labelText","placeholder","value","maxLength"],["role","button",1,"auth-recovery-toggle"],["role","button",1,"auth-recovery-toggle",3,"click"]],template:function(i,n){if(1&i&&(e.j41(0,"div",0),e.DNE(1,$t,12,5,"div",1)(2,zt,13,5,"div",1)(3,Yt,2,1,"p",2)(4,Wt,8,10,"div",3)(5,Ht,1,2,"app-bp-button-v2",4),e.k0s(),e.j41(6,"app-modal",5),e.bIt("userInput",function(){return n.closeModal()}),e.j41(7,"div",6)(8,"div",7)(9,"div")(10,"h5",8),e.EFF(11),e.k0s(),e.DNE(12,Kt,1,0,"p",9)(13,Qt,2,1,"p",10)(14,Zt,2,1,"p",10)(15,en,2,1,"p",10)(16,tn,2,1,"p",10),e.k0s()(),e.j41(17,"span",11),e.bIt("click",function(){return n.closeModal()}),e.EFF(18,"close"),e.k0s(),e.j41(19,"div",12),e.DNE(20,nn,3,4)(21,on,6,8)(22,an,8,12)(23,cn,52,22)(24,gn,4,4),e.k0s()()(),e.j41(25,"app-mfa-remove-confirm",13),e.bIt("userInput",function(l){return n.handleFinalRemoveConfirmation(l)}),e.k0s(),e.j41(26,"app-bp-status-modal",14),e.bIt("closed",function(){return n.closeSuccessModal()}),e.k0s()),2&i){let a,l,h,_;e.Y8G("ngClass",n.mfaEmailActive||n.mfaAppActive||n.mfaAppPending?"justify-content-start align-items-start gap-32":"justify-content-center align-items-center gap-2"),e.R7$(),e.vxM(1,n.mfaEmailActive?1:-1),e.R7$(),e.vxM(2,n.mfaAppActive||n.mfaAppPending?2:-1),e.R7$(),e.vxM(3,n.mfaEmailActive||n.mfaAppActive||n.mfaAppPending?-1:3),e.R7$(),e.vxM(4,n.showRecoveryCodesCard?4:-1),e.R7$(),e.vxM(5,n.showAddMfaButton?5:-1),e.R7$(),e.Y8G("showText",null!==(a=n.modalConfig.showText)&&void 0!==a&&a)("showModal",n.modalConfig.isOpen)("showCloseButton",null!==(l=n.modalConfig.showCloseButton)&&void 0!==l&&l)("showFace",null!==(h=n.modalConfig.showFace)&&void 0!==h&&h)("showButton",null!==(_=n.modalConfig.showButton)&&void 0!==_&&_)("width","authApp"===n.modalStep?"736":"550"),e.R7$(2),e.Y8G("ngClass",e.eq3(35,Nt,"select"!==n.modalStep)),e.R7$(3),e.JRh(n.modalConfig.title),e.R7$(),e.vxM(12,"select"===n.modalStep?12:-1),e.R7$(),e.vxM(13,"emailSetup"===n.modalStep?13:-1),e.R7$(),e.vxM(14,"verify"===n.modalStep?14:-1),e.R7$(),e.vxM(15,"authApp"===n.modalStep?15:-1),e.R7$(),e.vxM(16,"disable"===n.modalStep?16:-1),e.R7$(3),e.Y8G("ngClass",e.eq3(37,Gt,"select"!==n.modalStep)),e.R7$(),e.vxM(20,"select"===n.modalStep?20:-1),e.R7$(),e.vxM(21,"emailSetup"===n.modalStep?21:-1),e.R7$(),e.vxM(22,"verify"===n.modalStep?22:-1),e.R7$(),e.vxM(23,"authApp"===n.modalStep?23:-1),e.R7$(),e.vxM(24,"disable"===n.modalStep?24:-1),e.R7$(),e.Y8G("showModal",n.showFinalRemoveConfirmModal)("title",n.finalRemoveConfirmTitle)("description",n.finalRemoveConfirmDescription)("warningText",n.finalRemoveConfirmWarning)("cancelLabel",n.staticText.cancelRemove)("c
1onfirmLabel",n.staticText.confirmRemove),e.R7$(),e.Y8G("showModal",!0)("title",n.successTitle||n.staticText.emailSuccessTitle)("description",n.successDesc||n.staticText.emailSuccessDesc)("buttonLabel",n.staticText.close)}},dependencies:[y.s,$.G,G.z,L.v,Bt.n,At.Q,jt,b.MD,b.YU,Vt],styles:[".mfa-main-container[_ngcontent-%COMP%] .mfa-helper-text[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:14px;color:var(--dark-grey);max-width:420px}.mfa-main-container[_ngcontent-%COMP%] .mfa-method-row[_ngcontent-%COMP%]{gap:1rem}.mfa-main-container[_ngcontent-%COMP%] .mfa-method-row[_ngcontent-%COMP%] .mfa-method-icon[_ngcontent-%COMP%]{min-width:32px;height:32px;background:var(--background-neutral-100);border-radius:8px}.mfa-main-container[_ngcontent-%COMP%] .mfa-method-row[_ngcontent-%COMP%] .mfa-method-icon-image[_ngcontent-%COMP%]{width:16px;height:12px;object-fit:contain}.mfa-main-container[_ngcontent-%COMP%] .mfa-method-row[_ngcontent-%COMP%] .mfa-method-title[_ngcontent-%COMP%]{font-family:Matter-Medium;font-size:14px;color:var(--dark-grey)}.mfa-main-container[_ngcontent-%COMP%] .mfa-method-row[_ngcontent-%COMP%] .mfa-method-desc[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:12px;color:var(--grey-neutral-100)}.platform-modal-close[_ngcontent-%COMP%]{top:20px;right:20px;font-size:20px}.platform-modal-header[_ngcontent-%COMP%]{padding:24px}.platform-modal-header[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:16px}.platform-modal[_ngcontent-%COMP%] .banner.mfa-auth-notice{margin:0!important}.platform-modal-title[_ngcontent-%COMP%]{font-family:Matter-semiBold;font-size:18px;font-weight:700;color:var(--dark-grey)}.platform-modal-bottom-border[_ngcontent-%COMP%]{border-bottom:1px solid var(--bp-border-color)}.platform-modal-subtitle[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:12px;color:var(--millon-grey)}.platform-modal-container[_ngcontent-%COMP%]{padding:0 20px 20px;border-bottom-left-radius:12px;border-bottom-right-radius:12px;gap:24px}.platform-modal-footer-bordered[_ngcontent-%COMP%]{border-top:1px solid var(--bp-border-color);margin-left:-20px;margin-right:-20px;padding:1.25rem 20px 0}.platform-modal-padding-top[_ngcontent-%COMP%]{padding-top:1rem!important}.platform-modal[_ngcontent-%COMP%] .email-setup-info[_ngcontent-%COMP%]{font-size:14px;line-height:20px;font-family:Matter-Regular;color:var(--background-neutral-700)}.platform-modal[_ngcontent-%COMP%] .email-setup-info-email[_ngcontent-%COMP%]{font-weight:700;font-family:Matter-Bold;color:var(--background-neutral-800)}.platform-modal[_ngcontent-%COMP%] .auth-steps[_ngcontent-%COMP%]{gap:16px}.platform-modal[_ngcontent-%COMP%] .auth-step[_ngcontent-%COMP%]{gap:12px}.platform-modal[_ngcontent-%COMP%] .auth-step-index[_ngcontent-%COMP%]{width:21px;height:20px;border-radius:4px;background:var(--bp-background-sentiment-success);color:var(--bp-text-sentiment-success);font-family:Matter-Regular;font-size:14px;flex-shrink:0}.platform-modal[_ngcontent-%COMP%] .auth-step-title[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:14px;line-height:20px;color:var(--background-neutral-800)}.platform-modal[_ngcontent-%COMP%] .auth-step-hint[_ngcontent-%COMP%]{font-family:Matter-Regular;font-style:italic;font-size:14px;line-height:20px;color:var(--background-neutral-700);margin-top:2px}.platform-modal[_ngcontent-%COMP%] .auth-panels[_ngcontent-%COMP%]{gap:16px}.platform-modal[_ngcontent-%COMP%] .auth-panels[_ngcontent-%COMP%] .auth-panel[_ngcontent-%COMP%]{flex:1;min-width:0;padding:24px;gap:16px;border:1px solid var(--bp-border-color);border-radius:12px;background:var(--white-bg)}.platform-modal[_ngcontent-%COMP%] .auth-panels[_ngcontent-%COMP%] .auth-panel-header[_ngcontent-%COMP%]{gap:8px}.platform-modal[_ngcontent-%COMP%] .auth-panels[_ngcontent-%COMP%] .auth-panel-icon[_ngcontent-%COMP%]{width:32px;height:32px;flex-shrink:0;background:var(--background-neutral-light);border-radius:8px}.platform-modal[_ngcontent-%COMP%] .auth-panels[_ngcontent-%COMP%] .auth-panel-icon-image[_ngcontent-%COMP%]{width:14px;
1height:14px;object-fit:contain}.platform-modal[_ngcontent-%COMP%] .auth-panels[_ngcontent-%COMP%] .auth-panel-title[_ngcontent-%COMP%]{font-family:Matter-SemiBold;font-size:16px;line-height:20px;color:var(--dark-grey)}.platform-modal[_ngcontent-%COMP%] .auth-panels[_ngcontent-%COMP%] .auth-panel-desc[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:14px;line-height:20px;color:var(--background-neutral-700)}.platform-modal[_ngcontent-%COMP%] .auth-panels[_ngcontent-%COMP%] .auth-panel-empty[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:12px;color:var(--millon-grey)}.platform-modal[_ngcontent-%COMP%] .auth-panels-divider[_ngcontent-%COMP%]{position:absolute;width:43px;height:40px;border-radius:50%;background:var(--white-bg);z-index:2;font-size:16px;font-weight:600;font-family:Matter-SemiBold;border:none;color:var(--dark-grey);box-shadow:0 4px 10px #00000014;left:50%;top:50%;transform:translate(-50%,-50%)}.platform-modal[_ngcontent-%COMP%] .auth-panels[_ngcontent-%COMP%] .auth-qr-box[_ngcontent-%COMP%]{flex:1;align-self:center;width:100%;max-width:180px;aspect-ratio:1;background:var(--white-bg)}.platform-modal[_ngcontent-%COMP%] .auth-panels[_ngcontent-%COMP%] .auth-qr-box-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%}.platform-modal[_ngcontent-%COMP%] .auth-panels[_ngcontent-%COMP%] .auth-code-box[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:14px;margin-top:21px;line-height:20px;color:var(--background-neutral-800);padding:10px 14px;border:1px solid var(--bp-border-color);border-radius:8px;background:var(--white-bg);word-break:break-all}.platform-modal[_ngcontent-%COMP%] .auth-panels[_ngcontent-%COMP%] .auth-buttons[_ngcontent-%COMP%]{margin-top:4px}.platform-modal[_ngcontent-%COMP%] .auth-verify[_ngcontent-%COMP%]{gap:12px}.platform-modal[_ngcontent-%COMP%] .auth-verify[_ngcontent-%COMP%] .auth-verify-input[_ngcontent-%COMP%]{width:292px;max-width:100%}.platform-modal[_ngcontent-%COMP%] .auth-recovery-toggle[_ngcontent-%COMP%]{align-self:flex-start;margin-top:-16px;font-family:Matter-Regular;font-size:13px;color:var(--theme-color);cursor:pointer;text-decoration:underline}.platform-modal[_ngcontent-%COMP%] .auth-recovery-toggle[_ngcontent-%COMP%]:hover{color:var(--theme-color);text-decoration:none}.recovery-banner[_ngcontent-%COMP%]{min-height:52px;gap:16px;padding:12px 16px;border-radius:12px;background:var(--background-base-light)}.recovery-banner.recovery-banner-archived[_ngcontent-%COMP%]{opacity:.85}.recovery-banner.recovery-banner-downloadable[_ngcontent-%COMP%]{background:var(--yellow-light-color);border:1px solid var(--yellow-color)}.recovery-banner[_ngcontent-%COMP%] .recovery-banner-hint-warning[_ngcontent-%COMP%]{color:var(--bp-text-warning-title);opacity:1}.recovery-banner[_ngcontent-%COMP%] .recovery-banner-message[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:14px;line-height:20px;color:var(--dark-grey)}.recovery-banner[_ngcontent-%COMP%] .recovery-banner-hint[_ngcontent-%COMP%]{margin-top:6px;font-family:Matter-Regular;font-size:12px;color:var(--millon-grey)}.recovery-banner[_ngcontent-%COMP%] .recovery-banner-hint.recovery-banner-hint-success[_ngcontent-%COMP%]{color:var(--success-color)}.recovery-banner[_ngcontent-%COMP%] .recovery-banner-hint[_ngcontent-%COMP%] .recovery-banner-hint-small[_ngcontent-%COMP%]{margin-top:2px;font-size:11px;color:var(--millon-grey);opacity:.85}.recovery-banner[_ngcontent-%COMP%] .recovery-banner-actions[_ngcontent-%COMP%]{flex-shrink:0}.recovery-banner[_ngcontent-%COMP%] .recovery-banner-actions[_ngcontent-%COMP%] .bp-button, .recovery-banner[_ngcontent-%COMP%] .recovery-banner-actions[_ngcontent-%COMP%] button{width:248px;height:36px;gap:8px;padding:12px 28px;border-radius:6px;border:1px solid var(--theme-color)}@media (max-width: 768px){.padding-lg[_ngcontent-%COMP%]{padding:20px 0}.platform-modal[_ngcontent-%COMP%] .auth-panels[_ngcontent-%COMP%]{flex-direction:column}.platform-modal[_ngcontent-%COMP%] .auth-panels-divider[_ngcontent-%COMP%]{position:static;transform:none;left:auto;top:auto;align-self:center;flex-shrink:0;margin:-10px 0}.platform-modal[_ngcontent-%COMP%] .auth-verify[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.platform-modal[_ngcontent-%COMP%] .auth-verify[_ngcontent-%COMP%] .auth-verify-input[_ngcontent-%COMP%]{width:100%}.recovery-banner[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}}"]})}return o}
1)();const hn=(o,s)=>s.id;function fn(o,s){1&o&&e.nrm(0,"app-password")}function _n(o,s){if(1&o){const t=e.RV6();e.j41(0,"app-mfa",3),e.bIt("statusChange",function(n){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onMfaStatusChange(n))}),e.k0s()}}function bn(o,s){if(1&o){const t=e.RV6();e.j41(0,"app-bp-accordion",2),e.bIt("toggleAccordion",function(){const n=e.eBV(t).$implicit,a=e.XpG();return e.Njj(a.setActiveAccordion(n.id))}),e.DNE(1,fn,1,0,"app-password")(2,_n,1,0,"app-mfa"),e.k0s()}if(2&o){const t=s.$implicit,i=e.XpG();e.Y8G("icon",t.icon)("title",t.title)("description",t.description)("isOpen",i.activeAccordion===t.id)("showGrayBackgroundImage",!0)("chipText","mfa"===t.id?i.mfaChipText:"")("chipVariant","mfa"===t.id?i.mfaChipVariant:"warning"),e.R7$(),e.vxM(1,"password"===t.id?1:-1),e.R7$(),e.vxM(2,"mfa"===t.id?2:-1)}}const vn=[{path:"",component:It,children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:yt,data:{pageKey:"customer.more.my-account.account"}},{path:"security",component:(()=>{class o{setActiveAccordion(t){this.activeAccordion=this.activeAccordion===t?null:t}constructor(t,i,n){this.languageService=t,this.mixpanel=i,this.authService=n,this.activeAccordion="password",this.mfaStatus="not-setup",this.accordionItems=[{id:"password",icon:"assets/version2/icons/password-icon.svg",title:"Password",description:"Update your account password"},{id:"mfa",icon:"assets/version2/icons/lock-icon.svg",title:"Multi-factor Authentication",description:"Add an extra layer of security. When enabled, you must verify with at least one method."}],this.staticText=this.languageService.getStaticText().settings.security}ngOnInit(){this.reInitialiseStaticText(),this.mixpanel.trackEvent("security_tab_opened",{user_id:this.authService.customerProfileId,panel:"security"})}reInitialiseStaticText(){this.accordionItems=[{id:"password",icon:"assets/version2/icons/password-icon.svg",title:this.staticText.passwordTitle,description:this.staticText.passwordDesc},{id:"mfa",icon:"assets/version2/icons/lock-icon.svg",title:this.staticText.mfaTitle,description:this.staticText.mfaDesc}]}onMfaStatusChange(t){this.mfaStatus=t.emailActive||t.appActive?"active":"not-setup"}get mfaChipText(){return"active"===this.mfaStatus?this.staticText.mfaActive||"Active":this.staticText.mfaNotSetup||"Not Setup"}get mfaChipVariant(){return"active"===this.mfaStatus?"success":"warning"}static#e=this.\u0275fac=function(i){return new(i||o)(e.rXU(f.g),e.rXU(v.U),e.rXU(u.k))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-security"]],decls:3,vars:0,consts:[[1,"security-section","mt-3"],[3,"icon","title","description","isOpen","showGrayBackgroundImage","chipText","chipVariant"],[3,"toggleAccordion","icon","title","description","isOpen","showGrayBackgroundImage","chipText","chipVariant"],[3,"statusChange"]],template:function(i,n){1&i&&(e.j41(0,"div",0),e.Z7z(1,bn,3,9,"app-bp-accordion",1,hn),e.k0s()),2&i&&(e.R7$(),e.Dyx(n.accordionItems))},dependencies:[ne._,ie,Q]})}return o})(),data:{pageKey:"customer.more.my-account.security"}},{path:"password",component:Q,data:{pageKey:"customer.more.my-account.security"}},{path:"custom-attribute",component:Dt.L,data:{pageKey:"customer.more.custom-attributes"}},{path:"tags",component:ee.b,data:{pageKey:"customer.more.tags"}},{path:"status",component:te.q,data:{pageKey:"customer.more.custom-status"}},{path:"custom-menu",component:St.k,data:{pageKey:"customer.more.custom-tabs"}},{path:"data-export",children:[{path:"",loadComponent:()=>c.e(627).then(c.bind(c,96627)).then(o=>o.DataExportComponent)},{path:"status",loadComponent:()=>c.e(185).then(c.bind(c,17185)).then(o=>o.DataExportStatusComponent)}]},{path:"data-deletion",children:[{path:"",loadComponent:()=>c.e(875).then(c.bind(c,72875)).then(o=>o.DataDeletionComponent)},{path:"status",loadComponent:()=>c.e(681).then(c.bind(c,20681)).then(o=>o.DataDeletionStatusComponent)}]}]}];let Cn=(()=>{class o{static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275mod=e.$C({type:o});static#n=this.\u0275inj=e.G2t({imports:[r.iI.forChild(vn),r.iI]})}return o}
1)();var xn=c(11562),yn=c(5951);function Tn(o,s){if(1&o&&(e.j41(0,"span",6),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.JRh(t.subText)}}let Mn=(()=>{class o{constructor(){this.name="",this.subText="",this.iconSrc="",this.iconAlt="",this.isConnected=!1,this.buttonLabel="Connect",this.buttonType="primary",this.buttonSize="fw",this.disabled=!1,this.fontSize="1rem",this.action=new e.bkB}onActionClick(){this.disabled||this.action.emit()}static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-bp-linked-account-item"]],inputs:{name:"name",subText:"subText",iconSrc:"iconSrc",iconAlt:"iconAlt",isConnected:"isConnected",buttonLabel:"buttonLabel",buttonType:"buttonType",buttonSize:"buttonSize",disabled:"disabled",fontSize:"fontSize"},outputs:{action:"action"},standalone:!0,features:[e.aNF],decls:9,vars:9,consts:[[1,"d-flex","align-items-center","justify-content-between","linked-account-item"],[1,"d-flex","align-items-center","gap"],[1,"linked-account-icon","d-flex","align-items-center","justify-content-center"],[1,"linked-account-icon-image",3,"src","alt"],[1,"linked-account-text","d-flex","align-items-center","gap"],[1,"linked-account-name"],[1,"linked-account-subtext"],[3,"clickEvent","label","type","fontSize","buttonSize","disabled"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"span",2),e.nrm(3,"img",3),e.k0s(),e.j41(4,"div",4)(5,"span",5),e.EFF(6),e.k0s(),e.DNE(7,Tn,2,1,"span",6),e.k0s()(),e.j41(8,"app-bp-button-v2",7),e.bIt("clickEvent",function(){return n.onActionClick()}),e.k0s()()),2&i&&(e.R7$(3),e.Y8G("src",n.iconSrc,e.B4B)("alt",n.iconAlt||n.name),e.R7$(3),e.JRh(n.name),e.R7$(),e.vxM(7,n.subText?7:-1),e.R7$(),e.Y8G("label",n.buttonLabel)("type",n.buttonType)("fontSize",n.fontSize)("buttonSize",n.buttonSize)("disabled",n.disabled))},dependencies:[b.MD,y.s],styles:[".linked-account-item[_ngcontent-%COMP%]{background:var(--background-base-light);border-radius:12px;padding:16px 20px}.linked-account-item[_ngcontent-%COMP%] .linked-account-icon[_ngcontent-%COMP%]{width:36px;height:36px;background:var(--white-bg);border-radius:10px}.linked-account-item[_ngcontent-%COMP%] .linked-account-icon-image[_ngcontent-%COMP%]{width:20px;height:20px}.linked-account-item[_ngcontent-%COMP%] .linked-account-name[_ngcontent-%COMP%]{font-family:Matter-Medium;font-size:14px;color:var(--dark-grey)}.linked-account-item[_ngcontent-%COMP%] .linked-account-subtext[_ngcontent-%COMP%]{font-family:Matter-Regular;font-size:12px;color:var(--millon-grey)}"]})}return o})(),Pn=(()=>{class o{constructor(t){this.languageService=t,this.googleConnected=!0,this.googleEmail="",this.facebookConnected=!1,this.staticText=this.languageService.getStaticText().settings.linkAccount}onLinkAccount(t){"google"===t&&(this.googleConnected=!0,this.googleEmail=this.googleEmail||"[email protected]"),"facebook"===t&&(this.facebookConnected=!0)}onDisconnect(t){"google"===t&&(this.googleConnected=!1,this.googleEmail=""),"facebook"===t&&(this.facebookConnected=!1)}static#e=this.\u0275fac=function(i){return new(i||o)(e.rXU(f.g))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-linked-accounts"]],standalone:!0,features:[e.aNF],decls:3,vars:10,consts:[[1,"d-flex","flex-column","gap","linked-accounts-list"],["iconSrc","assets/version2/images/integrations/google.svg","fontSize","14px",3,"action","name","subText","iconAlt","buttonLabel","buttonType"],["iconSrc","assets/version2/social-media-icons/facebook.svg","fontSize","14px",3,"action","name","subText","iconAlt","buttonLabel","buttonType"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"app-bp-linked-account-item",1),e.bIt("action",function(){return n.googleConnected?n.onDisconnect("google"):n.onLinkAccount("google")}),e.k0s(),e.j41(2,"app-bp-linked-account-item",2),e.bIt("action",function(){return n.facebookConnected?n.onDisconnect("facebook"):n.onLinkAccount("facebook")}),e.k0s()()),2&i&&(e.R7$(),e.Y8G("name",n.staticText.googleTitle)("subText",n.googleConnected?n.googleEmail:"")("iconAlt",n.staticText.googleAlt)("buttonLabel",n.googleConnected?n.staticText.disconnectbtnTitle:n.staticText.connectbtnTitle)("buttonType",n.googleConnected?"outlined-red":"primary"),e.R7$(),e.Y8G("name",n.staticText.fbTitle)("subText",n.facebookConnected?n.staticText.fbConnectedText||"Connected":"")("iconAlt",n.staticText.fbAlt)("buttonLabel",n.facebookConnected?n.staticText.disconnectbtnTitle:n.staticText.connectbtnTitle)("buttonType",n.facebookConnected?"outlined-red":"primary"))},dependencies:[b.MD,Mn],styles:[".linked-accounts-list[_ngcontent-%COMP%]{padding-right:40px}"]})}return o}
1)(),kn=(()=>{class o{static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275mod=e.$C({type:o});static#n=this.\u0275inj=e.G2t({imports:[b.MD,yn.Wk,Cn,$.G,P.X1,P.YN,xn.YG,y.s,Z.C,ne._,ie,K,Pn,W,ee.b,te.q]})}return o})()},1838:(ae,F,c)=>{c.d(F,{_:()=>N});var b=c(60177),r=c(54438),m=c(34813),V=c(72958),T=c(47198);const O=["*"],E=p=>({"d-flex justify-content-center align-items-center accordian-image":p}),R=p=>({"accordian-icon":p});function B(p,C){if(1&p&&r.nrm(0,"app-bp-chip",9),2&p){const u=r.XpG();r.Y8G("text",u.chipText)("variant",u.chipVariant)("icon",u.chipIcon)}}function z(p,C){if(1&p){const u=r.RV6();r.j41(0,"div",13),r.bIt("click",function(g){return r.eBV(u),r.Njj(g.stopPropagation())}),r.j41(1,"app-bp-toggle",14),r.bIt("inputChange",function(g){r.eBV(u);const M=r.XpG();return r.Njj(M.onToggleChange(g))}),r.k0s()()}if(2&p){const u=r.XpG();r.R7$(),r.Y8G("value",u.toggleValue)("showLabel",!1)("disabled",u.toggleDisabled)}}function Y(p,C){1&p&&(r.j41(0,"span",12),r.EFF(1," expand_more "),r.k0s())}function e(p,C){1&p&&(r.j41(0,"span",12),r.EFF(1," expand_less "),r.k0s())}function A(p,C){1&p&&(r.qex(0),r.j41(1,"div",15),r.SdG(2),r.k0s(),r.bVm())}let N=(()=>{class p{constructor(){this.icon="assets/version2/icons/fb-icon.svg",this.title="Accordion Heading",this.description="Accordion Description",this.isOpen=!1,this.showGrayBackgroundImage=!1,this.chipText="",this.chipVariant="warning",this.chipIcon="",this.showToggle=!1,this.toggleValue=!1,this.toggleDisabled=!1,this.toggleAccordion=new r.bkB,this.toggleChange=new r.bkB}openCloseAccordion(u){this.toggleAccordion.emit(u)}onToggleChange(u){this.toggleChange.emit(u?.target?.checked??!1)}static#e=this.\u0275fac=function(f){return new(f||p)};static#t=this.\u0275cmp=r.VBU({type:p,selectors:[["app-bp-accordion"]],inputs:{icon:"icon",title:"title",description:"description",isOpen:"isOpen",showGrayBackgroundImage:"showGrayBackgroundImage",chipText:"chipText",chipVariant:"chipVariant",chipIcon:"chipIcon",showToggle:"showToggle",toggleValue:"toggleValue",toggleDisabled:"toggleDisabled"},outputs:{toggleAccordion:"toggleAccordion",toggleChange:"toggleChange"},standalone:!0,features:[r.aNF],ngContentSelectors:O,decls:17,vars:15,consts:[[1,"accordion-container","d-flex","flex-column"],["role","button","tabindex","0",1,"d-flex","accordion","position-relative","cursor-pointor","justify-content-between","text-align-start",3,"click","keydown.enter","keydown.space"],[1,"d-flex","accordian-head"],[1,"m-end-2",3,"ngClass"],["alt","",3,"src","ngClass"],[1,"accordion-description","text-align-start"],[1,"accordion-title","mb-1"],[1,"small-text","text-align-start","mb-0"],[1,"d-flex","align-items-center","gap"],[3,"text","variant","icon"],[1,"d-flex","align-items-center"],[1,"arrow-position"],[1,"material-icons"],[1,"d-flex","align-items-center",3,"click"],[3,"inputChange","value","showLabel","disabled"],[1,"description","mt-4","text-align-start"]],template:function(f,g){1&f&&(r.NAR(),r.j41(0,"div",0)(1,"div",1),r.bIt("click",function(v){return g.openCloseAccordion(v)})("keydown.enter",function(v){return g.openCloseAccordion(v)})("keydown.space",function(v){return v.preventDefault(),g.openCloseAccordion(v)}),r.j41(2,"div",2)(3,"span",3),r.nrm(4,"img",4),r.k0s(),r.j41(5,"div",5)(6,"h3",6),r.EFF(7),r.k0s(),r.j41(8,"p",7),r.EFF(9),r.k0s()()(),r.j41(10,"div",8),r.DNE(11,B,1,3,"app-bp-chip",9)(12,z,2,3,"div",10),r.j41(13,"div",11),r.DNE(14,Y,2,0,"span",12)(15,e,2,0,"span",12),r.k0s()()(),r.DNE(16,A,3,0,"ng-container"),r.k0s()),2&f&&(r.R7$(),r.BMQ("aria-expanded",g.isOpen),r.R7$(2),r.Y8G("ngClass",r.eq3(11,E,g.showGrayBackgroundImage)),r.R7$(),r.Y8G("src",g.icon,r.B4B)("ngClass",r.eq3(13,R,g.showGrayBackgroundImage)),r.R7$(3),r.JRh(g.title),r.R7$(2),r.JRh(g.description),r.R7$(2),r.vxM(11,g.chipText?11:-1),r.R7$(),r.vxM(12,g.showToggle?12:-1),r.R7$(2),r.vxM(14,g.isOpen?-1:14),r.R7$(),r.vxM(15,g.isOpen?15:-1),r.R7$(),r.vxM(16,g.isOpen?16:-1))},dependencies:[b.MD,b.YU,m.G,V.u,T.Q],styles:[".accordion-container[_ngcontent-%COMP%]{margin:auto;margin-bottom:1rem;width:100%;border:1px solid var(--mercury-grey);border-radius:var(--radius-sm);padding:20px;animation-name:ease;animation-duration:.5s;transition:height .5s;margin-inline-end:10px}.accordion-container[_ngcontent-%COMP%] .accordion[_ngcontent-%COMP%]{cursor:pointer;transition:all .5s}.accordion-container[_ngcontent-%COMP%] .accordion[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--theme-color);outline-offset:2px}.accordion-container[_ngcontent-%COMP%] .accordion[_ngcontent-%COMP%] .accordian-image[_ngcontent-%COMP%]{min-width:40px;height:40px;text-align:center;background:#f3f4f5;border-radius:var(--radius-sm)}.accordion-container[_ngcontent-%COMP%] .accordion[_ngcontent-%COMP%] .accordian-image[_ngcontent-%COMP%] .accordian-icon[_ngcontent-%COMP%]{width:24px;height:24px}.accordion-container[_ngcontent-%COMP%] .accordion[_ngcontent-%COMP%] .accordion-title[_ngcontent-%COMP%]{font-size:17px;font-family:Matter-SemiBold}.accordion-container[_ngcontent-%COMP%] .accordion[_ngcontent-%COMP%] .small-text[_ngcontent-%COMP%]{font-size:12px;
1color:var(--millon-grey)}.accordion-container[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-left:50px}"]})}return p})()}}]);
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.