1"use strict";(self.webpackChunkdzweb=self.webpackChunkdzweb||[]).push([[8766],{68766:(Z,h,n)=>{n.r(h),n.d(h,{RestrictedPublishFlowchartCheckModule:()=>R});var d=n(36895),a=n(19132),m=n(69814),u=n(24006),g=n(10920),e=n(94650),p=n(21952),f=n(93531),y=n(64918),b=n(56871),v=n(38058),C=n(4859),P=n(51572);function w(r,c){1&r&&e._UZ(0,"mat-spinner",4)}function _(r,c){if(1&r){const t=e.EpF();e.TgZ(0,"div",7)(1,"h1"),e._uU(2,"Resource Not Available"),e.qZA(),e.TgZ(3,"p"),e._uU(4," The flowchart you are trying to access is not available at this time. Please try again later or ask the owner of this flowchart to share it again. "),e.qZA(),e.TgZ(5,"button",8),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.goDecizoneHome())}),e._uU(6," Go to DeciZone.com "),e.qZA()()}}function x(r,c){if(1&r){const t=e.EpF();e.TgZ(0,"div",7)(1,"p"),e._uU(2," This flowchart cannot be opened currently because it has either reached its maximum usage limit or the expiry time set by its author. Please check with the author or the person that sent you the link to this flowchart. "),e.qZA(),e.TgZ(3,"button",9),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.goDecizoneHome())}),e._uU(4," Go to DeciZone.com "),e.qZA()()}}function S(r,c){if(1&r){const t=e.EpF();e.TgZ(0,"div",7)(1,"p"),e._uU(2," Glad you are back! The last time you opened this flowchart, you started your journey inside the flowchart, but you did not complete your journey through the flowchart and left it unfinished. You have two options below. Regardless of which options you select, we will count your activity as if this flowchart was successfully used one time. "),e.qZA(),e.TgZ(3,"p")(4,"strong"),e._uU(5,"Option 1 - Resume"),e.qZA(),e._uU(6,": You can Resume this flowchart right from where you left it last time. This way you can avoid answering the same questions again. "),e.qZA(),e.TgZ(7,"button",10),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.restrictedPublishFlowchartTxnAction("R"))}),e._uU(8," Resume Last Activity "),e.qZA(),e.TgZ(9,"p")(10,"strong"),e._uU(11,"Option 2 - Discard Previous Activity & Start Again From Beginning"),e.qZA(),e._uU(12,": You can Discard your last activity inside this flowchart and start a fresh new activity from the beginning. This is helpful if you want to reconsider your answers to the questions. "),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.restrictedPublishFlowchartTxnAction("D"))}),e._uU(14," Discard & Start Again "),e.qZA(),e._UZ(15,"br"),e.qZA()}}function F(r,c){if(1&r&&(e.TgZ(0,"div",5),e.YNc(1,_,7,0,"div",6),e.YNc(2,x,5,0,"div",6),e.YNc(3,S,16,0,"div",6),e.qZA()),2&r){const t=e.oxw();e.xp6(1),e.Q6J("ngIf","NP"===t.restrictedPublishedFcStatus),e.xp6(1),e.Q6J("ngIf","NA"===t.restrictedPublishedFcStatus),e.xp6(1),e.Q6J("ngIf","A"===t.restrictedPublishedFcStatus)}}let T=(()=>{class r{constructor(t,s,i,o,l,k,I){this._utilService=s,this._orgService=i,this._loginService=o,this._flowchartService=l,this._route=k,this.router=I,this.loading=!1,this.sessionStorage=t}ngOnInit(){this.loading=!0;var t=document.getElementById("footer");t&&t.style&&(t.style.display="block"),this._utilService.setShowSearchButton(!1),this._utilService.setPublishedFlowProperty(!0);let s=Number(this.sessionStorage.getItem("rpfcOrgId").toString());this._orgService.getOrganizationProperties(s).subscribe(o=>{console.log(o),this.sessionStorage.setObject("orgLogoUrl",o.responseBody.logoUrl),this.sessionStorage.setObject("orgWebsiteUrl",o.responseBody.orgWebsiteUrl),this._loginService.showOrgLogo(!0),o.responseBody.brandPrimaryColor&&o.responseBody.brandPrimaryColor.length>0&&document.documentElement.style.setProperty("--primarycolor",o.responseBody.brandPrimaryColor),o.responseBody.brandSecondaryColor&&o.responseBody.brandSecondaryColor.length>0&&document.documentElement.style.setProperty("--secondarycolor",o.responseBody.brandSecondaryColor),o.responseBody.textPrimaryColor&&o.responseBody.textPrimaryColor.length>0&&document.documentElement.style.setProperty("--primarytextcolor",o.responseBody.textPrimaryColor),o.responseBody.textSecondaryColor&&o.responseBody.textSecondaryColor.length>0&&document.documentElement.style.setProperty("--secondarytextcolor",o.responseBody.textSecondaryColor),o.responseBody.headerTextColor&&o.responseBody.headerTextColor.length>0&&document.documentElement.style.setProperty("--thirdtextcolor",o.responseBody.headerTextColor),o.responseBody.backgroundColor&&o.responseBody.backgroundColor.length>0&&document.documentElement.style.setProperty("--backgroundcolor",o.responseBody.backgroundColor),document.getElementById("dz-header").style.visibility="visible",this.loading=!1},o=>{console.log("Could not get Organization Properties."),this.loading=!1});let i=this.sessionStorage.getItem("rpftStatus");if(i)this.restrictedPublishedFcStatus=i;else if(!this._utilService.getRestrictedPublishedFcTxnId("rpftId")){let l=this._getRestrictedPublishedUrlFromCurrentPath();this.router.navigateByUrl(l)}}goDecizoneHome(){this.sessionStorage.removeItem("orgLogoUrl"),this._loginService.showOrgLogo(!1),this.router.navigateByUrl("/")}_getRestrictedPublishedUrlFromCurrentPath(){let t=window.location.pathname,s=t.lastIndexOf("/");return t.substr(0,s)}
1restrictedPublishFlowchartTxnAction(t){if(this.sessionStorage.removeItem("flowchart"),"D"===t){let s={clientTxnId:this._utilService.getRestrictedPublishFcTxnIdFromCookie(this._route.snapshot.params.id),userSessionId:this._utilService.getCookie("userSessionId"),flowchartRandomId:this._route.snapshot.params.fcRandomId,txnStatus:"D",restrictedPublishCode:this._route.snapshot.params.id};this._flowchartService.updateRestrictedPublishedFlowchartTransaction(s).subscribe(i=>{this._utilService.removeCurrentRestrictedPublishedFcTxnId(),this.sessionStorage.removeItem("rpftStatus");let o=this._getRestrictedPublishedUrlFromCurrentPath();this.router.navigateByUrl(o)},i=>{})}else"R"===t&&this._flowchartService.updateAndGetRestrictedPublishTxnFlowchartDetails(this._route.snapshot.params.id,this._route.snapshot.params.goalUrl,this._route.snapshot.params.fcRandomId).subscribe(s=>{this._flowchartService.getAndUpdateFlowchartPropertyInSession(s.flowchartId);let i=this._getRestrictedPublishedUrlFromCurrentPath();this.router.navigateByUrl(i)},s=>{})}}return r.\u0275fac=function(t){return new(t||r)(e.Y36(p.qo),e.Y36(f.f),e.Y36(y.Q),e.Y36(b.r),e.Y36(v.q),e.Y36(a.gz),e.Y36(a.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-restricted-publish-flowchart-check"]],decls:6,vars:2,consts:[[1,"rpf-check-page"],[1,"centerize"],["class","spin-centered",4,"ngIf"],["class","rpf-container",4,"ngIf"],[1,"spin-centered"],[1,"rpf-container"],["class","rpf-message",4,"ngIf"],[1,"rpf-message"],["id","restrtdpublshfc-na-godz","mat-raised-button","","color","accent",3,"click"],["id","restrtdpublshfc-limit-godz","mat-raised-button","","color","accent",3,"click"],["id","restrtdpublshfc-resume","mat-raised-button","","color","accent",3,"click"],["id","restrtdpublshfc-discardstart","mat-raised-button","","color","accent",3,"click"]],template:function(t,s){1&t&&(e.TgZ(0,"div",0)(1,"h3",1),e._uU(2,"Accessing previously unfinished flowchart"),e.qZA(),e.YNc(3,w,1,0,"mat-spinner",2),e.YNc(4,F,4,3,"div",3),e.qZA(),e._UZ(5,"br")),2&t&&(e.xp6(3),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",!s.loading))},dependencies:[d.O5,C.lW,P.Ou],styles:[".rpf-check-page[_ngcontent-%COMP%]{height:100%}.rpf-container[_ngcontent-%COMP%]{width:90%;max-width:700px;margin:auto}.rpf-message[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 auto;display:block}"]}),r})();var U=n(15163);let R=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[d.ez,m.o9,u.u5,u.UX,g.K,U.g,a.Bz.forChild([{path:"",component:T}])]}),r})()}}]);
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.