1"use strict";(self.webpackChunkdzweb=self.webpackChunkdzweb||[]).push([[9877],{38594:(Z,O,r)=>{r.d(O,{p:()=>U});var h=r(80529),T=r(4128),y=r(39646),x=r(54004),b=r(70262),g=r(22858),S=r(17489),u=r(94650),H=r(21952),I=r(93531),M=r(38058);let U=(()=>{class d{constructor(c,l,f,m){this.httpClient=c,this._utilService=f,this._flowchartService=m,this.sessionStorage=l}getOrgTransactionStatus(c,l){return this.httpClient.get(g.JBL+"?orgId="+l+"&clientTxnId="+c,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.sessionStorage.getItem("token")}})}initiateTransaction(c){const l={headers:new h.WM({"Content-Type":"application/json",Authorization:"Bearer "+this.sessionStorage.getItem("token")})};return this.httpClient.post(g.JBL,c,l)}getTransactionFlowchartDetails(c,l,f,m,v,C){let p=this.sessionStorage.getItem("zdTicket");S.isEqual(c,"salesforce")?p=this.sessionStorage.getItem("sfCaseNumber"):S.isEqual(c,"restrictedPublishedFc")&&(p=this._utilService.getRestrictedPublishedFcTxnId("rpftId"));let w={clientTxnId:p,userSessionId:this._utilService.getCookie("userSessionId"),flowchartId:l,txnStatus:C,orgId:v,publishedCode:null,clientTxnSource:c};var A=g.$J2+f+"/fcRandomId/"+m;return(0,T.D)([this.initiateTransaction(w),this.httpClient.get(A)])}updateAndGetTxnFlowchartDetails(c,l,f){return this.getTransactionFlowchartDetails(c,l.flowchartId,l.goalUrl,l.flowchartRandomId,l.orgId,f).pipe((0,x.U)(m=>{var p,v=m[0].responseBody;v&&(p=this._flowchartService.prepareBoxConnectionsWithMetadata(v,m[1].responseBody),this.sessionStorage.setObject("flowchart",p))}),(0,b.K)(m=>(0,y.of)(null)))}completeTransaction(c){const l={headers:new h.WM({"Content-Type":"application/json",Authorization:"Bearer "+this.sessionStorage.getItem("token")})};return this.httpClient.put(g.JBL,c,l)}sendFlowchartActivityForCurrentTxn(){const c={headers:new h.WM({"Content-Type":"application/json",Authorization:"Bearer "+this.sessionStorage.getItem("token")})};return this.httpClient.post(g.AAh+"?userSessionId="+this._utilService.getCookie("userSessionId"),null,c)}updateTransactionNotes(c){const l={headers:new h.WM({"Content-Type":"application/json",Authorization:"Bearer "+this.sessionStorage.getItem("token")})};return this.httpClient.patch(g.V6I,c,l)}}return d.\u0275fac=function(c){return new(c||d)(u.LFG(h.eN),u.LFG(H.qo),u.LFG(I.f),u.LFG(M.q))},d.\u0275prov=u.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},99877:(Z,O,r)=>{r.r(O),r.d(O,{SalesforceUserOrgHomeModule:()=>ie});var h=r(36895),T=r(19132),y=r(69814),x=r(24006),b=r(10920),g=r(17489),S=r(48811),e=r(94650),u=r(99863),H=r(93531),I=r(38058),M=r(64918),U=r(41591),d=r(38594),N=r(80641),c=r(21952),l=r(26201),f=r(29483),m=r(4859),v=r(73546),C=r(97392),p=r(51572),w=r(71948);function A(o,n){if(1&o&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Oqu(t.orgHomeErrMsg)}}function F(o,n){1&o&&(e.TgZ(0,"p"),e._uU(1,"Error in retrieving DeciZone page. Please try again after sometime."),e.qZA())}function P(o,n){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,A,2,1,"p",0),e.YNc(2,F,2,0,"p",0),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.orgHomeErrMsg),e.xp6(1),e.Q6J("ngIf",!t.orgHomeErrMsg)}}function E(o,n){1&o&&(e.TgZ(0,"div")(1,"p"),e._uU(2,"The current case is already closed. Please select other open case to proceed."),e.qZA()())}function R(o,n){if(1&o&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.txnActiveUser," is currently working on this case. ")}}function D(o,n){1&o&&e._UZ(0,"mat-spinner",13)}function L(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"p"),e._uU(2," Looks like you are currently working on this case (may be in another browser) and so this case is currently in "),e.TgZ(3,"b"),e._uU(4,"ACTIVE"),e.qZA(),e._uU(5," transaction state. "),e.qZA(),e.TgZ(6,"mat-radio-group",8),e.NdJ("ngModelChange",function(s){e.CHM(t);const a=e.oxw(2);return e.KtG(a.txnActiveOption=s)}),e.TgZ(7,"mat-radio-button",9),e._uU(8,"Resume current ACTIVE transaction and continue working in flowchart, "),e.TgZ(9,"strong"),e._uU(10),e.qZA()(),e.TgZ(11,"mat-radio-button",10),e._uU(12,"Discard current ACTIVE transaction and go to Organization home page"),e.qZA()(),e.TgZ(13,"div")(14,"button",11),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.txnResumeNextAction(s.txnActiveOption))}),e.YNc(15,D,1,0,"mat-spinner",12),e._uU(16,"Next "),e.qZA()()()}if(2&o){const t=e.oxw(2);e.xp6(6),e.Q6J("ngModel",t.txnActiveOption),e.xp6(4),e.Oqu(t.txnFlowchartName),e.xp6(5),e.Q6J("ngIf",t.txnResumeLo
1ading)}}function k(o,n){if(1&o&&(e.TgZ(0,"mat-radio-button",17),e._uU(1),e.qZA()),2&o){const t=n.$implicit;e.Q6J("value",t.value),e.xp6(1),e.hij(" ",t.viewValue," ")}}function J(o,n){1&o&&e._UZ(0,"mat-spinner",13)}function B(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"p"),e._uU(2,"Looks like someone was working on this case recently and so it is currently in "),e.TgZ(3,"b"),e._uU(4,"PENDING"),e.qZA(),e._uU(5," transaction state. Please select how to handle this transaction from the options below."),e.qZA(),e.TgZ(6,"mat-radio-group",14),e.NdJ("ngModelChange",function(s){e.CHM(t);const a=e.oxw(2);return e.KtG(a.selectedTxnResumeOption=s)}),e.YNc(7,k,2,2,"mat-radio-button",15),e.qZA(),e.TgZ(8,"div")(9,"button",16),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.txnResumeNextAction(s.selectedTxnResumeOption))}),e.YNc(10,J,1,0,"mat-spinner",12),e._uU(11,"Next "),e.qZA()()()}if(2&o){const t=e.oxw(2);e.xp6(6),e.Q6J("ngModel",t.selectedTxnResumeOption),e.xp6(1),e.Q6J("ngForOf",t.txnResumeOptions),e.xp6(3),e.Q6J("ngIf",t.txnResumeLoading)}}function Y(o,n){1&o&&(e.TgZ(0,"div",27),e._uU(1," No matches found. Please try again with more relevant keywords. "),e.qZA())}function K(o,n){if(1&o&&e._UZ(0,"img",39),2&o){const t=e.oxw().$implicit;e.s9C("src",t.flowchartImageUrl,e.LSH),e.s9C("alt",t.flowchartName)}}function Q(o,n){if(1&o&&e._UZ(0,"img",40),2&o){const t=e.oxw().$implicit;e.s9C("alt",t.flowchartName)}}function j(o,n){1&o&&e._UZ(0,"mat-spinner",13)}function W(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"mat-card",29)(1,"p",30)(2,"span",31),e._uU(3),e.qZA()(),e.TgZ(4,"button",32),e.NdJ("click",function(){const a=e.CHM(t).$implicit,_=e.oxw(4);return e.KtG(_.initiateFlowchartTransaction(a))}),e.TgZ(5,"div",33)(6,"div",34),e.YNc(7,K,1,2,"img",35),e.YNc(8,Q,1,1,"img",36),e.qZA(),e.TgZ(9,"div",37)(10,"div",38),e._uU(11),e.qZA(),e.YNc(12,j,1,0,"mat-spinner",12),e.qZA()()()()}if(2&o){const t=n.$implicit,i=e.oxw(4);e.xp6(3),e.Oqu(t.goalName),e.xp6(1),e.Q6J("disabled",i.caseStatus),e.xp6(3),e.Q6J("ngIf",t.flowchartImageUrl),e.xp6(1),e.Q6J("ngIf",!t.flowchartImageUrl),e.xp6(3),e.Oqu(t.flowchartName),e.xp6(1),e.Q6J("ngIf",i.fcloading&&i.loadingFcId===t.flowchartId)}}function $(o,n){if(1&o&&(e.TgZ(0,"div",27),e.YNc(1,W,13,6,"mat-card",28),e.qZA()),2&o){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.orgHomeFlowchartSearchResults)}}function G(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"div",18)(2,"h1",3)(3,"span",4),e._uU(4),e.qZA()(),e.TgZ(5,"div",19)(6,"div",20)(7,"input",21),e.NdJ("ngModelChange",function(s){e.CHM(t);const a=e.oxw(2);return e.KtG(a.searchText=s)})("keydown.enter",function(s){e.CHM(t);const a=e.oxw(2);return s.stopPropagation(),e.KtG(a.keyPressSearch(s))}),e.qZA(),e.TgZ(8,"button",22),e.NdJ("click",function(s){e.CHM(t);const a=e.oxw(2);return s.stopPropagation(),e.KtG(a.getFuzzySearch())}),e.TgZ(9,"mat-icon"),e._uU(10,"search"),e.qZA()(),e.TgZ(11,"button",23),e.NdJ("click",function(s){e.CHM(t);const a=e.oxw(2);return s.stopPropagation(),e.KtG(a.resetSearchResults())}),e.TgZ(12,"mat-icon"),e._uU(13,"close"),e.qZA()(),e.TgZ(14,"button",24),e.NdJ("click",function(s){e.CHM(t);const a=e.oxw(2);return s.stopPropagation(),e.KtG(a.openAdvancedSearchDialog())}),e.TgZ(15,"mat-icon"),e._uU(16,"more_vert"),e.qZA()()()()(),e._UZ(17,"div",25),e.YNc(18,Y,2,0,"div",26),e.YNc(19,$,2,1,"div",26),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(4),e.Oqu(t.dzOrgName),e.xp6(3),e.Q6J("ngModel",t.searchText),e.xp6(11),e.Q6J("ngIf",t.fuzzySearchTried&&t.orgHomeFlowchartSearchResults&&0===t.orgHomeFlowchartSearchResults.length),e.xp6(1),e.Q6J("ngIf",t.orgHomeFlowchartSearchResults&&t.orgHomeFlowchartSearchResults.length>0)}}function q(o,n){if(1&o&&e._UZ(0,"img",39),2&o){const t=e.oxw().$implicit;e.s9C("src",t.flowchartImageUrl,e.LSH),e.s9C("alt",t.flowchartName)}}function V(o,n){if(1&o&&e._UZ(0,"img",40),2&o){const t=e.oxw().$implicit;e.s9C("alt",t.flowchartName)}}function X(o,n){1&o&&e._UZ(0,"mat-spinner",13)}function ee(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"div",41)(1,"p",42)(2,"span",31),e._uU(3),e.qZA()(),e.TgZ(4,"button",32),e.NdJ("click",function(){const a=e.CHM(t).$implicit,_=e.oxw(2);return e.KtG(_.initiateFlowchartTransaction(a))}
1),e.TgZ(5,"div",33)(6,"div",34),e.YNc(7,q,1,2,"img",35),e.YNc(8,V,1,1,"img",36),e.qZA(),e.TgZ(9,"div",37)(10,"div",38),e._uU(11),e.qZA(),e.YNc(12,X,1,0,"mat-spinner",12),e.qZA()()()()}if(2&o){const t=n.$implicit,i=e.oxw(2);e.xp6(3),e.Oqu(t.goalName),e.xp6(1),e.Q6J("disabled",i.caseStatus),e.xp6(3),e.Q6J("ngIf",t.flowchartImageUrl),e.xp6(1),e.Q6J("ngIf",!t.flowchartImageUrl),e.xp6(3),e.Oqu(t.flowchartName),e.xp6(1),e.Q6J("ngIf",i.fcloading&&i.loadingFcId===t.flowchartId)}}function te(o,n){if(1&o&&(e.TgZ(0,"div",2)(1,"h1",3)(2,"span",4),e._uU(3),e.qZA()(),e.YNc(4,E,3,0,"div",0),e.YNc(5,R,2,1,"div",0),e.YNc(6,L,17,3,"div",0),e.YNc(7,B,12,3,"div",0),e.YNc(8,G,20,4,"div",0),e.TgZ(9,"div",5),e.YNc(10,ee,13,6,"div",6),e.qZA(),e.TgZ(11,"p",7),e._uU(12,"Powered by DeciZone.com"),e.qZA()()),2&o){const t=e.oxw();e.xp6(3),e.Oqu(t.dzOrgName),e.xp6(1),e.Q6J("ngIf",t.caseStatus),e.xp6(1),e.Q6J("ngIf",!t.caseStatus&&"A"===t.txnStatus&&t.txnActiveUser),e.xp6(1),e.Q6J("ngIf",!t.caseStatus&&"A"===t.txnStatus&&!t.txnActiveUser),e.xp6(1),e.Q6J("ngIf",!t.caseStatus&&"P"===t.txnStatus),e.xp6(1),e.Q6J("ngIf","A"!==t.txnStatus&&"P"!==t.txnStatus),e.xp6(2),e.Q6J("ngForOf",t.orgHomeFlowchartList)}}let oe=(()=>{class o{constructor(t,i,s,a,_,z,se,re,ne,ae,ce,le,ge){this.ngZone=t,this._userService=i,this._utilService=s,this._flowchartService=a,this.cdr=_,this._orgService=z,this._advSearchDialogService=se,this._flowchartUtilService=re,this._txnService=ae,this._cookieService=ce,this._salesforceAuthService=le,this.router=ge,this.searchableFcList=[],this.fuzzySearchTried=!1,this.orgHomeFlowchartListCopy=[],this.orgHomeFlowchartSearchResults=[],this.searchText="",this.fcKeywords=!0,this.fcDescription=!1,this.fcName=!1,this.goalName=!0,this.subCategoryName=!1,this.subCategoryDescription=!1,this.categoryName=!1,this.categoryDescription=!1,this.prefix=!0,this.fuzzy=!0,this.selectedCombineTerms="OR",this.combineTerms=["OR","AND"],this.sfAccessToken="",this.loading=!1,this.globalError=!1,this.orgHomeErrMsg="",this.fcloading=!1,this.dzOrgName="",this.orgHomeFlowchartList=[],this.txnStatus="",this.txnActiveUser="",this.txnResumeLoading=!1,this.selectedTxnResumeOption="R",this.txnResumeOptions=[{value:"R",viewValue:"Resume from last step from the pending transaction"},{value:"S",viewValue:"Discard this pending transaction and Start a new transaction from beginning of this same flowchart"},{value:"D",viewValue:"Discard this pending transaction and go to Organization Home page"}],this.txnActiveOption="R",this.tmpValue="",this.sessionStorage=ne}ngOnInit(){this._utilService.setFlowchartFlowProperty(!1),this._utilService.setSfFlowProperty();var t=document.getElementById("dzconsent");t&&t.classList.add("hide-consent-mgr"),this.initializeOrgHome()}ngAfterViewChecked(){this.cdr.detectChanges()}initializeOrgHome(){const t=this.sessionStorage.getItem("dzOrgId");if(this.dzOrgName=this.sessionStorage.getItem("dzOrgName"),!this._salesforceAuthService.hasValidAccessToken()||null==this.sessionStorage.getItem("token"))return this.loading=!1,void(this.globalError=!0);const i=Sfdc.canvas.oauth.client();this._salesforceAuthService.applyTokenToCanvasClient(i),Sfdc.canvas.client.ajax(this.sessionStorage.getItem("sfCaseUrl"),{client:i,method:"GET",contentType:"application/json",success:s=>{this.caseStatus=s.payload.IsClosed,"Case"===this.sessionStorage.getItem("sfCaseType")?this.sessionStorage.setItem("sfCaseNumber",s.payload.CaseNumber):this.sessionStorage.setItem("sfCaseNumber",this.sessionStorage.getItem("sfCaseId")),this.caseStatus?this._getOrganizationFlowcharts(t):this._prepareSalesforceOrgHomeDetails(t),this.cdr.detectChanges()},error:s=>{s&&401===s.status&&this._salesforceAuthService.clearToken(),this.loading=!1,this.globalError=!0,this.cdr.detectChanges()}})}_getSalesforceCaseDetailsFromAjaxCall(){var t=Sfdc.canvas.oauth.client();return this._salesforceAuthService.applyTokenToCanvasClient(t),Sfdc.canvas.client.ajax(this.sessionStorage.getItem("sfCaseUrl"),{client:t,method:"GET",contentType:"application/json"})}_getOrganizationFlowcharts(t){this.orgHomeErrMsg="",this._userService.getOrganizationHomeFlowcharts(t).subscribe(i=>{console.log("org home flowchart -",i),this.orgHomeFlowchartList=i.responseBody.orgHomeFlowchartList,this._setupMiniSearch(this.orgHomeFlowchartList),this.loading=!1},i=>{console.log("Error in getting DeciZone Organization details."),this.loading=!1,this.globalError=!0,this.orgHomeErrMsg="Please make sure you have selected your organization home flowcharts from setting page. Admin of this organization should be able to add selected flowcharts to organization home for quick access by the team."})}_prepareSalesforceOrgHomeDetails(t){this._txnService.getOrgTransactionStatus(this.sessionStorage.getItem("sfCaseNumber"),t).subscribe(i=>{console.log("clientTxnStatus",i),this.clientTxnResponse=i.responseBody,!this.clientTxnResponse||"A"!==this.clientTxnResponse.txnStatus&&"P"!==this.clientTxnResponse.txnStatus?(this.orgHomeErrMsg="",this._userService.getOrganizationHomeFlowcharts(t).subscribe(s=>{console.log("org home flowchart -",s),this.orgHomeFlowchartList=s.responseBody.orgHomeFlowchartList,this._setupMiniSearch(this.orgHomeFlowchartList),this.loading=!1,this.cdr.detectChanges()},s=>{console.log("Error in getting DeciZone Organization details."),this.loading=!1,this.globalError=!0,this.orgHomeErrMsg="Please make sure you have selected your organization home flowcharts from setting page. Admin of this organization should be able to add selected flowcharts to organization home for quick access by the team.",this.cdr.detectChanges()})):(this.txnStatus=this.clientTxnResponse.txnStatus,this.txnFlowchartName=this.clientTxnResponse.flowchartName,this.clientTxnResponse.initiatedByOtherUser&&(this.txnActiveUser=this.clientTxnResponse.userForClientTxn),this.loading=!1,this.globalError=!1,this.cdr.detectChanges())},i=>{console.log("Error in getting DeciZone txn/ticket status information."),this.orgHomeErrMsg="",this._userService.getOrganizationHomeFlowcharts(t).subscribe(s=>{console.log("org home flowchart -",s),this.orgHomeFlowchartList=s.responseBody.orgHomeFlowchartList,this._setupMiniSearch(this.orgHomeFlowchartList),this.loading=!1,this.cdr.detectChanges()},s=>{console.log("Error in getting DeciZone Organization details."),this.loading=!1,this.globalError=!0,this.orgHomeErrMsg="Please make sure you have selected your organization home flowcharts from setting page. Admin of this organization should be able to add selected flowcharts to organization home for quick access by the team.",this.cdr.detectChanges()})})}initiateFlowchartTransaction(t){console.log(t),this.sessionStorage.removeItem("flowchart"),this.fcloading=!0,this.loadingFcId=t.flowchartId,this._flowchartService.getAndUpdateFlowchartPropertyInSession(t.flowchartId),this.ngZone.run(()=>{this.router.navigate([`salesforce/transaction/${t.orgId}/${t.goalId}/${t.flowchartId}/${t.flowchartRandomId}/${t.goalUrl}/${t.flowchartName}`],{skipLocationChange:!0})})}
1txnResumeNextAction(t){if(this.globalError=!1,this.txnResumeLoading=!0,this.selectedTxnResumeOption=t,console.log("selected resume option -",this.selectedTxnResumeOption),this.sessionStorage.removeItem("flowchart"),"R"===this.selectedTxnResumeOption||"S"===this.selectedTxnResumeOption)this._txnService.updateAndGetTxnFlowchartDetails("salesforce",this.clientTxnResponse,this.selectedTxnResumeOption).subscribe(i=>{this._flowchartService.getAndUpdateFlowchartPropertyInSession(this.clientTxnResponse.flowchartId),this.ngZone.run(()=>{this.router.navigate([`salesforce/transaction/${this.clientTxnResponse.orgId}/${this.clientTxnResponse.goalId}/${this.clientTxnResponse.flowchartId}/${this.clientTxnResponse.flowchartRandomId}/${this.clientTxnResponse.goalUrl}/${this.clientTxnResponse.flowchartName}`],{skipLocationChange:!0})}),this.txnResumeLoading=!1},i=>{this.txnResumeLoading=!1});else if("D"===this.selectedTxnResumeOption){let i={clientTxnId:this.sessionStorage.getItem("sfCaseNumber"),userSessionId:this._utilService.getCookie("userSessionId"),flowchartId:this.clientTxnResponse.flowchartId,txnStatus:this.selectedTxnResumeOption,orgId:this.clientTxnResponse.orgId,clientTxnSource:"salesforce"};this._txnService.initiateTransaction(i).subscribe(s=>{this.txnResumeLoading=!1,this.txnStatus="D",this.orgHomeErrMsg="",this._userService.getOrganizationHomeFlowcharts(this.sessionStorage.getItem("dzOrgId")).subscribe(a=>{console.log("org home flowchart -",a),this.orgHomeFlowchartList=a.responseBody.orgHomeFlowchartList,this._setupMiniSearch(this.orgHomeFlowchartList),this.loading=!1,this.cdr.detectChanges()},a=>{console.log("Error in getting DeciZone Organization details."),this.loading=!1,this.globalError=!0,this.orgHomeErrMsg="Please make sure you have selected your organization home flowcharts from setting page. Admin of this organization should be able to add selected flowcharts to organization home for quick access by the team.",this.cdr.detectChanges()})},s=>{this.txnResumeLoading=!1,this.cdr.detectChanges()})}}openAdvancedSearchDialog(){this.fuzzySearchTried=!1,console.log("current fields for search",this.miniSearch.fields);const t={miniSearch:this.miniSearch,fcKeywords:this.fcKeywords,fcDescription:this.fcDescription,fcName:this.fcName,goalName:this.goalName,subCategoryName:this.subCategoryName,subCategoryDescription:this.subCategoryDescription,categoryName:this.categoryName,categoryDescription:this.categoryDescription,prefix:this.prefix,fuzzy:this.fuzzy,selectedCombineTerms:this.selectedCombineTerms};this.ngZone.run(()=>{this._advSearchDialogService.open(t)}),this._advSearchDialogService.confirmed().subscribe(i=>{i&&(this.miniSearch._options.fields.includes("flowchartKeywords")&&(this.fcKeywords=!0),this.miniSearch._options.fields.includes("flowchartDescription")&&(this.fcDescription=!0),this.miniSearch._options.fields.includes("flowchartName")&&(this.fcName=!0),this.miniSearch._options.fields.includes("goalName")&&(this.goalName=!0),this.miniSearch._options.fields.includes("subCategoryName")&&(this.subCategoryName=!0),this.miniSearch._options.fields.includes("subCategoryDescription")&&(this.subCategoryDescription=!0),this.miniSearch._options.fields.includes("categoryName")&&(this.categoryName=!0),this.miniSearch._options.fields.includes("categoryDescription")&&(this.categoryDescription=!0),this.miniSearch._options.prefix&&(this.prefix=!0),this.miniSearch._options.fuzzy&&(this.fuzzy=!0),this.miniSearch._options.searchOptions.combineWith&&(this.selectedCombineTerms=this.miniSearch._options.searchOptions.combineWith))})}keyPressSearch(t){this.searchText=t.target.value,this.getFuzzySearch()}getFuzzySearch(){let t=this.miniSearch.search(this.searchText);console.log("raw search result",t);let i=this.searchableFcList,s=[];g.forEach(t,function(a){let _=g.find(i,function(z){return z.id===a.id});s.push(_)}),this.orgHomeFlowchartSearchResults=s,console.log("search result ",this.orgHomeFlowchartSearchResults),this.fuzzySearchTried=!0,document.getElementById("sf-orghome-search-results-scrollposition").scrollIntoView(),this.cdr.detectChanges(),this._orgService.saveOrgSearchTerm(this.sessionStorage.getItem("dzOrgId"),null,this.searchText).subscribe(a=>{},a=>{})}resetSearchResults(){this.searchText="",this.fuzzySearchTried=!1,this.orgHomeFlowchartList=this.orgHomeFlowchartList
1Copy,this.orgHomeFlowchartSearchResults=[],this.cdr.detectChanges()}_setupMiniSearch(t){this.orgHomeFlowchartListCopy=g.cloneDeep(t),this.searchableFcList=this._flowchartUtilService._prepareOrgFlowchartListForSearch(t),console.log("searchableFc",this.searchableFcList),this.miniSearch=new S.Z({fields:["flowchartKeywords","flowchartDescription","flowchartName","goalName","subCategoryName","subCategoryDescription","categoryName","categoryDescription"],searchOptions:{fuzzy:this.fuzzy,prefix:this.prefix,combineWith:this.selectedCombineTerms}}),this.miniSearch.addAll(this.searchableFcList)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.K),e.Y36(H.f),e.Y36(I.q),e.Y36(e.sBO),e.Y36(M.Q),e.Y36(N.X),e.Y36(U.c),e.Y36(c.qo),e.Y36(d.p),e.Y36(l.N_),e.Y36(f.h),e.Y36(T.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-salesforce-user-orgHome"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","orgHome-page",4,"ngIf"],[1,"orgHome-page"],[1,"orgHome-title"],[1,"orgHome-orgName"],[1,"orgHome-buttonlist"],["class","orgHome-each-fc",4,"ngFor","ngForOf"],[1,"dz-powered"],["name","txnActiveOption",1,"common-radio-group",3,"ngModel","ngModelChange"],["value","R",1,"common-radio-button"],["value","D",1,"common-radio-button"],["id","salesforceusrorghom-resumetrnx","type","button","mat-raised-button","",3,"click"],["class","app-spinner",4,"ngIf"],[1,"app-spinner"],["name","selectedTxnResumeOption",1,"common-radio-group",3,"ngModel","ngModelChange"],["class","common-radio-button",3,"value",4,"ngFor","ngForOf"],["id","salesforceusrorghom-next","type","button","mat-raised-button","",3,"click"],[1,"common-radio-button",3,"value"],[1,"orghome-sticky-search-top"],[1,"org-home-search"],["mat-elevation-z10","",1,"org-home-search-form"],["id","org-home-search-input","name","searchText","type","text","placeholder","Search Org-Home","spellcheck","false",3,"ngModel","ngModelChange","keydown.enter"],["id","org-home-search","type","submit","mat-mini-fab","","color","accent","aria-label","Enter some keywords to search Org-Home.",1,"org-home-search-icon",3,"click"],["id","org-home-close","type","submit","mat-icon-button","","aria-label","Enter some keywords to search Org-Home.",1,"org-home-search-clear-icon",3,"click"],["id","org-home-advanced-search-icon","type","submit","mat-mini-fab","","aria-label","Click here for Advanced Search Options",1,"org-home-advanced-search-icon",3,"click"],["id","sf-orghome-search-results-scrollposition"],["class","orghome-search-results-container",4,"ngIf"],[1,"orghome-search-results-container"],["class","orgHome-goal-cards mat-elevation-z8",4,"ngFor","ngForOf"],[1,"orgHome-goal-cards","mat-elevation-z8"],[1,"orgHome-fc-goal"],[1,"orgHome-goalName","gray-text"],["mat-raised-button","",1,"orgHome-fcNameButton",3,"disabled","click"],[1,"orgHome-fcNameButton-container"],[1,"orgHome-fc-btn-img-div"],["class","fc-btn-image","width","75px","height","50px","loading","lazy",3,"src","alt",4,"ngIf"],["class","fc-btn-image","width","75px","height","50px","loading","lazy","src","assets/images/Flowchart-label-gray-18dp.svg",3,"alt",4,"ngIf"],[1,"orgHome-fc-btn-name-div"],[1,"fc-btn-name"],["width","75px","height","50px","loading","lazy",1,"fc-btn-image",3,"src","alt"],["width","75px","height","50px","loading","lazy","src","assets/images/Flowchart-label-gray-18dp.svg",1,"fc-btn-image",3,"alt"],[1,"orgHome-each-fc"],[1,"orgHome-fcRow"]],template:function(t,i){1&t&&(e.YNc(0,P,3,2,"div",0),e.YNc(1,te,13,7,"div",1)),2&t&&(e.Q6J("ngIf",!i.loading&&i.globalError),e.xp6(1),e.Q6J("ngIf",!i.loading&&!i.globalError))},dependencies:[h.sg,h.O5,x.Fj,x.JJ,x.On,m.lW,v.a8,C.Hw,p.Ou,w.VQ,w.U0],styles:[".orgHome-page[_ngcontent-%COMP%]{max-width:600px;padding:30px 0 5px;margin:0 auto;text-align:center;position:relative;overflow-y:auto}.dz-powered[_ngcontent-%COMP%]{text-align:left;font-size:x-small}.orgHome-buttonlist[_ngcontent-%COMP%]{display:block;padding:20px 5px 5px}.orgHome-fcRow[_ngcontent-%COMP%]{margin:20px auto 5px}.orgHome-title[_ngcontent-%COMP%]{margin-bottom:0;font-size:16px;text-align:center;font-weight:700;color:var(--primarytextcolor)}.orgHome-orgName[_ngcontent-%COMP%]{color:var(--primarytextcolor);font-size:large;font-weight:bolder}.orgHome-title-user[_ngcontent-%COMP%]{font-style:italic}.orgHome-each-fc[_ngcontent-%COMP%]{margin:30px auto 5px}.orgHome-fc-goal[_ngcontent-%COMP%]{margin:5px auto;font-size:small}.orgHome-goalName[_ngcontent-%COMP%]{font-size:small}.gray-text[_ngcontent-%COMP%]{color:#696969}.orgHome-fcNameButton[_ngcontent-%COMP%]{margin:0 auto;max-width:250px;white-space:pre-line}.orghome-sticky-search-top[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:1;top:0vh;left:0;background:var(--backgroundcolor)}@media screen and (min-width: 1200px){.orghome-sticky-search-top[_ngcontent-%COMP%]{left:calc(50% - 600px);max-width:1200px}}.org-home-search[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box}.org-home-search-form[_ngcontent-%COMP%]{margin:0 auto;width:90%;max-width:500px;position:relative;text-align:center}#org-home-search-input[_ngcontent-%COMP%]{width:calc(100% - 75px);background-color:#ffd740;border:none;margin:10px auto 10px 0;line-height:26px;padding:2px 35px 2px 5px;font-size:14px;color:var(--primarytextcolor);border-radius:10px}
1.org-home-search-icon[_ngcontent-%COMP%]{position:absolute;right:-10px;top:4px;color:gray}.org-home-search-clear-icon[_ngcontent-%COMP%]{position:absolute;right:35px;top:5px;color:gray}.org-home-advanced-search-icon[_ngcontent-%COMP%]{position:absolute;left:-10px;top:5px;color:gray}#sf-orghome-search-results-scrollposition[_ngcontent-%COMP%]{width:10%;position:absolute;top:-10vh}.orghome-search-results-container[_ngcontent-%COMP%]{max-height:400px;overflow:auto;padding:0 10px 15px;box-sizing:border-box;border:5px solid var(--secondarycolor);border-radius:10px;margin:20px 0 0}@media screen and (max-width: 600px){.orghome-search-results-container[_ngcontent-%COMP%]{max-height:250px}}.orgHome-goal-cards[_ngcontent-%COMP%]{margin-top:15px!important;padding:10px;border-radius:20px!important}.embeded-main-container[_ngcontent-%COMP%]{height:100%!important;width:100%;margin:0!important}.main-content.embeded-main-content.mat-card[_ngcontent-%COMP%]{padding:0!important;height:100%!important}.orgHome-fcNameButton[_ngcontent-%COMP%]{margin:0 auto;padding:0;width:300px;color:var(--secondarycolor);height:50px}.orgHome-fcNameButton[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box}.orgHome-fcNameButton-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-radius:15px;position:relative}.orgHome-fc-btn-img-div[_ngcontent-%COMP%]{height:50px;width:75px;display:flex;align-items:center}.fc-btn-image[_ngcontent-%COMP%]{object-fit:cover;height:100%;border-top-left-radius:4px;border-bottom-left-radius:4px}.orgHome-fc-btn-name-div[_ngcontent-%COMP%]{height:50px;flex-grow:1;display:flex;flex-direction:column;justify-content:space-around;padding:5px}.fc-btn-name[_ngcontent-%COMP%]{white-space:pre-line;font-size:14px;color:var(--secondarytextcolor);line-height:16px}"]}),o})(),ie=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[h.ez,y.o9,x.u5,b.K,T.Bz.forChild([{path:"",component:oe}])]}),o})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.